# CookBoostActivity_View_CookBoostActivityFlyingFire_1665.luac
; fn @CookBoostActivityFlyingFire.lua  line 0-0 np=0 va=1 ms=2 code=18 consts=6 upvals=1 protos=4
;   K[0]='CookBoostActivityFlyingFire'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='OnDestroy'
;   K[4]='SetDestroyWhenChangeGameMode'
;   K[5]='_OnChangeGameMode'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('CookBoostActivityFlyingFire')] = R0
0002  GETTABUP  R0 = _ENV[K0('CookBoostActivityFlyingFire')]
0003  GETTABUP  R1 = _ENV[K0('CookBoostActivityFlyingFire')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('CookBoostActivityFlyingFire')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K0('CookBoostActivityFlyingFire')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K3('OnDestroy')] = R1
0011  GETTABUP  R0 = _ENV[K0('CookBoostActivityFlyingFire')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K4('SetDestroyWhenChangeGameMode')] = R1
0014  GETTABUP  R0 = _ENV[K0('CookBoostActivityFlyingFire')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K5('_OnChangeGameMode')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 11-18 np=3 va=0 ms=11 code=26 consts=10 upvals=1 protos=0
  ;   K[0]=1
  ;   K[1]=3
  ;   K[2]='UIUtil'
  ;   K[3]='SetActive'
  ;   K[4]='string'
  ;   K[5]='format'
  ;   K[6]='m_fireTrailGo%d'
  ;   K[7]='IsNumber'
  ;   K[8]='m_sortingGroup'
  ;   K[9]='sortingOrder'
  ;   upvals: _ENV
  ;   locals: self(0-26), configIndex(0-26), sortingOrder(0-26), (for index)(3-18), (for limit)(3-18), (for step)(3-18), index(4-17)
  0000  LOADK     R3 = K0 1
  0001  LOADK     R4 = K1 3
  0002  LOADK     R5 = K0 1
  0003  FORPREP   forprep R3(sBx=13)   -> 17
  0004  GETTABUP  R7 = _ENV[K2('UIUtil')]
  0005  GETTABLE  R7 = R7[K3('SetActive')]
  0006  GETTABUP  R8 = _ENV[K4('string')]
  0007  GETTABLE  R8 = R8[K5('format')]
  0008  LOADK     R9 = K6 'm_fireTrailGo%d'
  0009  MOVE      R10 = R0
  0010  CALL      R8 = call(R8, 1 args, 2 rets)
  0011  GETTABLE  R8 = R0[R8]
  0012  EQ        if R1 eq R6   -> -130540
  0013  JMP       (jump)   -> 15
  0014  LOADBOOL  R9 = false
  0015  LOADBOOL  R9 = true
  0016  CALL      R7 = call(R7, 0 args, 2 rets)
  0017  FORLOOP   forloop R3(sBx=-14)   -> 4
  0018  GETTABUP  R3 = _ENV[K7('IsNumber')]
  0019  MOVE      R4 = R0
  0020  CALL      R3 = call(R3, 1 args, 1 rets)
  0021  TEST      if not R3 then   -> -131049
  0022  JMP       (jump)   -> 25
  0023  GETTABLE  R3 = R0[K8('m_sortingGroup')]
  0024  SETTABLE  R3[K9('sortingOrder')] = R2
  0025  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 20-22 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto2 [SetDestroyWhenChangeGameMode] ----------
  ; fn ?  line 25-28 np=2 va=0 ms=6 code=9 consts=6 upvals=1 protos=0
  ;   K[0]='m_funcOnDestroy'
  ;   K[1]='EventDispatcher'
  ;   K[2]='AddListener'
  ;   K[3]='EEventType'
  ;   K[4]='ChangeGameMode'
  ;   K[5]='_OnChangeGameMode'
  ;   upvals: _ENV
  ;   locals: self(0-9), funcOnDestroy(0-9)
  0000  SETTABLE  R0[K0('m_funcOnDestroy')] = R1
  0001  GETTABUP  R2 = _ENV[K1('EventDispatcher')]
  0002  GETTABLE  R2 = R2[K2('AddListener')]
  0003  GETTABUP  R3 = _ENV[K3('EEventType')]
  0004  GETTABLE  R3 = R3[K4('ChangeGameMode')]
  0005  MOVE      R4 = R0
  0006  GETTABLE  R5 = R0[K5('_OnChangeGameMode')]
  0007  CALL      R2 = call(R2, 0 args, 3 rets)
  0008  RETURN    return R0..R-1
; ---------- proto3 [_OnChangeGameMode] ----------
  ; fn ?  line 30-36 np=1 va=0 ms=3 code=12 consts=5 upvals=1 protos=0
  ;   K[0]='IsFunction'
  ;   K[1]='m_funcOnDestroy'
  ;   K[2]=nil
  ;   K[3]='gameObject'
  ;   K[4]='RemoveSelf'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('IsFunction')]
  0001  GETTABLE  R2 = R0[K1('m_funcOnDestroy')]
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 8
  0005  GETTABLE  R1 = R0[K1('m_funcOnDestroy')]
  0006  CALL      R1 = call(R1, 0 args, 0 rets)
  0007  SETTABLE  R0[K1('m_funcOnDestroy')] = K2(nil)
  0008  GETTABLE  R1 = R0[K3('gameObject')]
  0009  SELF      R2 = R1[K4('RemoveSelf')] (self)
  0010  CALL      R1 = call(R1, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
