# AlbumActivity_View_AlbumUpgradeConfirmWindow_1152.luac
; fn @AlbumUpgradeConfirmWindow.lua  line 0-0 np=0 va=1 ms=3 code=16 consts=8 upvals=1 protos=2
;   K[0]='AlbumUpgradeConfirmWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]=0.85
;   K[4]='AlbumActivityBaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='OnUpgradeClicked'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('windowMaskAlpha')] = K3(0.85)
0003  GETTABUP  R2 = _ENV[K4('AlbumActivityBaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('AlbumUpgradeConfirmWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('AlbumUpgradeConfirmWindow')]
0007  GETTABUP  R1 = _ENV[K0('AlbumUpgradeConfirmWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('AlbumUpgradeConfirmWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('AlbumUpgradeConfirmWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('OnUpgradeClicked')] = R1
0015  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 10-25 np=3 va=0 ms=13 code=58 consts=26 upvals=1 protos=0
  ;   K[0]='AlbumActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_parentWnd'
  ;   K[3]='m_rewards'
  ;   K[4]=1
  ;   K[5]='m_rewardItemSimpleLuaTable'
  ;   K[6]='m_model'
  ;   K[7]='GetAlbumConfig'
  ;   K[8]='upgradeReward'
  ;   K[9]='ipairs'
  ;   K[10]=nil
  ;   K[11]='Object'
  ;   K[12]='Instantiate'
  ;   K[13]='gameObject'
  ;   K[14]='transform'
  ;   K[15]='parent'
  ;   K[16]='GetLuaTable'
  ;   K[17]='SetAmountText'
  ;   K[18]='X'
  ;   K[19]='PROPERTY_COUNT'
  ;   K[20]='LogWindowAction'
  ;   K[21]='EBIType'
  ;   K[22]='UIActionType'
  ;   K[23]='Open'
  ;   K[24]='EBIReferType'
  ;   K[25]='UserClick'
  ;   upvals: _ENV
  ;   locals: self(0-58), activityType(0-58), parentWnd(0-58), rewards(15-58), (for generator)(18-50), (for state)(18-50), (for control)(18-50), i(19-48), v(19-48)
  0000  GETTABUP  R3 = _ENV[K0('AlbumActivityBaseWindow')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 0 args, 2 rets)
  0005  SETTABLE  R0[K2('m_parentWnd')] = R2
  0006  NEWTABLE  R3 = {} (0 items)
  0007  SETTABLE  R0[K3('m_rewards')] = R3
  0008  GETTABLE  R3 = R0[K3('m_rewards')]
  0009  GETTABLE  R4 = R0[K5('m_rewardItemSimpleLuaTable')]
  0010  SETTABLE  R3[K4(1)] = R4
  0011  GETTABLE  R3 = R0[K6('m_model')]
  0012  SELF      R4 = R3[K7('GetAlbumConfig')] (self)
  0013  CALL      R3 = call(R3, 1 args, 1 rets)
  0014  GETTABLE  R3 = R3[K8('upgradeReward')]
  0015  GETTABUP  R4 = _ENV[K9('ipairs')]
  0016  MOVE      R5 = R0
  0017  CALL      R4 = call(R4, 3 args, 1 rets)
  0018  JMP       (jump)   -> 48
  0019  GETTABLE  R9 = R0[K3('m_rewards')]
  0020  GETTABLE  R9 = R9[R7]
  0021  EQ        if R0 eq K10(nil)   -> -126175
  0022  JMP       (jump)   -> 35
  0023  GETTABLE  R9 = R0[K3('m_rewards')]
  0024  GETTABUP  R10 = _ENV[K11('Object')]
  0025  GETTABLE  R10 = R10[K12('Instantiate')]
  0026  GETTABLE  R11 = R0[K5('m_rewardItemSimpleLuaTable')]
  0027  GETTABLE  R11 = R11[K13('gameObject')]
  0028  GETTABLE  R12 = R0[K5('m_rewardItemSimpleLuaTable')]
  0029  GETTABLE  R12 = R12[K14('transform')]
  0030  GETTABLE  R12 = R12[K15('parent')]
  0031  CALL      R10 = call(R10, 1 args, 2 rets)
  0032  SELF      R11 = R10[K16('GetLuaTable')] (self)
  0033  CALL      R10 = call(R10, 1 args, 1 rets)
  0034  SETTABLE  R9[R7] = R10
  0035  GETTABLE  R9 = R0[K3('m_rewards')]
  0036  GETTABLE  R9 = R9[R7]
  0037  SELF      R10 = R9[K1('Init')] (self)
  0038  MOVE      R11 = R0
  0039  CALL      R9 = call(R9, 0 args, 2 rets)
  0040  GETTABLE  R9 = R0[K3('m_rewards')]
  0041  GETTABLE  R9 = R9[R7]
  0042  SELF      R10 = R9[K17('SetAmountText')] (self)
  0043  LOADK     R11 = K18 'X'
  0044  GETTABUP  R12 = _ENV[K19('PROPERTY_COUNT')]
  0045  GETTABLE  R12 = R8[R12]
  0046  CONCAT    R11 = concat(R11..R11)
  0047  CALL      R9 = call(R9, 0 args, 2 rets)
  0048  TFORCALL  tforcall R4
  0049  TFORLOOP  tforloop R6(sBx=-31)   -> 19
  0050  SELF      R5 = R0[K20('LogWindowAction')] (self)
  0051  GETTABUP  R6 = _ENV[K21('EBIType')]
  0052  GETTABLE  R6 = R6[K22('UIActionType')]
  0053  GETTABLE  R6 = R6[K23('Open')]
  0054  GETTABUP  R7 = _ENV[K24('EBIReferType')]
  0055  GETTABLE  R7 = R7[K25('UserClick')]
  0056  CALL      R4 = call(R4, 0 args, 3 rets)
  0057  RETURN    return R0..R-1
; ---------- proto1 [OnUpgradeClicked] ----------
  ; fn ?  line 27-50 np=1 va=0 ms=8 code=30 consts=16 upvals=1 protos=3
  ;   K[0]='Close'
  ;   K[1]='GM'
  ;   K[2]='BIManager'
  ;   K[3]='LogAction'
  ;   K[4]='EBIType'
  ;   K[5]='AlbumClickUpgrade'
  ;   K[6]='m_model'
  ;   K[7]='GetId'
  ;   K[8]='m_model'
  ;   K[9]='CanExchangeStarReward'
  ;   K[10]='GM'
  ;   K[11]='UIManager'
  ;   K[12]='OpenView'
  ;   K[13]='UIPrefabConfigName'
  ;   K[14]='AlbumUpgradeTipWindow'
  ;   K[15]='m_activityType'
  ;   upvals: _ENV
  ;   locals: self(0-30), upgradeFun(12-30)
  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('BIManager')]
  0004  SELF      R2 = R1[K3('LogAction')] (self)
  0005  GETTABUP  R3 = _ENV[K4('EBIType')]
  0006  GETTABLE  R3 = R3[K5('AlbumClickUpgrade')]
  0007  GETTABLE  R4 = R0[K6('m_model')]
  0008  SELF      R5 = R4[K7('GetId')] (self)
  0009  CALL      R4 = call(R4, -1 args, 1 rets)
  0010  CALL      R1 = call(R1, 0 args, -1 rets)
  0011  CLOSURE   R1 = closure proto0
  0012  GETTABLE  R2 = R0[K8('m_model')]
  0013  SELF      R3 = R2[K9('CanExchangeStarReward')] (self)
  0014  CALL      R2 = call(R2, 1 args, 1 rets)
  0015  TEST      if not R2 then   -> -131055
  0016  JMP       (jump)   -> 27
  0017  GETTABUP  R2 = _ENV[K10('GM')]
  0018  GETTABLE  R2 = R2[K11('UIManager')]
  0019  SELF      R3 = R2[K12('OpenView')] (self)
  0020  GETTABUP  R4 = _ENV[K13('UIPrefabConfigName')]
  0021  GETTABLE  R4 = R4[K14('AlbumUpgradeTipWindow')]
  0022  GETTABLE  R5 = R0[K15('m_activityType')]
  0023  CLOSURE   R6 = closure proto1
  0024  CLOSURE   R7 = closure proto2
  0025  CALL      R2 = call(R2, 0 args, 5 rets)
  0026  JMP       (jump)   -> 29
  0027  MOVE      R2 = R0
  0028  CALL      R2 = call(R2, 0 args, 0 rets)
  0029  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 30-33 np=0 va=0 ms=5 code=12 consts=9 upvals=2 protos=0
    ;   K[0]='m_model'
    ;   K[1]='UpgradeAlbum'
    ;   K[2]='GM'
    ;   K[3]='UIManager'
    ;   K[4]='OpenView'
    ;   K[5]='UIPrefabConfigName'
    ;   K[6]='AlbumUpgradeRewardWindow'
    ;   K[7]='m_activityType'
    ;   K[8]='m_parentWnd'
    ;   upvals: self, _ENV
    0000  GETTABUP  R0 = self[K0('m_model')]
    0001  SELF      R1 = R0[K1('UpgradeAlbum')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  GETTABUP  R0 = _ENV[K2('GM')]
    0004  GETTABLE  R0 = R0[K3('UIManager')]
    0005  SELF      R1 = R0[K4('OpenView')] (self)
    0006  GETTABUP  R2 = _ENV[K5('UIPrefabConfigName')]
    0007  GETTABLE  R2 = R2[K6('AlbumUpgradeRewardWindow')]
    0008  GETTABUP  R3 = self[K7('m_activityType')]
    0009  GETTABUP  R4 = self[K8('m_parentWnd')]
    0010  CALL      R0 = call(R0, 0 args, 4 rets)
    0011  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 38-41 np=1 va=0 ms=3 code=5 consts=1 upvals=1 protos=0
    ;   K[0]='Close'
    ;   upvals: upgradeFun
    ;   locals: window(0-5)
    0000  SELF      R2 = R0[K0('Close')] (self)
    0001  CALL      R1 = call(R1, 0 args, 1 rets)
    0002  GETUPVAL  R1 = upgradeFun
    0003  CALL      R1 = call(R1, 0 args, 0 rets)
    0004  RETURN    return R0..R-1
  ; ---------- proto2 [] ----------
    ; fn ?  line 42-45 np=1 va=0 ms=5 code=10 consts=7 upvals=2 protos=0
    ;   K[0]='Close'
    ;   K[1]='GM'
    ;   K[2]='UIManager'
    ;   K[3]='OpenView'
    ;   K[4]='UIPrefabConfigName'
    ;   K[5]='AlbumRecyleWindow'
    ;   K[6]='m_activityType'
    ;   upvals: _ENV, self
    ;   locals: window(0-10)
    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('AlbumRecyleWindow')]
    0007  GETTABUP  R4 = self[K6('m_activityType')]
    0008  CALL      R1 = call(R1, 0 args, 3 rets)
    0009  RETURN    return R0..R-1
