# ReturnUser_View_ReturnUserRewardWindow_929.luac
; fn @ReturnUserRewardWindow.lua  line 0-0 np=0 va=1 ms=3 code=32 consts=11 upvals=1 protos=6
;   K[0]='ReturnUserRewardWindow'
;   K[1]='setmetatable'
;   K[2]='BaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='InitRoleAndBubble'
;   K[6]='InitRewardContent'
;   K[7]='OnCloseBtnClick'
;   K[8]='ReturnUserRewardContent'
;   K[9]='InitRewardContent'
;   K[10]='GetRewardsPos'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('ReturnUserRewardWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('ReturnUserRewardWindow')]
0006  GETTABUP  R1 = _ENV[K0('ReturnUserRewardWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ReturnUserRewardWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('ReturnUserRewardWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('InitRoleAndBubble')] = R1
0014  GETTABUP  R0 = _ENV[K0('ReturnUserRewardWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('InitRewardContent')] = R1
0017  GETTABUP  R0 = _ENV[K0('ReturnUserRewardWindow')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnCloseBtnClick')] = R1
0020  NEWTABLE  R0 = {} (0 items)
0021  SETTABUP  _ENV[K8('ReturnUserRewardContent')] = R0
0022  GETTABUP  R0 = _ENV[K8('ReturnUserRewardContent')]
0023  GETTABUP  R1 = _ENV[K8('ReturnUserRewardContent')]
0024  SETTABLE  R0[K3('__index')] = R1
0025  GETTABUP  R0 = _ENV[K8('ReturnUserRewardContent')]
0026  CLOSURE   R1 = closure proto4
0027  SETTABLE  R0[K9('InitRewardContent')] = R1
0028  GETTABUP  R0 = _ENV[K8('ReturnUserRewardContent')]
0029  CLOSURE   R1 = closure proto5
0030  SETTABLE  R0[K10('GetRewardsPos')] = R1
0031  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-19 np=2 va=0 ms=9 code=56 consts=30 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='SceneManager'
  ;   K[2]='GetGameMode'
  ;   K[3]='EGameMode'
  ;   K[4]='Board'
  ;   K[5]='ChangeGameMode'
  ;   K[6]='Main'
  ;   K[7]='InitRewardContent'
  ;   K[8]='InitRoleAndBubble'
  ;   K[9]='m_rewards'
  ;   K[10]='m_effectSort'
  ;   K[11]='sortingOrder'
  ;   K[12]='GetSortingOrder'
  ;   K[13]=1
  ;   K[14]='m_backEffectSort'
  ;   K[15]='ScreenFitter'
  ;   K[16]='GetScreenAdjustSize'
  ;   K[17]='x'
  ;   K[18]='m_BackRectTrans'
  ;   K[19]='sizeDelta'
  ;   K[20]='localScale'
  ;   K[21]='Vector3'
  ;   K[22]='LogWindowAction'
  ;   K[23]='EBIType'
  ;   K[24]='UIActionType'
  ;   K[25]='Open'
  ;   K[26]='EBIReferType'
  ;   K[27]='AutoPopup'
  ;   K[28]='ReturnUserModel'
  ;   K[29]='GetRewardLeaveDay'
  ;   upvals: _ENV
  ;   locals: self(0-56), rewards(0-56), fScale(37-56)
  0000  GETTABUP  R2 = _ENV[K0('GM')]
  0001  GETTABLE  R2 = R2[K1('SceneManager')]
  0002  SELF      R3 = R2[K2('GetGameMode')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  GETTABUP  R3 = _ENV[K3('EGameMode')]
  0005  GETTABLE  R3 = R3[K4('Board')]
  0006  EQ        if R0 eq R3   -> -130037
  0007  JMP       (jump)   -> 14
  0008  GETTABUP  R2 = _ENV[K0('GM')]
  0009  GETTABLE  R2 = R2[K1('SceneManager')]
  0010  SELF      R3 = R2[K5('ChangeGameMode')] (self)
  0011  GETTABUP  R4 = _ENV[K3('EGameMode')]
  0012  GETTABLE  R4 = R4[K6('Main')]
  0013  CALL      R2 = call(R2, 0 args, 2 rets)
  0014  SELF      R3 = R0[K7('InitRewardContent')] (self)
  0015  MOVE      R4 = R0
  0016  CALL      R2 = call(R2, 0 args, 2 rets)
  0017  SELF      R3 = R0[K8('InitRoleAndBubble')] (self)
  0018  CALL      R2 = call(R2, 0 args, 1 rets)
  0019  SETTABLE  R0[K9('m_rewards')] = R1
  0020  GETTABLE  R2 = R0[K10('m_effectSort')]
  0021  SELF      R4 = R0[K12('GetSortingOrder')] (self)
  0022  CALL      R3 = call(R3, 1 args, 1 rets)
  0023  ADD       R3 = K13(1) add R3
  0024  SETTABLE  R2[K11('sortingOrder')] = R3
  0025  GETTABLE  R2 = R0[K14('m_backEffectSort')]
  0026  SELF      R4 = R0[K12('GetSortingOrder')] (self)
  0027  CALL      R3 = call(R3, 1 args, 1 rets)
  0028  SETTABLE  R2[K11('sortingOrder')] = R3
  0029  GETTABUP  R2 = _ENV[K15('ScreenFitter')]
  0030  GETTABLE  R2 = R2[K16('GetScreenAdjustSize')]
  0031  CALL      R2 = call(R2, 1 args, 0 rets)
  0032  GETTABLE  R2 = R2[K17('x')]
  0033  GETTABLE  R3 = R0[K18('m_BackRectTrans')]
  0034  GETTABLE  R3 = R3[K19('sizeDelta')]
  0035  GETTABLE  R3 = R3[K17('x')]
  0036  DIV       R2 = R3 div R2
  0037  GETTABLE  R3 = R0[K18('m_BackRectTrans')]
  0038  GETTABUP  R4 = _ENV[K21('Vector3')]
  0039  MOVE      R5 = R0
  0040  MOVE      R6 = R0
  0041  LOADK     R7 = K13 1
  0042  CALL      R4 = call(R4, 1 args, 3 rets)
  0043  SETTABLE  R3[K20('localScale')] = R4
  0044  SELF      R4 = R0[K22('LogWindowAction')] (self)
  0045  GETTABUP  R5 = _ENV[K23('EBIType')]
  0046  GETTABLE  R5 = R5[K24('UIActionType')]
  0047  GETTABLE  R5 = R5[K25('Open')]
  0048  GETTABUP  R6 = _ENV[K26('EBIReferType')]
  0049  GETTABLE  R6 = R6[K27('AutoPopup')]
  0050  GETTABUP  R7 = _ENV[K0('GM')]
  0051  GETTABLE  R7 = R7[K28('ReturnUserModel')]
  0052  SELF      R8 = R7[K29('GetRewardLeaveDay')] (self)
  0053  CALL      R7 = call(R7, -1 args, 1 rets)
  0054  CALL      R3 = call(R3, 0 args, -1 rets)
  0055  RETURN    return R0..R-1
; ---------- proto1 [InitRoleAndBubble] ----------
  ; fn ?  line 22-25 np=1 va=0 ms=6 code=11 consts=7 upvals=0 protos=0
  ;   K[0]='m_role'
  ;   K[1]='AnimationState'
  ;   K[2]='SetAnimation'
  ;   K[3]=0
  ;   K[4]='Olivia_energybox_loop3'
  ;   K[5]='m_bubbleText'
  ;   K[6]='UpdateText'
  ;   locals: self(0-11)
  0000  GETTABLE  R1 = R0[K0('m_role')]
  0001  GETTABLE  R1 = R1[K1('AnimationState')]
  0002  SELF      R2 = R1[K2('SetAnimation')] (self)
  0003  LOADK     R3 = K3 0
  0004  LOADK     R4 = K4 'Olivia_energybox_loop3'
  0005  LOADBOOL  R5 = true
  0006  CALL      R1 = call(R1, 0 args, 4 rets)
  0007  GETTABLE  R1 = R0[K5('m_bubbleText')]
  0008  SELF      R2 = R1[K6('UpdateText')] (self)
  0009  CALL      R1 = call(R1, 0 args, 1 rets)
  0010  RETURN    return R0..R-1
; ---------- proto2 [InitRewardContent] ----------
  ; fn ?  line 27-29 np=2 va=0 ms=5 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_rewardContentLuaTable'
  ;   K[1]='InitRewardContent'
  ;   locals: self(0-5), rewards(0-5)
  0000  GETTABLE  R2 = R0[K0('m_rewardContentLuaTable')]
  0001  SELF      R3 = R2[K1('InitRewardContent')] (self)
  0002  MOVE      R4 = R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
; ---------- proto3 [OnCloseBtnClick] ----------
  ; fn ?  line 31-42 np=1 va=0 ms=7 code=18 consts=12 upvals=1 protos=0
  ;   K[0]='m_rewardContentLuaTable'
  ;   K[1]='GetRewardsPos'
  ;   K[2]='arrWorldPos'
  ;   K[3]='noDelayTime'
  ;   K[4]=true
  ;   K[5]='RewardApi'
  ;   K[6]='AcquireRewardsInView'
  ;   K[7]='m_rewards'
  ;   K[8]='ERewardScene'
  ;   K[9]='Other'
  ;   K[10]='BaseWindow'
  ;   K[11]='OnCloseBtnClick'
  ;   upvals: _ENV
  ;   locals: self(0-18), giftPositionArray(3-18), giftViewData(6-18)
  0000  GETTABLE  R1 = R0[K0('m_rewardContentLuaTable')]
  0001  SELF      R2 = R1[K1('GetRewardsPos')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  NEWTABLE  R2 = {} (0 items)
  0004  SETTABLE  R2[K2('arrWorldPos')] = R1
  0005  SETTABLE  R2[K3('noDelayTime')] = K4(true)
  0006  GETTABUP  R3 = _ENV[K5('RewardApi')]
  0007  GETTABLE  R3 = R3[K6('AcquireRewardsInView')]
  0008  GETTABLE  R4 = R0[K7('m_rewards')]
  0009  MOVE      R5 = R0
  0010  GETTABUP  R6 = _ENV[K8('ERewardScene')]
  0011  GETTABLE  R6 = R6[K9('Other')]
  0012  CALL      R3 = call(R3, 0 args, 3 rets)
  0013  GETTABUP  R3 = _ENV[K10('BaseWindow')]
  0014  GETTABLE  R3 = R3[K11('OnCloseBtnClick')]
  0015  MOVE      R4 = R0
  0016  CALL      R3 = call(R3, 0 args, 1 rets)
  0017  RETURN    return R0..R-1
; ---------- proto4 [InitRewardContent] ----------
  ; fn ?  line 48-84 np=2 va=0 ms=13 code=143 consts=37 upvals=1 protos=0
  ;   K[0]='m_arrRewardItems'
  ;   K[1]=nil
  ;   K[2]='m_RewardCell'
  ;   K[3]='GetLuaTable'
  ;   K[4]='pairs'
  ;   K[5]='UIUtil'
  ;   K[6]='SetActive'
  ;   K[7]='gameObject'
  ;   K[8]=5
  ;   K[9]=4
  ;   K[10]='m_rewardContentCont'
  ;   K[11]='enabled'
  ;   K[12]=false
  ;   K[13]='m_rewardContentLayoutGroup'
  ;   K[14]='transform'
  ;   K[15]='sizeDelta'
  ;   K[16]='Vector2'
  ;   K[17]=630
  ;   K[18]=500
  ;   K[19]=105
  ;   K[20]=-125
  ;   K[21]=315
  ;   K[22]=525
  ;   K[23]=210
  ;   K[24]=-375
  ;   K[25]=420
  ;   K[26]='Object'
  ;   K[27]='Instantiate'
  ;   K[28]='m_rewardTrans'
  ;   K[29]='table'
  ;   K[30]='insert'
  ;   K[31]='anchorMin'
  ;   K[32]=0
  ;   K[33]=1
  ;   K[34]='anchorMax'
  ;   K[35]='anchoredPosition'
  ;   K[36]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-143), arrReward(0-143), (for generator)(12-20), (for state)(12-20), (for control)(12-20), _(13-18), item(13-18), arrPos(21-143), (for generator)(89-142), (for state)(89-142), (for control)(89-142), k(90-140), reward(90-140), newRewardItem(99-105)
  0000  GETTABLE  R2 = R0[K0('m_arrRewardItems')]
  0001  EQ        if R0 eq K1(nil)   -> -129788
  0002  JMP       (jump)   -> 9
  0003  NEWTABLE  R2 = {} (0 items)
  0004  GETTABLE  R3 = R0[K2('m_RewardCell')]
  0005  SELF      R4 = R3[K3('GetLuaTable')] (self)
  0006  CALL      R3 = call(R3, -1 args, 1 rets)
  0007  SETLIST   setlist R2[B=1,C=0]
  0008  SETTABLE  R0[K0('m_arrRewardItems')] = R2
  0009  GETTABUP  R2 = _ENV[K4('pairs')]
  0010  GETTABLE  R3 = R0[K0('m_arrRewardItems')]
  0011  CALL      R2 = call(R2, 3 args, 1 rets)
  0012  JMP       (jump)   -> 18
  0013  GETTABUP  R7 = _ENV[K5('UIUtil')]
  0014  GETTABLE  R7 = R7[K6('SetActive')]
  0015  GETTABLE  R8 = R6[K7('gameObject')]
  0016  LOADBOOL  R9 = false
  0017  CALL      R7 = call(R7, 0 args, 2 rets)
  0018  TFORCALL  tforcall R2
  0019  TFORLOOP  tforloop R4(sBx=-7)   -> 13
  0020  LOADNIL   R2..R2 = nil
  0021  LEN       R3 = len R0
  0022  EQ        if R1 eq K8(5)   -> -129248
  0023  JMP       (jump)   -> 27
  0024  LEN       R3 = len R0
  0025  EQ        if R0 eq K9(4)   -> -129244
  0026  JMP       (jump)   -> 86
  0027  GETTABLE  R3 = R0[K10('m_rewardContentCont')]
  0028  SETTABLE  R3[K11('enabled')] = K12(false)
  0029  GETTABLE  R3 = R0[K13('m_rewardContentLayoutGroup')]
  0030  SETTABLE  R3[K11('enabled')] = K12(false)
  0031  GETTABLE  R3 = R0[K14('transform')]
  0032  GETTABUP  R4 = _ENV[K16('Vector2')]
  0033  LOADK     R5 = K17 630
  0034  LOADK     R6 = K18 500
  0035  CALL      R4 = call(R4, 1 args, 2 rets)
  0036  SETTABLE  R3[K15('sizeDelta')] = R4
  0037  LEN       R3 = len R0
  0038  EQ        if R0 eq K8(5)   -> -129232
  0039  JMP       (jump)   -> 64
  0040  NEWTABLE  R3 = {} (4 items)
  0041  GETTABUP  R4 = _ENV[K16('Vector2')]
  0042  LOADK     R5 = K19 105
  0043  LOADK     R6 = K20 -125
  0044  CALL      R4 = call(R4, 1 args, 2 rets)
  0045  GETTABUP  R5 = _ENV[K16('Vector2')]
  0046  LOADK     R6 = K21 315
  0047  LOADK     R7 = K20 -125
  0048  CALL      R5 = call(R5, 1 args, 2 rets)
  0049  GETTABUP  R6 = _ENV[K16('Vector2')]
  0050  LOADK     R7 = K22 525
  0051  LOADK     R8 = K20 -125
  0052  CALL      R6 = call(R6, 1 args, 2 rets)
  0053  GETTABUP  R7 = _ENV[K16('Vector2')]
  0054  LOADK     R8 = K23 210
  0055  LOADK     R9 = K24 -375
  0056  CALL      R7 = call(R7, 1 args, 2 rets)
  0057  GETTABUP  R8 = _ENV[K16('Vector2')]
  0058  LOADK     R9 = K25 420
  0059  LOADK     R10 = K24 -375
  0060  CALL      R8 = call(R8, -1 args, 2 rets)
  0061  SETLIST   setlist R3[B=1,C=0]
  0062  MOVE      R2 = R0
  0063  JMP       (jump)   -> 86
  0064  LEN       R3 = len R0
  0065  EQ        if R0 eq K9(4)   -> -129204
  0066  JMP       (jump)   -> 86
  0067  NEWTABLE  R3 = {} (3 items)
  0068  GETTABUP  R4 = _ENV[K16('Vector2')]
  0069  LOADK     R5 = K23 210
  0070  LOADK     R6 = K20 -125
  0071  CALL      R4 = call(R4, 1 args, 2 rets)
  0072  GETTABUP  R5 = _ENV[K16('Vector2')]
  0073  LOADK     R6 = K25 420
  0074  LOADK     R7 = K20 -125
  0075  CALL      R5 = call(R5, 1 args, 2 rets)
  0076  GETTABUP  R6 = _ENV[K16('Vector2')]
  0077  LOADK     R7 = K23 210
  0078  LOADK     R8 = K24 -375
  0079  CALL      R6 = call(R6, 1 args, 2 rets)
  0080  GETTABUP  R7 = _ENV[K16('Vector2')]
  0081  LOADK     R8 = K25 420
  0082  LOADK     R9 = K24 -375
  0083  CALL      R7 = call(R7, -1 args, 2 rets)
  0084  SETLIST   setlist R3[B=1,C=0]
  0085  MOVE      R2 = R0
  0086  GETTABUP  R3 = _ENV[K4('pairs')]
  0087  MOVE      R4 = R0
  0088  CALL      R3 = call(R3, 3 args, 1 rets)
  0089  JMP       (jump)   -> 140
  0090  GETTABLE  R8 = R0[K0('m_arrRewardItems')]
  0091  GETTABLE  R8 = R8[R6]
  0092  EQ        if R0 eq K1(nil)   -> -126625
  0093  JMP       (jump)   -> 105
  0094  GETTABUP  R8 = _ENV[K26('Object')]
  0095  GETTABLE  R8 = R8[K27('Instantiate')]
  0096  GETTABLE  R9 = R0[K2('m_RewardCell')]
  0097  GETTABLE  R10 = R0[K28('m_rewardTrans')]
  0098  CALL      R8 = call(R8, 1 args, 2 rets)
  0099  GETTABUP  R9 = _ENV[K29('table')]
  0100  GETTABLE  R9 = R9[K30('insert')]
  0101  GETTABLE  R10 = R0[K0('m_arrRewardItems')]
  0102  SELF      R12 = R8[K3('GetLuaTable')] (self)
  0103  CALL      R11 = call(R11, -1 args, 1 rets)
  0104  CALL      R9 = call(R9, 0 args, -1 rets)
  0105  EQ        if R1 eq K1(nil)   -> -129684
  0106  JMP       (jump)   -> 128
  0107  GETTABLE  R8 = R0[K0('m_arrRewardItems')]
  0108  GETTABLE  R8 = R8[R6]
  0109  GETTABLE  R8 = R8[K14('transform')]
  0110  GETTABUP  R9 = _ENV[K16('Vector2')]
  0111  LOADK     R10 = K32 0
  0112  LOADK     R11 = K33 1
  0113  CALL      R9 = call(R9, 1 args, 2 rets)
  0114  SETTABLE  R8[K31('anchorMin')] = R9
  0115  GETTABLE  R8 = R0[K0('m_arrRewardItems')]
  0116  GETTABLE  R8 = R8[R6]
  0117  GETTABLE  R8 = R8[K14('transform')]
  0118  GETTABUP  R9 = _ENV[K16('Vector2')]
  0119  LOADK     R10 = K32 0
  0120  LOADK     R11 = K33 1
  0121  CALL      R9 = call(R9, 1 args, 2 rets)
  0122  SETTABLE  R8[K34('anchorMax')] = R9
  0123  GETTABLE  R8 = R0[K0('m_arrRewardItems')]
  0124  GETTABLE  R8 = R8[R6]
  0125  GETTABLE  R8 = R8[K14('transform')]
  0126  GETTABLE  R9 = R2[R6]
  0127  SETTABLE  R8[K35('anchoredPosition')] = R9
  0128  GETTABUP  R8 = _ENV[K5('UIUtil')]
  0129  GETTABLE  R8 = R8[K6('SetActive')]
  0130  GETTABLE  R9 = R0[K0('m_arrRewardItems')]
  0131  GETTABLE  R9 = R9[R6]
  0132  GETTABLE  R9 = R9[K7('gameObject')]
  0133  LOADBOOL  R10 = true
  0134  CALL      R8 = call(R8, 0 args, 2 rets)
  0135  GETTABLE  R8 = R0[K0('m_arrRewardItems')]
  0136  GETTABLE  R8 = R8[R6]
  0137  SELF      R9 = R8[K36('Init')] (self)
  0138  MOVE      R10 = R0
  0139  CALL      R8 = call(R8, 0 args, 2 rets)
  0140  TFORCALL  tforcall R3
  0141  TFORLOOP  tforloop R5(sBx=-52)   -> 90
  0142  RETURN    return R0..R-1
; ---------- proto5 [GetRewardsPos] ----------
  ; fn ?  line 86-94 np=1 va=0 ms=10 code=19 consts=8 upvals=1 protos=0
  ;   K[0]='pairs'
  ;   K[1]='m_arrRewardItems'
  ;   K[2]='gameObject'
  ;   K[3]='activeSelf'
  ;   K[4]='table'
  ;   K[5]='insert'
  ;   K[6]='transform'
  ;   K[7]='position'
  ;   upvals: _ENV
  ;   locals: self(0-19), arrPos(1-19), (for generator)(4-17), (for state)(4-17), (for control)(4-17), k(5-15), v(5-15)
  0000  NEWTABLE  R1 = {} (0 items)
  0001  GETTABUP  R2 = _ENV[K0('pairs')]
  0002  GETTABLE  R3 = R0[K1('m_arrRewardItems')]
  0003  CALL      R2 = call(R2, 3 args, 1 rets)
  0004  JMP       (jump)   -> 15
  0005  GETTABLE  R7 = R6[K2('gameObject')]
  0006  GETTABLE  R7 = R7[K3('activeSelf')]
  0007  TEST      if not R7 then   -> -131063
  0008  JMP       (jump)   -> 15
  0009  GETTABUP  R7 = _ENV[K4('table')]
  0010  GETTABLE  R7 = R7[K5('insert')]
  0011  MOVE      R8 = R0
  0012  GETTABLE  R9 = R6[K6('transform')]
  0013  GETTABLE  R9 = R9[K7('position')]
  0014  CALL      R7 = call(R7, 0 args, 2 rets)
  0015  TFORCALL  tforcall R2
  0016  TFORLOOP  tforloop R4(sBx=-12)   -> 5
  0017  RETURN    return R1..R0
  0018  RETURN    return R0..R-1
