# CoinRaceActivity_View_CoinRaceRewardWindow_902.luac
; fn @CoinRaceRewardWindow.lua  line 0-0 np=0 va=1 ms=4 code=27 consts=15 upvals=1 protos=3
;   K[0]='CoinRaceRewardWindow'
;   K[1]='setmetatable'
;   K[2]='canCloseByAndroidBack'
;   K[3]=false
;   K[4]='windowMaskAlpha'
;   K[5]='EWindowMaskAlpha'
;   K[6]='Dark'
;   K[7]='hideHudAnchorType'
;   K[8]='EHudAnchorType'
;   K[9]='All'
;   K[10]='BaseWindow'
;   K[11]='__index'
;   K[12]='Init'
;   K[13]='OnDestroy'
;   K[14]='OnMaskClicked'
;   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('Dark')]
0005  SETTABLE  R1[K4('windowMaskAlpha')] = R2
0006  NEWTABLE  R2 = {} (1 items)
0007  GETTABUP  R3 = _ENV[K8('EHudAnchorType')]
0008  GETTABLE  R3 = R3[K9('All')]
0009  SETLIST   setlist R2[B=1,C=1]
0010  SETTABLE  R1[K7('hideHudAnchorType')] = R2
0011  GETTABUP  R2 = _ENV[K10('BaseWindow')]
0012  CALL      R0 = call(R0, 1 args, 2 rets)
0013  SETTABUP  _ENV[K0('CoinRaceRewardWindow')] = R0
0014  GETTABUP  R0 = _ENV[K0('CoinRaceRewardWindow')]
0015  GETTABUP  R1 = _ENV[K0('CoinRaceRewardWindow')]
0016  SETTABLE  R0[K11('__index')] = R1
0017  GETTABUP  R0 = _ENV[K0('CoinRaceRewardWindow')]
0018  CLOSURE   R1 = closure proto0
0019  SETTABLE  R0[K12('Init')] = R1
0020  GETTABUP  R0 = _ENV[K0('CoinRaceRewardWindow')]
0021  CLOSURE   R1 = closure proto1
0022  SETTABLE  R0[K13('OnDestroy')] = R1
0023  GETTABUP  R0 = _ENV[K0('CoinRaceRewardWindow')]
0024  CLOSURE   R1 = closure proto2
0025  SETTABLE  R0[K14('OnMaskClicked')] = R1
0026  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 10-35 np=4 va=0 ms=9 code=79 consts=45 upvals=1 protos=1
  ;   K[0]='Log'
  ;   K[1]='Assert'
  ;   K[2]=0
  ;   K[3]=3
  ;   K[4]='param rank is error'
  ;   K[5]='Table'
  ;   K[6]='IsEmpty'
  ;   K[7]='param rewards is error'
  ;   K[8]='m_activityType'
  ;   K[9]='m_rank'
  ;   K[10]='m_rewards'
  ;   K[11]='m_model'
  ;   K[12]='GM'
  ;   K[13]='ActivityManager'
  ;   K[14]='GetModel'
  ;   K[15]='m_activityDefinition'
  ;   K[16]='GetActivityDefinition'
  ;   K[17]='SpriteUtil'
  ;   K[18]='SetImage'
  ;   K[19]='m_boxImg'
  ;   K[20]='CoinRaceBoxRankImgPrefix'
  ;   K[21]='LogWindowAction'
  ;   K[22]='EBIType'
  ;   K[23]='UIActionType'
  ;   K[24]='Open'
  ;   K[25]='EBIReferType'
  ;   K[26]='AutoPopup'
  ;   K[27]='AddHandlerAndRecordMap'
  ;   K[28]='event'
  ;   K[29]='RaceEventType'
  ;   K[30]='StateChanged'
  ;   K[31]='obj'
  ;   K[32]='method'
  ;   K[33]='Close'
  ;   K[34]='DOTween'
  ;   K[35]='Sequence'
  ;   K[36]='AppendCallback'
  ;   K[37]='AppendInterval'
  ;   K[38]='SetLoops'
  ;   K[39]=-1
  ;   K[40]='m_tween'
  ;   K[41]='m_userAvatar'
  ;   K[42]='SetMySelf'
  ;   K[43]='EAvatarFrame'
  ;   K[44]='Highlight'
  ;   upvals: _ENV
  ;   locals: self(0-79), activityType(0-79), rank(0-79), rewards(0-79), seq(63-79)
  0000  GETTABUP  R4 = _ENV[K0('Log')]
  0001  GETTABLE  R4 = R4[K1('Assert')]
  0002  LT        if R0 lt R2   -> 1030
  0003  JMP       (jump)   -> 6
  0004  LE        if R1 le K3(3)   -> -129783
  0005  JMP       (jump)   -> 7
  0006  LOADBOOL  R5 = false
  0007  LOADBOOL  R5 = true
  0008  LOADK     R6 = K4 'param rank is error'
  0009  CALL      R4 = call(R4, 0 args, 2 rets)
  0010  GETTABUP  R4 = _ENV[K0('Log')]
  0011  GETTABLE  R4 = R4[K1('Assert')]
  0012  GETTABUP  R5 = _ENV[K5('Table')]
  0013  GETTABLE  R5 = R5[K6('IsEmpty')]
  0014  MOVE      R6 = R0
  0015  CALL      R5 = call(R5, 1 args, 1 rets)
  0016  NOT       R5 = not R0
  0017  LOADK     R6 = K7 'param rewards is error'
  0018  CALL      R4 = call(R4, 0 args, 2 rets)
  0019  SETTABLE  R0[K8('m_activityType')] = R1
  0020  SETTABLE  R0[K9('m_rank')] = R2
  0021  SETTABLE  R0[K10('m_rewards')] = R3
  0022  GETTABUP  R4 = _ENV[K12('GM')]
  0023  GETTABLE  R4 = R4[K13('ActivityManager')]
  0024  SELF      R5 = R4[K14('GetModel')] (self)
  0025  MOVE      R6 = R0
  0026  CALL      R4 = call(R4, 1 args, 2 rets)
  0027  SETTABLE  R0[K11('m_model')] = R4
  0028  GETTABLE  R4 = R0[K11('m_model')]
  0029  SELF      R5 = R4[K16('GetActivityDefinition')] (self)
  0030  CALL      R4 = call(R4, 1 args, 1 rets)
  0031  SETTABLE  R0[K15('m_activityDefinition')] = R4
  0032  GETTABUP  R4 = _ENV[K17('SpriteUtil')]
  0033  GETTABLE  R4 = R4[K18('SetImage')]
  0034  GETTABLE  R5 = R0[K19('m_boxImg')]
  0035  GETTABLE  R6 = R0[K15('m_activityDefinition')]
  0036  GETTABLE  R6 = R6[K20('CoinRaceBoxRankImgPrefix')]
  0037  MOVE      R7 = R0
  0038  CONCAT    R6 = concat(R6..R6)
  0039  LOADBOOL  R7 = true
  0040  CALL      R4 = call(R4, 0 args, 3 rets)
  0041  SELF      R5 = R0[K21('LogWindowAction')] (self)
  0042  GETTABUP  R6 = _ENV[K22('EBIType')]
  0043  GETTABLE  R6 = R6[K23('UIActionType')]
  0044  GETTABLE  R6 = R6[K24('Open')]
  0045  NEWTABLE  R7 = {} (1 items)
  0046  GETTABUP  R8 = _ENV[K25('EBIReferType')]
  0047  GETTABLE  R8 = R8[K26('AutoPopup')]
  0048  SETLIST   setlist R7[B=1,C=1]
  0049  CALL      R4 = call(R4, 0 args, 3 rets)
  0050  GETTABUP  R4 = _ENV[K27('AddHandlerAndRecordMap')]
  0051  GETTABLE  R5 = R0[K11('m_model')]
  0052  GETTABLE  R5 = R5[K28('event')]
  0053  GETTABUP  R6 = _ENV[K29('RaceEventType')]
  0054  GETTABLE  R6 = R6[K30('StateChanged')]
  0055  NEWTABLE  R7 = {} (0 items)
  0056  SETTABLE  R7[K31('obj')] = R0
  0057  GETTABLE  R8 = R0[K33('Close')]
  0058  SETTABLE  R7[K32('method')] = R8
  0059  CALL      R4 = call(R4, 0 args, 3 rets)
  0060  GETTABUP  R4 = _ENV[K34('DOTween')]
  0061  GETTABLE  R4 = R4[K35('Sequence')]
  0062  CALL      R4 = call(R4, 1 args, 0 rets)
  0063  SELF      R6 = R4[K36('AppendCallback')] (self)
  0064  CLOSURE   R7 = closure proto0
  0065  CALL      R5 = call(R5, 0 args, 2 rets)
  0066  SELF      R6 = R4[K37('AppendInterval')] (self)
  0067  LOADK     R7 = K3 3
  0068  CALL      R5 = call(R5, 0 args, 2 rets)
  0069  SELF      R6 = R4[K38('SetLoops')] (self)
  0070  LOADK     R7 = K39 -1
  0071  CALL      R5 = call(R5, 0 args, 2 rets)
  0072  SETTABLE  R0[K40('m_tween')] = R4
  0073  GETTABLE  R5 = R0[K41('m_userAvatar')]
  0074  SELF      R6 = R5[K42('SetMySelf')] (self)
  0075  GETTABUP  R7 = _ENV[K43('EAvatarFrame')]
  0076  GETTABLE  R7 = R7[K44('Highlight')]
  0077  CALL      R5 = call(R5, 0 args, 2 rets)
  0078  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 26-28 np=0 va=0 ms=3 code=7 consts=5 upvals=1 protos=0
    ;   K[0]='GM'
    ;   K[1]='AudioModel'
    ;   K[2]='PlayEffect'
    ;   K[3]='AudioFileConfigName'
    ;   K[4]='SfxFirework'
    ;   upvals: _ENV
    0000  GETTABUP  R0 = _ENV[K0('GM')]
    0001  GETTABLE  R0 = R0[K1('AudioModel')]
    0002  SELF      R1 = R0[K2('PlayEffect')] (self)
    0003  GETTABUP  R2 = _ENV[K3('AudioFileConfigName')]
    0004  GETTABLE  R2 = R2[K4('SfxFirework')]
    0005  CALL      R0 = call(R0, 0 args, 2 rets)
    0006  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 37-47 np=1 va=0 ms=4 code=20 consts=8 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnDestroy'
  ;   K[2]='m_model'
  ;   K[3]=nil
  ;   K[4]='RemoveAllHandlers'
  ;   K[5]='event'
  ;   K[6]='m_tween'
  ;   K[7]='Kill'
  ;   upvals: _ENV
  ;   locals: self(0-20)
  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_model')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 12
  0007  GETTABUP  R1 = _ENV[K4('RemoveAllHandlers')]
  0008  GETTABLE  R2 = R0[K2('m_model')]
  0009  GETTABLE  R2 = R2[K5('event')]
  0010  MOVE      R3 = R0
  0011  CALL      R1 = call(R1, 0 args, 2 rets)
  0012  GETTABLE  R1 = R0[K6('m_tween')]
  0013  TEST      if not R1 then   -> -131057
  0014  JMP       (jump)   -> 19
  0015  GETTABLE  R1 = R0[K6('m_tween')]
  0016  SELF      R2 = R1[K7('Kill')] (self)
  0017  CALL      R1 = call(R1, 0 args, 1 rets)
  0018  SETTABLE  R0[K6('m_tween')] = K3(nil)
  0019  RETURN    return R0..R-1
; ---------- proto2 [OnMaskClicked] ----------
  ; fn ?  line 49-61 np=1 va=0 ms=10 code=16 consts=10 upvals=1 protos=1
  ;   K[0]='Close'
  ;   K[1]='GM'
  ;   K[2]='UIManager'
  ;   K[3]='OpenView'
  ;   K[4]='UIPrefabConfigName'
  ;   K[5]='AnimatedRewardWindow'
  ;   K[6]='m_rewards'
  ;   K[7]='rewards_window_title_normal'
  ;   K[8]='ERewardScene'
  ;   K[9]='Other'
  ;   upvals: _ENV
  ;   locals: self(0-16)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABUP  R1 = _ENV[K1('GM')]
  0003  GETTABLE  R1 = R1[K2('UIManager')]
  0004  SELF      R2 = R1[K3('OpenView')] (self)
  0005  GETTABUP  R3 = _ENV[K4('UIPrefabConfigName')]
  0006  GETTABLE  R3 = R3[K5('AnimatedRewardWindow')]
  0007  GETTABLE  R4 = R0[K6('m_rewards')]
  0008  LOADK     R5 = K7 'rewards_window_title_normal'
  0009  LOADBOOL  R6 = true
  0010  GETTABUP  R7 = _ENV[K8('ERewardScene')]
  0011  GETTABLE  R7 = R7[K9('Other')]
  0012  LOADNIL   R8..R8 = nil
  0013  CLOSURE   R9 = closure proto0
  0014  CALL      R1 = call(R1, 0 args, 8 rets)
  0015  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 51-60 np=0 va=0 ms=3 code=10 consts=5 upvals=2 protos=1
    ;   K[0]='GM'
    ;   K[1]='UIManager'
    ;   K[2]='SetEventLock'
    ;   K[3]='DelayExecuteFunc'
    ;   K[4]=1.5
    ;   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 = true
    0004  CALL      R0 = call(R0, 0 args, 2 rets)
    0005  GETTABUP  R0 = _ENV[K3('DelayExecuteFunc')]
    0006  CLOSURE   R1 = closure proto0
    0007  LOADK     R2 = K4 1.5
    0008  CALL      R0 = call(R0, 0 args, 2 rets)
    0009  RETURN    return R0..R-1
    ; ---------- proto0 [] ----------
      ; fn ?  line 53-59 np=0 va=0 ms=7 code=30 consts=13 upvals=2 protos=0
      ;   K[0]='GM'
      ;   K[1]='UIManager'
      ;   K[2]='SetEventLock'
      ;   K[3]='ActivityManager'
      ;   K[4]='GetModel'
      ;   K[5]='m_activityType'
      ;   K[6]='GetState'
      ;   K[7]='ActivityState'
      ;   K[8]='Started'
      ;   K[9]='HasFinishedAllRounds'
      ;   K[10]='OpenView'
      ;   K[11]='m_activityDefinition'
      ;   K[12]='NoticeWindowPrefabName'
      ;   upvals: _ENV, self
      ;   locals: model(10-30)
      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  GETTABUP  R0 = _ENV[K0('GM')]
      0006  GETTABLE  R0 = R0[K3('ActivityManager')]
      0007  SELF      R1 = R0[K4('GetModel')] (self)
      0008  GETTABUP  R2 = self[K5('m_activityType')]
      0009  CALL      R0 = call(R0, 1 args, 2 rets)
      0010  SELF      R2 = R0[K6('GetState')] (self)
      0011  CALL      R1 = call(R1, 1 args, 1 rets)
      0012  GETTABUP  R2 = _ENV[K7('ActivityState')]
      0013  GETTABLE  R2 = R2[K8('Started')]
      0014  EQ        if R0 eq R2   -> -130542
      0015  JMP       (jump)   -> 29
      0016  SELF      R2 = R0[K9('HasFinishedAllRounds')] (self)
      0017  CALL      R1 = call(R1, 1 args, 1 rets)
      0018  TEST      if not R1 then   -> -131051
      0019  JMP       (jump)   -> 29
      0020  GETTABUP  R1 = _ENV[K0('GM')]
      0021  GETTABLE  R1 = R1[K1('UIManager')]
      0022  SELF      R2 = R1[K10('OpenView')] (self)
      0023  GETTABUP  R3 = self[K11('m_activityDefinition')]
      0024  GETTABLE  R3 = R3[K12('NoticeWindowPrefabName')]
      0025  GETTABUP  R4 = self[K5('m_activityType')]
      0026  LOADBOOL  R5 = true
      0027  LOADBOOL  R6 = true
      0028  CALL      R1 = call(R1, 0 args, 5 rets)
      0029  RETURN    return R0..R-1
