# UI_Window_Promotion_CrossPromotionTaskCell_661.luac
; fn @CrossPromotionTaskCell.lua  line 0-0 np=0 va=1 ms=2 code=23 consts=7 upvals=1 protos=4
;   K[0]='CrossPromotionTaskCell'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='UpdateContent'
;   K[4]='OnActionBtnPressed'
;   K[5]='CrossPromotionTaskDesc'
;   K[6]='Init'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('CrossPromotionTaskCell')] = R0
0002  GETTABUP  R0 = _ENV[K0('CrossPromotionTaskCell')]
0003  GETTABUP  R1 = _ENV[K0('CrossPromotionTaskCell')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('CrossPromotionTaskCell')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('CrossPromotionTaskCell')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('UpdateContent')] = R1
0011  GETTABUP  R0 = _ENV[K0('CrossPromotionTaskCell')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('OnActionBtnPressed')] = R1
0014  NEWTABLE  R0 = {} (0 items)
0015  SETTABUP  _ENV[K5('CrossPromotionTaskDesc')] = R0
0016  GETTABUP  R0 = _ENV[K5('CrossPromotionTaskDesc')]
0017  GETTABUP  R1 = _ENV[K5('CrossPromotionTaskDesc')]
0018  SETTABLE  R0[K1('__index')] = R1
0019  GETTABUP  R0 = _ENV[K5('CrossPromotionTaskDesc')]
0020  CLOSURE   R1 = closure proto3
0021  SETTABLE  R0[K6('Init')] = R1
0022  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-7 np=3 va=0 ms=6 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_tbTaskWindow'
  ;   K[1]='UpdateContent'
  ;   locals: self(0-5), tbTaskWindow(0-5), tbTaskEntity(0-5)
  0000  SETTABLE  R0[K0('m_tbTaskWindow')] = R1
  0001  SELF      R4 = R0[K1('UpdateContent')] (self)
  0002  MOVE      R5 = R0
  0003  CALL      R3 = call(R3, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
; ---------- proto1 [UpdateContent] ----------
  ; fn ?  line 9-52 np=2 va=0 ms=6 code=165 consts=31 upvals=1 protos=0
  ;   K[0]='Log'
  ;   K[1]='Assert'
  ;   K[2]=nil
  ;   K[3]='CrossPromotionTaskCell:UpdateContent'
  ;   K[4]='taskEntity'
  ;   K[5]='eProgressStatus'
  ;   K[6]='ECPTaskStatus'
  ;   K[7]='Doing'
  ;   K[8]='m_doneFlagGo'
  ;   K[9]='SetActive'
  ;   K[10]='m_rewardBgGo'
  ;   K[11]='m_taskBgGo'
  ;   K[12]='m_maskGo'
  ;   K[13]='m_completeFlagGo'
  ;   K[14]='m_actionBtnGo'
  ;   K[15]='m_helpButtonGo'
  ;   K[16]='m_taskDesc1'
  ;   K[17]='gameObject'
  ;   K[18]='m_taskDesc2'
  ;   K[19]='Init'
  ;   K[20]='Done'
  ;   K[21]='GM'
  ;   K[22]='BIManager'
  ;   K[23]='LogAction'
  ;   K[24]='EBIType'
  ;   K[25]='CrossPromotionTaskFinish'
  ;   K[26]='id'
  ;   K[27]='SpriteUtil'
  ;   K[28]='SetImage'
  ;   K[29]='m_taskIcon'
  ;   K[30]='icon'
  ;   upvals: _ENV
  ;   locals: self(0-165), tbTaskEntity(0-165)
  0000  GETTABUP  R2 = _ENV[K0('Log')]
  0001  GETTABLE  R2 = R2[K1('Assert')]
  0002  EQ        if R0 eq K2(nil)   -> -130298
  0003  JMP       (jump)   -> 5
  0004  LOADBOOL  R3 = false
  0005  LOADBOOL  R3 = true
  0006  LOADK     R4 = K3 'CrossPromotionTaskCell:UpdateContent'
  0007  CALL      R2 = call(R2, 0 args, 2 rets)
  0008  SETTABLE  R0[K4('taskEntity')] = R1
  0009  GETTABLE  R2 = R0[K4('taskEntity')]
  0010  GETTABLE  R2 = R2[K5('eProgressStatus')]
  0011  GETTABUP  R3 = _ENV[K6('ECPTaskStatus')]
  0012  GETTABLE  R3 = R3[K7('Doing')]
  0013  EQ        if R0 eq R3   -> -130030
  0014  JMP       (jump)   -> 58
  0015  GETTABLE  R2 = R0[K8('m_doneFlagGo')]
  0016  SELF      R3 = R2[K9('SetActive')] (self)
  0017  LOADBOOL  R4 = false
  0018  CALL      R2 = call(R2, 0 args, 2 rets)
  0019  GETTABLE  R2 = R0[K10('m_rewardBgGo')]
  0020  SELF      R3 = R2[K9('SetActive')] (self)
  0021  LOADBOOL  R4 = false
  0022  CALL      R2 = call(R2, 0 args, 2 rets)
  0023  GETTABLE  R2 = R0[K11('m_taskBgGo')]
  0024  SELF      R3 = R2[K9('SetActive')] (self)
  0025  LOADBOOL  R4 = true
  0026  CALL      R2 = call(R2, 0 args, 2 rets)
  0027  GETTABLE  R2 = R0[K12('m_maskGo')]
  0028  SELF      R3 = R2[K9('SetActive')] (self)
  0029  LOADBOOL  R4 = false
  0030  CALL      R2 = call(R2, 0 args, 2 rets)
  0031  GETTABLE  R2 = R0[K13('m_completeFlagGo')]
  0032  SELF      R3 = R2[K9('SetActive')] (self)
  0033  LOADBOOL  R4 = false
  0034  CALL      R2 = call(R2, 0 args, 2 rets)
  0035  GETTABLE  R2 = R0[K14('m_actionBtnGo')]
  0036  SELF      R3 = R2[K9('SetActive')] (self)
  0037  LOADBOOL  R4 = false
  0038  CALL      R2 = call(R2, 0 args, 2 rets)
  0039  GETTABLE  R2 = R0[K15('m_helpButtonGo')]
  0040  SELF      R3 = R2[K9('SetActive')] (self)
  0041  LOADBOOL  R4 = true
  0042  CALL      R2 = call(R2, 0 args, 2 rets)
  0043  GETTABLE  R2 = R0[K16('m_taskDesc1')]
  0044  GETTABLE  R2 = R2[K17('gameObject')]
  0045  SELF      R3 = R2[K9('SetActive')] (self)
  0046  LOADBOOL  R4 = true
  0047  CALL      R2 = call(R2, 0 args, 2 rets)
  0048  GETTABLE  R2 = R0[K18('m_taskDesc2')]
  0049  GETTABLE  R2 = R2[K17('gameObject')]
  0050  SELF      R3 = R2[K9('SetActive')] (self)
  0051  LOADBOOL  R4 = false
  0052  CALL      R2 = call(R2, 0 args, 2 rets)
  0053  GETTABLE  R2 = R0[K16('m_taskDesc1')]
  0054  SELF      R3 = R2[K19('Init')] (self)
  0055  GETTABLE  R4 = R0[K4('taskEntity')]
  0056  CALL      R2 = call(R2, 0 args, 2 rets)
  0057  JMP       (jump)   -> 157
  0058  GETTABLE  R2 = R0[K4('taskEntity')]
  0059  GETTABLE  R2 = R2[K5('eProgressStatus')]
  0060  GETTABUP  R3 = _ENV[K6('ECPTaskStatus')]
  0061  GETTABLE  R3 = R3[K20('Done')]
  0062  EQ        if R0 eq R3   -> -129981
  0063  JMP       (jump)   -> 115
  0064  GETTABLE  R2 = R0[K8('m_doneFlagGo')]
  0065  SELF      R3 = R2[K9('SetActive')] (self)
  0066  LOADBOOL  R4 = false
  0067  CALL      R2 = call(R2, 0 args, 2 rets)
  0068  GETTABLE  R2 = R0[K10('m_rewardBgGo')]
  0069  SELF      R3 = R2[K9('SetActive')] (self)
  0070  LOADBOOL  R4 = true
  0071  CALL      R2 = call(R2, 0 args, 2 rets)
  0072  GETTABLE  R2 = R0[K11('m_taskBgGo')]
  0073  SELF      R3 = R2[K9('SetActive')] (self)
  0074  LOADBOOL  R4 = false
  0075  CALL      R2 = call(R2, 0 args, 2 rets)
  0076  GETTABLE  R2 = R0[K12('m_maskGo')]
  0077  SELF      R3 = R2[K9('SetActive')] (self)
  0078  LOADBOOL  R4 = false
  0079  CALL      R2 = call(R2, 0 args, 2 rets)
  0080  GETTABLE  R2 = R0[K13('m_completeFlagGo')]
  0081  SELF      R3 = R2[K9('SetActive')] (self)
  0082  LOADBOOL  R4 = true
  0083  CALL      R2 = call(R2, 0 args, 2 rets)
  0084  GETTABLE  R2 = R0[K14('m_actionBtnGo')]
  0085  SELF      R3 = R2[K9('SetActive')] (self)
  0086  LOADBOOL  R4 = true
  0087  CALL      R2 = call(R2, 0 args, 2 rets)
  0088  GETTABLE  R2 = R0[K15('m_helpButtonGo')]
  0089  SELF      R3 = R2[K9('SetActive')] (self)
  0090  LOADBOOL  R4 = false
  0091  CALL      R2 = call(R2, 0 args, 2 rets)
  0092  GETTABLE  R2 = R0[K16('m_taskDesc1')]
  0093  GETTABLE  R2 = R2[K17('gameObject')]
  0094  SELF      R3 = R2[K9('SetActive')] (self)
  0095  LOADBOOL  R4 = false
  0096  CALL      R2 = call(R2, 0 args, 2 rets)
  0097  GETTABLE  R2 = R0[K18('m_taskDesc2')]
  0098  GETTABLE  R2 = R2[K17('gameObject')]
  0099  SELF      R3 = R2[K9('SetActive')] (self)
  0100  LOADBOOL  R4 = true
  0101  CALL      R2 = call(R2, 0 args, 2 rets)
  0102  GETTABLE  R2 = R0[K18('m_taskDesc2')]
  0103  SELF      R3 = R2[K19('Init')] (self)
  0104  GETTABLE  R4 = R0[K4('taskEntity')]
  0105  CALL      R2 = call(R2, 0 args, 2 rets)
  0106  GETTABUP  R2 = _ENV[K21('GM')]
  0107  GETTABLE  R2 = R2[K22('BIManager')]
  0108  SELF      R3 = R2[K23('LogAction')] (self)
  0109  GETTABUP  R4 = _ENV[K24('EBIType')]
  0110  GETTABLE  R4 = R4[K25('CrossPromotionTaskFinish')]
  0111  GETTABLE  R5 = R0[K4('taskEntity')]
  0112  GETTABLE  R5 = R5[K26('id')]
  0113  CALL      R2 = call(R2, 0 args, 3 rets)
  0114  JMP       (jump)   -> 157
  0115  GETTABLE  R2 = R0[K8('m_doneFlagGo')]
  0116  SELF      R3 = R2[K9('SetActive')] (self)
  0117  LOADBOOL  R4 = true
  0118  CALL      R2 = call(R2, 0 args, 2 rets)
  0119  GETTABLE  R2 = R0[K10('m_rewardBgGo')]
  0120  SELF      R3 = R2[K9('SetActive')] (self)
  0121  LOADBOOL  R4 = false
  0122  CALL      R2 = call(R2, 0 args, 2 rets)
  0123  GETTABLE  R2 = R0[K11('m_taskBgGo')]
  0124  SELF      R3 = R2[K9('SetActive')] (self)
  0125  LOADBOOL  R4 = true
  0126  CALL      R2 = call(R2, 0 args, 2 rets)
  0127  GETTABLE  R2 = R0[K12('m_maskGo')]
  0128  SELF      R3 = R2[K9('SetActive')] (self)
  0129  LOADBOOL  R4 = true
  0130  CALL      R2 = call(R2, 0 args, 2 rets)
  0131  GETTABLE  R2 = R0[K13('m_completeFlagGo')]
  0132  SELF      R3 = R2[K9('SetActive')] (self)
  0133  LOADBOOL  R4 = false
  0134  CALL      R2 = call(R2, 0 args, 2 rets)
  0135  GETTABLE  R2 = R0[K14('m_actionBtnGo')]
  0136  SELF      R3 = R2[K9('SetActive')] (self)
  0137  LOADBOOL  R4 = false
  0138  CALL      R2 = call(R2, 0 args, 2 rets)
  0139  GETTABLE  R2 = R0[K15('m_helpButtonGo')]
  0140  SELF      R3 = R2[K9('SetActive')] (self)
  0141  LOADBOOL  R4 = false
  0142  CALL      R2 = call(R2, 0 args, 2 rets)
  0143  GETTABLE  R2 = R0[K16('m_taskDesc1')]
  0144  GETTABLE  R2 = R2[K17('gameObject')]
  0145  SELF      R3 = R2[K9('SetActive')] (self)
  0146  LOADBOOL  R4 = true
  0147  CALL      R2 = call(R2, 0 args, 2 rets)
  0148  GETTABLE  R2 = R0[K18('m_taskDesc2')]
  0149  GETTABLE  R2 = R2[K17('gameObject')]
  0150  SELF      R3 = R2[K9('SetActive')] (self)
  0151  LOADBOOL  R4 = false
  0152  CALL      R2 = call(R2, 0 args, 2 rets)
  0153  GETTABLE  R2 = R0[K16('m_taskDesc1')]
  0154  SELF      R3 = R2[K19('Init')] (self)
  0155  GETTABLE  R4 = R0[K4('taskEntity')]
  0156  CALL      R2 = call(R2, 0 args, 2 rets)
  0157  GETTABUP  R2 = _ENV[K27('SpriteUtil')]
  0158  GETTABLE  R2 = R2[K28('SetImage')]
  0159  GETTABLE  R3 = R0[K29('m_taskIcon')]
  0160  GETTABLE  R4 = R0[K4('taskEntity')]
  0161  GETTABLE  R4 = R4[K30('icon')]
  0162  LOADBOOL  R5 = true
  0163  CALL      R2 = call(R2, 0 args, 3 rets)
  0164  RETURN    return R0..R-1
; ---------- proto2 [OnActionBtnPressed] ----------
  ; fn ?  line 54-86 np=1 va=0 ms=7 code=49 consts=21 upvals=1 protos=1
  ;   K[0]='taskEntity'
  ;   K[1]=nil
  ;   K[2]='GM'
  ;   K[3]='BIManager'
  ;   K[4]='LogErrorInfo'
  ;   K[5]='EBIType'
  ;   K[6]='TaskEntityError'
  ;   K[7]='CrossPromotionTaskCell'
  ;   K[8]='m_tbTaskWindow'
  ;   K[9]='Close'
  ;   K[10]='eProgressStatus'
  ;   K[11]='ECPTaskStatus'
  ;   K[12]='Done'
  ;   K[13]='GetTaskRewardKey'
  ;   K[14]='RewardModel'
  ;   K[15]='ReceiveServerReward'
  ;   K[16]='taskEntity'
  ;   K[17]='Doing'
  ;   K[18]='m_tbTaskWindow'
  ;   K[19]='CrossPromotionModel'
  ;   K[20]='Go2NewGame'
  ;   upvals: _ENV
  ;   locals: self(0-49), rewardKey(26-34)
  0000  GETTABLE  R1 = R0[K0('taskEntity')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 17
  0003  GETTABUP  R1 = _ENV[K2('GM')]
  0004  GETTABLE  R1 = R1[K3('BIManager')]
  0005  SELF      R2 = R1[K4('LogErrorInfo')] (self)
  0006  GETTABUP  R3 = _ENV[K5('EBIType')]
  0007  GETTABLE  R3 = R3[K6('TaskEntityError')]
  0008  LOADK     R4 = K7 'CrossPromotionTaskCell'
  0009  CALL      R1 = call(R1, 0 args, 3 rets)
  0010  GETTABLE  R1 = R0[K8('m_tbTaskWindow')]
  0011  TEST      if not R1 then   -> -131059
  0012  JMP       (jump)   -> 16
  0013  GETTABLE  R1 = R0[K8('m_tbTaskWindow')]
  0014  SELF      R2 = R1[K9('Close')] (self)
  0015  CALL      R1 = call(R1, 0 args, 1 rets)
  0016  RETURN    return R0..R-1
  0017  GETTABLE  R1 = R0[K0('taskEntity')]
  0018  GETTABLE  R1 = R1[K10('eProgressStatus')]
  0019  GETTABUP  R2 = _ENV[K11('ECPTaskStatus')]
  0020  GETTABLE  R2 = R2[K12('Done')]
  0021  EQ        if R0 eq R2   -> -130535
  0022  JMP       (jump)   -> 35
  0023  GETTABLE  R1 = R0[K0('taskEntity')]
  0024  SELF      R2 = R1[K13('GetTaskRewardKey')] (self)
  0025  CALL      R1 = call(R1, 1 args, 1 rets)
  0026  GETTABUP  R2 = _ENV[K2('GM')]
  0027  GETTABLE  R2 = R2[K14('RewardModel')]
  0028  SELF      R3 = R2[K15('ReceiveServerReward')] (self)
  0029  MOVE      R4 = R0
  0030  LOADBOOL  R5 = true
  0031  CLOSURE   R6 = closure proto0
  0032  CALL      R2 = call(R2, 0 args, 4 rets)
  0033  JMP       (jump)   -> 48
  0034  JMP       (jump)   -> 48
  0035  GETTABLE  R1 = R0[K16('taskEntity')]
  0036  GETTABLE  R1 = R1[K10('eProgressStatus')]
  0037  GETTABUP  R2 = _ENV[K11('ECPTaskStatus')]
  0038  GETTABLE  R2 = R2[K17('Doing')]
  0039  EQ        if R0 eq R2   -> -130517
  0040  JMP       (jump)   -> 48
  0041  GETTABLE  R1 = R0[K18('m_tbTaskWindow')]
  0042  SELF      R2 = R1[K9('Close')] (self)
  0043  CALL      R1 = call(R1, 0 args, 1 rets)
  0044  GETTABUP  R1 = _ENV[K2('GM')]
  0045  GETTABLE  R1 = R1[K19('CrossPromotionModel')]
  0046  SELF      R2 = R1[K20('Go2NewGame')] (self)
  0047  CALL      R1 = call(R1, 0 args, 1 rets)
  0048  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 65-80 np=1 va=0 ms=9 code=51 consts=26 upvals=3 protos=0
    ;   K[0]='ERewardRespStatus'
    ;   K[1]='Success'
    ;   K[2]='GM'
    ;   K[3]='CrossPromotionModel'
    ;   K[4]='SetRewarded'
    ;   K[5]='RewardApi'
    ;   K[6]='AcquireRewards'
    ;   K[7]='taskEntity'
    ;   K[8]='GetRewards'
    ;   K[9]='EPropertySource'
    ;   K[10]='Give'
    ;   K[11]='EBIType'
    ;   K[12]='CrossPromotionTaskReward'
    ;   K[13]='ERewardScene'
    ;   K[14]='Other'
    ;   K[15]='EGameMode'
    ;   K[16]='Board'
    ;   K[17]='CacheItemType'
    ;   K[18]='Stack'
    ;   K[19]='m_tbTaskWindow'
    ;   K[20]='SetAcquireReward'
    ;   K[21]='gameObject'
    ;   K[22]='IsNull'
    ;   K[23]='m_actionBtnGo'
    ;   K[24]='SetActive'
    ;   K[25]='UpdateContent'
    ;   upvals: _ENV, rewardKey, self
    ;   locals: eRewardRespStatus(0-51)
    0000  GETTABUP  R1 = _ENV[K0('ERewardRespStatus')]
    0001  GETTABLE  R1 = R1[K1('Success')]
    0002  EQ        if R0 eq R1   -> -131067
    0003  JMP       (jump)   -> 50
    0004  GETTABUP  R1 = _ENV[K2('GM')]
    0005  GETTABLE  R1 = R1[K3('CrossPromotionModel')]
    0006  SELF      R2 = R1[K4('SetRewarded')] (self)
    0007  GETUPVAL  R3 = _ENV
    0008  CALL      R1 = call(R1, 0 args, 2 rets)
    0009  GETTABUP  R1 = _ENV[K5('RewardApi')]
    0010  GETTABLE  R1 = R1[K6('AcquireRewards')]
    0011  GETTABUP  R2 = self[K7('taskEntity')]
    0012  SELF      R3 = R2[K8('GetRewards')] (self)
    0013  CALL      R2 = call(R2, 1 args, 1 rets)
    0014  GETTABUP  R3 = _ENV[K9('EPropertySource')]
    0015  GETTABLE  R3 = R3[K10('Give')]
    0016  GETTABUP  R4 = _ENV[K11('EBIType')]
    0017  GETTABLE  R4 = R4[K12('CrossPromotionTaskReward')]
    0018  GETTABUP  R5 = _ENV[K13('ERewardScene')]
    0019  GETTABLE  R5 = R5[K14('Other')]
    0020  LOADNIL   R6..R6 = nil
    0021  GETTABUP  R7 = _ENV[K15('EGameMode')]
    0022  GETTABLE  R7 = R7[K16('Board')]
    0023  GETTABUP  R8 = _ENV[K17('CacheItemType')]
    0024  GETTABLE  R8 = R8[K18('Stack')]
    0025  CALL      R1 = call(R1, 0 args, 7 rets)
    0026  GETTABUP  R1 = self[K19('m_tbTaskWindow')]
    0027  TEST      if not R1 then   -> -131043
    0028  JMP       (jump)   -> 32
    0029  GETTABUP  R1 = self[K19('m_tbTaskWindow')]
    0030  SELF      R2 = R1[K20('SetAcquireReward')] (self)
    0031  CALL      R1 = call(R1, 0 args, 1 rets)
    0032  GETTABUP  R1 = self[K21('gameObject')]
    0033  SELF      R2 = R1[K22('IsNull')] (self)
    0034  CALL      R1 = call(R1, 1 args, 1 rets)
    0035  TEST      if not R1 then   -> -131034
    0036  JMP       (jump)   -> 50
    0037  GETTABUP  R1 = self[K23('m_actionBtnGo')]
    0038  SELF      R2 = R1[K22('IsNull')] (self)
    0039  CALL      R1 = call(R1, 1 args, 1 rets)
    0040  TEST      if not R1 then   -> -131029
    0041  JMP       (jump)   -> 50
    0042  GETTABUP  R1 = self[K23('m_actionBtnGo')]
    0043  SELF      R2 = R1[K24('SetActive')] (self)
    0044  LOADBOOL  R3 = false
    0045  CALL      R1 = call(R1, 0 args, 2 rets)
    0046  GETUPVAL  R1 = _ENV
    0047  SELF      R2 = R1[K25('UpdateContent')] (self)
    0048  GETTABUP  R3 = self[K7('taskEntity')]
    0049  CALL      R1 = call(R1, 0 args, 2 rets)
    0050  RETURN    return R0..R-1
; ---------- proto3 [Init] ----------
  ; fn ?  line 91-129 np=2 va=0 ms=18 code=104 consts=26 upvals=1 protos=1
  ;   K[0]='GM'
  ;   K[1]='GameTextModel'
  ;   K[2]='GetText'
  ;   K[3]='desc'
  ;   K[4]='('
  ;   K[5]='GetProgress'
  ;   K[6]=')'
  ;   K[7]='m_taskNameText'
  ;   K[8]='text'
  ;   K[9]=1
  ;   K[10]=2
  ;   K[11]='m_rewardIconImg'
  ;   K[12]='gameObject'
  ;   K[13]='SetActive'
  ;   K[14]='m_rewardNumText'
  ;   K[15]='rewards'
  ;   K[16]='Table'
  ;   K[17]='IsEmpty'
  ;   K[18]='ipairs'
  ;   K[19]='PROPERTY_TYPE'
  ;   K[20]='PropertyDataManager'
  ;   K[21]='IsPropertyType'
  ;   K[22]='GetPropertySpriteKey'
  ;   K[23]='SpriteUtil'
  ;   K[24]='SetImage'
  ;   K[25]='PROPERTY_COUNT'
  ;   upvals: _ENV
  ;   locals: self(0-104), tbTaskEntity(0-104), strName(5-104), callback(14-104), (for index)(17-35), (for limit)(17-35), (for step)(17-35), i(18-34), rewards(36-104), (for generator)(45-103), (for state)(45-103), (for control)(45-103), i(46-101), reward(46-101), rewardType(48-101), iconFileKey(49-101)
  0000  GETTABUP  R2 = _ENV[K0('GM')]
  0001  GETTABLE  R2 = R2[K1('GameTextModel')]
  0002  SELF      R3 = R2[K2('GetText')] (self)
  0003  GETTABLE  R4 = R1[K3('desc')]
  0004  CALL      R2 = call(R2, 1 args, 2 rets)
  0005  MOVE      R3 = R0
  0006  LOADK     R4 = K4 '('
  0007  SELF      R6 = R1[K5('GetProgress')] (self)
  0008  CALL      R5 = call(R5, 1 args, 1 rets)
  0009  LOADK     R6 = K6 ')'
  0010  CONCAT    R2 = concat(R2..R3)
  0011  GETTABLE  R3 = R0[K7('m_taskNameText')]
  0012  SETTABLE  R3[K8('text')] = R2
  0013  CLOSURE   R3 = closure proto0
  0014  LOADK     R4 = K9 1
  0015  LOADK     R5 = K10 2
  0016  LOADK     R6 = K9 1
  0017  FORPREP   forprep R4(sBx=16)   -> 34
  0018  LOADK     R8 = K11 'm_rewardIconImg'
  0019  MOVE      R9 = R0
  0020  CONCAT    R8 = concat(R8..R8)
  0021  GETTABLE  R8 = R0[R8]
  0022  GETTABLE  R8 = R8[K12('gameObject')]
  0023  SELF      R9 = R8[K13('SetActive')] (self)
  0024  LOADBOOL  R10 = false
  0025  CALL      R8 = call(R8, 0 args, 2 rets)
  0026  LOADK     R8 = K14 'm_rewardNumText'
  0027  MOVE      R9 = R0
  0028  CONCAT    R8 = concat(R8..R8)
  0029  GETTABLE  R8 = R0[R8]
  0030  GETTABLE  R8 = R8[K12('gameObject')]
  0031  SELF      R9 = R8[K13('SetActive')] (self)
  0032  LOADBOOL  R10 = false
  0033  CALL      R8 = call(R8, 0 args, 2 rets)
  0034  FORLOOP   forloop R4(sBx=-17)   -> 18
  0035  GETTABLE  R4 = R1[K15('rewards')]
  0036  GETTABUP  R5 = _ENV[K16('Table')]
  0037  GETTABLE  R5 = R5[K17('IsEmpty')]
  0038  MOVE      R6 = R0
  0039  CALL      R5 = call(R5, 1 args, 1 rets)
  0040  TEST      if not R5 then   -> -131029
  0041  JMP       (jump)   -> 103
  0042  GETTABUP  R5 = _ENV[K18('ipairs')]
  0043  MOVE      R6 = R0
  0044  CALL      R5 = call(R5, 3 args, 1 rets)
  0045  JMP       (jump)   -> 101
  0046  GETTABUP  R10 = _ENV[K19('PROPERTY_TYPE')]
  0047  GETTABLE  R10 = R9[R10]
  0048  LOADNIL   R11..R11 = nil
  0049  GETTABUP  R12 = _ENV[K0('GM')]
  0050  GETTABLE  R12 = R12[K20('PropertyDataManager')]
  0051  SELF      R13 = R12[K21('IsPropertyType')] (self)
  0052  MOVE      R14 = R0
  0053  CALL      R12 = call(R12, 1 args, 2 rets)
  0054  TEST      if not R12 then   -> -131016
  0055  JMP       (jump)   -> 64
  0056  GETTABUP  R12 = _ENV[K0('GM')]
  0057  GETTABLE  R12 = R12[K20('PropertyDataManager')]
  0058  SELF      R13 = R12[K22('GetPropertySpriteKey')] (self)
  0059  GETTABUP  R14 = _ENV[K19('PROPERTY_TYPE')]
  0060  GETTABLE  R14 = R9[R14]
  0061  CALL      R12 = call(R12, 1 args, 2 rets)
  0062  MOVE      R11 = R0
  0063  JMP       (jump)   -> 65
  0064  MOVE      R11 = R0
  0065  TEST      if not R11 then   -> -131005
  0066  JMP       (jump)   -> 78
  0067  GETTABUP  R12 = _ENV[K23('SpriteUtil')]
  0068  GETTABLE  R12 = R12[K24('SetImage')]
  0069  LOADK     R13 = K11 'm_rewardIconImg'
  0070  MOVE      R14 = R0
  0071  CONCAT    R13 = concat(R13..R13)
  0072  GETTABLE  R13 = R0[R13]
  0073  MOVE      R14 = R0
  0074  LOADBOOL  R15 = true
  0075  MOVE      R16 = R0
  0076  MOVE      R17 = R0
  0077  CALL      R12 = call(R12, 0 args, 5 rets)
  0078  LOADK     R12 = K14 'm_rewardNumText'
  0079  MOVE      R13 = R0
  0080  CONCAT    R12 = concat(R12..R12)
  0081  GETTABLE  R12 = R0[R12]
  0082  GETTABUP  R13 = _ENV[K25('PROPERTY_COUNT')]
  0083  GETTABLE  R13 = R9[R13]
  0084  SETTABLE  R12[K8('text')] = R13
  0085  LOADK     R12 = K11 'm_rewardIconImg'
  0086  MOVE      R13 = R0
  0087  CONCAT    R12 = concat(R12..R12)
  0088  GETTABLE  R12 = R0[R12]
  0089  GETTABLE  R12 = R12[K12('gameObject')]
  0090  SELF      R13 = R12[K13('SetActive')] (self)
  0091  LOADBOOL  R14 = true
  0092  CALL      R12 = call(R12, 0 args, 2 rets)
  0093  LOADK     R12 = K14 'm_rewardNumText'
  0094  MOVE      R13 = R0
  0095  CONCAT    R12 = concat(R12..R12)
  0096  GETTABLE  R12 = R0[R12]
  0097  GETTABLE  R12 = R12[K12('gameObject')]
  0098  SELF      R13 = R12[K13('SetActive')] (self)
  0099  LOADBOOL  R14 = true
  0100  CALL      R12 = call(R12, 0 args, 2 rets)
  0101  TFORCALL  tforcall R5
  0102  TFORLOOP  tforloop R7(sBx=-57)   -> 46
  0103  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 96-104 np=0 va=0 ms=6 code=25 consts=9 upvals=2 protos=0
    ;   K[0]='UIUtil'
    ;   K[1]='SetLocalScale'
    ;   K[2]='m_rewardsRectTrans'
    ;   K[3]=1
    ;   K[4]='LayoutRebuilder'
    ;   K[5]='ForceRebuildLayoutImmediate'
    ;   K[6]='rect'
    ;   K[7]='width'
    ;   K[8]='transform'
    ;   upvals: _ENV, self
    ;   locals: width(13-25), maxWidth(16-25)
    0000  GETTABUP  R0 = _ENV[K0('UIUtil')]
    0001  GETTABLE  R0 = R0[K1('SetLocalScale')]
    0002  GETTABUP  R1 = self[K2('m_rewardsRectTrans')]
    0003  LOADK     R2 = K3 1
    0004  LOADK     R3 = K3 1
    0005  CALL      R0 = call(R0, 0 args, 3 rets)
    0006  GETTABUP  R0 = _ENV[K4('LayoutRebuilder')]
    0007  GETTABLE  R0 = R0[K5('ForceRebuildLayoutImmediate')]
    0008  GETTABUP  R1 = self[K2('m_rewardsRectTrans')]
    0009  CALL      R0 = call(R0, 0 args, 1 rets)
    0010  GETTABUP  R0 = self[K2('m_rewardsRectTrans')]
    0011  GETTABLE  R0 = R0[K6('rect')]
    0012  GETTABLE  R0 = R0[K7('width')]
    0013  GETTABUP  R1 = self[K8('transform')]
    0014  GETTABLE  R1 = R1[K6('rect')]
    0015  GETTABLE  R1 = R1[K7('width')]
    0016  LT        if R0 lt R0   -> -130542
    0017  JMP       (jump)   -> 24
    0018  GETTABUP  R2 = _ENV[K0('UIUtil')]
    0019  GETTABLE  R2 = R2[K1('SetLocalScale')]
    0020  GETTABUP  R3 = self[K2('m_rewardsRectTrans')]
    0021  DIV       R4 = R0 div R1
    0022  DIV       R5 = R0 div R1
    0023  CALL      R2 = call(R2, 0 args, 3 rets)
    0024  RETURN    return R0..R-1
