# ExtraBoardActivity_View_ExtraBoardActivityHelpWindow_1023.luac
; fn @ExtraBoardActivityHelpWindow.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=8 upvals=1 protos=1
;   K[0]='ExtraBoardActivityHelpWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='ExtraBoardActivityBaseWindow'
;   K[6]='__index'
;   K[7]='Init'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('EWindowMaskAlpha')]
0003  GETTABLE  R2 = R2[K4('Dark')]
0004  SETTABLE  R1[K2('windowMaskAlpha')] = R2
0005  GETTABUP  R2 = _ENV[K5('ExtraBoardActivityBaseWindow')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('ExtraBoardActivityHelpWindow')] = R0
0008  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityHelpWindow')]
0009  GETTABUP  R1 = _ENV[K0('ExtraBoardActivityHelpWindow')]
0010  SETTABLE  R0[K6('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('ExtraBoardActivityHelpWindow')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K7('Init')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 7-35 np=3 va=0 ms=15 code=123 consts=36 upvals=1 protos=0
  ;   K[0]='ExtraBoardActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]=3
  ;   K[3]=1
  ;   K[4]='SpriteUtil'
  ;   K[5]='SetImage'
  ;   K[6]='m_itemImg'
  ;   K[7]='GM'
  ;   K[8]='ItemDataModel'
  ;   K[9]='GetSpriteName'
  ;   K[10]='m_model'
  ;   K[11]='GetItemTypeByIndex'
  ;   K[12]=4
  ;   K[13]=5
  ;   K[14]=7
  ;   K[15]='m_itemImg6'
  ;   K[16]=8
  ;   K[17]='GetRareItemChainId'
  ;   K[18]='_'
  ;   K[19]='m_itemImg7'
  ;   K[20]='IsAcquireTypeValid'
  ;   K[21]='EActTokenAcquireType'
  ;   K[22]='CostEnergy'
  ;   K[23]='ProducerClick'
  ;   K[24]='UIUtil'
  ;   K[25]='SetActive'
  ;   K[26]='m_energyGo'
  ;   K[27]='FinishOrder'
  ;   K[28]='m_orderGo'
  ;   K[29]='IsTokenMode'
  ;   K[30]='extraboard_htptoken_title'
  ;   K[31]='extraboard_help_tip3'
  ;   K[32]='m_step3Desc'
  ;   K[33]='text'
  ;   K[34]='GameTextModel'
  ;   K[35]='GetText'
  ;   upvals: _ENV
  ;   locals: self(0-123), activityType(0-123), bUserClick(0-123), originIndex(7-123), (for index)(10-28), (for limit)(10-28), (for step)(10-28), i(11-27), (for index)(31-49), (for limit)(31-49), (for step)(31-49), i(32-48), rareChainId(65-123), rareMinLevelItemCode(69-123), bShowEnergyGo(91-123), bShowOrderGo(101-123), descKey(115-123)
  0000  GETTABUP  R3 = _ENV[K0('ExtraBoardActivityBaseWindow')]
  0001  GETTABLE  R3 = R3[K1('Init')]
  0002  MOVE      R4 = R0
  0003  MOVE      R5 = R0
  0004  MOVE      R6 = R0
  0005  CALL      R3 = call(R3, 0 args, 3 rets)
  0006  LOADK     R3 = K2 3
  0007  LOADK     R4 = K3 1
  0008  LOADK     R5 = K2 3
  0009  LOADK     R6 = K3 1
  0010  FORPREP   forprep R4(sBx=16)   -> 27
  0011  GETTABUP  R8 = _ENV[K4('SpriteUtil')]
  0012  GETTABLE  R8 = R8[K5('SetImage')]
  0013  LOADK     R9 = K6 'm_itemImg'
  0014  MOVE      R10 = R0
  0015  CONCAT    R9 = concat(R9..R9)
  0016  GETTABLE  R9 = R0[R9]
  0017  GETTABUP  R10 = _ENV[K7('GM')]
  0018  GETTABLE  R10 = R10[K8('ItemDataModel')]
  0019  SELF      R11 = R10[K9('GetSpriteName')] (self)
  0020  GETTABLE  R12 = R0[K10('m_model')]
  0021  SELF      R13 = R12[K11('GetItemTypeByIndex')] (self)
  0022  ADD       R14 = R7 add R3
  0023  CALL      R12 = call(R12, -1 args, 2 rets)
  0024  CALL      R10 = call(R10, 1 args, -1 rets)
  0025  LOADBOOL  R11 = true
  0026  CALL      R8 = call(R8, 0 args, 3 rets)
  0027  FORLOOP   forloop R4(sBx=-17)   -> 11
  0028  LOADK     R4 = K12 4
  0029  LOADK     R5 = K13 5
  0030  LOADK     R6 = K3 1
  0031  FORPREP   forprep R4(sBx=16)   -> 48
  0032  GETTABUP  R8 = _ENV[K4('SpriteUtil')]
  0033  GETTABLE  R8 = R8[K5('SetImage')]
  0034  LOADK     R9 = K6 'm_itemImg'
  0035  MOVE      R10 = R0
  0036  CONCAT    R9 = concat(R9..R9)
  0037  GETTABLE  R9 = R0[R9]
  0038  GETTABUP  R10 = _ENV[K7('GM')]
  0039  GETTABLE  R10 = R10[K8('ItemDataModel')]
  0040  SELF      R11 = R10[K9('GetSpriteName')] (self)
  0041  GETTABLE  R12 = R0[K10('m_model')]
  0042  SELF      R13 = R12[K11('GetItemTypeByIndex')] (self)
  0043  LOADK     R14 = K14 7
  0044  CALL      R12 = call(R12, -1 args, 2 rets)
  0045  CALL      R10 = call(R10, 1 args, -1 rets)
  0046  LOADBOOL  R11 = true
  0047  CALL      R8 = call(R8, 0 args, 3 rets)
  0048  FORLOOP   forloop R4(sBx=-17)   -> 32
  0049  GETTABUP  R4 = _ENV[K4('SpriteUtil')]
  0050  GETTABLE  R4 = R4[K5('SetImage')]
  0051  GETTABLE  R5 = R0[K15('m_itemImg6')]
  0052  GETTABUP  R6 = _ENV[K7('GM')]
  0053  GETTABLE  R6 = R6[K8('ItemDataModel')]
  0054  SELF      R7 = R6[K9('GetSpriteName')] (self)
  0055  GETTABLE  R8 = R0[K10('m_model')]
  0056  SELF      R9 = R8[K11('GetItemTypeByIndex')] (self)
  0057  LOADK     R10 = K16 8
  0058  CALL      R8 = call(R8, -1 args, 2 rets)
  0059  CALL      R6 = call(R6, 1 args, -1 rets)
  0060  LOADBOOL  R7 = true
  0061  CALL      R4 = call(R4, 0 args, 3 rets)
  0062  GETTABLE  R4 = R0[K10('m_model')]
  0063  SELF      R5 = R4[K17('GetRareItemChainId')] (self)
  0064  CALL      R4 = call(R4, 1 args, 1 rets)
  0065  MOVE      R5 = R0
  0066  LOADK     R6 = K18 '_'
  0067  LOADK     R7 = K3 1
  0068  CONCAT    R5 = concat(R5..R5)
  0069  GETTABUP  R6 = _ENV[K4('SpriteUtil')]
  0070  GETTABLE  R6 = R6[K5('SetImage')]
  0071  GETTABLE  R7 = R0[K19('m_itemImg7')]
  0072  GETTABUP  R8 = _ENV[K7('GM')]
  0073  GETTABLE  R8 = R8[K8('ItemDataModel')]
  0074  SELF      R9 = R8[K9('GetSpriteName')] (self)
  0075  MOVE      R10 = R0
  0076  CALL      R8 = call(R8, 1 args, 2 rets)
  0077  LOADBOOL  R9 = true
  0078  CALL      R6 = call(R6, 0 args, 3 rets)
  0079  GETTABLE  R6 = R0[K10('m_model')]
  0080  SELF      R7 = R6[K20('IsAcquireTypeValid')] (self)
  0081  GETTABUP  R8 = _ENV[K21('EActTokenAcquireType')]
  0082  GETTABLE  R8 = R8[K22('CostEnergy')]
  0083  CALL      R6 = call(R6, 1 args, 2 rets)
  0084  TEST      if not R6 then   -> -130985
  0085  JMP       (jump)   -> 91
  0086  GETTABLE  R6 = R0[K10('m_model')]
  0087  SELF      R7 = R6[K20('IsAcquireTypeValid')] (self)
  0088  GETTABUP  R8 = _ENV[K21('EActTokenAcquireType')]
  0089  GETTABLE  R8 = R8[K23('ProducerClick')]
  0090  CALL      R6 = call(R6, 1 args, 2 rets)
  0091  GETTABUP  R7 = _ENV[K24('UIUtil')]
  0092  GETTABLE  R7 = R7[K25('SetActive')]
  0093  GETTABLE  R8 = R0[K26('m_energyGo')]
  0094  MOVE      R9 = R0
  0095  CALL      R7 = call(R7, 0 args, 2 rets)
  0096  GETTABLE  R7 = R0[K10('m_model')]
  0097  SELF      R8 = R7[K20('IsAcquireTypeValid')] (self)
  0098  GETTABUP  R9 = _ENV[K21('EActTokenAcquireType')]
  0099  GETTABLE  R9 = R9[K27('FinishOrder')]
  0100  CALL      R7 = call(R7, 1 args, 2 rets)
  0101  GETTABUP  R8 = _ENV[K24('UIUtil')]
  0102  GETTABLE  R8 = R8[K25('SetActive')]
  0103  GETTABLE  R9 = R0[K28('m_orderGo')]
  0104  MOVE      R10 = R0
  0105  CALL      R8 = call(R8, 0 args, 2 rets)
  0106  GETTABLE  R8 = R0[K10('m_model')]
  0107  SELF      R9 = R8[K29('IsTokenMode')] (self)
  0108  CALL      R8 = call(R8, 1 args, 1 rets)
  0109  TEST      if not R8 then   -> -130961
  0110  JMP       (jump)   -> 114
  0111  LOADK     R8 = K30 'extraboard_htptoken_title'
  0112  TEST      if not R8 then   -> -130957
  0113  JMP       (jump)   -> 115
  0114  LOADK     R8 = K31 'extraboard_help_tip3'
  0115  GETTABLE  R9 = R0[K32('m_step3Desc')]
  0116  GETTABUP  R10 = _ENV[K7('GM')]
  0117  GETTABLE  R10 = R10[K34('GameTextModel')]
  0118  SELF      R11 = R10[K35('GetText')] (self)
  0119  MOVE      R12 = R0
  0120  CALL      R10 = call(R10, 1 args, 2 rets)
  0121  SETTABLE  R9[K33('text')] = R10
  0122  RETURN    return R0..R-1
