# PkRace_View_PkRaceRewardWindow_1066.luac
; fn @PkRaceRewardWindow.lua  line 0-0 np=0 va=1 ms=3 code=24 consts=10 upvals=1 protos=2
;   K[0]='PkRaceRewardWindow'
;   K[1]='setmetatable'
;   K[2]='showWindowMask'
;   K[3]=false
;   K[4]='OneRewardAnimWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='PkRaceRoundRewardWindow'
;   K[8]='RewardWindow'
;   K[9]='Init'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('showWindowMask')] = K3(false)
0003  GETTABUP  R2 = _ENV[K4('OneRewardAnimWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('PkRaceRewardWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('PkRaceRewardWindow')]
0007  GETTABUP  R1 = _ENV[K0('PkRaceRewardWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('PkRaceRewardWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K1('setmetatable')]
0013  NEWTABLE  R1 = {} (0 items)
0014  GETTABUP  R2 = _ENV[K8('RewardWindow')]
0015  CALL      R0 = call(R0, 1 args, 2 rets)
0016  SETTABUP  _ENV[K7('PkRaceRoundRewardWindow')] = R0
0017  GETTABUP  R0 = _ENV[K7('PkRaceRoundRewardWindow')]
0018  GETTABUP  R1 = _ENV[K7('PkRaceRoundRewardWindow')]
0019  SETTABLE  R0[K5('__index')] = R1
0020  GETTABUP  R0 = _ENV[K7('PkRaceRoundRewardWindow')]
0021  CLOSURE   R1 = closure proto1
0022  SETTABLE  R0[K9('Init')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-11 np=5 va=0 ms=10 code=21 consts=10 upvals=1 protos=0
  ;   K[0]='OneRewardAnimWindow'
  ;   K[1]='Init'
  ;   K[2]=1
  ;   K[3]='pkrace_first_reward_desc'
  ;   K[4]='pkrace_second_reward_desc'
  ;   K[5]='m_descText'
  ;   K[6]='text'
  ;   K[7]='GM'
  ;   K[8]='GameTextModel'
  ;   K[9]='GetText'
  ;   upvals: _ENV
  ;   locals: self(0-21), rank(0-21), arrRewards(0-21), closeCallback(0-21), rewardStartPos(0-21), textKey(13-21)
  0000  GETTABUP  R5 = _ENV[K0('OneRewardAnimWindow')]
  0001  GETTABLE  R5 = R5[K1('Init')]
  0002  MOVE      R6 = R0
  0003  MOVE      R7 = R0
  0004  MOVE      R8 = R0
  0005  MOVE      R9 = R0
  0006  CALL      R5 = call(R5, 0 args, 4 rets)
  0007  EQ        if R0 eq K2(1)   -> -130293
  0008  JMP       (jump)   -> 12
  0009  LOADK     R5 = K3 'pkrace_first_reward_desc'
  0010  TEST      if not R5 then   -> -131059
  0011  JMP       (jump)   -> 13
  0012  LOADK     R5 = K4 'pkrace_second_reward_desc'
  0013  GETTABLE  R6 = R0[K5('m_descText')]
  0014  GETTABUP  R7 = _ENV[K7('GM')]
  0015  GETTABLE  R7 = R7[K8('GameTextModel')]
  0016  SELF      R8 = R7[K9('GetText')] (self)
  0017  MOVE      R9 = R0
  0018  CALL      R7 = call(R7, 1 args, 2 rets)
  0019  SETTABLE  R6[K6('text')] = R7
  0020  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 21-26 np=4 va=0 ms=12 code=26 consts=14 upvals=1 protos=0
  ;   K[0]='RewardWindow'
  ;   K[1]='Init'
  ;   K[2]='ERewardScene'
  ;   K[3]='Other'
  ;   K[4]='GM'
  ;   K[5]='AudioModel'
  ;   K[6]='PlayEffect'
  ;   K[7]='AudioFileConfigName'
  ;   K[8]='SfxPkRaceActivityFinish2'
  ;   K[9]='m_descText'
  ;   K[10]='text'
  ;   K[11]='GameTextModel'
  ;   K[12]='GetText'
  ;   K[13]='pkrace_round_reward_title'
  ;   upvals: _ENV
  ;   locals: self(0-26), round(0-26), arrRewards(0-26), closeCallback(0-26)
  0000  GETTABUP  R4 = _ENV[K0('RewardWindow')]
  0001  GETTABLE  R4 = R4[K1('Init')]
  0002  MOVE      R5 = R0
  0003  MOVE      R6 = R0
  0004  LOADNIL   R7..R7 = nil
  0005  LOADBOOL  R8 = true
  0006  GETTABUP  R9 = _ENV[K2('ERewardScene')]
  0007  GETTABLE  R9 = R9[K3('Other')]
  0008  LOADNIL   R10..R10 = nil
  0009  MOVE      R11 = R0
  0010  CALL      R4 = call(R4, 0 args, 7 rets)
  0011  GETTABUP  R4 = _ENV[K4('GM')]
  0012  GETTABLE  R4 = R4[K5('AudioModel')]
  0013  SELF      R5 = R4[K6('PlayEffect')] (self)
  0014  GETTABUP  R6 = _ENV[K7('AudioFileConfigName')]
  0015  GETTABLE  R6 = R6[K8('SfxPkRaceActivityFinish2')]
  0016  CALL      R4 = call(R4, 0 args, 2 rets)
  0017  GETTABLE  R4 = R0[K9('m_descText')]
  0018  GETTABUP  R5 = _ENV[K4('GM')]
  0019  GETTABLE  R5 = R5[K11('GameTextModel')]
  0020  SELF      R6 = R5[K12('GetText')] (self)
  0021  LOADK     R7 = K13 'pkrace_round_reward_title'
  0022  MOVE      R8 = R0
  0023  CALL      R5 = call(R5, 1 args, 3 rets)
  0024  SETTABLE  R4[K10('text')] = R5
  0025  RETURN    return R0..R-1
