# UI_Window_Setting_BadgeInnerRewardItem_570.luac
; fn @BadgeInnerRewardItem.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=6 upvals=1 protos=2
;   K[0]='BadgeInnerRewardItem'
;   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('BadgeInnerRewardItem')] = R0
0005  GETTABUP  R0 = _ENV[K0('BadgeInnerRewardItem')]
0006  GETTABUP  R1 = _ENV[K0('BadgeInnerRewardItem')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('BadgeInnerRewardItem')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('BadgeInnerRewardItem')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('_UpdateIcon')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 5-19 np=1 va=1 ms=11 code=34 consts=17 upvals=1 protos=1
  ;   K[0]='BaseInnerRewardItem'
  ;   K[1]='Init'
  ;   K[2]='m_icon'
  ;   K[3]='gameObject'
  ;   K[4]='SetActive'
  ;   K[5]='SetLoading'
  ;   K[6]='m_reward'
  ;   K[7]='PROPERTY_TYPE'
  ;   K[8]='GM'
  ;   K[9]='DataResource'
  ;   K[10]='UIPrefabConfig'
  ;   K[11]='GetConfig'
  ;   K[12]='UIPrefabConfigName'
  ;   K[13]='ResourceLoader'
  ;   K[14]='LoadPrefab'
  ;   K[15]='transform'
  ;   K[16]='V3Zero'
  ;   upvals: _ENV
  ;   locals: self(0-34), badgeId(16-34), config(23-34)
  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  SELF      R2 = R0[K5('SetLoading')] (self)
  0011  LOADBOOL  R3 = true
  0012  CALL      R1 = call(R1, 0 args, 2 rets)
  0013  GETTABLE  R1 = R0[K6('m_reward')]
  0014  GETTABUP  R2 = _ENV[K7('PROPERTY_TYPE')]
  0015  GETTABLE  R1 = R1[R2]
  0016  GETTABUP  R2 = _ENV[K8('GM')]
  0017  GETTABLE  R2 = R2[K9('DataResource')]
  0018  GETTABLE  R2 = R2[K10('UIPrefabConfig')]
  0019  SELF      R3 = R2[K11('GetConfig')] (self)
  0020  GETTABUP  R4 = _ENV[K12('UIPrefabConfigName')]
  0021  GETTABLE  R4 = R4[R1]
  0022  CALL      R2 = call(R2, 1 args, 2 rets)
  0023  GETTABUP  R3 = _ENV[K8('GM')]
  0024  GETTABLE  R3 = R3[K13('ResourceLoader')]
  0025  SELF      R4 = R3[K14('LoadPrefab')] (self)
  0026  MOVE      R5 = R0
  0027  GETTABLE  R6 = R0[K15('transform')]
  0028  GETTABUP  R7 = _ENV[K16('V3Zero')]
  0029  CLOSURE   R8 = closure proto0
  0030  LOADNIL   R9..R9 = nil
  0031  LOADBOOL  R10 = true
  0032  CALL      R3 = call(R3, 0 args, 7 rets)
  0033  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 12-18 np=1 va=0 ms=5 code=12 consts=3 upvals=1 protos=0
    ;   K[0]='SetLoading'
    ;   K[1]='GetLuaTable'
    ;   K[2]='Init'
    ;   upvals: self
    ;   locals: go(0-12), badgeView(6-12)
    0000  GETUPVAL  R1 = self
    0001  SELF      R2 = R1[K0('SetLoading')] (self)
    0002  LOADBOOL  R3 = false
    0003  CALL      R1 = call(R1, 0 args, 2 rets)
    0004  SELF      R2 = R0[K1('GetLuaTable')] (self)
    0005  CALL      R1 = call(R1, 1 args, 1 rets)
    0006  TEST      if not R1 then   -> -131064
    0007  JMP       (jump)   -> 11
    0008  SELF      R3 = R1[K2('Init')] (self)
    0009  LOADBOOL  R4 = true
    0010  CALL      R2 = call(R2, 0 args, 2 rets)
    0011  RETURN    return R0..R-1
; ---------- proto1 [_UpdateIcon] ----------
  ; fn ?  line 21-31 np=1 va=0 ms=8 code=32 consts=16 upvals=1 protos=0
  ;   K[0]='m_reward'
  ;   K[1]='PROPERTY_TYPE'
  ;   K[2]='GM'
  ;   K[3]='UserProfileModel'
  ;   K[4]='GetBadgeViewConfig'
  ;   K[5]=nil
  ;   K[6]='size'
  ;   K[7]='UIUtil'
  ;   K[8]='SetSizeDelta'
  ;   K[9]='m_icon'
  ;   K[10]='transform'
  ;   K[11]=1
  ;   K[12]=2
  ;   K[13]=147
  ;   K[14]=176
  ;   K[15]='_OnUpdateIconFinished'
  ;   upvals: _ENV
  ;   locals: self(0-32), badgeId(3-32), viewConfig(8-32), size(14-21)
  0000  GETTABLE  R1 = R0[K0('m_reward')]
  0001  GETTABUP  R2 = _ENV[K1('PROPERTY_TYPE')]
  0002  GETTABLE  R1 = R1[R2]
  0003  GETTABUP  R2 = _ENV[K2('GM')]
  0004  GETTABLE  R2 = R2[K3('UserProfileModel')]
  0005  SELF      R3 = R2[K4('GetBadgeViewConfig')] (self)
  0006  MOVE      R4 = R0
  0007  CALL      R2 = call(R2, 1 args, 2 rets)
  0008  EQ        if R1 eq K5(nil)   -> -129777
  0009  JMP       (jump)   -> 22
  0010  GETTABLE  R3 = R2[K6('size')]
  0011  EQ        if R1 eq K5(nil)   -> -129262
  0012  JMP       (jump)   -> 22
  0013  GETTABLE  R3 = R2[K6('size')]
  0014  GETTABUP  R4 = _ENV[K7('UIUtil')]
  0015  GETTABLE  R4 = R4[K8('SetSizeDelta')]
  0016  GETTABLE  R5 = R0[K9('m_icon')]
  0017  GETTABLE  R5 = R5[K10('transform')]
  0018  GETTABLE  R6 = R3[K11(1)]
  0019  GETTABLE  R7 = R3[K12(2)]
  0020  CALL      R4 = call(R4, 0 args, 3 rets)
  0021  JMP       (jump)   -> 29
  0022  GETTABUP  R3 = _ENV[K7('UIUtil')]
  0023  GETTABLE  R3 = R3[K8('SetSizeDelta')]
  0024  GETTABLE  R4 = R0[K9('m_icon')]
  0025  GETTABLE  R4 = R4[K10('transform')]
  0026  LOADK     R5 = K13 147
  0027  LOADK     R6 = K14 176
  0028  CALL      R3 = call(R3, 0 args, 3 rets)
  0029  SELF      R4 = R0[K15('_OnUpdateIconFinished')] (self)
  0030  CALL      R3 = call(R3, 0 args, 1 rets)
  0031  RETURN    return R0..R-1
