# CookBoostActivity_View_CookBoostActivityProgress_1658.luac
; fn @CookBoostActivityProgress.lua  line 0-0 np=0 va=1 ms=4 code=31 consts=11 upvals=1 protos=7
;   K[0]='CookBoostActivityProgress'
;   K[1]='__index'
;   K[2]='ConfigIndex'
;   K[3]='configIndex'
;   K[4]='Change'
;   K[5]='Init'
;   K[6]='_InitProgressPot'
;   K[7]='UpdateConfigIndex'
;   K[8]='SpeedUp'
;   K[9]='PlayPotAnimation'
;   K[10]='OnProgressAnimationEnd'
;   upvals: _ENV
;   locals: EAnimatorParameterKey(7-31), EAnimatorTriggerKey(9-31)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('CookBoostActivityProgress')] = R0
0002  GETTABUP  R0 = _ENV[K0('CookBoostActivityProgress')]
0003  GETTABUP  R1 = _ENV[K0('CookBoostActivityProgress')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  NEWTABLE  R0 = {} (0 items)
0006  SETTABLE  R0[K2('ConfigIndex')] = K3('configIndex')
0007  NEWTABLE  R1 = {} (0 items)
0008  SETTABLE  R1[K4('Change')] = K4('Change')
0009  GETTABUP  R2 = _ENV[K0('CookBoostActivityProgress')]
0010  CLOSURE   R3 = closure proto0
0011  SETTABLE  R2[K5('Init')] = R3
0012  GETTABUP  R2 = _ENV[K0('CookBoostActivityProgress')]
0013  CLOSURE   R3 = closure proto1
0014  SETTABLE  R2[K6('_InitProgressPot')] = R3
0015  GETTABUP  R2 = _ENV[K0('CookBoostActivityProgress')]
0016  CLOSURE   R3 = closure proto2
0017  SETTABLE  R2[K4('Change')] = R3
0018  GETTABUP  R2 = _ENV[K0('CookBoostActivityProgress')]
0019  CLOSURE   R3 = closure proto3
0020  SETTABLE  R2[K7('UpdateConfigIndex')] = R3
0021  GETTABUP  R2 = _ENV[K0('CookBoostActivityProgress')]
0022  CLOSURE   R3 = closure proto4
0023  SETTABLE  R2[K8('SpeedUp')] = R3
0024  GETTABUP  R2 = _ENV[K0('CookBoostActivityProgress')]
0025  CLOSURE   R3 = closure proto5
0026  SETTABLE  R2[K9('PlayPotAnimation')] = R3
0027  GETTABUP  R2 = _ENV[K0('CookBoostActivityProgress')]
0028  CLOSURE   R3 = closure proto6
0029  SETTABLE  R2[K10('OnProgressAnimationEnd')] = R3
0030  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 22-25 np=3 va=0 ms=7 code=8 consts=2 upvals=0 protos=0
  ;   K[0]='UpdateConfigIndex'
  ;   K[1]='_InitProgressPot'
  ;   locals: self(0-8), configIndex(0-8), bIsFinished(0-8)
  0000  SELF      R4 = R0[K0('UpdateConfigIndex')] (self)
  0001  MOVE      R5 = R0
  0002  CALL      R3 = call(R3, 0 args, 2 rets)
  0003  SELF      R4 = R0[K1('_InitProgressPot')] (self)
  0004  MOVE      R5 = R0
  0005  MOVE      R6 = R0
  0006  CALL      R3 = call(R3, 0 args, 3 rets)
  0007  RETURN    return R0..R-1
; ---------- proto1 [_InitProgressPot] ----------
  ; fn ?  line 29-36 np=3 va=0 ms=12 code=24 consts=6 upvals=1 protos=0
  ;   K[0]=1
  ;   K[1]=3
  ;   K[2]='string'
  ;   K[3]='format'
  ;   K[4]='m_progressPot%d'
  ;   K[5]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-24), configIndex(0-24), bIsFinished(0-24), progressPot(1-24), (for index)(4-23), (for limit)(4-23), (for step)(4-23), index(5-22)
  0000  LOADNIL   R3..R3 = nil
  0001  LOADK     R4 = K0 1
  0002  LOADK     R5 = K1 3
  0003  LOADK     R6 = K0 1
  0004  FORPREP   forprep R4(sBx=17)   -> 22
  0005  GETTABUP  R8 = _ENV[K2('string')]
  0006  GETTABLE  R8 = R8[K3('format')]
  0007  LOADK     R9 = K4 'm_progressPot%d'
  0008  MOVE      R10 = R0
  0009  CALL      R8 = call(R8, 1 args, 2 rets)
  0010  GETTABLE  R3 = R0[R8]
  0011  SELF      R9 = R3[K5('Init')] (self)
  0012  MOVE      R10 = R0
  0013  LT        if R1 lt R1   -> -127472
  0014  JMP       (jump)   -> 20
  0015  EQ        if R0 eq R1   -> -127470
  0016  JMP       (jump)   -> 19
  0017  MOVE      R11 = R0
  0018  JMP       (jump)   -> 21
  0019  LOADBOOL  R11 = false
  0020  LOADBOOL  R11 = true
  0021  CALL      R8 = call(R8, 0 args, 3 rets)
  0022  FORLOOP   forloop R4(sBx=-18)   -> 5
  0023  RETURN    return R0..R-1
; ---------- proto2 [Change] ----------
  ; fn ?  line 41-44 np=4 va=0 ms=9 code=10 consts=4 upvals=1 protos=0
  ;   K[0]='UpdateConfigIndex'
  ;   K[1]='m_animator'
  ;   K[2]='SetTrigger'
  ;   K[3]='Change'
  ;   upvals: EAnimatorTriggerKey
  ;   locals: self(0-10), configIndex(0-10), potCallback(0-10), callback(0-10)
  0000  SELF      R5 = R0[K0('UpdateConfigIndex')] (self)
  0001  MOVE      R6 = R0
  0002  MOVE      R7 = R0
  0003  MOVE      R8 = R0
  0004  CALL      R4 = call(R4, 0 args, 4 rets)
  0005  GETTABLE  R4 = R0[K1('m_animator')]
  0006  SELF      R5 = R4[K2('SetTrigger')] (self)
  0007  GETTABUP  R6 = EAnimatorTriggerKey[K3('Change')]
  0008  CALL      R4 = call(R4, 0 args, 2 rets)
  0009  RETURN    return R0..R-1
; ---------- proto3 [UpdateConfigIndex] ----------
  ; fn ?  line 49-53 np=4 va=0 ms=8 code=8 consts=5 upvals=1 protos=0
  ;   K[0]='m_animator'
  ;   K[1]='SetInteger'
  ;   K[2]='ConfigIndex'
  ;   K[3]='m_potCallback'
  ;   K[4]='m_callback'
  ;   upvals: EAnimatorParameterKey
  ;   locals: self(0-8), configIndex(0-8), potCallback(0-8), callback(0-8)
  0000  GETTABLE  R4 = R0[K0('m_animator')]
  0001  SELF      R5 = R4[K1('SetInteger')] (self)
  0002  GETTABUP  R6 = EAnimatorParameterKey[K2('ConfigIndex')]
  0003  MOVE      R7 = R0
  0004  CALL      R4 = call(R4, 0 args, 3 rets)
  0005  SETTABLE  R0[K3('m_potCallback')] = R2
  0006  SETTABLE  R0[K4('m_callback')] = R3
  0007  RETURN    return R0..R-1
; ---------- proto4 [SpeedUp] ----------
  ; fn ?  line 55-64 np=1 va=0 ms=7 code=15 consts=7 upvals=0 protos=0
  ;   K[0]='m_animator'
  ;   K[1]='GetCurrentAnimatorStateInfo'
  ;   K[2]=0
  ;   K[3]='Play'
  ;   K[4]='shortNameHash'
  ;   K[5]=1.0
  ;   K[6]='Update'
  ;   locals: self(0-15), currentState(4-15)
  0000  GETTABLE  R1 = R0[K0('m_animator')]
  0001  SELF      R2 = R1[K1('GetCurrentAnimatorStateInfo')] (self)
  0002  LOADK     R3 = K2 0
  0003  CALL      R1 = call(R1, 1 args, 2 rets)
  0004  GETTABLE  R2 = R0[K0('m_animator')]
  0005  SELF      R3 = R2[K3('Play')] (self)
  0006  GETTABLE  R4 = R1[K4('shortNameHash')]
  0007  LOADK     R5 = K2 0
  0008  LOADK     R6 = K5 1.0
  0009  CALL      R2 = call(R2, 0 args, 4 rets)
  0010  GETTABLE  R2 = R0[K0('m_animator')]
  0011  SELF      R3 = R2[K6('Update')] (self)
  0012  LOADK     R4 = K2 0
  0013  CALL      R2 = call(R2, 0 args, 2 rets)
  0014  RETURN    return R0..R-1
; ---------- proto5 [PlayPotAnimation] ----------
  ; fn ?  line 67-73 np=1 va=0 ms=3 code=10 consts=3 upvals=1 protos=0
  ;   K[0]='IsFunction'
  ;   K[1]='m_potCallback'
  ;   K[2]=nil
  ;   upvals: _ENV
  ;   locals: self(0-10), callback(6-9)
  0000  GETTABUP  R1 = _ENV[K0('IsFunction')]
  0001  GETTABLE  R2 = R0[K1('m_potCallback')]
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 9
  0005  GETTABLE  R1 = R0[K1('m_potCallback')]
  0006  SETTABLE  R0[K1('m_potCallback')] = K2(nil)
  0007  MOVE      R2 = R0
  0008  CALL      R2 = call(R2, 0 args, 0 rets)
  0009  RETURN    return R0..R-1
; ---------- proto6 [OnProgressAnimationEnd] ----------
  ; fn ?  line 76-82 np=1 va=0 ms=3 code=10 consts=3 upvals=1 protos=0
  ;   K[0]='IsFunction'
  ;   K[1]='m_callback'
  ;   K[2]=nil
  ;   upvals: _ENV
  ;   locals: self(0-10), callback(6-9)
  0000  GETTABUP  R1 = _ENV[K0('IsFunction')]
  0001  GETTABLE  R2 = R0[K1('m_callback')]
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  TEST      if not R1 then   -> -131067
  0004  JMP       (jump)   -> 9
  0005  GETTABLE  R1 = R0[K1('m_callback')]
  0006  SETTABLE  R0[K1('m_callback')] = K2(nil)
  0007  MOVE      R2 = R0
  0008  CALL      R2 = call(R2, 0 args, 0 rets)
  0009  RETURN    return R0..R-1
