# SurpriseChest_View_SurpriseChestView_775.luac
; fn @SurpriseChestView.lua  line 0-0 np=0 va=1 ms=3 code=54 consts=19 upvals=1 protos=15
;   K[0]='SurpriseChestView'
;   K[1]='__index'
;   K[2]='Open'
;   K[3]='Disappear'
;   K[4]='Init'
;   K[5]='OnEnable'
;   K[6]='OnDestroy'
;   K[7]='BeforeDestroy'
;   K[8]='OnDisappearAnimationEnd'
;   K[9]='OnOpenAnimationEnd'
;   K[10]='UpdateTriggerEndTime'
;   K[11]='UpdatePerSecond'
;   K[12]='CanPlayRewardAnim'
;   K[13]='PlayRewardAnim'
;   K[14]='_PlayWindowRewardAnim'
;   K[15]='_PlayAnimatorRewardAnim'
;   K[16]='GetRewards'
;   K[17]='OnClicked'
;   K[18]='_GetRewardBubbleViewData'
;   upvals: _ENV
;   locals: EAnimatorKey(8-54)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('SurpriseChestView')] = R0
0002  GETTABUP  R0 = _ENV[K0('SurpriseChestView')]
0003  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  NEWTABLE  R0 = {} (0 items)
0006  SETTABLE  R0[K2('Open')] = K2('Open')
0007  SETTABLE  R0[K3('Disappear')] = K3('Disappear')
0008  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0009  CLOSURE   R2 = closure proto0
0010  SETTABLE  R1[K4('Init')] = R2
0011  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0012  CLOSURE   R2 = closure proto1
0013  SETTABLE  R1[K5('OnEnable')] = R2
0014  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0015  CLOSURE   R2 = closure proto2
0016  SETTABLE  R1[K6('OnDestroy')] = R2
0017  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0018  CLOSURE   R2 = closure proto3
0019  SETTABLE  R1[K7('BeforeDestroy')] = R2
0020  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0021  CLOSURE   R2 = closure proto4
0022  SETTABLE  R1[K8('OnDisappearAnimationEnd')] = R2
0023  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0024  CLOSURE   R2 = closure proto5
0025  SETTABLE  R1[K9('OnOpenAnimationEnd')] = R2
0026  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0027  CLOSURE   R2 = closure proto6
0028  SETTABLE  R1[K10('UpdateTriggerEndTime')] = R2
0029  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0030  CLOSURE   R2 = closure proto7
0031  SETTABLE  R1[K11('UpdatePerSecond')] = R2
0032  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0033  CLOSURE   R2 = closure proto8
0034  SETTABLE  R1[K12('CanPlayRewardAnim')] = R2
0035  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0036  CLOSURE   R2 = closure proto9
0037  SETTABLE  R1[K13('PlayRewardAnim')] = R2
0038  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0039  CLOSURE   R2 = closure proto10
0040  SETTABLE  R1[K14('_PlayWindowRewardAnim')] = R2
0041  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0042  CLOSURE   R2 = closure proto11
0043  SETTABLE  R1[K15('_PlayAnimatorRewardAnim')] = R2
0044  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0045  CLOSURE   R2 = closure proto12
0046  SETTABLE  R1[K16('GetRewards')] = R2
0047  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0048  CLOSURE   R2 = closure proto13
0049  SETTABLE  R1[K17('OnClicked')] = R2
0050  GETTABUP  R1 = _ENV[K0('SurpriseChestView')]
0051  CLOSURE   R2 = closure proto14
0052  SETTABLE  R1[K18('_GetRewardBubbleViewData')] = R2
0053  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 27-59 np=6 va=0 ms=12 code=70 consts=31 upvals=1 protos=0
  ;   K[0]=nil
  ;   K[1]='GM'
  ;   K[2]='SurpriseChestManager'
  ;   K[3]='GetSurpriseChestData'
  ;   K[4]='GetId'
  ;   K[5]='m_model'
  ;   K[6]='m_chestData'
  ;   K[7]='m_orderCell'
  ;   K[8]='m_orderArea'
  ;   K[9]='UpdateTriggerEndTime'
  ;   K[10]='m_uiCode'
  ;   K[11]='GetUICode'
  ;   K[12]='ImageFileConfigName'
  ;   K[13]='box_blue'
  ;   K[14]='SpriteUtil'
  ;   K[15]='SetImage'
  ;   K[16]='m_icon'
  ;   K[17]='SurpriseChestUIConfig'
  ;   K[18]='rectTransform'
  ;   K[19]='anchoredPosition'
  ;   K[20]='EntryPosition'
  ;   K[21]='sizeDelta'
  ;   K[22]='EntrySize'
  ;   K[23]='UIManager'
  ;   K[24]='GetOpenedViewByName'
  ;   K[25]='SurpriseChestManagerDefinition'
  ;   K[26]='MainWindowPrefabName'
  ;   K[27]='ShouldShowChest'
  ;   K[28]='UIUtil'
  ;   K[29]='SetActive'
  ;   K[30]='gameObject'
  ;   upvals: _ENV
  ;   locals: self(0-70), model(0-70), orderCell(0-70), orderArea(0-70), order(0-70), bTriggered(0-70), chestData(15-70), uiConfig(40-70), mainWindow(58-69)
  0000  EQ        if R1 eq K0(nil)   -> -130302
  0001  JMP       (jump)   -> 8
  0002  EQ        if R1 eq K0(nil)   -> -129788
  0003  JMP       (jump)   -> 8
  0004  EQ        if R1 eq K0(nil)   -> -129274
  0005  JMP       (jump)   -> 8
  0006  EQ        if R0 eq K0(nil)   -> -128760
  0007  JMP       (jump)   -> 9
  0008  RETURN    return R0..R-1
  0009  GETTABUP  R6 = _ENV[K1('GM')]
  0010  GETTABLE  R6 = R6[K2('SurpriseChestManager')]
  0011  SELF      R7 = R6[K3('GetSurpriseChestData')] (self)
  0012  SELF      R9 = R4[K4('GetId')] (self)
  0013  CALL      R8 = call(R8, -1 args, 1 rets)
  0014  CALL      R6 = call(R6, 1 args, -1 rets)
  0015  EQ        if R0 eq K0(nil)   -> -127727
  0016  JMP       (jump)   -> 18
  0017  RETURN    return R0..R-1
  0018  SETTABLE  R0[K5('m_model')] = R1
  0019  SETTABLE  R0[K6('m_chestData')] = R6
  0020  SETTABLE  R0[K7('m_orderCell')] = R2
  0021  SETTABLE  R0[K8('m_orderArea')] = R3
  0022  SELF      R8 = R0[K9('UpdateTriggerEndTime')] (self)
  0023  CALL      R7 = call(R7, 0 args, 1 rets)
  0024  SELF      R8 = R6[K11('GetUICode')] (self)
  0025  CALL      R7 = call(R7, 1 args, 1 rets)
  0026  TEST      if not R7 then   -> -131043
  0027  JMP       (jump)   -> 30
  0028  GETTABUP  R7 = _ENV[K12('ImageFileConfigName')]
  0029  GETTABLE  R7 = R7[K13('box_blue')]
  0030  SETTABLE  R0[K10('m_uiCode')] = R7
  0031  GETTABUP  R7 = _ENV[K14('SpriteUtil')]
  0032  GETTABLE  R7 = R7[K15('SetImage')]
  0033  GETTABLE  R8 = R0[K16('m_icon')]
  0034  GETTABLE  R9 = R0[K10('m_uiCode')]
  0035  LOADBOOL  R10 = false
  0036  CALL      R7 = call(R7, 0 args, 3 rets)
  0037  GETTABUP  R7 = _ENV[K17('SurpriseChestUIConfig')]
  0038  GETTABLE  R8 = R0[K10('m_uiCode')]
  0039  GETTABLE  R7 = R7[R8]
  0040  EQ        if R1 eq K0(nil)   -> -127190
  0041  JMP       (jump)   -> 50
  0042  GETTABLE  R8 = R0[K16('m_icon')]
  0043  GETTABLE  R8 = R8[K18('rectTransform')]
  0044  GETTABLE  R9 = R7[K20('EntryPosition')]
  0045  SETTABLE  R8[K19('anchoredPosition')] = R9
  0046  GETTABLE  R8 = R0[K16('m_icon')]
  0047  GETTABLE  R8 = R8[K18('rectTransform')]
  0048  GETTABLE  R9 = R7[K22('EntrySize')]
  0049  SETTABLE  R8[K21('sizeDelta')] = R9
  0050  TEST      if not R5 then   -> -131020
  0051  JMP       (jump)   -> 69
  0052  GETTABUP  R8 = _ENV[K1('GM')]
  0053  GETTABLE  R8 = R8[K23('UIManager')]
  0054  SELF      R9 = R8[K24('GetOpenedViewByName')] (self)
  0055  GETTABUP  R10 = _ENV[K25('SurpriseChestManagerDefinition')]
  0056  GETTABLE  R10 = R10[K26('MainWindowPrefabName')]
  0057  CALL      R8 = call(R8, 1 args, 2 rets)
  0058  EQ        if R1 eq K0(nil)   -> -126660
  0059  JMP       (jump)   -> 69
  0060  SELF      R10 = R8[K27('ShouldShowChest')] (self)
  0061  CALL      R9 = call(R9, 1 args, 1 rets)
  0062  TEST      if not R9 then   -> -131007
  0063  JMP       (jump)   -> 69
  0064  GETTABUP  R9 = _ENV[K28('UIUtil')]
  0065  GETTABLE  R9 = R9[K29('SetActive')]
  0066  GETTABLE  R10 = R0[K30('gameObject')]
  0067  LOADBOOL  R11 = false
  0068  CALL      R9 = call(R9, 0 args, 2 rets)
  0069  RETURN    return R0..R-1
; ---------- proto1 [OnEnable] ----------
  ; fn ?  line 61-66 np=1 va=0 ms=4 code=10 consts=5 upvals=1 protos=0
  ;   K[0]='UpdatePerSecond'
  ;   K[1]='m_bDestroying'
  ;   K[2]='m_animator'
  ;   K[3]='SetTrigger'
  ;   K[4]='Disappear'
  ;   upvals: EAnimatorKey
  ;   locals: self(0-10)
  0000  SELF      R2 = R0[K0('UpdatePerSecond')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABLE  R1 = R0[K1('m_bDestroying')]
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 9
  0005  GETTABLE  R1 = R0[K2('m_animator')]
  0006  SELF      R2 = R1[K3('SetTrigger')] (self)
  0007  GETTABUP  R3 = EAnimatorKey[K4('Disappear')]
  0008  CALL      R1 = call(R1, 0 args, 2 rets)
  0009  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 68-71 np=1 va=0 ms=3 code=9 consts=4 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   K[2]='Scheduler'
  ;   K[3]='UnscheduleTarget'
  ;   upvals: _ENV
  ;   locals: self(0-9)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('Scheduler')]
  0005  GETTABLE  R1 = R1[K3('UnscheduleTarget')]
  0006  MOVE      R2 = R0
  0007  CALL      R1 = call(R1, 0 args, 1 rets)
  0008  RETURN    return R0..R-1
; ---------- proto3 [BeforeDestroy] ----------
  ; fn ?  line 74-87 np=2 va=0 ms=5 code=16 consts=11 upvals=1 protos=0
  ;   K[0]='m_bDestroying'
  ;   K[1]=true
  ;   K[2]='m_multiImageButton'
  ;   K[3]='interactable'
  ;   K[4]=false
  ;   K[5]='m_destroyCallback'
  ;   K[6]='m_animator'
  ;   K[7]='SetTrigger'
  ;   K[8]='Disappear'
  ;   K[9]='m_orderArea'
  ;   K[10]='HideSurpriseChestRewardBubble'
  ;   upvals: EAnimatorKey
  ;   locals: self(0-16), destroyCallback(0-16)
  0000  GETTABLE  R2 = R0[K0('m_bDestroying')]
  0001  TEST      if not R2 then   -> -131069
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  SETTABLE  R0[K0('m_bDestroying')] = K1(true)
  0005  GETTABLE  R2 = R0[K2('m_multiImageButton')]
  0006  SETTABLE  R2[K3('interactable')] = K4(false)
  0007  SETTABLE  R0[K5('m_destroyCallback')] = R1
  0008  GETTABLE  R2 = R0[K6('m_animator')]
  0009  SELF      R3 = R2[K7('SetTrigger')] (self)
  0010  GETTABUP  R4 = EAnimatorKey[K8('Disappear')]
  0011  CALL      R2 = call(R2, 0 args, 2 rets)
  0012  GETTABLE  R2 = R0[K9('m_orderArea')]
  0013  SELF      R3 = R2[K10('HideSurpriseChestRewardBubble')] (self)
  0014  CALL      R2 = call(R2, 0 args, 1 rets)
  0015  RETURN    return R0..R-1
; ---------- proto4 [OnDisappearAnimationEnd] ----------
  ; fn ?  line 90-96 np=1 va=0 ms=3 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='m_destroyCallback'
  ;   K[1]=nil
  ;   locals: self(0-7), callback(1-7)
  0000  GETTABLE  R1 = R0[K0('m_destroyCallback')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 6
  0003  SETTABLE  R0[K0('m_destroyCallback')] = K1(nil)
  0004  MOVE      R2 = R0
  0005  CALL      R2 = call(R2, 0 args, 0 rets)
  0006  RETURN    return R0..R-1
; ---------- proto5 [OnOpenAnimationEnd] ----------
  ; fn ?  line 99-105 np=1 va=0 ms=3 code=7 consts=2 upvals=0 protos=0
  ;   K[0]='m_rewardCallback'
  ;   K[1]=nil
  ;   locals: self(0-7), callback(1-7)
  0000  GETTABLE  R1 = R0[K0('m_rewardCallback')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 6
  0003  SETTABLE  R0[K0('m_rewardCallback')] = K1(nil)
  0004  MOVE      R2 = R0
  0005  CALL      R2 = call(R2, 0 args, 0 rets)
  0006  RETURN    return R0..R-1
; ---------- proto6 [UpdateTriggerEndTime] ----------
  ; fn ?  line 107-110 np=1 va=0 ms=3 code=8 consts=5 upvals=1 protos=0
  ;   K[0]='m_triggerEndTime'
  ;   K[1]='GM'
  ;   K[2]='SurpriseChestManager'
  ;   K[3]='GetTriggerEndTime'
  ;   K[4]='UpdatePerSecond'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K1('GM')]
  0001  GETTABLE  R1 = R1[K2('SurpriseChestManager')]
  0002  SELF      R2 = R1[K3('GetTriggerEndTime')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  SETTABLE  R0[K0('m_triggerEndTime')] = R1
  0005  SELF      R2 = R0[K4('UpdatePerSecond')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto7 [UpdatePerSecond] ----------
  ; fn ?  line 112-117 np=1 va=0 ms=5 code=20 consts=12 upvals=1 protos=0
  ;   K[0]='m_triggerEndTime'
  ;   K[1]=nil
  ;   K[2]='math'
  ;   K[3]='max'
  ;   K[4]='GM'
  ;   K[5]='GameModel'
  ;   K[6]='GetServerTime'
  ;   K[7]=0
  ;   K[8]='m_timeText'
  ;   K[9]='text'
  ;   K[10]='TimeUtil'
  ;   K[11]='ToMSOrHMS'
  ;   upvals: _ENV
  ;   locals: self(0-20), delta(13-19)
  0000  GETTABLE  R1 = R0[K0('m_triggerEndTime')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 19
  0003  GETTABUP  R1 = _ENV[K2('math')]
  0004  GETTABLE  R1 = R1[K3('max')]
  0005  GETTABLE  R2 = R0[K0('m_triggerEndTime')]
  0006  GETTABUP  R3 = _ENV[K4('GM')]
  0007  GETTABLE  R3 = R3[K5('GameModel')]
  0008  SELF      R4 = R3[K6('GetServerTime')] (self)
  0009  CALL      R3 = call(R3, 1 args, 1 rets)
  0010  SUB       R2 = R3 sub R2
  0011  LOADK     R3 = K7 0
  0012  CALL      R1 = call(R1, 1 args, 2 rets)
  0013  GETTABLE  R2 = R0[K8('m_timeText')]
  0014  GETTABUP  R3 = _ENV[K10('TimeUtil')]
  0015  GETTABLE  R3 = R3[K11('ToMSOrHMS')]
  0016  MOVE      R4 = R0
  0017  CALL      R3 = call(R3, 1 args, 1 rets)
  0018  SETTABLE  R2[K9('text')] = R3
  0019  RETURN    return R0..R-1
; ---------- proto8 [CanPlayRewardAnim] ----------
  ; fn ?  line 119-121 np=1 va=0 ms=4 code=14 consts=5 upvals=1 protos=0
  ;   K[0]='m_chestData'
  ;   K[1]=nil
  ;   K[2]='Table'
  ;   K[3]='IsEmpty'
  ;   K[4]='GetRewards'
  ;   upvals: _ENV
  ;   locals: self(0-14)
  0000  GETTABLE  R1 = R0[K0('m_chestData')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 10
  0003  GETTABUP  R1 = _ENV[K2('Table')]
  0004  GETTABLE  R1 = R1[K3('IsEmpty')]
  0005  SELF      R3 = R0[K4('GetRewards')] (self)
  0006  CALL      R2 = call(R2, -1 args, 1 rets)
  0007  CALL      R1 = call(R1, 1 args, -1 rets)
  0008  NOT       R1 = not R0
  0009  JMP       (jump)   -> 12
  0010  LOADBOOL  R1 = false
  0011  LOADBOOL  R1 = true
  0012  RETURN    return R1..R0
  0013  RETURN    return R0..R-1
; ---------- proto9 [PlayRewardAnim] ----------
  ; fn ?  line 125-136 np=3 va=0 ms=6 code=20 consts=5 upvals=0 protos=0
  ;   K[0]='CanPlayRewardAnim'
  ;   K[1]='m_orderCell'
  ;   K[2]=nil
  ;   K[3]='_PlayWindowRewardAnim'
  ;   K[4]='_PlayAnimatorRewardAnim'
  ;   locals: self(0-20), rewardCallback(0-20), bTestFinishOrders(0-20)
  0000  SELF      R4 = R0[K0('CanPlayRewardAnim')] (self)
  0001  CALL      R3 = call(R3, 1 args, 1 rets)
  0002  TEST      if not R3 then   -> -131068
  0003  JMP       (jump)   -> 7
  0004  GETTABLE  R3 = R0[K1('m_orderCell')]
  0005  EQ        if R0 eq K2(nil)   -> -129271
  0006  JMP       (jump)   -> 10
  0007  MOVE      R3 = R0
  0008  CALL      R3 = call(R3, 0 args, 0 rets)
  0009  RETURN    return R0..R-1
  0010  TEST      if not R2 then   -> -131059
  0011  JMP       (jump)   -> 16
  0012  SELF      R4 = R0[K3('_PlayWindowRewardAnim')] (self)
  0013  MOVE      R5 = R0
  0014  CALL      R3 = call(R3, 0 args, 2 rets)
  0015  JMP       (jump)   -> 19
  0016  SELF      R4 = R0[K4('_PlayAnimatorRewardAnim')] (self)
  0017  MOVE      R5 = R0
  0018  CALL      R3 = call(R3, 0 args, 2 rets)
  0019  RETURN    return R0..R-1
; ---------- proto10 [_PlayWindowRewardAnim] ----------
  ; fn ?  line 139-160 np=2 va=0 ms=20 code=61 consts=29 upvals=1 protos=1
  ;   K[0]='m_icon'
  ;   K[1]='rectTransform'
  ;   K[2]='BoardViewHelper'
  ;   K[3]='GetActiveView'
  ;   K[4]=nil
  ;   K[5]='PositionUtil'
  ;   K[6]='UICameraScreen2World'
  ;   K[7]='ConvertWorldPositionToScreenPosition'
  ;   K[8]='position'
  ;   K[9]='sprite'
  ;   K[10]='IsNull'
  ;   K[11]='V3Zero'
  ;   K[12]='rect'
  ;   K[13]='size'
  ;   K[14]='Vector3'
  ;   K[15]='Scale'
  ;   K[16]='lossyScale'
  ;   K[17]='UIUtil'
  ;   K[18]='ToVector3'
  ;   K[19]='m_uiCode'
  ;   K[20]='GM'
  ;   K[21]='UIManager'
  ;   K[22]='OpenView'
  ;   K[23]='SurpriseChestManagerDefinition'
  ;   K[24]='RewardWindowPrefabName'
  ;   K[25]='x'
  ;   K[26]='GetRewards'
  ;   K[27]='ERewardScene'
  ;   K[28]='Other'
  ;   upvals: _ENV
  ;   locals: self(0-61), rewardCallback(0-61), transform(2-61), boardView(5-61), position(16-61), scale(17-61), imageScale(32-41), boxRewardType(42-61), initCallback(43-61)
  0000  GETTABLE  R2 = R0[K0('m_icon')]
  0001  GETTABLE  R2 = R2[K1('rectTransform')]
  0002  GETTABUP  R3 = _ENV[K2('BoardViewHelper')]
  0003  GETTABLE  R3 = R3[K3('GetActiveView')]
  0004  CALL      R3 = call(R3, 1 args, 0 rets)
  0005  EQ        if R0 eq K4(nil)   -> -129269
  0006  JMP       (jump)   -> 10
  0007  MOVE      R4 = R0
  0008  CALL      R4 = call(R4, 0 args, 0 rets)
  0009  RETURN    return R0..R-1
  0010  GETTABUP  R4 = _ENV[K5('PositionUtil')]
  0011  GETTABLE  R4 = R4[K6('UICameraScreen2World')]
  0012  SELF      R6 = R3[K7('ConvertWorldPositionToScreenPosition')] (self)
  0013  GETTABLE  R7 = R2[K8('position')]
  0014  CALL      R5 = call(R5, -1 args, 2 rets)
  0015  CALL      R4 = call(R4, 1 args, -1 rets)
  0016  LOADNIL   R5..R5 = nil
  0017  GETTABLE  R6 = R0[K0('m_icon')]
  0018  GETTABLE  R6 = R6[K9('sprite')]
  0019  SELF      R7 = R6[K10('IsNull')] (self)
  0020  CALL      R6 = call(R6, 1 args, 1 rets)
  0021  TEST      if not R6 then   -> -131049
  0022  JMP       (jump)   -> 25
  0023  GETTABUP  R5 = _ENV[K11('V3Zero')]
  0024  JMP       (jump)   -> 41
  0025  GETTABLE  R6 = R2[K12('rect')]
  0026  GETTABLE  R6 = R6[K13('size')]
  0027  GETTABLE  R7 = R0[K0('m_icon')]
  0028  GETTABLE  R7 = R7[K9('sprite')]
  0029  GETTABLE  R7 = R7[K12('rect')]
  0030  GETTABLE  R7 = R7[K13('size')]
  0031  DIV       R6 = R7 div R6
  0032  GETTABUP  R7 = _ENV[K14('Vector3')]
  0033  GETTABLE  R7 = R7[K15('Scale')]
  0034  GETTABLE  R8 = R2[K16('lossyScale')]
  0035  GETTABUP  R9 = _ENV[K17('UIUtil')]
  0036  GETTABLE  R9 = R9[K18('ToVector3')]
  0037  MOVE      R10 = R0
  0038  CALL      R9 = call(R9, -1 args, 1 rets)
  0039  CALL      R7 = call(R7, 1 args, -1 rets)
  0040  MOVE      R5 = R0
  0041  GETTABLE  R6 = R0[K19('m_uiCode')]
  0042  CLOSURE   R7 = closure proto0
  0043  GETTABUP  R8 = _ENV[K20('GM')]
  0044  GETTABLE  R8 = R8[K21('UIManager')]
  0045  SELF      R9 = R8[K22('OpenView')] (self)
  0046  GETTABUP  R10 = _ENV[K23('SurpriseChestManagerDefinition')]
  0047  GETTABLE  R10 = R10[K24('RewardWindowPrefabName')]
  0048  MOVE      R11 = R0
  0049  GETTABLE  R12 = R5[K25('x')]
  0050  MOVE      R13 = R0
  0051  SELF      R15 = R0[K26('GetRewards')] (self)
  0052  CALL      R14 = call(R14, 1 args, 1 rets)
  0053  LOADNIL   R15..R15 = nil
  0054  LOADBOOL  R16 = true
  0055  GETTABUP  R17 = _ENV[K27('ERewardScene')]
  0056  GETTABLE  R17 = R17[K28('Other')]
  0057  MOVE      R18 = R0
  0058  MOVE      R19 = R0
  0059  CALL      R8 = call(R8, 0 args, 11 rets)
  0060  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 155-158 np=0 va=0 ms=3 code=6 consts=3 upvals=2 protos=0
    ;   K[0]='UIUtil'
    ;   K[1]='SetActive'
    ;   K[2]='gameObject'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('UIUtil')]
    0001  GETTABLE  R0 = R0[K1('SetActive')]
    0002  GETTABUP  R1 = self[K2('gameObject')]
    0003  LOADBOOL  R2 = false
    0004  CALL      R0 = call(R0, 0 args, 2 rets)
    0005  RETURN    return R0..R-1
; ---------- proto11 [_PlayAnimatorRewardAnim] ----------
  ; fn ?  line 163-185 np=2 va=0 ms=11 code=35 consts=20 upvals=2 protos=1
  ;   K[0]='GetRewards'
  ;   K[1]='m_bPlayingAnim'
  ;   K[2]=true
  ;   K[3]='m_rewardCallback'
  ;   K[4]='Table'
  ;   K[5]='IsEmpty'
  ;   K[6]='GM'
  ;   K[7]='ModeViewController'
  ;   K[8]='GetBoardInfo'
  ;   K[9]='WorldToScreenPoint'
  ;   K[10]='gameObject'
  ;   K[11]='transform'
  ;   K[12]='position'
  ;   K[13]='PositionUtil'
  ;   K[14]='UICameraScreen2World'
  ;   K[15]='DelayExecuteFuncInView'
  ;   K[16]=0.4
  ;   K[17]='m_animator'
  ;   K[18]='SetTrigger'
  ;   K[19]='Open'
  ;   upvals: _ENV, EAnimatorKey
  ;   locals: self(0-35), rewardCallback(0-35), rewards(2-35), cam(14-34), screenPos(19-34), uiWorldPosition(23-34)
  0000  SELF      R3 = R0[K0('GetRewards')] (self)
  0001  CALL      R2 = call(R2, 1 args, 1 rets)
  0002  SETTABLE  R0[K1('m_bPlayingAnim')] = K2(true)
  0003  SETTABLE  R0[K3('m_rewardCallback')] = R1
  0004  GETTABUP  R3 = _ENV[K4('Table')]
  0005  GETTABLE  R3 = R3[K5('IsEmpty')]
  0006  MOVE      R4 = R0
  0007  CALL      R3 = call(R3, 1 args, 1 rets)
  0008  TEST      if not R3 then   -> -131061
  0009  JMP       (jump)   -> 34
  0010  GETTABUP  R3 = _ENV[K6('GM')]
  0011  GETTABLE  R3 = R3[K7('ModeViewController')]
  0012  SELF      R4 = R3[K8('GetBoardInfo')] (self)
  0013  CALL      R3 = call(R3, 1 args, 1 rets)
  0014  SELF      R5 = R3[K9('WorldToScreenPoint')] (self)
  0015  GETTABLE  R6 = R0[K10('gameObject')]
  0016  GETTABLE  R6 = R6[K11('transform')]
  0017  GETTABLE  R6 = R6[K12('position')]
  0018  CALL      R4 = call(R4, 1 args, 2 rets)
  0019  GETTABUP  R5 = _ENV[K13('PositionUtil')]
  0020  GETTABLE  R5 = R5[K14('UICameraScreen2World')]
  0021  MOVE      R6 = R0
  0022  CALL      R5 = call(R5, 1 args, 1 rets)
  0023  GETTABUP  R6 = _ENV[K15('DelayExecuteFuncInView')]
  0024  CLOSURE   R7 = closure proto0
  0025  LOADK     R8 = K16 0.4
  0026  MOVE      R9 = R0
  0027  LOADBOOL  R10 = false
  0028  CALL      R6 = call(R6, 0 args, 4 rets)
  0029  GETTABLE  R6 = R0[K17('m_animator')]
  0030  SELF      R7 = R6[K18('SetTrigger')] (self)
  0031  GETTABUP  R8 = EAnimatorKey[K19('Open')]
  0032  CALL      R6 = call(R6, 0 args, 2 rets)
  0033  JMP       (jump)   -> 34
  0034  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 174-182 np=0 va=0 ms=5 code=16 consts=12 upvals=3 protos=0
    ;   K[0]='RewardApi'
    ;   K[1]='AcquireRewardsInView'
    ;   K[2]='noDelayTime'
    ;   K[3]=false
    ;   K[4]='eventLock'
    ;   K[5]='arrWorldPos'
    ;   K[6]='spriteScale'
    ;   K[7]=0
    ;   K[8]='simpleCacheRoot'
    ;   K[9]=true
    ;   K[10]='ERewardScene'
    ;   K[11]='Other'
    ;   upvals: _ENV, rewards, uiWorldPosition
    0000  GETTABUP  R0 = _ENV[K0('RewardApi')]
    0001  GETTABLE  R0 = R0[K1('AcquireRewardsInView')]
    0002  GETUPVAL  R1 = _ENV
    0003  NEWTABLE  R2 = {} (0 items)
    0004  SETTABLE  R2[K2('noDelayTime')] = K3(false)
    0005  SETTABLE  R2[K4('eventLock')] = K3(false)
    0006  NEWTABLE  R3 = {} (1 items)
    0007  GETUPVAL  R4 = _ENV
    0008  SETLIST   setlist R3[B=1,C=1]
    0009  SETTABLE  R2[K5('arrWorldPos')] = R3
    0010  SETTABLE  R2[K6('spriteScale')] = K7(0)
    0011  SETTABLE  R2[K8('simpleCacheRoot')] = K9(true)
    0012  GETTABUP  R3 = _ENV[K10('ERewardScene')]
    0013  GETTABLE  R3 = R3[K11('Other')]
    0014  CALL      R0 = call(R0, 0 args, 3 rets)
    0015  RETURN    return R0..R-1
; ---------- proto12 [GetRewards] ----------
  ; fn ?  line 187-190 np=1 va=0 ms=6 code=13 consts=6 upvals=1 protos=0
  ;   K[0]='m_orderCell'
  ;   K[1]='GetOrder'
  ;   K[2]='GM'
  ;   K[3]='SurpriseChestManager'
  ;   K[4]='GetAcquiredRewardsByOrderId'
  ;   K[5]='GetId'
  ;   upvals: _ENV
  ;   locals: self(0-13), order(3-13)
  0000  GETTABLE  R1 = R0[K0('m_orderCell')]
  0001  SELF      R2 = R1[K1('GetOrder')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABUP  R2 = _ENV[K2('GM')]
  0004  GETTABLE  R2 = R2[K3('SurpriseChestManager')]
  0005  SELF      R3 = R2[K4('GetAcquiredRewardsByOrderId')] (self)
  0006  TESTSET   if R0 then R4   -> -130552
  0007  JMP       (jump)   -> 10
  0008  SELF      R5 = R1[K5('GetId')] (self)
  0009  CALL      R4 = call(R4, 1 args, 1 rets)
  0010  TAILCALL  tailcall(R2, 0)
  0011  RETURN    return R2..R1
  0012  RETURN    return R0..R-1
; ---------- proto13 [OnClicked] ----------
  ; fn ?  line 192-200 np=1 va=0 ms=7 code=15 consts=8 upvals=0 protos=0
  ;   K[0]='m_orderArea'
  ;   K[1]=nil
  ;   K[2]='ShowSurpriseChestRewardBubble'
  ;   K[3]='m_model'
  ;   K[4]='GetType'
  ;   K[5]='m_chestData'
  ;   K[6]='GetValidRewards'
  ;   K[7]='_GetRewardBubbleViewData'
  ;   locals: self(0-15)
  0000  GETTABLE  R1 = R0[K0('m_orderArea')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 14
  0003  GETTABLE  R1 = R0[K0('m_orderArea')]
  0004  SELF      R2 = R1[K2('ShowSurpriseChestRewardBubble')] (self)
  0005  GETTABLE  R3 = R0[K3('m_model')]
  0006  SELF      R4 = R3[K4('GetType')] (self)
  0007  CALL      R3 = call(R3, 1 args, 1 rets)
  0008  GETTABLE  R4 = R0[K5('m_chestData')]
  0009  SELF      R5 = R4[K6('GetValidRewards')] (self)
  0010  CALL      R4 = call(R4, 1 args, 1 rets)
  0011  SELF      R6 = R0[K7('_GetRewardBubbleViewData')] (self)
  0012  CALL      R5 = call(R5, -1 args, 1 rets)
  0013  CALL      R1 = call(R1, 0 args, -1 rets)
  0014  RETURN    return R0..R-1
; ---------- proto14 [_GetRewardBubbleViewData] ----------
  ; fn ?  line 203-213 np=1 va=0 ms=10 code=34 consts=19 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ModeViewController'
  ;   K[2]='GetBoardInfo'
  ;   K[3]='WorldToScreenPoint'
  ;   K[4]='gameObject'
  ;   K[5]='transform'
  ;   K[6]='position'
  ;   K[7]='x'
  ;   K[8]='Screen'
  ;   K[9]='width'
  ;   K[10]=2
  ;   K[11]='bLeft'
  ;   K[12]='pos'
  ;   K[13]='Vector3'
  ;   K[14]=0
  ;   K[15]=56
  ;   K[16]='uiCode'
  ;   K[17]='m_chestData'
  ;   K[18]='GetUICode'
  ;   upvals: _ENV
  ;   locals: self(0-34), cam(4-34), screenPos(9-34), bLeft(17-34)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ModeViewController')]
  0002  SELF      R2 = R1[K2('GetBoardInfo')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  SELF      R3 = R1[K3('WorldToScreenPoint')] (self)
  0005  GETTABLE  R4 = R0[K4('gameObject')]
  0006  GETTABLE  R4 = R4[K5('transform')]
  0007  GETTABLE  R4 = R4[K6('position')]
  0008  CALL      R2 = call(R2, 1 args, 2 rets)
  0009  GETTABLE  R3 = R2[K7('x')]
  0010  GETTABUP  R4 = _ENV[K8('Screen')]
  0011  GETTABLE  R4 = R4[K9('width')]
  0012  DIV       R4 = K10(2) div R4
  0013  LE        if R1 le R4   -> -129517
  0014  JMP       (jump)   -> 16
  0015  LOADBOOL  R3 = false
  0016  LOADBOOL  R3 = true
  0017  NEWTABLE  R4 = {} (0 items)
  0018  SETTABLE  R4[K11('bLeft')] = R3
  0019  GETTABLE  R5 = R0[K5('transform')]
  0020  GETTABLE  R5 = R5[K6('position')]
  0021  GETTABUP  R6 = _ENV[K13('Vector3')]
  0022  LOADK     R7 = K14 0
  0023  LOADK     R8 = K15 56
  0024  LOADK     R9 = K14 0
  0025  CALL      R6 = call(R6, 1 args, 3 rets)
  0026  SUB       R5 = R6 sub R5
  0027  SETTABLE  R4[K12('pos')] = R5
  0028  GETTABLE  R5 = R0[K17('m_chestData')]
  0029  SELF      R6 = R5[K18('GetUICode')] (self)
  0030  CALL      R5 = call(R5, 1 args, 1 rets)
  0031  SETTABLE  R4[K16('uiCode')] = R5
  0032  RETURN    return R4..R3
  0033  RETURN    return R0..R-1
