# DigActivity_View_DigActivityHudButton_945.luac
; fn @DigActivityHudButton.lua  line 0-0 np=0 va=1 ms=3 code=33 consts=12 upvals=1 protos=8
;   K[0]='DigActivityHudButton'
;   K[1]='setmetatable'
;   K[2]='HudPropertyButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='Init'
;   K[6]='_AddListener'
;   K[7]='OnScoreChanged'
;   K[8]='OnStateChanged'
;   K[9]='GetPropertyNum'
;   K[10]='SyncToModelValue'
;   K[11]='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('DigActivityHudButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('DigActivityHudButton')]
0006  GETTABUP  R1 = _ENV[K0('DigActivityHudButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('DigActivityHudButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('DigActivityHudButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('DigActivityHudButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_AddListener')] = R1
0017  GETTABUP  R0 = _ENV[K0('DigActivityHudButton')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnScoreChanged')] = R1
0020  GETTABUP  R0 = _ENV[K0('DigActivityHudButton')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('OnStateChanged')] = R1
0023  GETTABUP  R0 = _ENV[K0('DigActivityHudButton')]
0024  CLOSURE   R1 = closure proto5
0025  SETTABLE  R0[K9('GetPropertyNum')] = R1
0026  GETTABUP  R0 = _ENV[K0('DigActivityHudButton')]
0027  CLOSURE   R1 = closure proto6
0028  SETTABLE  R0[K10('SyncToModelValue')] = R1
0029  GETTABUP  R0 = _ENV[K0('DigActivityHudButton')]
0030  CLOSURE   R1 = closure proto7
0031  SETTABLE  R0[K11('UpdateTextAnimation')] = R1
0032  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 5-12 np=1 va=0 ms=3 code=12 consts=6 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='Awake'
  ;   K[2]='m_activityDefinition'
  ;   K[3]=nil
  ;   K[4]='SyncToModelValue'
  ;   K[5]='_AddListener'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  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  GETTABLE  R1 = R0[K2('m_activityDefinition')]
  0005  EQ        if R1 eq K3(nil)   -> -130294
  0006  JMP       (jump)   -> 11
  0007  SELF      R2 = R0[K4('SyncToModelValue')] (self)
  0008  CALL      R1 = call(R1, 0 args, 1 rets)
  0009  SELF      R2 = R0[K5('_AddListener')] (self)
  0010  CALL      R1 = call(R1, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 14-25 np=2 va=0 ms=5 code=26 consts=13 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GM'
  ;   K[2]='ActivityManager'
  ;   K[3]='GetModel'
  ;   K[4]=nil
  ;   K[5]='m_activityDefinition'
  ;   K[6]='DigActivityDefinition'
  ;   K[7]='HudPropertyButton'
  ;   K[8]='Init'
  ;   K[9]='ActivityTokenPropertyType'
  ;   K[10]='gameObject'
  ;   K[11]='activeInHierarchy'
  ;   K[12]='_AddListener'
  ;   upvals: _ENV
  ;   locals: self(0-26), activityType(0-26)
  0000  GETTABUP  R2 = _ENV[K1('GM')]
  0001  GETTABLE  R2 = R2[K2('ActivityManager')]
  0002  SELF      R3 = R2[K3('GetModel')] (self)
  0003  MOVE      R4 = R0
  0004  CALL      R2 = call(R2, 1 args, 2 rets)
  0005  SETTABLE  R0[K0('m_model')] = R2
  0006  GETTABLE  R2 = R0[K0('m_model')]
  0007  EQ        if R0 eq K4(nil)   -> -129779
  0008  JMP       (jump)   -> 10
  0009  RETURN    return R0..R-1
  0010  GETTABUP  R2 = _ENV[K6('DigActivityDefinition')]
  0011  GETTABLE  R2 = R2[R1]
  0012  SETTABLE  R0[K5('m_activityDefinition')] = R2
  0013  GETTABUP  R2 = _ENV[K7('HudPropertyButton')]
  0014  GETTABLE  R2 = R2[K8('Init')]
  0015  MOVE      R3 = R0
  0016  GETTABLE  R4 = R0[K5('m_activityDefinition')]
  0017  GETTABLE  R4 = R4[K9('ActivityTokenPropertyType')]
  0018  CALL      R2 = call(R2, 0 args, 2 rets)
  0019  GETTABLE  R2 = R0[K10('gameObject')]
  0020  GETTABLE  R2 = R2[K11('activeInHierarchy')]
  0021  TEST      if not R2 then   -> -131049
  0022  JMP       (jump)   -> 25
  0023  SELF      R3 = R0[K12('_AddListener')] (self)
  0024  CALL      R2 = call(R2, 0 args, 1 rets)
  0025  RETURN    return R0..R-1
; ---------- proto2 [_AddListener] ----------
  ; fn ?  line 27-30 np=1 va=0 ms=5 code=15 consts=7 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='AddListener'
  ;   K[2]='m_activityDefinition'
  ;   K[3]='ScoreChangedEvent'
  ;   K[4]='OnScoreChanged'
  ;   K[5]='StateChangedEvent'
  ;   K[6]='OnStateChanged'
  ;   upvals: _ENV
  ;   locals: self(0-15)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('AddListener')]
  0002  GETTABLE  R2 = R0[K2('m_activityDefinition')]
  0003  GETTABLE  R2 = R2[K3('ScoreChangedEvent')]
  0004  MOVE      R3 = R0
  0005  GETTABLE  R4 = R0[K4('OnScoreChanged')]
  0006  CALL      R1 = call(R1, 0 args, 3 rets)
  0007  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0008  GETTABLE  R1 = R1[K1('AddListener')]
  0009  GETTABLE  R2 = R0[K2('m_activityDefinition')]
  0010  GETTABLE  R2 = R2[K5('StateChangedEvent')]
  0011  MOVE      R3 = R0
  0012  GETTABLE  R4 = R0[K6('OnStateChanged')]
  0013  CALL      R1 = call(R1, 0 args, 3 rets)
  0014  RETURN    return R0..R-1
; ---------- proto3 [OnScoreChanged] ----------
  ; fn ?  line 32-36 np=2 va=0 ms=4 code=8 consts=3 upvals=0 protos=0
  ;   K[0]=nil
  ;   K[1]='UpdateScore'
  ;   K[2]='SyncToModelValue'
  ;   locals: self(0-8), msg(0-8)
  0000  EQ        if R1 eq K0(nil)   -> -130302
  0001  JMP       (jump)   -> 7
  0002  GETTABLE  R2 = R1[K1('UpdateScore')]
  0003  TEST      if not R2 then   -> -131067
  0004  JMP       (jump)   -> 7
  0005  SELF      R3 = R0[K2('SyncToModelValue')] (self)
  0006  CALL      R2 = call(R2, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto4 [OnStateChanged] ----------
  ; fn ?  line 38-44 np=1 va=0 ms=3 code=14 consts=5 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetState'
  ;   K[2]='ActivityState'
  ;   K[3]='Released'
  ;   K[4]='SyncToModelValue'
  ;   upvals: _ENV
  ;   locals: self(0-14)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 10
  0003  GETTABLE  R1 = R0[K0('m_model')]
  0004  SELF      R2 = R1[K1('GetState')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  GETTABUP  R2 = _ENV[K2('ActivityState')]
  0007  GETTABLE  R2 = R2[K3('Released')]
  0008  EQ        if R0 eq R2   -> -130548
  0009  JMP       (jump)   -> 11
  0010  RETURN    return R0..R-1
  0011  SELF      R2 = R0[K4('SyncToModelValue')] (self)
  0012  CALL      R1 = call(R1, 0 args, 1 rets)
  0013  RETURN    return R0..R-1
; ---------- proto5 [GetPropertyNum] ----------
  ; fn ?  line 46-52 np=1 va=0 ms=3 code=13 consts=4 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]=nil
  ;   K[2]=0
  ;   K[3]='GetScore'
  ;   locals: self(0-13)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  EQ        if R0 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 5
  0003  LOADK     R1 = K2 0
  0004  RETURN    return R1..R0
  0005  GETTABLE  R1 = R0[K0('m_model')]
  0006  SELF      R2 = R1[K3('GetScore')] (self)
  0007  CALL      R1 = call(R1, 1 args, 1 rets)
  0008  TEST      if not R1 then   -> -131061
  0009  JMP       (jump)   -> 11
  0010  LOADK     R1 = K2 0
  0011  RETURN    return R1..R0
  0012  RETURN    return R0..R-1
; ---------- proto6 [SyncToModelValue] ----------
  ; fn ?  line 54-60 np=1 va=0 ms=5 code=21 consts=8 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='SyncToModelValue'
  ;   K[2]='GetPropertyNum'
  ;   K[3]=0
  ;   K[4]='UIUtil'
  ;   K[5]='SetActive'
  ;   K[6]='m_exclamationGo'
  ;   K[7]='m_lightGo'
  ;   upvals: _ENV
  ;   locals: self(0-21), bShowExclamation(10-21)
  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  SELF      R2 = R0[K2('GetPropertyNum')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  LT        if R1 lt R1   -> 1545
  0007  JMP       (jump)   -> 9
  0008  LOADBOOL  R1 = false
  0009  LOADBOOL  R1 = true
  0010  GETTABUP  R2 = _ENV[K4('UIUtil')]
  0011  GETTABLE  R2 = R2[K5('SetActive')]
  0012  GETTABLE  R3 = R0[K6('m_exclamationGo')]
  0013  MOVE      R4 = R0
  0014  CALL      R2 = call(R2, 0 args, 2 rets)
  0015  GETTABUP  R2 = _ENV[K4('UIUtil')]
  0016  GETTABLE  R2 = R2[K5('SetActive')]
  0017  GETTABLE  R3 = R0[K7('m_lightGo')]
  0018  MOVE      R4 = R0
  0019  CALL      R2 = call(R2, 0 args, 2 rets)
  0020  RETURN    return R0..R-1
; ---------- proto7 [UpdateTextAnimation] ----------
  ; fn ?  line 62-67 np=1 va=1 ms=5 code=22 consts=8 upvals=1 protos=0
  ;   K[0]='GetPropertyNum'
  ;   K[1]=0
  ;   K[2]='UIUtil'
  ;   K[3]='SetActive'
  ;   K[4]='m_exclamationGo'
  ;   K[5]='m_lightGo'
  ;   K[6]='HudPropertyButton'
  ;   K[7]='UpdateTextAnimation'
  ;   upvals: _ENV
  ;   locals: self(0-22), bShowExclamation(6-22)
  0000  SELF      R2 = R0[K0('GetPropertyNum')] (self)
  0001  CALL      R1 = call(R1, 1 args, 1 rets)
  0002  LT        if R1 lt R1   -> 517
  0003  JMP       (jump)   -> 5
  0004  LOADBOOL  R1 = false
  0005  LOADBOOL  R1 = true
  0006  GETTABUP  R2 = _ENV[K2('UIUtil')]
  0007  GETTABLE  R2 = R2[K3('SetActive')]
  0008  GETTABLE  R3 = R0[K4('m_exclamationGo')]
  0009  MOVE      R4 = R0
  0010  CALL      R2 = call(R2, 0 args, 2 rets)
  0011  GETTABUP  R2 = _ENV[K2('UIUtil')]
  0012  GETTABLE  R2 = R2[K3('SetActive')]
  0013  GETTABLE  R3 = R0[K5('m_lightGo')]
  0014  MOVE      R4 = R0
  0015  CALL      R2 = call(R2, 0 args, 2 rets)
  0016  GETTABUP  R2 = _ENV[K6('HudPropertyButton')]
  0017  GETTABLE  R2 = R2[K7('UpdateTextAnimation')]
  0018  MOVE      R3 = R0
  0019  VARARG    R4 = vararg(0)
  0020  CALL      R2 = call(R2, 0 args, -1 rets)
  0021  RETURN    return R0..R-1
