# AlbumActivity_View_AlbumCardInnerRewardItem_1165.luac
; fn @AlbumCardInnerRewardItem.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=6 upvals=1 protos=2
;   K[0]='AlbumCardInnerRewardItem'
;   K[1]='setmetatable'
;   K[2]='BaseInnerRewardItem'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='_UpdateIcon'
;   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('AlbumCardInnerRewardItem')] = R0
0005  GETTABUP  R0 = _ENV[K0('AlbumCardInnerRewardItem')]
0006  GETTABUP  R1 = _ENV[K0('AlbumCardInnerRewardItem')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('AlbumCardInnerRewardItem')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('AlbumCardInnerRewardItem')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('_UpdateIcon')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-29 np=1 va=1 ms=10 code=40 consts=21 upvals=1 protos=1
  ;   K[0]='BaseInnerRewardItem'
  ;   K[1]='Init'
  ;   K[2]='m_icon'
  ;   K[3]='gameObject'
  ;   K[4]='SetActive'
  ;   K[5]='AlbumActivityModel'
  ;   K[6]='GetActiveModel'
  ;   K[7]=nil
  ;   K[8]='GetCardIdByPropertyType'
  ;   K[9]='m_reward'
  ;   K[10]='PROPERTY_TYPE'
  ;   K[11]='GM'
  ;   K[12]='DataResource'
  ;   K[13]='UIPrefabConfig'
  ;   K[14]='GetConfig'
  ;   K[15]='UIPrefabConfigName'
  ;   K[16]='AlbumActivityCard'
  ;   K[17]='ResourceLoader'
  ;   K[18]='LoadPrefab'
  ;   K[19]='transform'
  ;   K[20]='V3Zero'
  ;   upvals: _ENV
  ;   locals: self(0-40), albumModel(13-40), cardId(21-40), config(31-40)
  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  GETTABLE  R1 = R0[K2('m_icon')]
  0006  GETTABLE  R1 = R1[K3('gameObject')]
  0007  SELF      R2 = R1[K4('SetActive')] (self)
  0008  LOADBOOL  R3 = false
  0009  CALL      R1 = call(R1, 0 args, 2 rets)
  0010  GETTABUP  R1 = _ENV[K5('AlbumActivityModel')]
  0011  GETTABLE  R1 = R1[K6('GetActiveModel')]
  0012  CALL      R1 = call(R1, 1 args, 0 rets)
  0013  EQ        if R0 eq K7(nil)   -> -130282
  0014  JMP       (jump)   -> 16
  0015  RETURN    return R0..R-1
  0016  SELF      R3 = R1[K8('GetCardIdByPropertyType')] (self)
  0017  GETTABLE  R4 = R0[K9('m_reward')]
  0018  GETTABUP  R5 = _ENV[K10('PROPERTY_TYPE')]
  0019  GETTABLE  R4 = R4[R5]
  0020  CALL      R2 = call(R2, 1 args, 2 rets)
  0021  EQ        if R0 eq K7(nil)   -> -129762
  0022  JMP       (jump)   -> 24
  0023  RETURN    return R0..R-1
  0024  GETTABUP  R3 = _ENV[K11('GM')]
  0025  GETTABLE  R3 = R3[K12('DataResource')]
  0026  GETTABLE  R3 = R3[K13('UIPrefabConfig')]
  0027  SELF      R4 = R3[K14('GetConfig')] (self)
  0028  GETTABUP  R5 = _ENV[K15('UIPrefabConfigName')]
  0029  GETTABLE  R5 = R5[K16('AlbumActivityCard')]
  0030  CALL      R3 = call(R3, 1 args, 2 rets)
  0031  GETTABUP  R4 = _ENV[K11('GM')]
  0032  GETTABLE  R4 = R4[K17('ResourceLoader')]
  0033  SELF      R5 = R4[K18('LoadPrefab')] (self)
  0034  MOVE      R6 = R0
  0035  GETTABLE  R7 = R0[K19('transform')]
  0036  GETTABUP  R8 = _ENV[K20('V3Zero')]
  0037  CLOSURE   R9 = closure proto0
  0038  CALL      R4 = call(R4, 0 args, 5 rets)
  0039  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 18-28 np=1 va=0 ms=11 code=31 consts=11 upvals=3 protos=0
    ;   K[0]='UIUtil'
    ;   K[1]='IsEmptyComponent'
    ;   K[2]='GetLuaTable'
    ;   K[3]='Init'
    ;   K[4]=1
    ;   K[5]='SetLocalScale'
    ;   K[6]='transform'
    ;   K[7]=0.2
    ;   K[8]='SetAnchoredPosition'
    ;   K[9]=0
    ;   K[10]=-10
    ;   upvals: _ENV, cardId, albumModel
    ;   locals: go(0-31), tbCard(9-31)
    0000  GETTABUP  R1 = _ENV[K0('UIUtil')]
    0001  GETTABLE  R1 = R1[K1('IsEmptyComponent')]
    0002  MOVE      R2 = R0
    0003  CALL      R1 = call(R1, 1 args, 1 rets)
    0004  TEST      if not R1 then   -> -131066
    0005  JMP       (jump)   -> 7
    0006  RETURN    return R0..R-1
    0007  SELF      R2 = R0[K2('GetLuaTable')] (self)
    0008  CALL      R1 = call(R1, 1 args, 1 rets)
    0009  SELF      R3 = R1[K3('Init')] (self)
    0010  GETUPVAL  R4 = _ENV
    0011  GETUPVAL  R5 = _ENV
    0012  LOADBOOL  R6 = false
    0013  LOADBOOL  R7 = false
    0014  LOADK     R8 = K4 1
    0015  LOADBOOL  R9 = true
    0016  LOADBOOL  R10 = false
    0017  CALL      R2 = call(R2, 0 args, 8 rets)
    0018  GETTABUP  R2 = _ENV[K0('UIUtil')]
    0019  GETTABLE  R2 = R2[K5('SetLocalScale')]
    0020  GETTABLE  R3 = R0[K6('transform')]
    0021  LOADK     R4 = K7 0.2
    0022  LOADK     R5 = K7 0.2
    0023  CALL      R2 = call(R2, 0 args, 3 rets)
    0024  GETTABUP  R2 = _ENV[K0('UIUtil')]
    0025  GETTABLE  R2 = R2[K8('SetAnchoredPosition')]
    0026  GETTABLE  R3 = R0[K6('transform')]
    0027  LOADK     R4 = K9 0
    0028  LOADK     R5 = K10 -10
    0029  CALL      R2 = call(R2, 0 args, 3 rets)
    0030  RETURN    return R0..R-1
; ---------- proto1 [_UpdateIcon] ----------
  ; fn ?  line 31-34 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='_OnUpdateIconFinished'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('_OnUpdateIconFinished')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
