# BakeOut_View_BakeOutRewardNode_861.luac
; fn @BakeOutRewardNode.lua  line 0-0 np=0 va=1 ms=2 code=21 consts=7 upvals=1 protos=5
;   K[0]='BakeOutRewardNode'
;   K[1]='__index'
;   K[2]='Awake'
;   K[3]='OnDestroy'
;   K[4]='UpdateContent'
;   K[5]='_UpdateRewards'
;   K[6]='OnBoxClick'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('BakeOutRewardNode')] = R0
0002  GETTABUP  R0 = _ENV[K0('BakeOutRewardNode')]
0003  GETTABUP  R1 = _ENV[K0('BakeOutRewardNode')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('BakeOutRewardNode')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Awake')] = R1
0008  GETTABUP  R0 = _ENV[K0('BakeOutRewardNode')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnDestroy')] = R1
0011  GETTABUP  R0 = _ENV[K0('BakeOutRewardNode')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('UpdateContent')] = R1
0014  GETTABUP  R0 = _ENV[K0('BakeOutRewardNode')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('_UpdateRewards')] = R1
0017  GETTABUP  R0 = _ENV[K0('BakeOutRewardNode')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('OnBoxClick')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 5-7 np=1 va=0 ms=4 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='RewardApi'
  ;   K[1]='AddFilterRewardEventListener'
  ;   K[2]='_UpdateRewards'
  ;   upvals: _ENV
  ;   locals: self(0-6)
  0000  GETTABUP  R1 = _ENV[K0('RewardApi')]
  0001  GETTABLE  R1 = R1[K1('AddFilterRewardEventListener')]
  0002  MOVE      R2 = R0
  0003  GETTABLE  R3 = R0[K2('_UpdateRewards')]
  0004  CALL      R1 = call(R1, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 9-11 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto2 [UpdateContent] ----------
  ; fn ?  line 13-39 np=4 va=0 ms=9 code=52 consts=16 upvals=0 protos=0
  ;   K[0]='gameObject'
  ;   K[1]='activeSelf'
  ;   K[2]='m_rewards'
  ;   K[3]='m_rank'
  ;   K[4]='m_window'
  ;   K[5]=nil
  ;   K[6]=0
  ;   K[7]='SetActive'
  ;   K[8]=1
  ;   K[9]=3
  ;   K[10]='m_boxGo'
  ;   K[11]='m_rewardItem'
  ;   K[12]='m_boxImg'
  ;   K[13]='sprite'
  ;   K[14]='m_boxSprite'
  ;   K[15]='_UpdateRewards'
  ;   locals: self(0-52), rewards(0-52), rank(0-52), window(0-52), active(2-52), bShowBox(30-52)
  0000  GETTABLE  R4 = R0[K0('gameObject')]
  0001  GETTABLE  R4 = R4[K1('activeSelf')]
  0002  SETTABLE  R0[K2('m_rewards')] = R1
  0003  SETTABLE  R0[K3('m_rank')] = R2
  0004  SETTABLE  R0[K4('m_window')] = R3
  0005  EQ        if R1 eq K5(nil)   -> -130292
  0006  JMP       (jump)   -> 10
  0007  LEN       R5 = len R0
  0008  EQ        if R0 eq K6(0)   -> -128240
  0009  JMP       (jump)   -> 17
  0010  TEST      if not R4 then   -> -131060
  0011  JMP       (jump)   -> 16
  0012  GETTABLE  R5 = R0[K0('gameObject')]
  0013  SELF      R6 = R5[K7('SetActive')] (self)
  0014  LOADBOOL  R7 = false
  0015  CALL      R5 = call(R5, 0 args, 2 rets)
  0016  RETURN    return R0..R-1
  0017  TEST      if not R4 then   -> -131052
  0018  JMP       (jump)   -> 23
  0019  GETTABLE  R5 = R0[K0('gameObject')]
  0020  SELF      R6 = R5[K7('SetActive')] (self)
  0021  LOADBOOL  R7 = true
  0022  CALL      R5 = call(R5, 0 args, 2 rets)
  0023  LEN       R5 = len R0
  0024  LT        if R1 lt R5   -> 4127
  0025  JMP       (jump)   -> 29
  0026  LE        if R1 le K9(3)   -> -129755
  0027  JMP       (jump)   -> 29
  0028  LOADBOOL  R5 = false
  0029  LOADBOOL  R5 = true
  0030  GETTABLE  R6 = R0[K10('m_boxGo')]
  0031  SELF      R7 = R6[K7('SetActive')] (self)
  0032  MOVE      R8 = R0
  0033  CALL      R6 = call(R6, 0 args, 2 rets)
  0034  GETTABLE  R6 = R0[K11('m_rewardItem')]
  0035  GETTABLE  R6 = R6[K0('gameObject')]
  0036  SELF      R7 = R6[K7('SetActive')] (self)
  0037  NOT       R8 = not R0
  0038  CALL      R6 = call(R6, 0 args, 2 rets)
  0039  LE        if R0 le R2   -> 4139
  0040  JMP       (jump)   -> 49
  0041  LE        if R0 le K9(3)   -> -129740
  0042  JMP       (jump)   -> 49
  0043  GETTABLE  R6 = R0[K12('m_boxImg')]
  0044  LOADK     R7 = K14 'm_boxSprite'
  0045  MOVE      R8 = R0
  0046  CONCAT    R7 = concat(R7..R7)
  0047  GETTABLE  R7 = R0[R7]
  0048  SETTABLE  R6[K13('sprite')] = R7
  0049  SELF      R7 = R0[K15('_UpdateRewards')] (self)
  0050  CALL      R6 = call(R6, 0 args, 1 rets)
  0051  RETURN    return R0..R-1
; ---------- proto3 [_UpdateRewards] ----------
  ; fn ?  line 41-59 np=1 va=0 ms=8 code=44 consts=15 upvals=1 protos=0
  ;   K[0]='m_rewards'
  ;   K[1]='m_rank'
  ;   K[2]=nil
  ;   K[3]=1
  ;   K[4]=3
  ;   K[5]='RewardApi'
  ;   K[6]='FilterRewards'
  ;   K[7]='ERewardScene'
  ;   K[8]='Other'
  ;   K[9]='Table'
  ;   K[10]='IsEmpty'
  ;   K[11]='m_rewardItem'
  ;   K[12]='gameObject'
  ;   K[13]='SetActive'
  ;   K[14]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-44), rewards(1-44), rank(2-44), bShowBox(14-44), arrRewards(22-43)
  0000  GETTABLE  R1 = R0[K0('m_rewards')]
  0001  GETTABLE  R2 = R0[K1('m_rank')]
  0002  EQ        if R1 eq K2(nil)   -> -130298
  0003  JMP       (jump)   -> 6
  0004  EQ        if R0 eq K2(nil)   -> -129784
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  LEN       R3 = len R0
  0008  LT        if R1 lt R3   -> 1549
  0009  JMP       (jump)   -> 13
  0010  LE        if R1 le K4(3)   -> -129776
  0011  JMP       (jump)   -> 13
  0012  LOADBOOL  R3 = false
  0013  LOADBOOL  R3 = true
  0014  TEST      if not R3 then   -> -131055
  0015  JMP       (jump)   -> 43
  0016  GETTABUP  R4 = _ENV[K5('RewardApi')]
  0017  GETTABLE  R4 = R4[K6('FilterRewards')]
  0018  MOVE      R5 = R0
  0019  GETTABUP  R6 = _ENV[K7('ERewardScene')]
  0020  GETTABLE  R6 = R6[K8('Other')]
  0021  CALL      R4 = call(R4, 1 args, 2 rets)
  0022  GETTABUP  R5 = _ENV[K9('Table')]
  0023  GETTABLE  R5 = R5[K10('IsEmpty')]
  0024  MOVE      R6 = R0
  0025  CALL      R5 = call(R5, 1 args, 1 rets)
  0026  TEST      if not R5 then   -> -131043
  0027  JMP       (jump)   -> 38
  0028  GETTABLE  R5 = R0[K11('m_rewardItem')]
  0029  GETTABLE  R5 = R5[K12('gameObject')]
  0030  SELF      R6 = R5[K13('SetActive')] (self)
  0031  LOADBOOL  R7 = true
  0032  CALL      R5 = call(R5, 0 args, 2 rets)
  0033  GETTABLE  R5 = R0[K11('m_rewardItem')]
  0034  SELF      R6 = R5[K14('Init')] (self)
  0035  GETTABLE  R7 = R4[K3(1)]
  0036  CALL      R5 = call(R5, 0 args, 2 rets)
  0037  JMP       (jump)   -> 43
  0038  GETTABLE  R5 = R0[K11('m_rewardItem')]
  0039  GETTABLE  R5 = R5[K12('gameObject')]
  0040  SELF      R6 = R5[K13('SetActive')] (self)
  0041  LOADBOOL  R7 = false
  0042  CALL      R5 = call(R5, 0 args, 2 rets)
  0043  RETURN    return R0..R-1
; ---------- proto4 [OnBoxClick] ----------
  ; fn ?  line 61-63 np=1 va=0 ms=7 code=9 consts=7 upvals=0 protos=0
  ;   K[0]='m_window'
  ;   K[1]='ShowRewardTip'
  ;   K[2]='m_rewards'
  ;   K[3]='m_boxGo'
  ;   K[4]='transform'
  ;   K[5]=-4
  ;   K[6]=42.5
  ;   locals: self(0-9)
  0000  GETTABLE  R1 = R0[K0('m_window')]
  0001  SELF      R2 = R1[K1('ShowRewardTip')] (self)
  0002  GETTABLE  R3 = R0[K2('m_rewards')]
  0003  GETTABLE  R4 = R0[K3('m_boxGo')]
  0004  GETTABLE  R4 = R4[K4('transform')]
  0005  LOADK     R5 = K5 -4
  0006  LOADK     R6 = K6 42.5
  0007  CALL      R1 = call(R1, 0 args, 5 rets)
  0008  RETURN    return R0..R-1
