# ExtraBoardActivity_View_ExtraBoardActivityCompleteWindow_1011.luac
; fn @ExtraBoardActivityCompleteWindow.lua  line 0-0 np=0 va=1 ms=3 code=22 consts=12 upvals=1 protos=3
;   K[0]='ExtraBoardActivityCompleteWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='disableEffectWhenCloseView'
;   K[6]=true
;   K[7]='ExtraBoardActivityBaseWindow'
;   K[8]='__index'
;   K[9]='Init'
;   K[10]='OnCloseBtnClick'
;   K[11]='OnCloseView'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('EWindowMaskAlpha')]
0003  GETTABLE  R2 = R2[K4('Dark')]
0004  SETTABLE  R1[K2('windowMaskAlpha')] = R2
0005  SETTABLE  R1[K5('disableEffectWhenCloseView')] = K6(true)
0006  GETTABUP  R2 = _ENV[K7('ExtraBoardActivityBaseWindow')]
0007  CALL      R0 = call(R0, 1 args, 2 rets)
0008  SETTABUP  _ENV[K0('ExtraBoardActivityCompleteWindow')] = R0
0009  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityCompleteWindow')]
0010  GETTABUP  R1 = _ENV[K0('ExtraBoardActivityCompleteWindow')]
0011  SETTABLE  R0[K8('__index')] = R1
0012  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityCompleteWindow')]
0013  CLOSURE   R1 = closure proto0
0014  SETTABLE  R0[K9('Init')] = R1
0015  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityCompleteWindow')]
0016  CLOSURE   R1 = closure proto1
0017  SETTABLE  R0[K10('OnCloseBtnClick')] = R1
0018  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityCompleteWindow')]
0019  CLOSURE   R1 = closure proto2
0020  SETTABLE  R0[K11('OnCloseView')] = R1
0021  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-21 np=3 va=0 ms=9 code=39 consts=19 upvals=1 protos=0
  ;   K[0]='ExtraBoardActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_model'
  ;   K[3]='GetItemCodeByLevel'
  ;   K[4]='GetMaxLevel'
  ;   K[5]='SpriteUtil'
  ;   K[6]='SetImage'
  ;   K[7]='m_itemImg'
  ;   K[8]='GM'
  ;   K[9]='ItemDataModel'
  ;   K[10]='GetSpriteName'
  ;   K[11]='GetMaxLevelReward'
  ;   K[12]='Table'
  ;   K[13]='IsEmpty'
  ;   K[14]='m_rewardContent'
  ;   K[15]='ERewardScene'
  ;   K[16]='Other'
  ;   K[17]='m_bPlayRewardAnim'
  ;   K[18]=true
  ;   upvals: _ENV
  ;   locals: self(0-39), activityType(0-39), bUserClick(0-39), itemCode(12-39), maxReward(25-39)
  0000  GETTABUP  R3 = _ENV[K0('ExtraBoardActivityBaseWindow')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  MOVE      R6 = R0
  0005  CALL      R3 = call(R3, 0 args, 3 rets)
  0006  GETTABLE  R3 = R0[K2('m_model')]
  0007  SELF      R4 = R3[K3('GetItemCodeByLevel')] (self)
  0008  GETTABLE  R5 = R0[K2('m_model')]
  0009  SELF      R6 = R5[K4('GetMaxLevel')] (self)
  0010  CALL      R5 = call(R5, -1 args, 1 rets)
  0011  CALL      R3 = call(R3, 1 args, -1 rets)
  0012  GETTABUP  R4 = _ENV[K5('SpriteUtil')]
  0013  GETTABLE  R4 = R4[K6('SetImage')]
  0014  GETTABLE  R5 = R0[K7('m_itemImg')]
  0015  GETTABUP  R6 = _ENV[K8('GM')]
  0016  GETTABLE  R6 = R6[K9('ItemDataModel')]
  0017  SELF      R7 = R6[K10('GetSpriteName')] (self)
  0018  MOVE      R8 = R0
  0019  CALL      R6 = call(R6, 1 args, 2 rets)
  0020  LOADBOOL  R7 = true
  0021  CALL      R4 = call(R4, 0 args, 3 rets)
  0022  GETTABLE  R4 = R0[K2('m_model')]
  0023  SELF      R5 = R4[K11('GetMaxLevelReward')] (self)
  0024  CALL      R4 = call(R4, 1 args, 1 rets)
  0025  GETTABUP  R5 = _ENV[K12('Table')]
  0026  GETTABLE  R5 = R5[K13('IsEmpty')]
  0027  MOVE      R6 = R0
  0028  CALL      R5 = call(R5, 1 args, 1 rets)
  0029  TEST      if not R5 then   -> -131040
  0030  JMP       (jump)   -> 38
  0031  GETTABLE  R5 = R0[K14('m_rewardContent')]
  0032  SELF      R6 = R5[K1('Init')] (self)
  0033  MOVE      R7 = R0
  0034  GETTABUP  R8 = _ENV[K15('ERewardScene')]
  0035  GETTABLE  R8 = R8[K16('Other')]
  0036  CALL      R5 = call(R5, 0 args, 3 rets)
  0037  SETTABLE  R0[K17('m_bPlayRewardAnim')] = K18(true)
  0038  RETURN    return R0..R-1
; ---------- proto1 [OnCloseBtnClick] ----------
  ; fn ?  line 23-25 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='Close'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto2 [OnCloseView] ----------
  ; fn ?  line 27-42 np=1 va=1 ms=8 code=39 consts=15 upvals=1 protos=0
  ;   K[0]='ExtraBoardActivityBaseWindow'
  ;   K[1]='OnCloseView'
  ;   K[2]='m_rewardContent'
  ;   K[3]=nil
  ;   K[4]='m_bPlayRewardAnim'
  ;   K[5]='PlayRewardAnimation'
  ;   K[6]='m_model'
  ;   K[7]='GetBoardModel'
  ;   K[8]='GetItemIllustratedBook'
  ;   K[9]='m_activityDefinition'
  ;   K[10]='BookWindowPrefabName'
  ;   K[11]='GM'
  ;   K[12]='UIManager'
  ;   K[13]='OpenView'
  ;   K[14]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-39), boardModel(17-39), bookModel(24-39)
  0000  GETTABUP  R1 = _ENV[K0('ExtraBoardActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseView')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  GETTABLE  R1 = R0[K2('m_rewardContent')]
  0006  EQ        if R1 eq K3(nil)   -> -130293
  0007  JMP       (jump)   -> 14
  0008  GETTABLE  R1 = R0[K4('m_bPlayRewardAnim')]
  0009  TEST      if not R1 then   -> -131061
  0010  JMP       (jump)   -> 14
  0011  GETTABLE  R1 = R0[K2('m_rewardContent')]
  0012  SELF      R2 = R1[K5('PlayRewardAnimation')] (self)
  0013  CALL      R1 = call(R1, 0 args, 1 rets)
  0014  GETTABLE  R1 = R0[K6('m_model')]
  0015  SELF      R2 = R1[K7('GetBoardModel')] (self)
  0016  CALL      R1 = call(R1, 1 args, 1 rets)
  0017  TEST      if not R1 then   -> -131053
  0018  JMP       (jump)   -> 23
  0019  SELF      R3 = R1[K8('GetItemIllustratedBook')] (self)
  0020  CALL      R2 = call(R2, 1 args, 1 rets)
  0021  TEST      if not R2 then   -> -131048
  0022  JMP       (jump)   -> 24
  0023  LOADNIL   R2..R2 = nil
  0024  EQ        if R1 eq K3(nil)   -> -129763
  0025  JMP       (jump)   -> 38
  0026  GETTABLE  R3 = R0[K9('m_activityDefinition')]
  0027  GETTABLE  R3 = R3[K10('BookWindowPrefabName')]
  0028  EQ        if R1 eq K3(nil)   -> -129247
  0029  JMP       (jump)   -> 38
  0030  GETTABUP  R3 = _ENV[K11('GM')]
  0031  GETTABLE  R3 = R3[K12('UIManager')]
  0032  SELF      R4 = R3[K13('OpenView')] (self)
  0033  GETTABLE  R5 = R0[K9('m_activityDefinition')]
  0034  GETTABLE  R5 = R5[K10('BookWindowPrefabName')]
  0035  GETTABLE  R6 = R0[K14('m_activityType')]
  0036  MOVE      R7 = R0
  0037  CALL      R3 = call(R3, 0 args, 4 rets)
  0038  RETURN    return R0..R-1
