# UI_SubView_Reward_BaseInnerRewardItem_337.luac
; fn @BaseInnerRewardItem.lua  line 0-0 np=0 va=1 ms=2 code=30 consts=10 upvals=1 protos=8
;   K[0]='BaseInnerRewardItem'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='GetIcon'
;   K[4]='GetIconRectTrans'
;   K[5]='_UpdateIcon'
;   K[6]='_OnUpdateIconFinished'
;   K[7]='_GetTargetAspectScale'
;   K[8]='SetLoading'
;   K[9]='OnLoadingClicked'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('BaseInnerRewardItem')] = R0
0002  GETTABUP  R0 = _ENV[K0('BaseInnerRewardItem')]
0003  GETTABUP  R1 = _ENV[K0('BaseInnerRewardItem')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('BaseInnerRewardItem')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('BaseInnerRewardItem')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('GetIcon')] = R1
0011  GETTABUP  R0 = _ENV[K0('BaseInnerRewardItem')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('GetIconRectTrans')] = R1
0014  GETTABUP  R0 = _ENV[K0('BaseInnerRewardItem')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('_UpdateIcon')] = R1
0017  GETTABUP  R0 = _ENV[K0('BaseInnerRewardItem')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('_OnUpdateIconFinished')] = R1
0020  GETTABUP  R0 = _ENV[K0('BaseInnerRewardItem')]
0021  CLOSURE   R1 = closure proto5
0022  SETTABLE  R0[K7('_GetTargetAspectScale')] = R1
0023  GETTABUP  R0 = _ENV[K0('BaseInnerRewardItem')]
0024  CLOSURE   R1 = closure proto6
0025  SETTABLE  R0[K8('SetLoading')] = R1
0026  GETTABUP  R0 = _ENV[K0('BaseInnerRewardItem')]
0027  CLOSURE   R1 = closure proto7
0028  SETTABLE  R0[K9('OnLoadingClicked')] = R1
0029  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-14 np=5 va=0 ms=8 code=12 consts=8 upvals=1 protos=0
  ;   K[0]='m_reward'
  ;   K[1]='m_initScale'
  ;   K[2]='m_preserveAspectMsg'
  ;   K[3]='m_rewardItem'
  ;   K[4]='UIUtil'
  ;   K[5]='SetActive'
  ;   K[6]='m_loadingGo'
  ;   K[7]='_UpdateIcon'
  ;   upvals: _ENV
  ;   locals: self(0-12), reward(0-12), scale(0-12), preserveAspectMsg(0-12), rewardItem(0-12)
  0000  SETTABLE  R0[K0('m_reward')] = R1
  0001  SETTABLE  R0[K1('m_initScale')] = R2
  0002  SETTABLE  R0[K2('m_preserveAspectMsg')] = R3
  0003  SETTABLE  R0[K3('m_rewardItem')] = R4
  0004  GETTABUP  R5 = _ENV[K4('UIUtil')]
  0005  GETTABLE  R5 = R5[K5('SetActive')]
  0006  GETTABLE  R6 = R0[K6('m_loadingGo')]
  0007  LOADBOOL  R7 = false
  0008  CALL      R5 = call(R5, 0 args, 2 rets)
  0009  SELF      R6 = R0[K7('_UpdateIcon')] (self)
  0010  CALL      R5 = call(R5, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto1 [GetIcon] ----------
  ; fn ?  line 16-18 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_icon'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_icon')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto2 [GetIconRectTrans] ----------
  ; fn ?  line 20-22 np=1 va=0 ms=2 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_icon'
  ;   K[1]='transform'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_icon')]
  0001  GETTABLE  R1 = R1[K1('transform')]
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto3 [_UpdateIcon] ----------
  ; fn ?  line 24-34 np=1 va=0 ms=8 code=14 consts=7 upvals=1 protos=1
  ;   K[0]='RewardApi'
  ;   K[1]='GetRewardIconNameAndIsSetNativeSize'
  ;   K[2]='m_reward'
  ;   K[3]='PROPERTY_TYPE'
  ;   K[4]='SpriteUtil'
  ;   K[5]='SetImage'
  ;   K[6]='m_icon'
  ;   upvals: _ENV
  ;   locals: self(0-14), image(6-14), bSetNativeSize(6-14)
  0000  GETTABUP  R1 = _ENV[K0('RewardApi')]
  0001  GETTABLE  R1 = R1[K1('GetRewardIconNameAndIsSetNativeSize')]
  0002  GETTABLE  R2 = R0[K2('m_reward')]
  0003  GETTABUP  R3 = _ENV[K3('PROPERTY_TYPE')]
  0004  GETTABLE  R2 = R2[R3]
  0005  CALL      R1 = call(R1, 2 args, 1 rets)
  0006  GETTABUP  R3 = _ENV[K4('SpriteUtil')]
  0007  GETTABLE  R3 = R3[K5('SetImage')]
  0008  GETTABLE  R4 = R0[K6('m_icon')]
  0009  MOVE      R5 = R0
  0010  MOVE      R6 = R0
  0011  CLOSURE   R7 = closure proto0
  0012  CALL      R3 = call(R3, 0 args, 4 rets)
  0013  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 27-33 np=0 va=0 ms=2 code=11 consts=5 upvals=1 protos=0
    ;   K[0]='m_icon'
    ;   K[1]='IsNull'
    ;   K[2]='enabled'
    ;   K[3]=true
    ;   K[4]='_OnUpdateIconFinished'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_icon')]
    0001  SELF      R1 = R0[K1('IsNull')] (self)
    0002  CALL      R0 = call(R0, 1 args, 1 rets)
    0003  TEST      if not R0 then   -> -131066
    0004  JMP       (jump)   -> 7
    0005  GETTABUP  R0 = self[K0('m_icon')]
    0006  SETTABLE  R0[K2('enabled')] = K3(true)
    0007  GETUPVAL  R0 = self
    0008  SELF      R1 = R0[K4('_OnUpdateIconFinished')] (self)
    0009  CALL      R0 = call(R0, 0 args, 1 rets)
    0010  RETURN    return R0..R-1
; ---------- proto4 [_OnUpdateIconFinished] ----------
  ; fn ?  line 36-44 np=1 va=0 ms=6 code=28 consts=12 upvals=1 protos=0
  ;   K[0]='_GetTargetAspectScale'
  ;   K[1]='m_initScale'
  ;   K[2]='UIUtil'
  ;   K[3]='SetLocalScale'
  ;   K[4]='transform'
  ;   K[5]='sizeDelta'
  ;   K[6]='m_icon'
  ;   K[7]='m_layoutElement'
  ;   K[8]='preferredWidth'
  ;   K[9]='x'
  ;   K[10]='preferredHeight'
  ;   K[11]='y'
  ;   upvals: _ENV
  ;   locals: self(0-28), targetScale(4-28)
  0000  SELF      R2 = R0[K0('_GetTargetAspectScale')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  GETTABLE  R2 = R0[K1('m_initScale')]
  0003  MUL       R1 = R2 mul R1
  0004  GETTABUP  R2 = _ENV[K2('UIUtil')]
  0005  GETTABLE  R2 = R2[K3('SetLocalScale')]
  0006  GETTABLE  R3 = R0[K4('transform')]
  0007  MOVE      R4 = R0
  0008  MOVE      R5 = R0
  0009  CALL      R2 = call(R2, 0 args, 3 rets)
  0010  GETTABLE  R2 = R0[K4('transform')]
  0011  GETTABLE  R3 = R0[K6('m_icon')]
  0012  GETTABLE  R3 = R3[K4('transform')]
  0013  GETTABLE  R3 = R3[K5('sizeDelta')]
  0014  SETTABLE  R2[K5('sizeDelta')] = R3
  0015  GETTABLE  R2 = R0[K7('m_layoutElement')]
  0016  GETTABLE  R3 = R0[K6('m_icon')]
  0017  GETTABLE  R3 = R3[K4('transform')]
  0018  GETTABLE  R3 = R3[K5('sizeDelta')]
  0019  GETTABLE  R3 = R3[K9('x')]
  0020  SETTABLE  R2[K8('preferredWidth')] = R3
  0021  GETTABLE  R2 = R0[K7('m_layoutElement')]
  0022  GETTABLE  R3 = R0[K6('m_icon')]
  0023  GETTABLE  R3 = R3[K4('transform')]
  0024  GETTABLE  R3 = R3[K5('sizeDelta')]
  0025  GETTABLE  R3 = R3[K11('y')]
  0026  SETTABLE  R2[K10('preferredHeight')] = R3
  0027  RETURN    return R0..R-1
; ---------- proto5 [_GetTargetAspectScale] ----------
  ; fn ?  line 46-59 np=1 va=0 ms=7 code=32 consts=17 upvals=1 protos=0
  ;   K[0]='m_preserveAspectMsg'
  ;   K[1]=nil
  ;   K[2]=1
  ;   K[3]='UIUtil'
  ;   K[4]='IsEmptyComponent'
  ;   K[5]='m_icon'
  ;   K[6]='sprite'
  ;   K[7]='transform'
  ;   K[8]='sizeDelta'
  ;   K[9]='rect'
  ;   K[10]='size'
  ;   K[11]='SpriteUtil'
  ;   K[12]='GetPreserveAspectScale'
  ;   K[13]='x'
  ;   K[14]='y'
  ;   K[15]='width'
  ;   K[16]='height'
  ;   upvals: _ENV
  ;   locals: self(0-32), rectSize(6-32)
  0000  GETTABLE  R1 = R0[K0('m_preserveAspectMsg')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 5
  0003  LOADK     R1 = K2 1
  0004  RETURN    return R1..R0
  0005  LOADNIL   R1..R1 = nil
  0006  GETTABUP  R2 = _ENV[K3('UIUtil')]
  0007  GETTABLE  R2 = R2[K4('IsEmptyComponent')]
  0008  GETTABLE  R3 = R0[K5('m_icon')]
  0009  GETTABLE  R3 = R3[K6('sprite')]
  0010  CALL      R2 = call(R2, 1 args, 1 rets)
  0011  TEST      if not R2 then   -> -131059
  0012  JMP       (jump)   -> 17
  0013  GETTABLE  R2 = R0[K5('m_icon')]
  0014  GETTABLE  R2 = R2[K7('transform')]
  0015  GETTABLE  R1 = R2[K8('sizeDelta')]
  0016  JMP       (jump)   -> 21
  0017  GETTABLE  R2 = R0[K5('m_icon')]
  0018  GETTABLE  R2 = R2[K6('sprite')]
  0019  GETTABLE  R2 = R2[K9('rect')]
  0020  GETTABLE  R1 = R2[K10('size')]
  0021  GETTABUP  R2 = _ENV[K11('SpriteUtil')]
  0022  GETTABLE  R2 = R2[K12('GetPreserveAspectScale')]
  0023  GETTABLE  R3 = R1[K13('x')]
  0024  GETTABLE  R4 = R1[K14('y')]
  0025  GETTABLE  R5 = R0[K0('m_preserveAspectMsg')]
  0026  GETTABLE  R5 = R5[K15('width')]
  0027  GETTABLE  R6 = R0[K0('m_preserveAspectMsg')]
  0028  GETTABLE  R6 = R6[K16('height')]
  0029  TAILCALL  tailcall(R2, 0)
  0030  RETURN    return R2..R1
  0031  RETURN    return R0..R-1
; ---------- proto6 [SetLoading] ----------
  ; fn ?  line 62-74 np=2 va=0 ms=5 code=21 consts=7 upvals=1 protos=0
  ;   K[0]='m_bLoading'
  ;   K[1]='m_loadingGo'
  ;   K[2]=nil
  ;   K[3]='UIUtil'
  ;   K[4]='SetActive'
  ;   K[5]='m_rewardItem'
  ;   K[6]='SetLoading'
  ;   upvals: _ENV
  ;   locals: self(0-21), bLoading(0-21)
  0000  GETTABLE  R2 = R0[K0('m_bLoading')]
  0001  EQ        if R0 eq R1   -> -130044
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  SETTABLE  R0[K0('m_bLoading')] = R1
  0005  GETTABLE  R2 = R0[K1('m_loadingGo')]
  0006  EQ        if R1 eq K2(nil)   -> -129782
  0007  JMP       (jump)   -> 13
  0008  GETTABUP  R2 = _ENV[K3('UIUtil')]
  0009  GETTABLE  R2 = R2[K4('SetActive')]
  0010  GETTABLE  R3 = R0[K1('m_loadingGo')]
  0011  MOVE      R4 = R0
  0012  CALL      R2 = call(R2, 0 args, 2 rets)
  0013  GETTABLE  R2 = R0[K5('m_rewardItem')]
  0014  EQ        if R1 eq K2(nil)   -> -129774
  0015  JMP       (jump)   -> 20
  0016  GETTABLE  R2 = R0[K5('m_rewardItem')]
  0017  SELF      R3 = R2[K6('SetLoading')] (self)
  0018  MOVE      R4 = R0
  0019  CALL      R2 = call(R2, 0 args, 2 rets)
  0020  RETURN    return R0..R-1
; ---------- proto7 [OnLoadingClicked] ----------
  ; fn ?  line 76-78 np=1 va=0 ms=4 code=6 consts=4 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='ShowPromptWithKey'
  ;   K[3]='pop_hint_res_download'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('ShowPromptWithKey')] (self)
  0003  LOADK     R3 = K3 'pop_hint_res_download'
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
