# CrashRace_View_CrashRaceTopSlider_1096.luac
; fn @CrashRaceTopSlider.lua  line 0-0 np=0 va=1 ms=2 code=15 consts=6 upvals=1 protos=3
;   K[0]='CrashRaceTopSlider'
;   K[1]='__index'
;   K[2]='Init'
;   K[3]='CrashRaceTopSlider'
;   K[4]='OnDestroy'
;   K[5]='_CarShow'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('CrashRaceTopSlider')] = R0
0002  GETTABUP  R0 = _ENV[K0('CrashRaceTopSlider')]
0003  GETTABUP  R1 = _ENV[K0('CrashRaceTopSlider')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('CrashRaceTopSlider')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Init')] = R1
0008  GETTABUP  R0 = _ENV[K3('CrashRaceTopSlider')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K4('OnDestroy')] = R1
0011  GETTABUP  R0 = _ENV[K3('CrashRaceTopSlider')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K5('_CarShow')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 5-30 np=5 va=0 ms=13 code=63 consts=31 upvals=1 protos=1
  ;   K[0]='m_damage'
  ;   K[1]='SetActive'
  ;   K[2]='m_model'
  ;   K[3]='GM'
  ;   K[4]='ActivityManager'
  ;   K[5]='GetModel'
  ;   K[6]='m_descText'
  ;   K[7]='text'
  ;   K[8]='GameTextModel'
  ;   K[9]='GetText'
  ;   K[10]='m_blueHeartText'
  ;   K[11]='m_redHeartText'
  ;   K[12]='GetPlayerHpNum'
  ;   K[13]='m_damageText'
  ;   K[14]='tostring'
  ;   K[15]='DelayExecuteFuncInView'
  ;   K[16]=0.5
  ;   K[17]=''
  ;   K[18]='GetTargetScore'
  ;   K[19]=0.3
  ;   K[20]='Under30%'
  ;   K[21]=0.6
  ;   K[22]='Under60%'
  ;   K[23]='BIManager'
  ;   K[24]='LogUI'
  ;   K[25]='CrashRaceTopSlider'
  ;   K[26]='EBIType'
  ;   K[27]='UIActionType'
  ;   K[28]='Open'
  ;   K[29]='EBIReferType'
  ;   K[30]='AutoPopup'
  ;   upvals: _ENV
  ;   locals: self(0-63), activityType(0-63), textKey(0-63), lastOwnHp(0-63), currOwnHp(0-63), ext(39-63), targetScore(42-63)
  0000  GETTABLE  R5 = R0[K0('m_damage')]
  0001  SELF      R6 = R5[K1('SetActive')] (self)
  0002  LOADBOOL  R7 = false
  0003  CALL      R5 = call(R5, 0 args, 2 rets)
  0004  GETTABUP  R5 = _ENV[K3('GM')]
  0005  GETTABLE  R5 = R5[K4('ActivityManager')]
  0006  SELF      R6 = R5[K5('GetModel')] (self)
  0007  MOVE      R7 = R0
  0008  CALL      R5 = call(R5, 1 args, 2 rets)
  0009  SETTABLE  R0[K2('m_model')] = R5
  0010  GETTABLE  R5 = R0[K6('m_descText')]
  0011  GETTABUP  R6 = _ENV[K3('GM')]
  0012  GETTABLE  R6 = R6[K8('GameTextModel')]
  0013  SELF      R7 = R6[K9('GetText')] (self)
  0014  MOVE      R8 = R0
  0015  CALL      R6 = call(R6, 1 args, 2 rets)
  0016  SETTABLE  R5[K7('text')] = R6
  0017  GETTABLE  R5 = R0[K10('m_blueHeartText')]
  0018  SETTABLE  R5[K7('text')] = R3
  0019  GETTABLE  R5 = R0[K11('m_redHeartText')]
  0020  GETTABLE  R6 = R0[K2('m_model')]
  0021  SELF      R7 = R6[K12('GetPlayerHpNum')] (self)
  0022  CALL      R6 = call(R6, 1 args, 1 rets)
  0023  SETTABLE  R5[K7('text')] = R6
  0024  GETTABLE  R5 = R0[K13('m_damageText')]
  0025  GETTABUP  R6 = _ENV[K14('tostring')]
  0026  SUB       R7 = R3 sub R4
  0027  CALL      R6 = call(R6, 1 args, 1 rets)
  0028  SETTABLE  R5[K7('text')] = R6
  0029  GETTABLE  R5 = R0[K0('m_damage')]
  0030  SELF      R6 = R5[K1('SetActive')] (self)
  0031  LOADBOOL  R7 = true
  0032  CALL      R5 = call(R5, 0 args, 2 rets)
  0033  GETTABUP  R5 = _ENV[K15('DelayExecuteFuncInView')]
  0034  CLOSURE   R6 = closure proto0
  0035  LOADK     R7 = K16 0.5
  0036  MOVE      R8 = R0
  0037  CALL      R5 = call(R5, 0 args, 3 rets)
  0038  LOADK     R5 = K17 ''
  0039  GETTABLE  R6 = R0[K2('m_model')]
  0040  SELF      R7 = R6[K18('GetTargetScore')] (self)
  0041  CALL      R6 = call(R6, 1 args, 1 rets)
  0042  MUL       R7 = K19(0.3) mul R6
  0043  LE        if R0 le R7   -> -128972
  0044  JMP       (jump)   -> 47
  0045  LOADK     R5 = K20 'Under30%'
  0046  JMP       (jump)   -> 51
  0047  MUL       R7 = K21(0.6) mul R6
  0048  LE        if R0 le R7   -> -128967
  0049  JMP       (jump)   -> 51
  0050  LOADK     R5 = K22 'Under60%'
  0051  GETTABUP  R7 = _ENV[K3('GM')]
  0052  GETTABLE  R7 = R7[K23('BIManager')]
  0053  SELF      R8 = R7[K24('LogUI')] (self)
  0054  LOADK     R9 = K25 'CrashRaceTopSlider'
  0055  GETTABUP  R10 = _ENV[K26('EBIType')]
  0056  GETTABLE  R10 = R10[K27('UIActionType')]
  0057  GETTABLE  R10 = R10[K28('Open')]
  0058  GETTABUP  R11 = _ENV[K29('EBIReferType')]
  0059  GETTABLE  R11 = R11[K30('AutoPopup')]
  0060  MOVE      R12 = R0
  0061  CALL      R7 = call(R7, 0 args, 5 rets)
  0062  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 15-20 np=0 va=0 ms=4 code=9 consts=3 upvals=3 protos=1
    ;   K[0]='_CarShow'
    ;   K[1]='DelayExecuteFuncInView'
    ;   K[2]=0.1
    ;   upvals: self, _ENV, currOwnHp
    0000  GETUPVAL  R0 = self
    0001  SELF      R1 = R0[K0('_CarShow')] (self)
    0002  CALL      R0 = call(R0, 0 args, 1 rets)
    0003  GETTABUP  R0 = _ENV[K1('DelayExecuteFuncInView')]
    0004  CLOSURE   R1 = closure proto0
    0005  LOADK     R2 = K2 0.1
    0006  GETUPVAL  R3 = self
    0007  CALL      R0 = call(R0, 0 args, 3 rets)
    0008  RETURN    return R0..R-1
    ; ---------- proto0 [] ----------
      ; fn ?  line 17-19 np=0 va=0 ms=2 code=4 consts=2 upvals=2 protos=0
      ;   K[0]='m_blueHeartText'
      ;   K[1]='text'
      ;   upvals: self, currOwnHp
      0000  GETTABUP  R0 = self[K0('m_blueHeartText')]
      0001  GETUPVAL  R1 = self
      0002  SETTABLE  R0[K1('text')] = R1
      0003  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 32-34 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='Scheduler'
  ;   K[1]='UnscheduleTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('Scheduler')]
  0001  GETTABLE  R1 = R1[K1('UnscheduleTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto2 [_CarShow] ----------
  ; fn ?  line 36-40 np=1 va=0 ms=4 code=8 consts=3 upvals=0 protos=0
  ;   K[0]='m_boardAnimator'
  ;   K[1]='SetTrigger'
  ;   K[2]='Show'
  ;   locals: self(0-8)
  0000  GETTABLE  R1 = R0[K0('m_boardAnimator')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_boardAnimator')]
  0004  SELF      R2 = R1[K1('SetTrigger')] (self)
  0005  LOADK     R3 = K2 'Show'
  0006  CALL      R1 = call(R1, 0 args, 2 rets)
  0007  RETURN    return R0..R-1
