# UI_Button_OrderDayButton_325.luac
; fn @OrderDayButton.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=8 upvals=1 protos=4
;   K[0]='OrderDayButton'
;   K[1]='setmetatable'
;   K[2]='HudGeneralButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='UpdateTextAnimation'
;   K[6]='_OnOrderDayChanged'
;   K[7]='OnClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('HudGeneralButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('OrderDayButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('OrderDayButton')]
0006  GETTABUP  R1 = _ENV[K0('OrderDayButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('OrderDayButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('OrderDayButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('UpdateTextAnimation')] = R1
0014  GETTABUP  R0 = _ENV[K0('OrderDayButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_OnOrderDayChanged')] = R1
0017  GETTABUP  R0 = _ENV[K0('OrderDayButton')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnClicked')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 4-10 np=1 va=0 ms=5 code=21 consts=9 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='AddListener'
  ;   K[2]='EEventType'
  ;   K[3]='OrderDayChanged'
  ;   K[4]='_OnOrderDayChanged'
  ;   K[5]='NewReleasedOrderGroupUnlocked'
  ;   K[6]='UpdateTextAnimation'
  ;   K[7]='HudGeneralButton'
  ;   K[8]='Awake'
  ;   upvals: _ENV
  ;   locals: self(0-21)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('AddListener')]
  0002  GETTABUP  R2 = _ENV[K2('EEventType')]
  0003  GETTABLE  R2 = R2[K3('OrderDayChanged')]
  0004  MOVE      R3 = R0
  0005  GETTABLE  R4 = R0[K4('_OnOrderDayChanged')]
  0006  CALL      R1 = call(R1, 0 args, 3 rets)
  0007  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0008  GETTABLE  R1 = R1[K1('AddListener')]
  0009  GETTABUP  R2 = _ENV[K2('EEventType')]
  0010  GETTABLE  R2 = R2[K5('NewReleasedOrderGroupUnlocked')]
  0011  MOVE      R3 = R0
  0012  GETTABLE  R4 = R0[K6('UpdateTextAnimation')]
  0013  CALL      R1 = call(R1, 0 args, 3 rets)
  0014  GETTABUP  R1 = _ENV[K7('HudGeneralButton')]
  0015  GETTABLE  R1 = R1[K8('Awake')]
  0016  MOVE      R2 = R0
  0017  CALL      R1 = call(R1, 0 args, 1 rets)
  0018  SELF      R2 = R0[K4('_OnOrderDayChanged')] (self)
  0019  CALL      R1 = call(R1, 0 args, 1 rets)
  0020  RETURN    return R0..R-1
; ---------- proto1 [UpdateTextAnimation] ----------
  ; fn ?  line 12-14 np=1 va=0 ms=3 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_calender'
  ;   K[1]='UpdateContent'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_calender')]
  0001  SELF      R2 = R1[K1('UpdateContent')] (self)
  0002  CALL      R1 = call(R1, 0 args, 1 rets)
  0003  RETURN    return R0..R-1
; ---------- proto2 [_OnOrderDayChanged] ----------
  ; fn ?  line 16-21 np=1 va=0 ms=3 code=12 consts=7 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='SceneManager'
  ;   K[2]='GetGameMode'
  ;   K[3]='EGameMode'
  ;   K[4]='Board'
  ;   K[5]='m_calender'
  ;   K[6]='UpdateContent'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('SceneManager')]
  0002  SELF      R2 = R1[K2('GetGameMode')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  GETTABUP  R2 = _ENV[K3('EGameMode')]
  0005  GETTABLE  R2 = R2[K4('Board')]
  0006  EQ        if R1 eq R2   -> -130550
  0007  JMP       (jump)   -> 11
  0008  GETTABLE  R1 = R0[K5('m_calender')]
  0009  SELF      R2 = R1[K6('UpdateContent')] (self)
  0010  CALL      R1 = call(R1, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto3 [OnClicked] ----------
  ; fn ?  line 23-34 np=1 va=0 ms=6 code=27 consts=10 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='MainBoardModel'
  ;   K[2]='GetOrderModel'
  ;   K[3]='IsGuideGroup'
  ;   K[4]='IsAllCanUnlockGroupFinished'
  ;   K[5]='UIManager'
  ;   K[6]='OpenView'
  ;   K[7]='UIPrefabConfigName'
  ;   K[8]='OrderDayClearWindow'
  ;   K[9]='OrderDayWindow'
  ;   upvals: _ENV
  ;   locals: self(0-27), orderModel(4-27), cleared(11-27)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('MainBoardModel')]
  0002  SELF      R2 = R1[K2('GetOrderModel')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  SELF      R3 = R1[K3('IsGuideGroup')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  TEST      if not R2 then   -> -131064
  0007  JMP       (jump)   -> 9
  0008  RETURN    return R0..R-1
  0009  SELF      R3 = R1[K4('IsAllCanUnlockGroupFinished')] (self)
  0010  CALL      R2 = call(R2, 1 args, 1 rets)
  0011  TEST      if not R2 then   -> -131059
  0012  JMP       (jump)   -> 20
  0013  GETTABUP  R3 = _ENV[K0('GM')]
  0014  GETTABLE  R3 = R3[K5('UIManager')]
  0015  SELF      R4 = R3[K6('OpenView')] (self)
  0016  GETTABUP  R5 = _ENV[K7('UIPrefabConfigName')]
  0017  GETTABLE  R5 = R5[K8('OrderDayClearWindow')]
  0018  CALL      R3 = call(R3, 0 args, 2 rets)
  0019  JMP       (jump)   -> 26
  0020  GETTABUP  R3 = _ENV[K0('GM')]
  0021  GETTABLE  R3 = R3[K5('UIManager')]
  0022  SELF      R4 = R3[K6('OpenView')] (self)
  0023  GETTABUP  R5 = _ENV[K7('UIPrefabConfigName')]
  0024  GETTABLE  R5 = R5[K9('OrderDayWindow')]
  0025  CALL      R3 = call(R3, 0 args, 2 rets)
  0026  RETURN    return R0..R-1
