# UI_Button_CoinHudButton_292.luac
; fn @CoinHudButton.lua  line 0-0 np=0 va=1 ms=3 code=24 consts=9 upvals=1 protos=5
;   K[0]='CoinHudButton'
;   K[1]='setmetatable'
;   K[2]='HudPropertyButton'
;   K[3]='__index'
;   K[4]='Awake'
;   K[5]='OnClicked'
;   K[6]='_OnShowItemTestInfoChanged'
;   K[7]='OnPropertyAcquired'
;   K[8]='OnPropertyConsumed'
;   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('CoinHudButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('CoinHudButton')]
0006  GETTABUP  R1 = _ENV[K0('CoinHudButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('CoinHudButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Awake')] = R1
0011  GETTABUP  R0 = _ENV[K0('CoinHudButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnClicked')] = R1
0014  GETTABUP  R0 = _ENV[K0('CoinHudButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_OnShowItemTestInfoChanged')] = R1
0017  GETTABUP  R0 = _ENV[K0('CoinHudButton')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnPropertyAcquired')] = R1
0020  GETTABUP  R0 = _ENV[K0('CoinHudButton')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('OnPropertyConsumed')] = R1
0023  RETURN    return R0..R-1
; ---------- proto0 [Awake] ----------
  ; fn ?  line 4-10 np=1 va=0 ms=5 code=20 consts=10 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='Awake'
  ;   K[2]='Init'
  ;   K[3]='EPropertyType'
  ;   K[4]='Gold'
  ;   K[5]='_OnShowItemTestInfoChanged'
  ;   K[6]='EventDispatcher'
  ;   K[7]='AddListener'
  ;   K[8]='EEventType'
  ;   K[9]='ShowItemTestInfoChanged'
  ;   upvals: _ENV
  ;   locals: self(0-20)
  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  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0005  GETTABLE  R1 = R1[K2('Init')]
  0006  MOVE      R2 = R0
  0007  GETTABUP  R3 = _ENV[K3('EPropertyType')]
  0008  GETTABLE  R3 = R3[K4('Gold')]
  0009  CALL      R1 = call(R1, 0 args, 2 rets)
  0010  SELF      R2 = R0[K5('_OnShowItemTestInfoChanged')] (self)
  0011  CALL      R1 = call(R1, 0 args, 1 rets)
  0012  GETTABUP  R1 = _ENV[K6('EventDispatcher')]
  0013  GETTABLE  R1 = R1[K7('AddListener')]
  0014  GETTABUP  R2 = _ENV[K8('EEventType')]
  0015  GETTABLE  R2 = R2[K9('ShowItemTestInfoChanged')]
  0016  MOVE      R3 = R0
  0017  GETTABLE  R4 = R0[K5('_OnShowItemTestInfoChanged')]
  0018  CALL      R1 = call(R1, 0 args, 3 rets)
  0019  RETURN    return R0..R-1
; ---------- proto1 [OnClicked] ----------
  ; fn ?  line 12-14 np=1 va=0 ms=4 code=7 consts=5 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='GoPlayWindow'
  ;   upvals: _ENV
  ;   locals: self(0-7)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('OpenView')] (self)
  0003  GETTABUP  R3 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R3 = R3[K4('GoPlayWindow')]
  0005  CALL      R1 = call(R1, 0 args, 2 rets)
  0006  RETURN    return R0..R-1
; ---------- proto2 [_OnShowItemTestInfoChanged] ----------
  ; fn ?  line 16-27 np=1 va=0 ms=8 code=36 consts=15 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='CanShowTestUI'
  ;   K[3]='m_testText'
  ;   K[4]='gameObject'
  ;   K[5]='SetActive'
  ;   K[6]='TaskManager'
  ;   K[7]='GetCleanGoldCount'
  ;   K[8]='PropertyDataManager'
  ;   K[9]='GetPropertyNum'
  ;   K[10]='EPropertyType'
  ;   K[11]='Gold'
  ;   K[12]='text'
  ;   K[13]='N:'
  ;   K[14]='  C:'
  ;   upvals: _ENV
  ;   locals: self(0-36), cleanGold(21-36), normalGold(28-36)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('CanShowTestUI')] (self)
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 12
  0006  GETTABLE  R1 = R0[K3('m_testText')]
  0007  GETTABLE  R1 = R1[K4('gameObject')]
  0008  SELF      R2 = R1[K5('SetActive')] (self)
  0009  LOADBOOL  R3 = false
  0010  CALL      R1 = call(R1, 0 args, 2 rets)
  0011  RETURN    return R0..R-1
  0012  GETTABLE  R1 = R0[K3('m_testText')]
  0013  GETTABLE  R1 = R1[K4('gameObject')]
  0014  SELF      R2 = R1[K5('SetActive')] (self)
  0015  LOADBOOL  R3 = true
  0016  CALL      R1 = call(R1, 0 args, 2 rets)
  0017  GETTABUP  R1 = _ENV[K0('GM')]
  0018  GETTABLE  R1 = R1[K6('TaskManager')]
  0019  SELF      R2 = R1[K7('GetCleanGoldCount')] (self)
  0020  CALL      R1 = call(R1, 1 args, 1 rets)
  0021  GETTABUP  R2 = _ENV[K0('GM')]
  0022  GETTABLE  R2 = R2[K8('PropertyDataManager')]
  0023  SELF      R3 = R2[K9('GetPropertyNum')] (self)
  0024  GETTABUP  R4 = _ENV[K10('EPropertyType')]
  0025  GETTABLE  R4 = R4[K11('Gold')]
  0026  CALL      R2 = call(R2, 1 args, 2 rets)
  0027  SUB       R2 = R1 sub R2
  0028  GETTABLE  R3 = R0[K3('m_testText')]
  0029  LOADK     R4 = K13 'N:'
  0030  MOVE      R5 = R0
  0031  LOADK     R6 = K14 '  C:'
  0032  MOVE      R7 = R0
  0033  CONCAT    R4 = concat(R4..R4)
  0034  SETTABLE  R3[K12('text')] = R4
  0035  RETURN    return R0..R-1
; ---------- proto3 [OnPropertyAcquired] ----------
  ; fn ?  line 29-32 np=1 va=1 ms=4 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='OnPropertyAcquired'
  ;   K[2]='_OnShowItemTestInfoChanged'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R1 = R1[K1('OnPropertyAcquired')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  SELF      R2 = R0[K2('_OnShowItemTestInfoChanged')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
; ---------- proto4 [OnPropertyConsumed] ----------
  ; fn ?  line 34-37 np=1 va=1 ms=4 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='HudPropertyButton'
  ;   K[1]='OnPropertyConsumed'
  ;   K[2]='_OnShowItemTestInfoChanged'
  ;   upvals: _ENV
  ;   locals: self(0-8)
  0000  GETTABUP  R1 = _ENV[K0('HudPropertyButton')]
  0001  GETTABLE  R1 = R1[K1('OnPropertyConsumed')]
  0002  MOVE      R2 = R0
  0003  VARARG    R3 = vararg(0)
  0004  CALL      R1 = call(R1, 0 args, -1 rets)
  0005  SELF      R2 = R0[K2('_OnShowItemTestInfoChanged')] (self)
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  RETURN    return R0..R-1
