# PairRaceActivity_View_PairRaceActivityHubTokenButton_1865.luac
; fn @PairRaceActivityHubTokenButton.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=8 upvals=1 protos=4
;   K[0]='PairRaceActivityHubTokenButton'
;   K[1]='setmetatable'
;   K[2]='HudPropertyButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='Init'
;   K[6]='UpdateTokenNumber'
;   K[7]='UpdateTextAnimation'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('HudPropertyButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('PairRaceActivityHubTokenButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('PairRaceActivityHubTokenButton')]
0006  GETTABUP  R1 = _ENV[K0('PairRaceActivityHubTokenButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('PairRaceActivityHubTokenButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('PairRaceActivityHubTokenButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('PairRaceActivityHubTokenButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('UpdateTokenNumber')] = R1
0017  GETTABUP  R0 = _ENV[K0('PairRaceActivityHubTokenButton')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('UpdateTextAnimation')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 9-11 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='Awake'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R1 = R1[K1('Awake')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 13-21 np=2 va=0 ms=5 code=17 consts=8 upvals=1 protos=0
  ;   K[0]=nil
  ;   K[1]='m_model'
  ;   K[2]='m_activityDefinition'
  ;   K[3]='GetActivityDefinition'
  ;   K[4]='HudPropertyButton'
  ;   K[5]='Init'
  ;   K[6]='ActivityTokenPropertyType'
  ;   K[7]='UpdateTokenNumber'
  ;   upvals: _ENV
  ;   locals: self(0-17), model(0-17)
  0000  EQ        if R0 eq K0(nil)   -> -130302
  0001  JMP       (jump)   -> 3
  0002  RETURN    return R0..R-1
  0003  SETTABLE  R0[K1('m_model')] = R1
  0004  GETTABLE  R2 = R0[K1('m_model')]
  0005  SELF      R3 = R2[K3('GetActivityDefinition')] (self)
  0006  CALL      R2 = call(R2, 1 args, 1 rets)
  0007  SETTABLE  R0[K2('m_activityDefinition')] = R2
  0008  GETTABUP  R2 = _ENV[K4('HudPropertyButton')]
  0009  GETTABLE  R2 = R2[K5('Init')]
  0010  MOVE      R3 = R0
  0011  GETTABLE  R4 = R0[K2('m_activityDefinition')]
  0012  GETTABLE  R4 = R4[K6('ActivityTokenPropertyType')]
  0013  CALL      R2 = call(R2, 0 args, 2 rets)
  0014  SELF      R3 = R0[K7('UpdateTokenNumber')] (self)
  0015  CALL      R2 = call(R2, 0 args, 1 rets)
  0016  RETURN    return R0..R-1
; ---------- proto2 [UpdateTokenNumber] ----------
  ; fn ?  line 23-26 np=1 va=0 ms=3 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='SyncToModelValue'
  ;   locals: self(0-3)
  0000  SELF      R2 = R0[K0('SyncToModelValue')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  RETURN    return R0..R-1
; ---------- proto3 [UpdateTextAnimation] ----------
  ; fn ?  line 29-34 np=5 va=0 ms=11 code=22 consts=9 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='UpdateTextAnimation'
  ;   K[2]='m_model'
  ;   K[3]=nil
  ;   K[4]='EventDispatcher'
  ;   K[5]='DispatchEvent'
  ;   K[6]='EEventType'
  ;   K[7]='ActivityTokenFlyAnimEnd'
  ;   K[8]='GetType'
  ;   upvals: _ENV
  ;   locals: self(0-22), checkType(0-22), valueChange(0-22), isMiddleStep(0-22), bEndStep(0-22)
  0000  GETTABUP  R5 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R5 = R5[K1('UpdateTextAnimation')]
  0002  MOVE      R6 = R0
  0003  MOVE      R7 = R0
  0004  MOVE      R8 = R0
  0005  MOVE      R9 = R0
  0006  MOVE      R10 = R0
  0007  CALL      R5 = call(R5, 0 args, 5 rets)
  0008  TEST      if not R4 then   -> -131062
  0009  JMP       (jump)   -> 21
  0010  GETTABLE  R5 = R0[K2('m_model')]
  0011  EQ        if R1 eq K3(nil)   -> -128240
  0012  JMP       (jump)   -> 21
  0013  GETTABUP  R5 = _ENV[K4('EventDispatcher')]
  0014  GETTABLE  R5 = R5[K5('DispatchEvent')]
  0015  GETTABUP  R6 = _ENV[K6('EEventType')]
  0016  GETTABLE  R6 = R6[K7('ActivityTokenFlyAnimEnd')]
  0017  GETTABLE  R7 = R0[K2('m_model')]
  0018  SELF      R8 = R7[K8('GetType')] (self)
  0019  CALL      R7 = call(R7, -1 args, 1 rets)
  0020  CALL      R5 = call(R5, 0 args, -1 rets)
  0021  RETURN    return R0..R-1
