# CoinRaceActivity_View_CoinRaceHelpWindow_891.luac
; fn @CoinRaceHelpWindow.lua  line 0-0 np=0 va=1 ms=3 code=15 consts=8 upvals=1 protos=1
;   K[0]='CoinRaceHelpWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='BaseWindow'
;   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('BaseWindow')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('CoinRaceHelpWindow')] = R0
0008  GETTABUP  R0 = _ENV[K0('CoinRaceHelpWindow')]
0009  GETTABUP  R1 = _ENV[K0('CoinRaceHelpWindow')]
0010  SETTABLE  R0[K6('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('CoinRaceHelpWindow')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K7('Init')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-22 np=3 va=0 ms=8 code=42 consts=19 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GM'
  ;   K[2]='ActivityManager'
  ;   K[3]='GetModel'
  ;   K[4]=nil
  ;   K[5]='LogWindowAction'
  ;   K[6]='EBIType'
  ;   K[7]='UIActionType'
  ;   K[8]='Open'
  ;   K[9]='EBIReferType'
  ;   K[10]='AutoPopup'
  ;   K[11]='UserClick'
  ;   K[12]='AddHandlerAndRecordMap'
  ;   K[13]='event'
  ;   K[14]='RaceEventType'
  ;   K[15]='StateChanged'
  ;   K[16]='obj'
  ;   K[17]='method'
  ;   K[18]='Close'
  ;   upvals: _ENV
  ;   locals: self(0-42), activityType(0-42), autoOpen(0-42)
  0000  GETTABUP  R3 = _ENV[K1('GM')]
  0001  GETTABLE  R3 = R3[K2('ActivityManager')]
  0002  SELF      R4 = R3[K3('GetModel')] (self)
  0003  MOVE      R5 = R0
  0004  CALL      R3 = call(R3, 1 args, 2 rets)
  0005  SETTABLE  R0[K0('m_model')] = R3
  0006  GETTABLE  R3 = R0[K0('m_model')]
  0007  EQ        if R0 eq K4(nil)   -> -129267
  0008  JMP       (jump)   -> 10
  0009  RETURN    return R0..R-1
  0010  TEST      if not R2 then   -> -131060
  0011  JMP       (jump)   -> 22
  0012  SELF      R4 = R0[K5('LogWindowAction')] (self)
  0013  GETTABUP  R5 = _ENV[K6('EBIType')]
  0014  GETTABLE  R5 = R5[K7('UIActionType')]
  0015  GETTABLE  R5 = R5[K8('Open')]
  0016  NEWTABLE  R6 = {} (1 items)
  0017  GETTABUP  R7 = _ENV[K9('EBIReferType')]
  0018  GETTABLE  R7 = R7[K10('AutoPopup')]
  0019  SETLIST   setlist R6[B=1,C=1]
  0020  CALL      R3 = call(R3, 0 args, 3 rets)
  0021  JMP       (jump)   -> 31
  0022  SELF      R4 = R0[K5('LogWindowAction')] (self)
  0023  GETTABUP  R5 = _ENV[K6('EBIType')]
  0024  GETTABLE  R5 = R5[K7('UIActionType')]
  0025  GETTABLE  R5 = R5[K8('Open')]
  0026  NEWTABLE  R6 = {} (1 items)
  0027  GETTABUP  R7 = _ENV[K9('EBIReferType')]
  0028  GETTABLE  R7 = R7[K11('UserClick')]
  0029  SETLIST   setlist R6[B=1,C=1]
  0030  CALL      R3 = call(R3, 0 args, 3 rets)
  0031  GETTABUP  R3 = _ENV[K12('AddHandlerAndRecordMap')]
  0032  GETTABLE  R4 = R0[K0('m_model')]
  0033  GETTABLE  R4 = R4[K13('event')]
  0034  GETTABUP  R5 = _ENV[K14('RaceEventType')]
  0035  GETTABLE  R5 = R5[K15('StateChanged')]
  0036  NEWTABLE  R6 = {} (0 items)
  0037  SETTABLE  R6[K16('obj')] = R0
  0038  GETTABLE  R7 = R0[K18('Close')]
  0039  SETTABLE  R6[K17('method')] = R7
  0040  CALL      R3 = call(R3, 0 args, 3 rets)
  0041  RETURN    return R0..R-1
