# PairRaceActivity_View_PairRaceActivityRewardCell_1848.luac
; fn @PairRaceActivityRewardCell.lua  line 0-0 np=0 va=1 ms=2 code=21 consts=7 upvals=1 protos=5
;   K[0]='PairRaceActivityRewardCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='UpdateContent'
;   K[4]='IsChecked'
;   K[5]='OnProgressBoxClicked'
;   K[6]='SetAlpha'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('PairRaceActivityRewardCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('PairRaceActivityRewardCell')]
0003  GETTABUP  R1 = _ENV[K0('PairRaceActivityRewardCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('PairRaceActivityRewardCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('PairRaceActivityRewardCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('UpdateContent')] = R1
0011  GETTABUP  R0 = _ENV[K0('PairRaceActivityRewardCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('IsChecked')] = R1
0014  GETTABUP  R0 = _ENV[K0('PairRaceActivityRewardCell')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('OnProgressBoxClicked')] = R1
0017  GETTABUP  R0 = _ENV[K0('PairRaceActivityRewardCell')]
0018  CLOSURE   R1 = closure proto4
0019  SETTABLE  R0[K6('SetAlpha')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-29 np=4 va=0 ms=10 code=74 consts=24 upvals=1 protos=0
  ;   K[0]='m_progressRewards'
  ;   K[1]='reward'
  ;   K[2]='m_window'
  ;   K[3]=1
  ;   K[4]='UIUtil'
  ;   K[5]='SetActive'
  ;   K[6]='m_rewardCellLuaTable'
  ;   K[7]='gameObject'
  ;   K[8]='m_rewardBoxRect'
  ;   K[9]='Init'
  ;   K[10]='ERewardScene'
  ;   K[11]='Other'
  ;   K[12]='ImageFileConfigName'
  ;   K[13]='HasConfig'
  ;   K[14]='iconName'
  ;   K[15]='Log'
  ;   K[16]='Error'
  ;   K[17]='PairRaceActivityRewardCell rewardConfig iconName 配置无效, iconName = '
  ;   K[18]='tostring'
  ;   K[19]='bakeout_chest_3'
  ;   K[20]='SpriteUtil'
  ;   K[21]='SetImage'
  ;   K[22]='m_rewardBoxImg'
  ;   K[23]='UpdateContent'
  ;   upvals: _ENV
  ;   locals: self(0-74), rewardConfig(0-74), bAcquired(0-74), window(0-74), bHasImage(45-70), imageIcon(53-70)
  0000  GETTABLE  R4 = R1[K1('reward')]
  0001  TEST      if not R4 then   -> -131068
  0002  JMP       (jump)   -> 4
  0003  NEWTABLE  R4 = {} (0 items)
  0004  SETTABLE  R0[K0('m_progressRewards')] = R4
  0005  SETTABLE  R0[K2('m_window')] = R3
  0006  GETTABLE  R4 = R1[K1('reward')]
  0007  LEN       R4 = len R0
  0008  EQ        if R0 eq K3(1)   -> -128755
  0009  JMP       (jump)   -> 29
  0010  GETTABUP  R4 = _ENV[K4('UIUtil')]
  0011  GETTABLE  R4 = R4[K5('SetActive')]
  0012  GETTABLE  R5 = R0[K6('m_rewardCellLuaTable')]
  0013  GETTABLE  R5 = R5[K7('gameObject')]
  0014  LOADBOOL  R6 = true
  0015  CALL      R4 = call(R4, 0 args, 2 rets)
  0016  GETTABUP  R4 = _ENV[K4('UIUtil')]
  0017  GETTABLE  R4 = R4[K5('SetActive')]
  0018  GETTABLE  R5 = R0[K8('m_rewardBoxRect')]
  0019  GETTABLE  R5 = R5[K7('gameObject')]
  0020  LOADBOOL  R6 = false
  0021  CALL      R4 = call(R4, 0 args, 2 rets)
  0022  GETTABLE  R4 = R0[K6('m_rewardCellLuaTable')]
  0023  SELF      R5 = R4[K9('Init')] (self)
  0024  GETTABLE  R6 = R1[K1('reward')]
  0025  GETTABUP  R7 = _ENV[K10('ERewardScene')]
  0026  GETTABLE  R7 = R7[K11('Other')]
  0027  CALL      R4 = call(R4, 0 args, 3 rets)
  0028  JMP       (jump)   -> 70
  0029  GETTABUP  R4 = _ENV[K4('UIUtil')]
  0030  GETTABLE  R4 = R4[K5('SetActive')]
  0031  GETTABLE  R5 = R0[K6('m_rewardCellLuaTable')]
  0032  GETTABLE  R5 = R5[K7('gameObject')]
  0033  LOADBOOL  R6 = false
  0034  CALL      R4 = call(R4, 0 args, 2 rets)
  0035  GETTABUP  R4 = _ENV[K4('UIUtil')]
  0036  GETTABLE  R4 = R4[K5('SetActive')]
  0037  GETTABLE  R5 = R0[K8('m_rewardBoxRect')]
  0038  GETTABLE  R5 = R5[K7('gameObject')]
  0039  LOADBOOL  R6 = true
  0040  CALL      R4 = call(R4, 0 args, 2 rets)
  0041  GETTABUP  R4 = _ENV[K12('ImageFileConfigName')]
  0042  GETTABLE  R4 = R4[K13('HasConfig')]
  0043  GETTABLE  R5 = R1[K14('iconName')]
  0044  CALL      R4 = call(R4, 1 args, 1 rets)
  0045  TEST      if not R4 then   -> -131025
  0046  JMP       (jump)   -> 52
  0047  GETTABUP  R5 = _ENV[K12('ImageFileConfigName')]
  0048  GETTABLE  R6 = R1[K14('iconName')]
  0049  GETTABLE  R5 = R5[R6]
  0050  TEST      if not R5 then   -> -131019
  0051  JMP       (jump)   -> 53
  0052  LOADNIL   R5..R5 = nil
  0053  TEST      if not R5 then   -> -131016
  0054  JMP       (jump)   -> 65
  0055  GETTABUP  R6 = _ENV[K15('Log')]
  0056  GETTABLE  R6 = R6[K16('Error')]
  0057  LOADK     R7 = K17 'PairRaceActivityRewardCell rewardConfig iconName 配置无效, iconName = '
  0058  GETTABUP  R8 = _ENV[K18('tostring')]
  0059  GETTABLE  R9 = R1[K14('iconName')]
  0060  CALL      R8 = call(R8, 1 args, 1 rets)
  0061  CONCAT    R7 = concat(R7..R7)
  0062  CALL      R6 = call(R6, 0 args, 1 rets)
  0063  GETTABUP  R6 = _ENV[K12('ImageFileConfigName')]
  0064  GETTABLE  R5 = R6[K19('bakeout_chest_3')]
  0065  GETTABUP  R6 = _ENV[K20('SpriteUtil')]
  0066  GETTABLE  R6 = R6[K21('SetImage')]
  0067  GETTABLE  R7 = R0[K22('m_rewardBoxImg')]
  0068  MOVE      R8 = R0
  0069  CALL      R6 = call(R6, 0 args, 2 rets)
  0070  SELF      R5 = R0[K23('UpdateContent')] (self)
  0071  MOVE      R6 = R0
  0072  CALL      R4 = call(R4, 0 args, 2 rets)
  0073  RETURN    return R0..R-1
; ---------- proto1 [UpdateContent] ----------
  ; fn ?  line 31-33 np=2 va=0 ms=5 code=6 consts=3 upvals=1 protos=0
  ;   K[0]='UIUtil'
  ;   K[1]='SetActive'
  ;   K[2]='m_checkGo'
  ;   upvals: _ENV
  ;   locals: self(0-6), bAcquired(0-6)
  0000  GETTABUP  R2 = _ENV[K0('UIUtil')]
  0001  GETTABLE  R2 = R2[K1('SetActive')]
  0002  GETTABLE  R3 = R0[K2('m_checkGo')]
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 0 args, 2 rets)
  0005  RETURN    return R0..R-1
; ---------- proto2 [IsChecked] ----------
  ; fn ?  line 35-37 np=1 va=0 ms=2 code=4 consts=2 upvals=0 protos=0
  ;   K[0]='m_checkGo'
  ;   K[1]='activeSelf'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_checkGo')]
  0001  GETTABLE  R1 = R1[K1('activeSelf')]
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto3 [OnProgressBoxClicked] ----------
  ; fn ?  line 39-41 np=1 va=0 ms=5 code=6 consts=4 upvals=0 protos=0
  ;   K[0]='m_window'
  ;   K[1]='OnRewardClicked'
  ;   K[2]='m_progressRewards'
  ;   K[3]='m_rewardBoxRect'
  ;   locals: self(0-6)
  0000  GETTABLE  R1 = R0[K0('m_window')]
  0001  SELF      R2 = R1[K1('OnRewardClicked')] (self)
  0002  GETTABLE  R3 = R0[K2('m_progressRewards')]
  0003  GETTABLE  R4 = R0[K3('m_rewardBoxRect')]
  0004  CALL      R1 = call(R1, 0 args, 3 rets)
  0005  RETURN    return R0..R-1
; ---------- proto4 [SetAlpha] ----------
  ; fn ?  line 43-45 np=2 va=0 ms=3 code=3 consts=2 upvals=0 protos=0
  ;   K[0]='m_cellCanvasGroup'
  ;   K[1]='alpha'
  ;   locals: self(0-3), alpha(0-3)
  0000  GETTABLE  R2 = R0[K0('m_cellCanvasGroup')]
  0001  SETTABLE  R2[K1('alpha')] = R1
  0002  RETURN    return R0..R-1
