# MultiRank_View_MultiRankBoxWindow_1218.luac
; fn @MultiRankBoxWindow.lua  line 0-0 np=0 va=1 ms=3 code=18 consts=7 upvals=1 protos=3
;   K[0]='MultiRankBoxWindow'
;   K[1]='setmetatable'
;   K[2]='MultiRankBaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnBtnClicked'
;   K[6]='OnDestroy'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('MultiRankBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('MultiRankBoxWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('MultiRankBoxWindow')]
0006  GETTABUP  R1 = _ENV[K0('MultiRankBoxWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('MultiRankBoxWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('MultiRankBoxWindow')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnBtnClicked')] = R1
0014  GETTABUP  R0 = _ENV[K0('MultiRankBoxWindow')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('OnDestroy')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-35 np=4 va=0 ms=9 code=92 consts=42 upvals=1 protos=1
  ;   K[0]='MultiRankBaseWindow'
  ;   K[1]='Init'
  ;   K[2]=10
  ;   K[3]='Close'
  ;   K[4]='m_curRank'
  ;   K[5]='m_imgKey'
  ;   K[6]='rank_box_'
  ;   K[7]='math'
  ;   K[8]='min'
  ;   K[9]=4
  ;   K[10]='SpriteUtil'
  ;   K[11]='SetImage'
  ;   K[12]='m_boxImg'
  ;   K[13]='m_userAvatar'
  ;   K[14]='SetMySelf'
  ;   K[15]='EAvatarFrame'
  ;   K[16]='Highlight'
  ;   K[17]=3
  ;   K[18]='m_rankDescText'
  ;   K[19]='text'
  ;   K[20]=''
  ;   K[21]='m_titleText'
  ;   K[22]='GM'
  ;   K[23]='GameTextModel'
  ;   K[24]='GetText'
  ;   K[25]='multirank_rankreward_title1'
  ;   K[26]='UIUtil'
  ;   K[27]='SetActive'
  ;   K[28]='m_lightGo'
  ;   K[29]='DelayExecuteFuncInView'
  ;   K[30]=0
  ;   K[31]='multirank_rankreward_desc2'
  ;   K[32]='blindchest_bigprize_title'
  ;   K[33]='UIUtil'
  ;   K[34]='SetActive'
  ;   K[35]='m_winnerGo'
  ;   K[36]='m_normalGo'
  ;   K[37]='AudioModel'
  ;   K[38]='PlayEffectLoop'
  ;   K[39]='AudioFileConfigName'
  ;   K[40]='SfxPkRaceActivityFinish1'
  ;   K[41]=1.84
  ;   upvals: _ENV
  ;   locals: self(0-92), activityType(0-92), bUserClick(0-92), rank(0-92)
  0000  GETTABUP  R4 = _ENV[K0('MultiRankBaseWindow')]
  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  LT        if R0 lt R3   -> 1035
  0007  JMP       (jump)   -> 11
  0008  SELF      R5 = R0[K3('Close')] (self)
  0009  CALL      R4 = call(R4, 0 args, 1 rets)
  0010  RETURN    return R0..R-1
  0011  SETTABLE  R0[K4('m_curRank')] = R3
  0012  LOADK     R4 = K6 'rank_box_'
  0013  GETTABUP  R5 = _ENV[K7('math')]
  0014  GETTABLE  R5 = R5[K8('min')]
  0015  MOVE      R6 = R0
  0016  LOADK     R7 = K9 4
  0017  CALL      R5 = call(R5, 1 args, 2 rets)
  0018  CONCAT    R4 = concat(R4..R4)
  0019  SETTABLE  R0[K5('m_imgKey')] = R4
  0020  GETTABUP  R4 = _ENV[K10('SpriteUtil')]
  0021  GETTABLE  R4 = R4[K11('SetImage')]
  0022  GETTABLE  R5 = R0[K12('m_boxImg')]
  0023  GETTABLE  R6 = R0[K5('m_imgKey')]
  0024  CALL      R4 = call(R4, 0 args, 2 rets)
  0025  GETTABLE  R4 = R0[K13('m_userAvatar')]
  0026  SELF      R5 = R4[K14('SetMySelf')] (self)
  0027  GETTABUP  R6 = _ENV[K15('EAvatarFrame')]
  0028  GETTABLE  R6 = R6[K16('Highlight')]
  0029  CALL      R4 = call(R4, 0 args, 2 rets)
  0030  LE        if R0 le K17(3)   -> -129231
  0031  JMP       (jump)   -> 52
  0032  GETTABLE  R4 = R0[K18('m_rankDescText')]
  0033  SETTABLE  R4[K19('text')] = K20('')
  0034  GETTABLE  R4 = R0[K21('m_titleText')]
  0035  GETTABUP  R5 = _ENV[K22('GM')]
  0036  GETTABLE  R5 = R5[K23('GameTextModel')]
  0037  SELF      R6 = R5[K24('GetText')] (self)
  0038  LOADK     R7 = K25 'multirank_rankreward_title1'
  0039  CALL      R5 = call(R5, 1 args, 2 rets)
  0040  SETTABLE  R4[K19('text')] = R5
  0041  GETTABUP  R4 = _ENV[K26('UIUtil')]
  0042  GETTABLE  R4 = R4[K27('SetActive')]
  0043  GETTABLE  R5 = R0[K28('m_lightGo')]
  0044  LOADBOOL  R6 = false
  0045  CALL      R4 = call(R4, 0 args, 2 rets)
  0046  GETTABUP  R4 = _ENV[K29('DelayExecuteFuncInView')]
  0047  CLOSURE   R5 = closure proto0
  0048  LOADK     R6 = K30 0
  0049  MOVE      R7 = R0
  0050  CALL      R4 = call(R4, 0 args, 3 rets)
  0051  JMP       (jump)   -> 67
  0052  GETTABLE  R4 = R0[K18('m_rankDescText')]
  0053  GETTABUP  R5 = _ENV[K22('GM')]
  0054  GETTABLE  R5 = R5[K23('GameTextModel')]
  0055  SELF      R6 = R5[K24('GetText')] (self)
  0056  LOADK     R7 = K31 'multirank_rankreward_desc2'
  0057  MOVE      R8 = R0
  0058  CALL      R5 = call(R5, 1 args, 3 rets)
  0059  SETTABLE  R4[K19('text')] = R5
  0060  GETTABLE  R4 = R0[K21('m_titleText')]
  0061  GETTABUP  R5 = _ENV[K22('GM')]
  0062  GETTABLE  R5 = R5[K23('GameTextModel')]
  0063  SELF      R6 = R5[K24('GetText')] (self)
  0064  LOADK     R7 = K32 'blindchest_bigprize_title'
  0065  CALL      R5 = call(R5, 1 args, 2 rets)
  0066  SETTABLE  R4[K19('text')] = R5
  0067  GETTABUP  R4 = _ENV[K33('UIUtil')]
  0068  GETTABLE  R4 = R4[K34('SetActive')]
  0069  GETTABLE  R5 = R0[K35('m_winnerGo')]
  0070  LE        if R1 le K17(3)   -> -129191
  0071  JMP       (jump)   -> 73
  0072  LOADBOOL  R6 = false
  0073  LOADBOOL  R6 = true
  0074  CALL      R4 = call(R4, 0 args, 2 rets)
  0075  GETTABUP  R4 = _ENV[K33('UIUtil')]
  0076  GETTABLE  R4 = R4[K34('SetActive')]
  0077  GETTABLE  R5 = R0[K36('m_normalGo')]
  0078  LT        if R1 lt R3   -> 8787
  0079  JMP       (jump)   -> 81
  0080  LOADBOOL  R6 = false
  0081  LOADBOOL  R6 = true
  0082  CALL      R4 = call(R4, 0 args, 2 rets)
  0083  GETTABUP  R4 = _ENV[K22('GM')]
  0084  GETTABLE  R4 = R4[K37('AudioModel')]
  0085  SELF      R5 = R4[K38('PlayEffectLoop')] (self)
  0086  GETTABUP  R6 = _ENV[K39('AudioFileConfigName')]
  0087  GETTABLE  R6 = R6[K40('SfxPkRaceActivityFinish1')]
  0088  MOVE      R7 = R0
  0089  LOADK     R8 = K41 1.84
  0090  CALL      R4 = call(R4, 0 args, 4 rets)
  0091  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 22-24 np=0 va=0 ms=3 code=6 consts=3 upvals=2 protos=0
    ;   K[0]='UIUtil'
    ;   K[1]='SetActive'
    ;   K[2]='m_lightGo'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('UIUtil')]
    0001  GETTABLE  R0 = R0[K1('SetActive')]
    0002  GETTABUP  R1 = self[K2('m_lightGo')]
    0003  LOADBOOL  R2 = true
    0004  CALL      R0 = call(R0, 0 args, 2 rets)
    0005  RETURN    return R0..R-1
; ---------- proto1 [OnBtnClicked] ----------
  ; fn ?  line 37-50 np=1 va=0 ms=14 code=34 consts=19 upvals=1 protos=1
  ;   K[0]='m_model'
  ;   K[1]='GetRewards'
  ;   K[2]='m_curRank'
  ;   K[3]='Table'
  ;   K[4]='IsEmpty'
  ;   K[5]='GM'
  ;   K[6]='UIManager'
  ;   K[7]='OpenView'
  ;   K[8]='UIPrefabConfigName'
  ;   K[9]='BoxRewardWindow'
  ;   K[10]='m_boxImg'
  ;   K[11]='transform'
  ;   K[12]='position'
  ;   K[13]='localScale'
  ;   K[14]='x'
  ;   K[15]='m_imgKey'
  ;   K[16]='ERewardScene'
  ;   K[17]='Other'
  ;   K[18]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-34), rewards(4-34)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetRewards')] (self)
  0002  GETTABLE  R3 = R0[K2('m_curRank')]
  0003  CALL      R1 = call(R1, 1 args, 2 rets)
  0004  GETTABUP  R2 = _ENV[K3('Table')]
  0005  GETTABLE  R2 = R2[K4('IsEmpty')]
  0006  MOVE      R3 = R0
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  TEST      if not R2 then   -> -131061
  0009  JMP       (jump)   -> 31
  0010  GETTABUP  R2 = _ENV[K5('GM')]
  0011  GETTABLE  R2 = R2[K6('UIManager')]
  0012  SELF      R3 = R2[K7('OpenView')] (self)
  0013  GETTABUP  R4 = _ENV[K8('UIPrefabConfigName')]
  0014  GETTABLE  R4 = R4[K9('BoxRewardWindow')]
  0015  GETTABLE  R5 = R0[K10('m_boxImg')]
  0016  GETTABLE  R5 = R5[K11('transform')]
  0017  GETTABLE  R5 = R5[K12('position')]
  0018  GETTABLE  R6 = R0[K10('m_boxImg')]
  0019  GETTABLE  R6 = R6[K11('transform')]
  0020  GETTABLE  R6 = R6[K13('localScale')]
  0021  GETTABLE  R6 = R6[K14('x')]
  0022  GETTABLE  R7 = R0[K15('m_imgKey')]
  0023  MOVE      R8 = R0
  0024  LOADNIL   R9..R9 = nil
  0025  LOADBOOL  R10 = true
  0026  GETTABUP  R11 = _ENV[K16('ERewardScene')]
  0027  GETTABLE  R11 = R11[K17('Other')]
  0028  LOADNIL   R12..R12 = nil
  0029  CLOSURE   R13 = closure proto0
  0030  CALL      R2 = call(R2, 0 args, 11 rets)
  0031  SELF      R3 = R0[K18('Close')] (self)
  0032  CALL      R2 = call(R2, 0 args, 1 rets)
  0033  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 42-47 np=0 va=0 ms=5 code=16 consts=10 upvals=2 protos=0
    ;   K[0]='m_model'
    ;   K[1]='GetState'
    ;   K[2]='ActivityState'
    ;   K[3]='Released'
    ;   K[4]='GM'
    ;   K[5]='UIManager'
    ;   K[6]='OpenView'
    ;   K[7]='m_activityDefinition'
    ;   K[8]='EndWindowPrefabName'
    ;   K[9]='m_activityType'
    ;   upvals: self, _ENV
    0000  GETTABUP  R0 = self[K0('m_model')]
    0001  SELF      R1 = R0[K1('GetState')] (self)
    0002  CALL      R0 = call(R0, 1 args, 1 rets)
    0003  GETTABUP  R1 = _ENV[K2('ActivityState')]
    0004  GETTABLE  R1 = R1[K3('Released')]
    0005  EQ        if R1 eq R1   -> -131064
    0006  JMP       (jump)   -> 15
    0007  GETTABUP  R0 = _ENV[K4('GM')]
    0008  GETTABLE  R0 = R0[K5('UIManager')]
    0009  SELF      R1 = R0[K6('OpenView')] (self)
    0010  GETTABUP  R2 = self[K7('m_activityDefinition')]
    0011  GETTABLE  R2 = R2[K8('EndWindowPrefabName')]
    0012  GETTABUP  R3 = self[K9('m_activityType')]
    0013  LOADBOOL  R4 = false
    0014  CALL      R0 = call(R0, 0 args, 4 rets)
    0015  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 52-57 np=1 va=0 ms=4 code=14 consts=7 upvals=1 protos=0
  ;   K[0]='MultiRankBaseWindow'
  ;   K[1]='OnDestroy'
  ;   K[2]='Scheduler'
  ;   K[3]='UnscheduleTarget'
  ;   K[4]='GM'
  ;   K[5]='AudioModel'
  ;   K[6]='StopEffectLoop'
  ;   upvals: _ENV
  ;   locals: self(0-14)
  0000  GETTABUP  R1 = _ENV[K0('MultiRankBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  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  GETTABUP  R1 = _ENV[K4('GM')]
  0009  GETTABLE  R1 = R1[K5('AudioModel')]
  0010  SELF      R2 = R1[K6('StopEffectLoop')] (self)
  0011  MOVE      R3 = R0
  0012  CALL      R1 = call(R1, 0 args, 2 rets)
  0013  RETURN    return R0..R-1
