# UI_Button_ActivityHudButton_331.luac
; fn @ActivityHudButton.lua  line 0-0 np=0 va=1 ms=3 code=27 consts=10 upvals=1 protos=6
;   K[0]='ActivityHudButton'
;   K[1]='setmetatable'
;   K[2]='HudPropertyButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='Init'
;   K[6]='_AddListeners'
;   K[7]='UpdateContent'
;   K[8]='_OnScoreChanged'
;   K[9]='GetPropertyNum'
;   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('ActivityHudButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('ActivityHudButton')]
0006  GETTABUP  R1 = _ENV[K0('ActivityHudButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ActivityHudButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('ActivityHudButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('ActivityHudButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_AddListeners')] = R1
0017  GETTABUP  R0 = _ENV[K0('ActivityHudButton')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('UpdateContent')] = R1
0020  GETTABUP  R0 = _ENV[K0('ActivityHudButton')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('_OnScoreChanged')] = R1
0023  GETTABUP  R0 = _ENV[K0('ActivityHudButton')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('GetPropertyNum')] = R1
0026  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]='HudBaseButton'
  ;   K[1]='Awake'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('HudBaseButton')]
  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 14-18 np=2 va=0 ms=6 code=14 consts=7 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='m_id'
  ;   K[2]='GetId'
  ;   K[3]='HudPropertyButton'
  ;   K[4]='Init'
  ;   K[5]='GetActivityDefinition'
  ;   K[6]='ActivityTokenPropertyType'
  ;   upvals: _ENV
  ;   locals: self(0-14), model(0-14)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  GETTABLE  R2 = R0[K0('m_model')]
  0002  SELF      R3 = R2[K2('GetId')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  SETTABLE  R0[K1('m_id')] = R2
  0005  GETTABUP  R2 = _ENV[K3('HudPropertyButton')]
  0006  GETTABLE  R2 = R2[K4('Init')]
  0007  MOVE      R3 = R0
  0008  GETTABLE  R4 = R0[K0('m_model')]
  0009  SELF      R5 = R4[K5('GetActivityDefinition')] (self)
  0010  CALL      R4 = call(R4, 1 args, 1 rets)
  0011  GETTABLE  R4 = R4[K6('ActivityTokenPropertyType')]
  0012  CALL      R2 = call(R2, 0 args, 2 rets)
  0013  RETURN    return R0..R-1
; ---------- proto2 [_AddListeners] ----------
  ; fn ?  line 20-26 np=1 va=0 ms=6 code=17 consts=8 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='_AddListeners'
  ;   K[2]='EventDispatcher'
  ;   K[3]='AddListener'
  ;   K[4]='m_model'
  ;   K[5]='GetActivityDefinition'
  ;   K[6]='ScoreChangedEvent'
  ;   K[7]='_OnScoreChanged'
  ;   upvals: _ENV
  ;   locals: self(0-17), bAddListeners(4-17)
  0000  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R1 = R1[K1('_AddListeners')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131066
  0005  JMP       (jump)   -> 15
  0006  GETTABUP  R2 = _ENV[K2('EventDispatcher')]
  0007  GETTABLE  R2 = R2[K3('AddListener')]
  0008  GETTABLE  R3 = R0[K4('m_model')]
  0009  SELF      R4 = R3[K5('GetActivityDefinition')] (self)
  0010  CALL      R3 = call(R3, 1 args, 1 rets)
  0011  GETTABLE  R3 = R3[K6('ScoreChangedEvent')]
  0012  MOVE      R4 = R0
  0013  GETTABLE  R5 = R0[K7('_OnScoreChanged')]
  0014  CALL      R2 = call(R2, 0 args, 3 rets)
  0015  RETURN    return R1..R0
  0016  RETURN    return R0..R-1
; ---------- proto3 [UpdateContent] ----------
  ; fn ?  line 28-30 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='SyncToModelValue'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R1 = R1[K1('SyncToModelValue')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto4 [_OnScoreChanged] ----------
  ; fn ?  line 32-38 np=1 va=0 ms=4 code=15 consts=7 upvals=1 protos=0
  ;   K[0]='m_id'
  ;   K[1]='m_model'
  ;   K[2]='GetId'
  ;   K[3]='m_cachedPropertyNum'
  ;   K[4]='HudPropertyButton'
  ;   K[5]='GetPropertyNum'
  ;   K[6]='UpdateTextAnimation'
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABLE  R1 = R0[K0('m_id')]
  0001  GETTABLE  R2 = R0[K1('m_model')]
  0002  SELF      R3 = R2[K2('GetId')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  EQ        if R1 eq R2   -> -130552
  0005  JMP       (jump)   -> 7
  0006  RETURN    return R0..R-1
  0007  GETTABUP  R1 = _ENV[K4('HudPropertyButton')]
  0008  GETTABLE  R1 = R1[K5('GetPropertyNum')]
  0009  MOVE      R2 = R0
  0010  CALL      R1 = call(R1, 1 args, 1 rets)
  0011  SETTABLE  R0[K3('m_cachedPropertyNum')] = R1
  0012  SELF      R2 = R0[K6('UpdateTextAnimation')] (self)
  0013  CALL      R1 = call(R1, 0 args, 1 rets)
  0014  RETURN    return R0..R-1
; ---------- proto5 [GetPropertyNum] ----------
  ; fn ?  line 40-47 np=1 va=0 ms=5 code=18 consts=7 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='GetPropertyNum'
  ;   K[2]='m_id'
  ;   K[3]='m_model'
  ;   K[4]='GetId'
  ;   K[5]='m_cachedPropertyNum'
  ;   K[6]=nil
  ;   upvals: _ENV
  ;   locals: self(0-18), propertyNum(4-18)
  0000  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R1 = R1[K1('GetPropertyNum')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  GETTABLE  R2 = R0[K2('m_id')]
  0005  GETTABLE  R3 = R0[K3('m_model')]
  0006  SELF      R4 = R3[K4('GetId')] (self)
  0007  CALL      R3 = call(R3, 1 args, 1 rets)
  0008  EQ        if R1 eq R3   -> -130035
  0009  JMP       (jump)   -> 15
  0010  GETTABLE  R2 = R0[K5('m_cachedPropertyNum')]
  0011  EQ        if R1 eq K6(nil)   -> -129773
  0012  JMP       (jump)   -> 15
  0013  GETTABLE  R2 = R0[K5('m_cachedPropertyNum')]
  0014  RETURN    return R2..R1
  0015  SETTABLE  R0[K5('m_cachedPropertyNum')] = R1
  0016  RETURN    return R1..R0
  0017  RETURN    return R0..R-1
