# IceComboActivity_View_IceComboEndWindow_1947.luac
; fn @IceComboEndWindow.lua  line 0-0 np=0 va=1 ms=3 code=12 consts=5 upvals=1 protos=1
;   K[0]='IceComboEndWindow'
;   K[1]='setmetatable'
;   K[2]='IceComboBaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('IceComboBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('IceComboEndWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('IceComboEndWindow')]
0006  GETTABUP  R1 = _ENV[K0('IceComboEndWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('IceComboEndWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 5-13 np=1 va=1 ms=8 code=37 consts=15 upvals=1 protos=0
  ;   K[0]='IceComboBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_model'
  ;   K[3]='GetProgressHelper'
  ;   K[4]='HasFinishedAllLevelAndAcquiredRewards'
  ;   K[5]='event_general_complete'
  ;   K[6]='event_general_end'
  ;   K[7]='m_endTitleText'
  ;   K[8]='text'
  ;   K[9]='GM'
  ;   K[10]='GameTextModel'
  ;   K[11]='GetText'
  ;   K[12]='iceCombo_complete_desc'
  ;   K[13]='iceCombo_end_desc'
  ;   K[14]='m_endDescText'
  ;   upvals: _ENV
  ;   locals: self(0-37), bHasFinished(10-37), titleKey(16-37), descKey(29-37)
  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_model')]
  0006  SELF      R2 = R1[K3('GetProgressHelper')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  SELF      R2 = R1[K4('HasFinishedAllLevelAndAcquiredRewards')] (self)
  0009  CALL      R1 = call(R1, 1 args, 1 rets)
  0010  TEST      if not R1 then   -> -131060
  0011  JMP       (jump)   -> 15
  0012  LOADK     R2 = K5 'event_general_complete'
  0013  TEST      if not R2 then   -> -131056
  0014  JMP       (jump)   -> 16
  0015  LOADK     R2 = K6 'event_general_end'
  0016  GETTABLE  R3 = R0[K7('m_endTitleText')]
  0017  GETTABUP  R4 = _ENV[K9('GM')]
  0018  GETTABLE  R4 = R4[K10('GameTextModel')]
  0019  SELF      R5 = R4[K11('GetText')] (self)
  0020  MOVE      R6 = R0
  0021  CALL      R4 = call(R4, 1 args, 2 rets)
  0022  SETTABLE  R3[K8('text')] = R4
  0023  TEST      if not R1 then   -> -131047
  0024  JMP       (jump)   -> 28
  0025  LOADK     R3 = K12 'iceCombo_complete_desc'
  0026  TEST      if not R3 then   -> -131043
  0027  JMP       (jump)   -> 29
  0028  LOADK     R3 = K13 'iceCombo_end_desc'
  0029  GETTABLE  R4 = R0[K14('m_endDescText')]
  0030  GETTABUP  R5 = _ENV[K9('GM')]
  0031  GETTABLE  R5 = R5[K10('GameTextModel')]
  0032  SELF      R6 = R5[K11('GetText')] (self)
  0033  MOVE      R7 = R0
  0034  CALL      R5 = call(R5, 1 args, 2 rets)
  0035  SETTABLE  R4[K8('text')] = R5
  0036  RETURN    return R0..R-1
