# OrdersNonstop_View_OrdersNonstopEndWindow_1295.luac
; fn @OrdersNonstopEndWindow.lua  line 0-0 np=0 va=1 ms=3 code=12 consts=5 upvals=1 protos=1
;   K[0]='OrdersNonstopEndWindow'
;   K[1]='setmetatable'
;   K[2]='OrdersNonstopBaseWindow'
;   K[3]='__index'
;   K[4]='Init'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('OrdersNonstopBaseWindow')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('OrdersNonstopEndWindow')] = R0
0005  GETTABUP  R0 = _ENV[K0('OrdersNonstopEndWindow')]
0006  GETTABUP  R1 = _ENV[K0('OrdersNonstopEndWindow')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('OrdersNonstopEndWindow')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 5-21 np=1 va=1 ms=7 code=40 consts=18 upvals=1 protos=0
  ;   K[0]='OrdersNonstopBaseWindow'
  ;   K[1]='Init'
  ;   K[2]='m_model'
  ;   K[3]=nil
  ;   K[4]='SetPopEndWindow'
  ;   K[5]='IsSettleAllRound'
  ;   K[6]='<sprite="ordersnonstop_sugar_icon" name="ordersnonstop_sugar_icon">'
  ;   K[7]='m_endText'
  ;   K[8]='text'
  ;   K[9]='GM'
  ;   K[10]='GameTextModel'
  ;   K[11]='GetText'
  ;   K[12]='ordersnonstop_finish_desc'
  ;   K[13]='ordersnonstop_end_desc'
  ;   K[14]='EventDispatcher'
  ;   K[15]='DispatchEvent'
  ;   K[16]='EEventType'
  ;   K[17]='OrdersNonstopPopStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-40), strToken(18-26)
  0000  GETTABUP  R1 = _ENV[K0('OrdersNonstopBaseWindow')]
  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  EQ        if R1 eq K3(nil)   -> -130293
  0007  JMP       (jump)   -> 12
  0008  GETTABLE  R1 = R0[K2('m_model')]
  0009  SELF      R2 = R1[K4('SetPopEndWindow')] (self)
  0010  LOADBOOL  R3 = false
  0011  CALL      R1 = call(R1, 0 args, 2 rets)
  0012  GETTABLE  R1 = R0[K2('m_model')]
  0013  SELF      R2 = R1[K5('IsSettleAllRound')] (self)
  0014  CALL      R1 = call(R1, 1 args, 1 rets)
  0015  TEST      if not R1 then   -> -131055
  0016  JMP       (jump)   -> 27
  0017  LOADK     R1 = K6 '<sprite="ordersnonstop_sugar_icon" name="ordersnonstop_sugar_icon">'
  0018  GETTABLE  R2 = R0[K7('m_endText')]
  0019  GETTABUP  R3 = _ENV[K9('GM')]
  0020  GETTABLE  R3 = R3[K10('GameTextModel')]
  0021  SELF      R4 = R3[K11('GetText')] (self)
  0022  LOADK     R5 = K12 'ordersnonstop_finish_desc'
  0023  MOVE      R6 = R0
  0024  CALL      R3 = call(R3, 1 args, 3 rets)
  0025  SETTABLE  R2[K8('text')] = R3
  0026  JMP       (jump)   -> 34
  0027  GETTABLE  R1 = R0[K7('m_endText')]
  0028  GETTABUP  R2 = _ENV[K9('GM')]
  0029  GETTABLE  R2 = R2[K10('GameTextModel')]
  0030  SELF      R3 = R2[K11('GetText')] (self)
  0031  LOADK     R4 = K13 'ordersnonstop_end_desc'
  0032  CALL      R2 = call(R2, 1 args, 2 rets)
  0033  SETTABLE  R1[K8('text')] = R2
  0034  GETTABUP  R1 = _ENV[K14('EventDispatcher')]
  0035  GETTABLE  R1 = R1[K15('DispatchEvent')]
  0036  GETTABUP  R2 = _ENV[K16('EEventType')]
  0037  GETTABLE  R2 = R2[K17('OrdersNonstopPopStateChanged')]
  0038  CALL      R1 = call(R1, 0 args, 1 rets)
  0039  RETURN    return R0..R-1
