# PkRace_View_PkRaceBaseWindow_1058.luac
; fn @PkRaceBaseWindow.lua  line 0-0 np=0 va=1 ms=3 code=30 consts=14 upvals=1 protos=3
;   K[0]='PkRaceBaseWindow'
;   K[1]='setmetatable'
;   K[2]='disableEffectWhenCloseView'
;   K[3]=true
;   K[4]='BaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='TryClose'
;   K[8]='OnDestroy'
;   K[9]='PkRaceHelpWindow'
;   K[10]='windowMaskAlpha'
;   K[11]='EWindowMaskAlpha'
;   K[12]='Dark'
;   K[13]='BaseWindow'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('disableEffectWhenCloseView')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('BaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('PkRaceBaseWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('PkRaceBaseWindow')]
0007  GETTABUP  R1 = _ENV[K0('PkRaceBaseWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('PkRaceBaseWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('PkRaceBaseWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('TryClose')] = R1
0015  GETTABUP  R0 = _ENV[K0('PkRaceBaseWindow')]
0016  CLOSURE   R1 = closure proto2
0017  SETTABLE  R0[K8('OnDestroy')] = R1
0018  GETTABUP  R0 = _ENV[K1('setmetatable')]
0019  NEWTABLE  R1 = {} (0 items)
0020  GETTABUP  R2 = _ENV[K11('EWindowMaskAlpha')]
0021  GETTABLE  R2 = R2[K12('Dark')]
0022  SETTABLE  R1[K10('windowMaskAlpha')] = R2
0023  GETTABUP  R2 = _ENV[K13('BaseWindow')]
0024  CALL      R0 = call(R0, 1 args, 2 rets)
0025  SETTABUP  _ENV[K9('PkRaceHelpWindow')] = R0
0026  GETTABUP  R0 = _ENV[K9('PkRaceHelpWindow')]
0027  GETTABUP  R1 = _ENV[K9('PkRaceHelpWindow')]
0028  SETTABLE  R0[K5('__index')] = R1
0029  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 8-39 np=3 va=0 ms=8 code=74 consts=38 upvals=1 protos=1
  ;   K[0]='m_activityType'
  ;   K[1]='m_model'
  ;   K[2]='GM'
  ;   K[3]='ActivityManager'
  ;   K[4]='GetModel'
  ;   K[5]='m_activityDefinition'
  ;   K[6]='GetActivityDefinition'
  ;   K[7]='SetWindowOpened'
  ;   K[8]='m_spine'
  ;   K[9]='Init'
  ;   K[10]='SetAnimation'
  ;   K[11]='appear'
  ;   K[12]='AudioModel'
  ;   K[13]='PlayEffect'
  ;   K[14]='AudioFileConfigName'
  ;   K[15]='SfxPkRaceActivityOpen'
  ;   K[16]='AddAnimation'
  ;   K[17]='idle'
  ;   K[18]='audioSeq'
  ;   K[19]='DOTween'
  ;   K[20]='Sequence'
  ;   K[21]='AppendInterval'
  ;   K[22]=1
  ;   K[23]='AppendCallback'
  ;   K[24]='AddHandlerAndRecordMap'
  ;   K[25]='event'
  ;   K[26]='RaceEventType'
  ;   K[27]='StateChanged'
  ;   K[28]='obj'
  ;   K[29]='method'
  ;   K[30]='TryClose'
  ;   K[31]='LogWindowAction'
  ;   K[32]='EBIType'
  ;   K[33]='UIActionType'
  ;   K[34]='Open'
  ;   K[35]='EBIReferType'
  ;   K[36]='AutoPopup'
  ;   K[37]='UserClick'
  ;   upvals: _ENV
  ;   locals: self(0-74), activityType(0-74), bAutoOpen(0-74)
  0000  SETTABLE  R0[K0('m_activityType')] = R1
  0001  GETTABUP  R3 = _ENV[K2('GM')]
  0002  GETTABLE  R3 = R3[K3('ActivityManager')]
  0003  SELF      R4 = R3[K4('GetModel')] (self)
  0004  MOVE      R5 = R0
  0005  CALL      R3 = call(R3, 1 args, 2 rets)
  0006  SETTABLE  R0[K1('m_model')] = R3
  0007  GETTABLE  R3 = R0[K1('m_model')]
  0008  SELF      R4 = R3[K6('GetActivityDefinition')] (self)
  0009  CALL      R3 = call(R3, 1 args, 1 rets)
  0010  SETTABLE  R0[K5('m_activityDefinition')] = R3
  0011  GETTABLE  R3 = R0[K1('m_model')]
  0012  SELF      R4 = R3[K7('SetWindowOpened')] (self)
  0013  CALL      R3 = call(R3, 0 args, 1 rets)
  0014  GETTABLE  R3 = R0[K8('m_spine')]
  0015  TEST      if not R3 then   -> -131055
  0016  JMP       (jump)   -> 48
  0017  GETTABLE  R3 = R0[K8('m_spine')]
  0018  SELF      R4 = R3[K9('Init')] (self)
  0019  CALL      R3 = call(R3, 0 args, 1 rets)
  0020  GETTABLE  R3 = R0[K8('m_spine')]
  0021  SELF      R4 = R3[K10('SetAnimation')] (self)
  0022  LOADK     R5 = K11 'appear'
  0023  LOADBOOL  R6 = false
  0024  CALL      R3 = call(R3, 0 args, 3 rets)
  0025  GETTABUP  R3 = _ENV[K2('GM')]
  0026  GETTABLE  R3 = R3[K12('AudioModel')]
  0027  SELF      R4 = R3[K13('PlayEffect')] (self)
  0028  GETTABUP  R5 = _ENV[K14('AudioFileConfigName')]
  0029  GETTABLE  R5 = R5[K15('SfxPkRaceActivityOpen')]
  0030  CALL      R3 = call(R3, 0 args, 2 rets)
  0031  GETTABLE  R3 = R0[K8('m_spine')]
  0032  SELF      R4 = R3[K16('AddAnimation')] (self)
  0033  LOADK     R5 = K17 'idle'
  0034  LOADBOOL  R6 = true
  0035  CALL      R3 = call(R3, 0 args, 3 rets)
  0036  GETTABUP  R3 = _ENV[K19('DOTween')]
  0037  GETTABLE  R3 = R3[K20('Sequence')]
  0038  CALL      R3 = call(R3, 1 args, 0 rets)
  0039  SETTABLE  R0[K18('audioSeq')] = R3
  0040  GETTABLE  R3 = R0[K18('audioSeq')]
  0041  SELF      R4 = R3[K21('AppendInterval')] (self)
  0042  LOADK     R5 = K22 1
  0043  CALL      R3 = call(R3, 0 args, 2 rets)
  0044  GETTABLE  R3 = R0[K18('audioSeq')]
  0045  SELF      R4 = R3[K23('AppendCallback')] (self)
  0046  CLOSURE   R5 = closure proto0
  0047  CALL      R3 = call(R3, 0 args, 2 rets)
  0048  GETTABUP  R3 = _ENV[K24('AddHandlerAndRecordMap')]
  0049  GETTABLE  R4 = R0[K1('m_model')]
  0050  GETTABLE  R4 = R4[K25('event')]
  0051  GETTABUP  R5 = _ENV[K26('RaceEventType')]
  0052  GETTABLE  R5 = R5[K27('StateChanged')]
  0053  NEWTABLE  R6 = {} (0 items)
  0054  SETTABLE  R6[K28('obj')] = R0
  0055  GETTABLE  R7 = R0[K30('TryClose')]
  0056  SETTABLE  R6[K29('method')] = R7
  0057  CALL      R3 = call(R3, 0 args, 3 rets)
  0058  SELF      R4 = R0[K31('LogWindowAction')] (self)
  0059  GETTABUP  R5 = _ENV[K32('EBIType')]
  0060  GETTABLE  R5 = R5[K33('UIActionType')]
  0061  GETTABLE  R5 = R5[K34('Open')]
  0062  NEWTABLE  R6 = {} (1 items)
  0063  TEST      if not R2 then   -> -131007
  0064  JMP       (jump)   -> 69
  0065  GETTABUP  R7 = _ENV[K35('EBIReferType')]
  0066  GETTABLE  R7 = R7[K36('AutoPopup')]
  0067  TEST      if not R7 then   -> -131002
  0068  JMP       (jump)   -> 71
  0069  GETTABUP  R7 = _ENV[K35('EBIReferType')]
  0070  GETTABLE  R7 = R7[K37('UserClick')]
  0071  SETLIST   setlist R6[B=1,C=1]
  0072  CALL      R3 = call(R3, 0 args, 3 rets)
  0073  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 23-31 np=0 va=0 ms=3 code=20 consts=9 upvals=2 protos=1
    ;   K[0]='audioSeq'
    ;   K[1]='DOTween'
    ;   K[2]='Sequence'
    ;   K[3]='SetLoops'
    ;   K[4]=-1
    ;   K[5]='AppendInterval'
    ;   K[6]=3
    ;   K[7]='AppendCallback'
    ;   K[8]=3.5
    ;   upvals: self, _ENV
    0000  GETTABUP  R0 = _ENV[K1('DOTween')]
    0001  GETTABLE  R0 = R0[K2('Sequence')]
    0002  CALL      R0 = call(R0, 1 args, 0 rets)
    0003  SELF      R1 = R0[K3('SetLoops')] (self)
    0004  LOADK     R2 = K4 -1
    0005  CALL      R0 = call(R0, 1 args, 2 rets)
    0006  SETTABUP  self[K0('audioSeq')] = R0
    0007  GETTABUP  R0 = self[K0('audioSeq')]
    0008  SELF      R1 = R0[K5('AppendInterval')] (self)
    0009  LOADK     R2 = K6 3
    0010  CALL      R0 = call(R0, 0 args, 2 rets)
    0011  GETTABUP  R0 = self[K0('audioSeq')]
    0012  SELF      R1 = R0[K7('AppendCallback')] (self)
    0013  CLOSURE   R2 = closure proto0
    0014  CALL      R0 = call(R0, 0 args, 2 rets)
    0015  GETTABUP  R0 = self[K0('audioSeq')]
    0016  SELF      R1 = R0[K5('AppendInterval')] (self)
    0017  LOADK     R2 = K8 3.5
    0018  CALL      R0 = call(R0, 0 args, 2 rets)
    0019  RETURN    return R0..R-1
    ; ---------- proto0 [] ----------
      ; fn ?  line 27-29 np=0 va=0 ms=3 code=7 consts=5 upvals=1 protos=0
      ;   K[0]='GM'
      ;   K[1]='AudioModel'
      ;   K[2]='PlayEffect'
      ;   K[3]='AudioFileConfigName'
      ;   K[4]='SfxPkRaceActivityPK'
      ;   upvals: _ENV
      0000  GETTABUP  R0 = _ENV[K0('GM')]
      0001  GETTABLE  R0 = R0[K1('AudioModel')]
      0002  SELF      R1 = R0[K2('PlayEffect')] (self)
      0003  GETTABUP  R2 = _ENV[K3('AudioFileConfigName')]
      0004  GETTABLE  R2 = R2[K4('SfxPkRaceActivityPK')]
      0005  CALL      R0 = call(R0, 0 args, 2 rets)
      0006  RETURN    return R0..R-1
; ---------- proto1 [TryClose] ----------
  ; fn ?  line 42-44 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='Close'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto2 [OnDestroy] ----------
  ; fn ?  line 46-55 np=1 va=0 ms=4 code=20 consts=8 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnDestroy'
  ;   K[2]='m_model'
  ;   K[3]=nil
  ;   K[4]='RemoveAllHandlers'
  ;   K[5]='event'
  ;   K[6]='audioSeq'
  ;   K[7]='Kill'
  ;   upvals: _ENV
  ;   locals: self(0-20)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnDestroy')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABLE  R1 = R0[K2('m_model')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 12
  0007  GETTABUP  R1 = _ENV[K4('RemoveAllHandlers')]
  0008  GETTABLE  R2 = R0[K2('m_model')]
  0009  GETTABLE  R2 = R2[K5('event')]
  0010  MOVE      R3 = R0
  0011  CALL      R1 = call(R1, 0 args, 2 rets)
  0012  GETTABLE  R1 = R0[K6('audioSeq')]
  0013  EQ        if R1 eq K3(nil)   -> -130286
  0014  JMP       (jump)   -> 19
  0015  GETTABLE  R1 = R0[K6('audioSeq')]
  0016  SELF      R2 = R1[K7('Kill')] (self)
  0017  CALL      R1 = call(R1, 0 args, 1 rets)
  0018  SETTABLE  R0[K6('audioSeq')] = K3(nil)
  0019  RETURN    return R0..R-1
