# SurpriseChest_View_SurpriseChestMainWindow_780.luac
; fn @SurpriseChestMainWindow.lua  line 0-0 np=0 va=1 ms=3 code=37 consts=17 upvals=1 protos=8
;   K[0]='SurpriseChestMainWindow'
;   K[1]='setmetatable'
;   K[2]='canCloseByAndroidBack'
;   K[3]=false
;   K[4]='windowMaskAlpha'
;   K[5]='EWindowMaskAlpha'
;   K[6]='Default'
;   K[7]='SurpriseChestBaseWindow'
;   K[8]='__index'
;   K[9]='Init'
;   K[10]='GetTriggerData'
;   K[11]='PlayEnterAnim'
;   K[12]='OnBtnClicked'
;   K[13]='PlayEggFlyAnim'
;   K[14]='ShouldShowChest'
;   K[15]='OnDestroy'
;   K[16]='OnCloseView'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canCloseByAndroidBack')] = K3(false)
0003  GETTABUP  R2 = _ENV[K5('EWindowMaskAlpha')]
0004  GETTABLE  R2 = R2[K6('Default')]
0005  SETTABLE  R1[K4('windowMaskAlpha')] = R2
0006  GETTABUP  R2 = _ENV[K7('SurpriseChestBaseWindow')]
0007  CALL      R0 = call(R0, 1 args, 2 rets)
0008  SETTABUP  _ENV[K0('SurpriseChestMainWindow')] = R0
0009  GETTABUP  R0 = _ENV[K0('SurpriseChestMainWindow')]
0010  GETTABUP  R1 = _ENV[K0('SurpriseChestMainWindow')]
0011  SETTABLE  R0[K8('__index')] = R1
0012  GETTABUP  R0 = _ENV[K0('SurpriseChestMainWindow')]
0013  CLOSURE   R1 = closure proto0
0014  SETTABLE  R0[K9('Init')] = R1
0015  GETTABUP  R0 = _ENV[K0('SurpriseChestMainWindow')]
0016  CLOSURE   R1 = closure proto1
0017  SETTABLE  R0[K10('GetTriggerData')] = R1
0018  GETTABUP  R0 = _ENV[K0('SurpriseChestMainWindow')]
0019  CLOSURE   R1 = closure proto2
0020  SETTABLE  R0[K11('PlayEnterAnim')] = R1
0021  GETTABUP  R0 = _ENV[K0('SurpriseChestMainWindow')]
0022  CLOSURE   R1 = closure proto3
0023  SETTABLE  R0[K12('OnBtnClicked')] = R1
0024  GETTABUP  R0 = _ENV[K0('SurpriseChestMainWindow')]
0025  CLOSURE   R1 = closure proto4
0026  SETTABLE  R0[K13('PlayEggFlyAnim')] = R1
0027  GETTABUP  R0 = _ENV[K0('SurpriseChestMainWindow')]
0028  CLOSURE   R1 = closure proto5
0029  SETTABLE  R0[K14('ShouldShowChest')] = R1
0030  GETTABUP  R0 = _ENV[K0('SurpriseChestMainWindow')]
0031  CLOSURE   R1 = closure proto6
0032  SETTABLE  R0[K15('OnDestroy')] = R1
0033  GETTABUP  R0 = _ENV[K0('SurpriseChestMainWindow')]
0034  CLOSURE   R1 = closure proto7
0035  SETTABLE  R0[K16('OnCloseView')] = R1
0036  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 14-48 np=4 va=0 ms=15 code=99 consts=40 upvals=1 protos=1
  ;   K[0]='SurpriseChestBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_bUserClick'
  ;   K[3]='m_triggerData'
  ;   K[4]='m_timeText'
  ;   K[5]='text'
  ;   K[6]='GM'
  ;   K[7]='SurpriseChestManager'
  ;   K[8]='GetCountDownText'
  ;   K[9]='GetDuration'
  ;   K[10]='GameConfig'
  ;   K[11]='IsTestMode'
  ;   K[12]='GetTriggerType'
  ;   K[13]='GetExtraInfo'
  ;   K[14]='ESurpriseChestTriggerType'
  ;   K[15]='Activity'
  ;   K[16]='ActivityManager'
  ;   K[17]='GetModel'
  ;   K[18]='table'
  ;   K[19]='insert'
  ;   K[20]='活动触发: '
  ;   K[21]='tostring'
  ;   K[22]='GetId'
  ;   K[23]='(nil id)'
  ;   K[24]='-'
  ;   K[25]='RewardBuff'
  ;   K[26]='当前投放: '
  ;   K[27]='剩余资产: '
  ;   K[28]='TestGetPropertyCountInfo'
  ;   K[29]='m_testText'
  ;   K[30]='concat'
  ;   K[31]='\n'
  ;   K[32]='m_bShouldShowChest'
  ;   K[33]=false
  ;   K[34]='m_spine'
  ;   K[35]='PlayEnterAnim'
  ;   K[36]='IsAutoRun'
  ;   K[37]='DOVirtual'
  ;   K[38]='DelayedCall'
  ;   K[39]=0.2
  ;   upvals: _ENV
  ;   locals: self(0-99), activityType(0-99), bUserClick(0-99), triggerData(0-99), testInfoStr(22-83), triggerType(24-83), extraInfo(26-83), model(35-54)
  0000  GETTABUP  R4 = _ENV[K0('SurpriseChestBaseWindow')]
  0001  GETTABLE  R4 = R4[K1('Init')]
  0002  MOVE      R5 = R0
  0003  MOVE      R6 = R0
  0004  MOVE      R7 = R0
  0005  CALL      R4 = call(R4, 0 args, 3 rets)
  0006  SETTABLE  R0[K2('m_bUserClick')] = R2
  0007  SETTABLE  R0[K3('m_triggerData')] = R3
  0008  GETTABLE  R4 = R0[K4('m_timeText')]
  0009  GETTABUP  R5 = _ENV[K6('GM')]
  0010  GETTABLE  R5 = R5[K7('SurpriseChestManager')]
  0011  SELF      R6 = R5[K8('GetCountDownText')] (self)
  0012  SELF      R8 = R3[K9('GetDuration')] (self)
  0013  CALL      R7 = call(R7, -1 args, 1 rets)
  0014  CALL      R5 = call(R5, 1 args, -1 rets)
  0015  SETTABLE  R4[K5('text')] = R5
  0016  GETTABUP  R4 = _ENV[K10('GameConfig')]
  0017  GETTABLE  R4 = R4[K11('IsTestMode')]
  0018  CALL      R4 = call(R4, 1 args, 0 rets)
  0019  TEST      if not R4 then   -> -131051
  0020  JMP       (jump)   -> 83
  0021  NEWTABLE  R4 = {} (0 items)
  0022  SELF      R6 = R3[K12('GetTriggerType')] (self)
  0023  CALL      R5 = call(R5, 1 args, 1 rets)
  0024  SELF      R7 = R3[K13('GetExtraInfo')] (self)
  0025  CALL      R6 = call(R6, 1 args, 1 rets)
  0026  GETTABUP  R7 = _ENV[K14('ESurpriseChestTriggerType')]
  0027  GETTABLE  R7 = R7[K15('Activity')]
  0028  EQ        if R0 eq R7   -> -128475
  0029  JMP       (jump)   -> 55
  0030  GETTABUP  R7 = _ENV[K6('GM')]
  0031  GETTABLE  R7 = R7[K16('ActivityManager')]
  0032  SELF      R8 = R7[K17('GetModel')] (self)
  0033  MOVE      R9 = R0
  0034  CALL      R7 = call(R7, 1 args, 2 rets)
  0035  GETTABUP  R8 = _ENV[K18('table')]
  0036  GETTABLE  R8 = R8[K19('insert')]
  0037  MOVE      R9 = R0
  0038  LOADK     R10 = K20 '活动触发: '
  0039  GETTABUP  R11 = _ENV[K21('tostring')]
  0040  TEST      if not R7 then   -> -131030
  0041  JMP       (jump)   -> 46
  0042  SELF      R13 = R7[K22('GetId')] (self)
  0043  CALL      R12 = call(R12, 1 args, 1 rets)
  0044  TEST      if not R12 then   -> -131025
  0045  JMP       (jump)   -> 47
  0046  LOADK     R12 = K23 '(nil id)'
  0047  CALL      R11 = call(R11, 1 args, 1 rets)
  0048  LOADK     R12 = K24 '-'
  0049  GETTABUP  R13 = _ENV[K21('tostring')]
  0050  MOVE      R14 = R0
  0051  CALL      R13 = call(R13, 1 args, 1 rets)
  0052  CONCAT    R10 = concat(R10..R10)
  0053  CALL      R8 = call(R8, 0 args, 2 rets)
  0054  JMP       (jump)   -> 76
  0055  GETTABUP  R7 = _ENV[K14('ESurpriseChestTriggerType')]
  0056  GETTABLE  R7 = R7[K25('RewardBuff')]
  0057  EQ        if R0 eq R7   -> -128446
  0058  JMP       (jump)   -> 76
  0059  GETTABUP  R7 = _ENV[K18('table')]
  0060  GETTABLE  R7 = R7[K19('insert')]
  0061  MOVE      R8 = R0
  0062  LOADK     R9 = K26 '当前投放: '
  0063  MOVE      R10 = R0
  0064  CONCAT    R9 = concat(R9..R9)
  0065  CALL      R7 = call(R7, 0 args, 2 rets)
  0066  GETTABUP  R7 = _ENV[K18('table')]
  0067  GETTABLE  R7 = R7[K19('insert')]
  0068  MOVE      R8 = R0
  0069  LOADK     R9 = K27 '剩余资产: '
  0070  GETTABUP  R10 = _ENV[K6('GM')]
  0071  GETTABLE  R10 = R10[K7('SurpriseChestManager')]
  0072  SELF      R11 = R10[K28('TestGetPropertyCountInfo')] (self)
  0073  CALL      R10 = call(R10, 1 args, 1 rets)
  0074  CONCAT    R9 = concat(R9..R9)
  0075  CALL      R7 = call(R7, 0 args, 2 rets)
  0076  GETTABLE  R7 = R0[K29('m_testText')]
  0077  GETTABUP  R8 = _ENV[K18('table')]
  0078  GETTABLE  R8 = R8[K30('concat')]
  0079  MOVE      R9 = R0
  0080  LOADK     R10 = K31 '\n'
  0081  CALL      R8 = call(R8, 1 args, 2 rets)
  0082  SETTABLE  R7[K5('text')] = R8
  0083  SETTABLE  R0[K32('m_bShouldShowChest')] = K33(false)
  0084  GETTABLE  R4 = R0[K34('m_spine')]
  0085  SELF      R5 = R4[K1('Init')] (self)
  0086  CALL      R4 = call(R4, 0 args, 1 rets)
  0087  SELF      R5 = R0[K35('PlayEnterAnim')] (self)
  0088  CALL      R4 = call(R4, 0 args, 1 rets)
  0089  GETTABUP  R4 = _ENV[K36('IsAutoRun')]
  0090  CALL      R4 = call(R4, 1 args, 0 rets)
  0091  TEST      if not R4 then   -> -130979
  0092  JMP       (jump)   -> 98
  0093  GETTABUP  R4 = _ENV[K37('DOVirtual')]
  0094  GETTABLE  R4 = R4[K38('DelayedCall')]
  0095  LOADK     R5 = K39 0.2
  0096  CLOSURE   R6 = closure proto0
  0097  CALL      R4 = call(R4, 0 args, 2 rets)
  0098  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 46-46 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='OnBtnClicked'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('OnBtnClicked')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto1 [GetTriggerData] ----------
  ; fn ?  line 50-52 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_triggerData'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_triggerData')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto2 [PlayEnterAnim] ----------
  ; fn ?  line 54-67 np=1 va=0 ms=6 code=28 consts=15 upvals=1 protos=2
  ;   K[0]='m_spine'
  ;   K[1]='SetAnimation'
  ;   K[2]='appear'
  ;   K[3]='AddAnimation'
  ;   K[4]='idle'
  ;   K[5]='m_canvasGroup'
  ;   K[6]='alpha'
  ;   K[7]=0
  ;   K[8]='DelayExecuteFuncInView'
  ;   K[9]=1
  ;   K[10]='GM'
  ;   K[11]='UIManager'
  ;   K[12]='SetEventLock'
  ;   K[13]='DelayExecuteFunc'
  ;   K[14]=1.5
  ;   upvals: _ENV
  ;   locals: self(0-28)
  0000  GETTABLE  R1 = R0[K0('m_spine')]
  0001  SELF      R2 = R1[K1('SetAnimation')] (self)
  0002  LOADK     R3 = K2 'appear'
  0003  LOADBOOL  R4 = false
  0004  CALL      R1 = call(R1, 0 args, 3 rets)
  0005  GETTABLE  R1 = R0[K0('m_spine')]
  0006  SELF      R2 = R1[K3('AddAnimation')] (self)
  0007  LOADK     R3 = K4 'idle'
  0008  LOADBOOL  R4 = true
  0009  CALL      R1 = call(R1, 0 args, 3 rets)
  0010  GETTABLE  R1 = R0[K5('m_canvasGroup')]
  0011  SETTABLE  R1[K6('alpha')] = K7(0)
  0012  GETTABUP  R1 = _ENV[K8('DelayExecuteFuncInView')]
  0013  CLOSURE   R2 = closure proto0
  0014  LOADK     R3 = K9 1
  0015  MOVE      R4 = R0
  0016  LOADBOOL  R5 = true
  0017  CALL      R1 = call(R1, 0 args, 4 rets)
  0018  GETTABUP  R1 = _ENV[K10('GM')]
  0019  GETTABLE  R1 = R1[K11('UIManager')]
  0020  SELF      R2 = R1[K12('SetEventLock')] (self)
  0021  LOADBOOL  R3 = true
  0022  CALL      R1 = call(R1, 0 args, 2 rets)
  0023  GETTABUP  R1 = _ENV[K13('DelayExecuteFunc')]
  0024  CLOSURE   R2 = closure proto1
  0025  LOADK     R3 = K14 1.5
  0026  CALL      R1 = call(R1, 0 args, 2 rets)
  0027  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 59-61 np=0 va=0 ms=4 code=6 consts=4 upvals=1 protos=0
    ;   K[0]='m_canvasGroup'
    ;   K[1]='DOFade'
    ;   K[2]=1
    ;   K[3]=0.5
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_canvasGroup')]
    0001  SELF      R1 = R0[K1('DOFade')] (self)
    0002  LOADK     R2 = K2 1
    0003  LOADK     R3 = K3 0.5
    0004  CALL      R0 = call(R0, 0 args, 3 rets)
    0005  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 64-66 np=0 va=0 ms=3 code=6 consts=3 upvals=1 protos=0
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='SetEventLock'
    ;   upvals: _ENV
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('UIManager')]
    0002  SELF      R1 = R0[K2('SetEventLock')] (self)
    0003  LOADBOOL  R2 = false
    0004  CALL      R0 = call(R0, 0 args, 2 rets)
    0005  RETURN    return R0..R-1
; ---------- proto3 [OnBtnClicked] ----------
  ; fn ?  line 69-95 np=1 va=0 ms=9 code=60 consts=34 upvals=1 protos=1
  ;   K[0]='GetTriggerData'
  ;   K[1]='CanTrigger'
  ;   K[2]='Trigger'
  ;   K[3]='UIUtil'
  ;   K[4]='SetActive'
  ;   K[5]='m_btnGo'
  ;   K[6]='m_spine'
  ;   K[7]='SetAnimation'
  ;   K[8]='open'
  ;   K[9]='TutorialHelper'
  ;   K[10]='ScrollToMainOrderRoot'
  ;   K[11]='GM'
  ;   K[12]='UIManager'
  ;   K[13]='SetEventLock'
  ;   K[14]='m_eventLocked'
  ;   K[15]=true
  ;   K[16]='DOTween'
  ;   K[17]='Sequence'
  ;   K[18]='Append'
  ;   K[19]='m_canvasGroup'
  ;   K[20]='DOFade'
  ;   K[21]=0
  ;   K[22]=0.2
  ;   K[23]='AppendInterval'
  ;   K[24]='AppendCallback'
  ;   K[25]='m_seq'
  ;   K[26]='ShowPromptWithKey'
  ;   K[27]='event_general_end'
  ;   K[28]='Close'
  ;   K[29]='LogWindowAction'
  ;   K[30]='EBIType'
  ;   K[31]='UIActionType'
  ;   K[32]='Click'
  ;   K[33]='use'
  ;   upvals: _ENV
  ;   locals: self(0-60), triggerData(2-60), seq(31-45)
  0000  SELF      R2 = R0[K0('GetTriggerData')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  SELF      R3 = R1[K1('CanTrigger')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  TEST      if not R2 then   -> -131066
  0005  JMP       (jump)   -> 46
  0006  SELF      R3 = R1[K2('Trigger')] (self)
  0007  CALL      R2 = call(R2, 0 args, 1 rets)
  0008  GETTABUP  R2 = _ENV[K3('UIUtil')]
  0009  GETTABLE  R2 = R2[K4('SetActive')]
  0010  GETTABLE  R3 = R0[K5('m_btnGo')]
  0011  LOADBOOL  R4 = false
  0012  CALL      R2 = call(R2, 0 args, 2 rets)
  0013  GETTABLE  R2 = R0[K6('m_spine')]
  0014  SELF      R3 = R2[K7('SetAnimation')] (self)
  0015  LOADK     R4 = K8 'open'
  0016  LOADBOOL  R5 = false
  0017  CALL      R2 = call(R2, 0 args, 3 rets)
  0018  GETTABUP  R2 = _ENV[K9('TutorialHelper')]
  0019  GETTABLE  R2 = R2[K10('ScrollToMainOrderRoot')]
  0020  LOADBOOL  R3 = false
  0021  CALL      R2 = call(R2, 0 args, 1 rets)
  0022  GETTABUP  R2 = _ENV[K11('GM')]
  0023  GETTABLE  R2 = R2[K12('UIManager')]
  0024  SELF      R3 = R2[K13('SetEventLock')] (self)
  0025  LOADBOOL  R4 = true
  0026  CALL      R2 = call(R2, 0 args, 2 rets)
  0027  SETTABLE  R0[K14('m_eventLocked')] = K15(true)
  0028  GETTABUP  R2 = _ENV[K16('DOTween')]
  0029  GETTABLE  R2 = R2[K17('Sequence')]
  0030  CALL      R2 = call(R2, 1 args, 0 rets)
  0031  SELF      R4 = R2[K18('Append')] (self)
  0032  GETTABLE  R5 = R0[K19('m_canvasGroup')]
  0033  SELF      R6 = R5[K20('DOFade')] (self)
  0034  LOADK     R7 = K21 0
  0035  LOADK     R8 = K22 0.2
  0036  CALL      R5 = call(R5, -1 args, 3 rets)
  0037  CALL      R3 = call(R3, 0 args, -1 rets)
  0038  SELF      R4 = R2[K23('AppendInterval')] (self)
  0039  LOADK     R5 = K22 0.2
  0040  CALL      R3 = call(R3, 0 args, 2 rets)
  0041  SELF      R4 = R2[K24('AppendCallback')] (self)
  0042  CLOSURE   R5 = closure proto0
  0043  CALL      R3 = call(R3, 0 args, 2 rets)
  0044  SETTABLE  R0[K25('m_seq')] = R2
  0045  JMP       (jump)   -> 53
  0046  GETTABUP  R2 = _ENV[K11('GM')]
  0047  GETTABLE  R2 = R2[K12('UIManager')]
  0048  SELF      R3 = R2[K26('ShowPromptWithKey')] (self)
  0049  LOADK     R4 = K27 'event_general_end'
  0050  CALL      R2 = call(R2, 0 args, 2 rets)
  0051  SELF      R3 = R0[K28('Close')] (self)
  0052  CALL      R2 = call(R2, 0 args, 1 rets)
  0053  SELF      R3 = R0[K29('LogWindowAction')] (self)
  0054  GETTABUP  R4 = _ENV[K30('EBIType')]
  0055  GETTABLE  R4 = R4[K31('UIActionType')]
  0056  GETTABLE  R4 = R4[K32('Click')]
  0057  LOADK     R5 = K33 'use'
  0058  CALL      R2 = call(R2, 0 args, 3 rets)
  0059  RETURN    return R0..R-1
  ; ---------- proto0 [m_seq] ----------
    ; fn ?  line 84-86 np=0 va=0 ms=2 code=4 consts=1 upvals=1 protos=0
    ;   K[0]='PlayEggFlyAnim'
    ;   upvals: self
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('PlayEggFlyAnim')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  RETURN    return R0..R-1
; ---------- proto4 [PlayEggFlyAnim] ----------
  ; fn ?  line 97-142 np=1 va=0 ms=10 code=30 consts=13 upvals=1 protos=2
  ;   K[0]='MainBoardView'
  ;   K[1]='GetInstance'
  ;   K[2]='GetOrderArea'
  ;   K[3]='GM'
  ;   K[4]='ModeViewController'
  ;   K[5]='GetBoardInfo'
  ;   K[6]=0.5
  ;   K[7]='DOTween'
  ;   K[8]='Sequence'
  ;   K[9]='AppendInterval'
  ;   K[10]=0.3
  ;   K[11]='AppendCallback'
  ;   K[12]='m_eggSeq'
  ;   upvals: _ENV
  ;   locals: self(0-30), boardView(3-30), orderArea(7-30), cam(11-30), flyTime(12-30), flyAnimFunc(13-30), seq(16-30)
  0000  GETTABUP  R1 = _ENV[K0('MainBoardView')]
  0001  GETTABLE  R1 = R1[K1('GetInstance')]
  0002  CALL      R1 = call(R1, 1 args, 0 rets)
  0003  TESTSET   if R0 then R2   -> -130555
  0004  JMP       (jump)   -> 7
  0005  SELF      R3 = R1[K2('GetOrderArea')] (self)
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  GETTABUP  R3 = _ENV[K3('GM')]
  0008  GETTABLE  R3 = R3[K4('ModeViewController')]
  0009  SELF      R4 = R3[K5('GetBoardInfo')] (self)
  0010  CALL      R3 = call(R3, 1 args, 1 rets)
  0011  LOADK     R4 = K6 0.5
  0012  CLOSURE   R5 = closure proto0
  0013  GETTABUP  R6 = _ENV[K7('DOTween')]
  0014  GETTABLE  R6 = R6[K8('Sequence')]
  0015  CALL      R6 = call(R6, 1 args, 0 rets)
  0016  SELF      R8 = R6[K9('AppendInterval')] (self)
  0017  LOADK     R9 = K10 0.3
  0018  CALL      R7 = call(R7, 0 args, 2 rets)
  0019  SELF      R8 = R6[K11('AppendCallback')] (self)
  0020  MOVE      R9 = R0
  0021  CALL      R7 = call(R7, 0 args, 2 rets)
  0022  SELF      R8 = R6[K9('AppendInterval')] (self)
  0023  MOVE      R9 = R0
  0024  CALL      R7 = call(R7, 0 args, 2 rets)
  0025  SELF      R8 = R6[K11('AppendCallback')] (self)
  0026  CLOSURE   R9 = closure proto1
  0027  CALL      R7 = call(R7, 0 args, 2 rets)
  0028  SETTABLE  R0[K12('m_eggSeq')] = R6
  0029  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 103-130 np=0 va=0 ms=14 code=68 consts=26 upvals=5 protos=1
    ;   K[0]=nil
    ;   K[1]='GM'
    ;   K[2]='SurpriseChestManager'
    ;   K[3]='GetAllSurpriseChestData'
    ;   K[4]='pairs'
    ;   K[5]='GetCellById'
    ;   K[6]='GetTopLeftEntryTbByActivityType'
    ;   K[7]='GetType'
    ;   K[8]='WorldToScreenPoint'
    ;   K[9]='transform'
    ;   K[10]='position'
    ;   K[11]='GameObject'
    ;   K[12]='Instantiate'
    ;   K[13]='m_flyItemGo'
    ;   K[14]='parent'
    ;   K[15]='UIUtil'
    ;   K[16]='SetActive'
    ;   K[17]='DOMove'
    ;   K[18]='PositionUtil'
    ;   K[19]='UICameraScreen2World'
    ;   K[20]='SetEase'
    ;   K[21]='Ease'
    ;   K[22]='OutQuad'
    ;   K[23]='OnComplete'
    ;   K[24]='m_bShouldShowChest'
    ;   K[25]=true
    ;   upvals: orderArea, _ENV, cam, self, flyTime
    ;   locals: mapOrderId2ChestData(7-67), orderCell(8-67), screenPos(8-67), (for generator)(11-66), (for state)(11-66), (for control)(11-66), orderId(12-64), _(12-64), surpriseChest(25-64), flyItemGo(40-63)
    0000  GETUPVAL  R0 = orderArea
    0001  EQ        if R1 eq K0(nil)   -> -130813
    0002  JMP       (jump)   -> 67
    0003  GETTABUP  R0 = _ENV[K1('GM')]
    0004  GETTABLE  R0 = R0[K2('SurpriseChestManager')]
    0005  SELF      R1 = R0[K3('GetAllSurpriseChestData')] (self)
    0006  CALL      R0 = call(R0, 1 args, 1 rets)
    0007  LOADNIL   R1..R1 = nil
    0008  GETTABUP  R3 = _ENV[K4('pairs')]
    0009  MOVE      R4 = R0
    0010  CALL      R3 = call(R3, 3 args, 1 rets)
    0011  JMP       (jump)   -> 64
    0012  GETUPVAL  R8 = orderArea
    0013  SELF      R9 = R8[K5('GetCellById')] (self)
    0014  MOVE      R10 = R0
    0015  CALL      R8 = call(R8, 1 args, 2 rets)
    0016  MOVE      R1 = R0
    0017  TESTSET   if R0 then R8   -> -130541
    0018  JMP       (jump)   -> 25
    0019  SELF      R9 = R1[K6('GetTopLeftEntryTbByActivityType')] (self)
    0020  GETTABUP  R10 = _ENV[K1('GM')]
    0021  GETTABLE  R10 = R10[K2('SurpriseChestManager')]
    0022  SELF      R11 = R10[K7('GetType')] (self)
    0023  CALL      R10 = call(R10, -1 args, 1 rets)
    0024  CALL      R8 = call(R8, 1 args, -1 rets)
    0025  EQ        if R1 eq K0(nil)   -> -126693
    0026  JMP       (jump)   -> 64
    0027  GETUPVAL  R9 = orderArea
    0028  SELF      R10 = R9[K8('WorldToScreenPoint')] (self)
    0029  GETTABLE  R11 = R8[K9('transform')]
    0030  GETTABLE  R11 = R11[K10('position')]
    0031  CALL      R9 = call(R9, 1 args, 2 rets)
    0032  MOVE      R2 = R0
    0033  GETTABUP  R9 = _ENV[K11('GameObject')]
    0034  GETTABLE  R9 = R9[K12('Instantiate')]
    0035  GETTABUP  R10 = self[K13('m_flyItemGo')]
    0036  GETTABUP  R11 = self[K13('m_flyItemGo')]
    0037  GETTABLE  R11 = R11[K9('transform')]
    0038  GETTABLE  R11 = R11[K14('parent')]
    0039  CALL      R9 = call(R9, 1 args, 2 rets)
    0040  EQ        if R1 eq K0(nil)   -> -126166
    0041  JMP       (jump)   -> 64
    0042  GETTABUP  R10 = _ENV[K15('UIUtil')]
    0043  GETTABLE  R10 = R10[K16('SetActive')]
    0044  MOVE      R11 = R0
    0045  LOADBOOL  R12 = true
    0046  CALL      R10 = call(R10, 0 args, 2 rets)
    0047  GETTABLE  R10 = R9[K9('transform')]
    0048  SELF      R11 = R10[K17('DOMove')] (self)
    0049  GETTABUP  R12 = _ENV[K18('PositionUtil')]
    0050  GETTABLE  R12 = R12[K19('UICameraScreen2World')]
    0051  MOVE      R13 = R0
    0052  CALL      R12 = call(R12, 1 args, 1 rets)
    0053  GETUPVAL  R13 = orderArea
    0054  CALL      R10 = call(R10, 1 args, 3 rets)
    0055  SELF      R11 = R10[K20('SetEase')] (self)
    0056  GETTABUP  R12 = _ENV[K21('Ease')]
    0057  GETTABLE  R12 = R12[K22('OutQuad')]
    0058  CALL      R10 = call(R10, 1 args, 2 rets)
    0059  SELF      R11 = R10[K23('OnComplete')] (self)
    0060  CLOSURE   R12 = closure proto0
    0061  CALL      R10 = call(R10, 0 args, 2 rets)
    0062  JMP       (jump)   -> 64
    0063  JMP       (jump)   -> 64
    0064  TFORCALL  tforcall R3
    0065  TFORLOOP  tforloop R5(sBx=-54)   -> 12
    0066  SETTABUP  self[K24('m_bShouldShowChest')] = K25(true)
    0067  RETURN    return R0..R-1
    ; ---------- proto0 [] ----------
      ; fn ?  line 117-123 np=0 va=0 ms=3 code=24 consts=8 upvals=3 protos=0
      ;   K[0]='GameObject'
      ;   K[1]='Destroy'
      ;   K[2]=nil
      ;   K[3]='gameObject'
      ;   K[4]='IsNull'
      ;   K[5]='UIUtil'
      ;   K[6]='SetActive'
      ;   K[7]='UpdateTriggerEndTime'
      ;   upvals: _ENV, flyItemGo, surpriseChest
      0000  GETTABUP  R0 = _ENV[K0('GameObject')]
      0001  GETTABLE  R0 = R0[K1('Destroy')]
      0002  GETUPVAL  R1 = _ENV
      0003  CALL      R0 = call(R0, 0 args, 1 rets)
      0004  GETUPVAL  R0 = _ENV
      0005  EQ        if R1 eq K2(nil)   -> -130807
      0006  JMP       (jump)   -> 23
      0007  GETTABUP  R0 = surpriseChest[K3('gameObject')]
      0008  EQ        if R1 eq K2(nil)   -> -130804
      0009  JMP       (jump)   -> 23
      0010  GETTABUP  R0 = surpriseChest[K3('gameObject')]
      0011  SELF      R1 = R0[K4('IsNull')] (self)
      0012  CALL      R0 = call(R0, 1 args, 1 rets)
      0013  TEST      if not R0 then   -> -131056
      0014  JMP       (jump)   -> 23
      0015  GETTABUP  R0 = _ENV[K5('UIUtil')]
      0016  GETTABLE  R0 = R0[K6('SetActive')]
      0017  GETTABUP  R1 = surpriseChest[K3('gameObject')]
      0018  LOADBOOL  R2 = true
      0019  CALL      R0 = call(R0, 0 args, 2 rets)
      0020  GETUPVAL  R0 = _ENV
      0021  SELF      R1 = R0[K7('UpdateTriggerEndTime')] (self)
      0022  CALL      R0 = call(R0, 0 args, 1 rets)
      0023  RETURN    return R0..R-1
  ; ---------- proto1 [m_eggSeq] ----------
    ; fn ?  line 136-140 np=0 va=0 ms=3 code=10 consts=6 upvals=2 protos=0
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='SetEventLock'
    ;   K[3]='m_eventLocked'
    ;   K[4]=false
    ;   K[5]='Close'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('UIManager')]
    0002  SELF      R1 = R0[K2('SetEventLock')] (self)
    0003  LOADBOOL  R2 = false
    0004  CALL      R0 = call(R0, 0 args, 2 rets)
    0005  SETTABUP  self[K3('m_eventLocked')] = K4(false)
    0006  GETUPVAL  R0 = _ENV
    0007  SELF      R1 = R0[K5('Close')] (self)
    0008  CALL      R0 = call(R0, 0 args, 1 rets)
    0009  RETURN    return R0..R-1
; ---------- proto5 [ShouldShowChest] ----------
  ; fn ?  line 145-147 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_bShouldShowChest'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_bShouldShowChest')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto6 [OnDestroy] ----------
  ; fn ?  line 149-165 np=1 va=0 ms=4 code=28 consts=11 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnDestroy'
  ;   K[2]='m_seq'
  ;   K[3]=nil
  ;   K[4]='Kill'
  ;   K[5]='m_eggSeq'
  ;   K[6]='m_eventLocked'
  ;   K[7]='GM'
  ;   K[8]='UIManager'
  ;   K[9]='SetEventLock'
  ;   K[10]=false
  ;   upvals: _ENV
  ;   locals: self(0-28)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_seq')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 11
  0007  GETTABLE  R1 = R0[K2('m_seq')]
  0008  SELF      R2 = R1[K4('Kill')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  SETTABLE  R0[K2('m_seq')] = K3(nil)
  0011  GETTABLE  R1 = R0[K5('m_eggSeq')]
  0012  EQ        if R1 eq K3(nil)   -> -130287
  0013  JMP       (jump)   -> 18
  0014  GETTABLE  R1 = R0[K5('m_eggSeq')]
  0015  SELF      R2 = R1[K4('Kill')] (self)
  0016  CALL      R1 = call(R1, 0 args, 1 rets)
  0017  SETTABLE  R0[K5('m_eggSeq')] = K3(nil)
  0018  GETTABLE  R1 = R0[K6('m_eventLocked')]
  0019  TEST      if not R1 then   -> -131051
  0020  JMP       (jump)   -> 27
  0021  GETTABUP  R1 = _ENV[K7('GM')]
  0022  GETTABLE  R1 = R1[K8('UIManager')]
  0023  SELF      R2 = R1[K9('SetEventLock')] (self)
  0024  LOADBOOL  R3 = false
  0025  CALL      R1 = call(R1, 0 args, 2 rets)
  0026  SETTABLE  R0[K6('m_eventLocked')] = K10(false)
  0027  RETURN    return R0..R-1
; ---------- proto7 [OnCloseView] ----------
  ; fn ?  line 167-171 np=1 va=0 ms=3 code=10 consts=6 upvals=1 protos=0
  ;   K[0]='SurpriseChestBaseWindow'
  ;   K[1]='OnCloseView'
  ;   K[2]='EventDispatcher'
  ;   K[3]='DispatchEvent'
  ;   K[4]='SurpriseChestManagerDefinition'
  ;   K[5]='MainWindowClosedEvent'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  GETTABUP  R1 = _ENV[K0('SurpriseChestBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseView')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0005  GETTABLE  R1 = R1[K3('DispatchEvent')]
  0006  GETTABUP  R2 = _ENV[K4('SurpriseChestManagerDefinition')]
  0007  GETTABLE  R2 = R2[K5('MainWindowClosedEvent')]
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  RETURN    return R0..R-1
