# IceComboActivity_View_IceComboBaseWindow_1937.luac
; fn @IceComboBaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=30 consts=13 upvals=1 protos=3
;   K[0]='IceComboBaseWindow'
;   K[1]='setmetatable'
;   K[2]='m_bCloseWhenFail'
;   K[3]=true
;   K[4]='BaseActivityBaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='_OnFail'
;   K[8]='IceComboHelpWindow'
;   K[9]='windowMaskAlpha'
;   K[10]='EWindowMaskAlpha'
;   K[11]='Dark'
;   K[12]='Init'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('m_bCloseWhenFail')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('BaseActivityBaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('IceComboBaseWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('IceComboBaseWindow')]
0007  GETTABUP  R1 = _ENV[K0('IceComboBaseWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('IceComboBaseWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('IceComboBaseWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('_OnFail')] = R1
0015  GETTABUP  R0 = _ENV[K1('setmetatable')]
0016  NEWTABLE  R1 = {} (0 items)
0017  GETTABUP  R2 = _ENV[K10('EWindowMaskAlpha')]
0018  GETTABLE  R2 = R2[K11('Dark')]
0019  SETTABLE  R1[K9('windowMaskAlpha')] = R2
0020  GETTABUP  R2 = _ENV[K0('IceComboBaseWindow')]
0021  CALL      R0 = call(R0, 1 args, 2 rets)
0022  SETTABUP  _ENV[K8('IceComboHelpWindow')] = R0
0023  GETTABUP  R0 = _ENV[K8('IceComboHelpWindow')]
0024  GETTABUP  R1 = _ENV[K8('IceComboHelpWindow')]
0025  SETTABLE  R0[K5('__index')] = R1
0026  GETTABUP  R0 = _ENV[K8('IceComboHelpWindow')]
0027  CLOSURE   R1 = closure proto2
0028  SETTABLE  R0[K12('Init')] = R1
0029  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 9-14 np=1 va=1 ms=5 code=16 consts=8 upvals=1 protos=0
  ;   K[0]='BaseActivityBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_bCloseWhenFail'
  ;   K[3]='EventDispatcher'
  ;   K[4]='AddListener'
  ;   K[5]='m_activityDefinition'
  ;   K[6]='FailEvent'
  ;   K[7]='_OnFail'
  ;   upvals: _ENV
  ;   locals: self(0-16)
  0000  GETTABUP  R1 = _ENV[K0('BaseActivityBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  GETTABLE  R1 = R0[K2('m_bCloseWhenFail')]
  0006  TEST      if not R1 then   -> -131064
  0007  JMP       (jump)   -> 15
  0008  GETTABUP  R1 = _ENV[K3('EventDispatcher')]
  0009  GETTABLE  R1 = R1[K4('AddListener')]
  0010  GETTABLE  R2 = R0[K5('m_activityDefinition')]
  0011  GETTABLE  R2 = R2[K6('FailEvent')]
  0012  MOVE      R3 = R0
  0013  GETTABLE  R4 = R0[K7('_OnFail')]
  0014  CALL      R1 = call(R1, 0 args, 3 rets)
  0015  RETURN    return R0..R-1
; ---------- proto1 [_OnFail] ----------
  ; fn ?  line 16-21 np=1 va=0 ms=3 code=13 consts=4 upvals=0 protos=0
  ;   K[0]='_IsActivityValid'
  ;   K[1]='GetModel'
  ;   K[2]='NeedPopFailWindow'
  ;   K[3]='Close'
  ;   locals: self(0-13)
  0000  SELF      R2 = R0[K0('_IsActivityValid')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  TEST      if not R1 then   -> -131068
  0003  JMP       (jump)   -> 12
  0004  SELF      R2 = R0[K1('GetModel')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  SELF      R2 = R1[K2('NeedPopFailWindow')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  TEST      if not R1 then   -> -131062
  0009  JMP       (jump)   -> 12
  0010  SELF      R2 = R0[K3('Close')] (self)
  0011  CALL      R1 = call(R1, 0 args, 1 rets)
  0012  RETURN    return R0..R-1
; ---------- proto2 [Init] ----------
  ; fn ?  line 30-39 np=1 va=1 ms=7 code=41 consts=20 upvals=1 protos=0
  ;   K[0]='IceComboBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_descText1'
  ;   K[3]='text'
  ;   K[4]='GM'
  ;   K[5]='GameTextModel'
  ;   K[6]='GetText'
  ;   K[7]='iceCombo_instruction_1'
  ;   K[8]='m_activityDefinition'
  ;   K[9]='TokenImageName'
  ;   K[10]='m_descText2'
  ;   K[11]='iceCombo_instruction_2'
  ;   K[12]='RewardTokenImageName'
  ;   K[13]='m_model'
  ;   K[14]='GetMultiArray'
  ;   K[15]=2
  ;   K[16]=1
  ;   K[17]='m_multiContent'
  ;   K[18]='m_multiNumText'
  ;   K[19]='x'
  ;   upvals: _ENV
  ;   locals: self(0-41), arrMultiNum(26-41), multiNum(30-41)
  0000  GETTABUP  R1 = _ENV[K0('IceComboBaseWindow')]
  0001  GETTABLE  R1 = R1[K1('Init')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  GETTABLE  R1 = R0[K2('m_descText1')]
  0006  GETTABUP  R2 = _ENV[K4('GM')]
  0007  GETTABLE  R2 = R2[K5('GameTextModel')]
  0008  SELF      R3 = R2[K6('GetText')] (self)
  0009  LOADK     R4 = K7 'iceCombo_instruction_1'
  0010  GETTABLE  R5 = R0[K8('m_activityDefinition')]
  0011  GETTABLE  R5 = R5[K9('TokenImageName')]
  0012  CALL      R2 = call(R2, 1 args, 3 rets)
  0013  SETTABLE  R1[K3('text')] = R2
  0014  GETTABLE  R1 = R0[K10('m_descText2')]
  0015  GETTABUP  R2 = _ENV[K4('GM')]
  0016  GETTABLE  R2 = R2[K5('GameTextModel')]
  0017  SELF      R3 = R2[K6('GetText')] (self)
  0018  LOADK     R4 = K11 'iceCombo_instruction_2'
  0019  GETTABLE  R5 = R0[K8('m_activityDefinition')]
  0020  GETTABLE  R5 = R5[K12('RewardTokenImageName')]
  0021  CALL      R2 = call(R2, 1 args, 3 rets)
  0022  SETTABLE  R1[K3('text')] = R2
  0023  GETTABLE  R1 = R0[K13('m_model')]
  0024  SELF      R2 = R1[K14('GetMultiArray')] (self)
  0025  CALL      R1 = call(R1, 1 args, 1 rets)
  0026  GETTABLE  R2 = R1[K15(2)]
  0027  TEST      if not R2 then   -> -131042
  0028  JMP       (jump)   -> 30
  0029  LOADK     R2 = K16 1
  0030  GETTABLE  R3 = R0[K17('m_multiContent')]
  0031  SELF      R4 = R3[K1('Init')] (self)
  0032  MOVE      R5 = R0
  0033  MOVE      R6 = R0
  0034  CALL      R3 = call(R3, 0 args, 3 rets)
  0035  GETTABLE  R3 = R0[K18('m_multiNumText')]
  0036  LOADK     R4 = K19 'x'
  0037  MOVE      R5 = R0
  0038  CONCAT    R4 = concat(R4..R4)
  0039  SETTABLE  R3[K3('text')] = R4
  0040  RETURN    return R0..R-1
