# AlbumActivity_View_AlbumPackInnerRewardItem_1164.luac
; fn @AlbumPackInnerRewardItem.lua  line 0-0 np=0 va=1 ms=3 code=29 consts=10 upvals=1 protos=4
;   K[0]='AlbumPackInnerRewardItem'
;   K[1]='setmetatable'
;   K[2]='BaseInnerRewardItem'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='UpdatePackCardNum'
;   K[6]='LimitAlbumPackInnerRewardItem'
;   K[7]='BaseInnerRewardItem'
;   K[8]='Init'
;   K[9]='_OnUpdateIconFinished'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('BaseInnerRewardItem')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('AlbumPackInnerRewardItem')] = R0
0005  GETTABUP  R0 = _ENV[K0('AlbumPackInnerRewardItem')]
0006  GETTABUP  R1 = _ENV[K0('AlbumPackInnerRewardItem')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('AlbumPackInnerRewardItem')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('AlbumPackInnerRewardItem')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('UpdatePackCardNum')] = R1
0014  GETTABUP  R0 = _ENV[K1('setmetatable')]
0015  NEWTABLE  R1 = {} (0 items)
0016  GETTABUP  R2 = _ENV[K7('BaseInnerRewardItem')]
0017  CALL      R0 = call(R0, 1 args, 2 rets)
0018  SETTABUP  _ENV[K6('LimitAlbumPackInnerRewardItem')] = R0
0019  GETTABUP  R0 = _ENV[K6('LimitAlbumPackInnerRewardItem')]
0020  GETTABUP  R1 = _ENV[K6('LimitAlbumPackInnerRewardItem')]
0021  SETTABLE  R0[K3('__index')] = R1
0022  GETTABUP  R0 = _ENV[K6('LimitAlbumPackInnerRewardItem')]
0023  CLOSURE   R1 = closure proto2
0024  SETTABLE  R0[K8('Init')] = R1
0025  GETTABUP  R0 = _ENV[K6('LimitAlbumPackInnerRewardItem')]
0026  CLOSURE   R1 = closure proto3
0027  SETTABLE  R0[K9('_OnUpdateIconFinished')] = R1
0028  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 5-9 np=1 va=1 ms=4 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='BaseInnerRewardItem'
  ;   K[1]='Init'
  ;   K[2]='m_albumModel'
  ;   K[3]='AlbumActivityModel'
  ;   K[4]='GetActiveModel'
  ;   K[5]='UpdatePackCardNum'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('BaseInnerRewardItem')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  GETTABUP  R1 = _ENV[K3('AlbumActivityModel')]
  0006  GETTABLE  R1 = R1[K4('GetActiveModel')]
  0007  CALL      R1 = call(R1, 1 args, 0 rets)
  0008  SETTABLE  R0[K2('m_albumModel')] = R1
  0009  SELF      R2 = R0[K5('UpdatePackCardNum')] (self)
  0010  CALL      R1 = call(R1, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto1 [UpdatePackCardNum] ----------
  ; fn ?  line 11-21 np=1 va=0 ms=8 code=22 consts=12 upvals=1 protos=0
  ;   K[0]='m_albumModel'
  ;   K[1]=nil
  ;   K[2]='m_reward'
  ;   K[3]='PROPERTY_TYPE'
  ;   K[4]='GetCardTipInfo'
  ;   K[5]='m_numText'
  ;   K[6]='text'
  ;   K[7]='GM'
  ;   K[8]='GameTextModel'
  ;   K[9]='GetText'
  ;   K[10]='album_card_num'
  ;   K[11]='count'
  ;   upvals: _ENV
  ;   locals: self(0-22), rewardType(7-22), packInfo(11-22)
  0000  GETTABLE  R1 = R0[K0('m_albumModel')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  GETTABLE  R1 = R0[K2('m_reward')]
  0005  GETTABUP  R2 = _ENV[K3('PROPERTY_TYPE')]
  0006  GETTABLE  R1 = R1[R2]
  0007  GETTABLE  R2 = R0[K0('m_albumModel')]
  0008  SELF      R3 = R2[K4('GetCardTipInfo')] (self)
  0009  MOVE      R4 = R0
  0010  CALL      R2 = call(R2, 1 args, 2 rets)
  0011  EQ        if R1 eq K1(nil)   -> -129778
  0012  JMP       (jump)   -> 21
  0013  GETTABLE  R3 = R0[K5('m_numText')]
  0014  GETTABUP  R4 = _ENV[K7('GM')]
  0015  GETTABLE  R4 = R4[K8('GameTextModel')]
  0016  SELF      R5 = R4[K9('GetText')] (self)
  0017  LOADK     R6 = K10 'album_card_num'
  0018  GETTABLE  R7 = R2[K11('count')]
  0019  CALL      R4 = call(R4, 1 args, 3 rets)
  0020  SETTABLE  R3[K6('text')] = R4
  0021  RETURN    return R0..R-1
; ---------- proto2 [Init] ----------
  ; fn ?  line 27-33 np=1 va=1 ms=7 code=26 consts=15 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_effectRoot'
  ;   K[3]='gameObject'
  ;   K[4]='BaseInnerRewardItem'
  ;   K[5]='Init'
  ;   K[6]='GM'
  ;   K[7]='DataResource'
  ;   K[8]='UIPrefabConfig'
  ;   K[9]='GetConfig'
  ;   K[10]='UIPrefabConfigName'
  ;   K[11]='Effect_CardBackLight_Down'
  ;   K[12]='ResourceLoader'
  ;   K[13]='LoadPrefab'
  ;   K[14]='V3Zero'
  ;   upvals: _ENV
  ;   locals: self(0-26), config(18-26)
  0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R1 = R1[K1('SetActive')]
  0002  GETTABLE  R2 = R0[K2('m_effectRoot')]
  0003  GETTABLE  R2 = R2[K3('gameObject')]
  0004  LOADBOOL  R3 = false
  0005  CALL      R1 = call(R1, 0 args, 2 rets)
  0006  GETTABUP  R1 = _ENV[K4('BaseInnerRewardItem')]
  0007  GETTABLE  R1 = R1[K5('Init')]
  0008  MOVE      R2 = R0
  0009  VARARG    R3 = vararg(0)
  0010  CALL      R1 = call(R1, 0 args, -1 rets)
  0011  GETTABUP  R1 = _ENV[K6('GM')]
  0012  GETTABLE  R1 = R1[K7('DataResource')]
  0013  GETTABLE  R1 = R1[K8('UIPrefabConfig')]
  0014  SELF      R2 = R1[K9('GetConfig')] (self)
  0015  GETTABUP  R3 = _ENV[K10('UIPrefabConfigName')]
  0016  GETTABLE  R3 = R3[K11('Effect_CardBackLight_Down')]
  0017  CALL      R1 = call(R1, 1 args, 2 rets)
  0018  GETTABUP  R2 = _ENV[K6('GM')]
  0019  GETTABLE  R2 = R2[K12('ResourceLoader')]
  0020  SELF      R3 = R2[K13('LoadPrefab')] (self)
  0021  MOVE      R4 = R0
  0022  GETTABLE  R5 = R0[K2('m_effectRoot')]
  0023  GETTABUP  R6 = _ENV[K14('V3Zero')]
  0024  CALL      R2 = call(R2, 0 args, 4 rets)
  0025  RETURN    return R0..R-1
; ---------- proto3 [_OnUpdateIconFinished] ----------
  ; fn ?  line 35-38 np=1 va=1 ms=4 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='BaseInnerRewardItem'
  ;   K[1]='_OnUpdateIconFinished'
  ;   K[2]='UIUtil'
  ;   K[3]='SetActive'
  ;   K[4]='m_effectRoot'
  ;   K[5]='gameObject'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('BaseInnerRewardItem')]
  0001  GETTABLE  R1 = R1[K1('_OnUpdateIconFinished')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  GETTABUP  R1 = _ENV[K2('UIUtil')]
  0006  GETTABLE  R1 = R1[K3('SetActive')]
  0007  GETTABLE  R2 = R0[K4('m_effectRoot')]
  0008  GETTABLE  R2 = R2[K5('gameObject')]
  0009  LOADBOOL  R3 = true
  0010  CALL      R1 = call(R1, 0 args, 2 rets)
  0011  RETURN    return R0..R-1
