# ExtraBoardActivity_View_ExtraBoardTokenMultipleSwitchButtonAndTip_1029.luac
; fn @ExtraBoardTokenMultipleSwitchButtonAndTip.lua  line 0-0 np=0 va=1 ms=3 code=38 consts=13 upvals=1 protos=7
;   K[0]='ExtraBoardTokenMultipleSwitchButton'
;   K[1]='setmetatable'
;   K[2]='SimpleButton'
;   K[3]='__index'
;   K[4]='Init'
;   K[5]='OnDestroy'
;   K[6]='_OnMultipleUnlock'
;   K[7]='OnBtnClicked'
;   K[8]='_UpdateUI'
;   K[9]='ExtraBoardMultipleTip'
;   K[10]='CommonTip'
;   K[11]='Init'
;   K[12]='OnMultipleUnlock'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K2('SimpleButton')]
0003  CALL      R0 = call(R0, 1 args, 2 rets)
0004  SETTABUP  _ENV[K0('ExtraBoardTokenMultipleSwitchButton')] = R0
0005  GETTABUP  R0 = _ENV[K0('ExtraBoardTokenMultipleSwitchButton')]
0006  GETTABUP  R1 = _ENV[K0('ExtraBoardTokenMultipleSwitchButton')]
0007  SETTABLE  R0[K3('__index')] = R1
0008  GETTABUP  R0 = _ENV[K0('ExtraBoardTokenMultipleSwitchButton')]
0009  CLOSURE   R1 = closure proto0
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K0('ExtraBoardTokenMultipleSwitchButton')]
0012  CLOSURE   R1 = closure proto1
0013  SETTABLE  R0[K5('OnDestroy')] = R1
0014  GETTABUP  R0 = _ENV[K0('ExtraBoardTokenMultipleSwitchButton')]
0015  CLOSURE   R1 = closure proto2
0016  SETTABLE  R0[K6('_OnMultipleUnlock')] = R1
0017  GETTABUP  R0 = _ENV[K0('ExtraBoardTokenMultipleSwitchButton')]
0018  CLOSURE   R1 = closure proto3
0019  SETTABLE  R0[K7('OnBtnClicked')] = R1
0020  GETTABUP  R0 = _ENV[K0('ExtraBoardTokenMultipleSwitchButton')]
0021  CLOSURE   R1 = closure proto4
0022  SETTABLE  R0[K8('_UpdateUI')] = R1
0023  GETTABUP  R0 = _ENV[K1('setmetatable')]
0024  NEWTABLE  R1 = {} (0 items)
0025  GETTABUP  R2 = _ENV[K10('CommonTip')]
0026  CALL      R0 = call(R0, 1 args, 2 rets)
0027  SETTABUP  _ENV[K9('ExtraBoardMultipleTip')] = R0
0028  GETTABUP  R0 = _ENV[K9('ExtraBoardMultipleTip')]
0029  GETTABUP  R1 = _ENV[K9('ExtraBoardMultipleTip')]
0030  SETTABLE  R0[K3('__index')] = R1
0031  GETTABUP  R0 = _ENV[K9('ExtraBoardMultipleTip')]
0032  CLOSURE   R1 = closure proto5
0033  SETTABLE  R0[K11('Init')] = R1
0034  GETTABUP  R0 = _ENV[K9('ExtraBoardMultipleTip')]
0035  CLOSURE   R1 = closure proto6
0036  SETTABLE  R0[K12('OnMultipleUnlock')] = R1
0037  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 4-14 np=2 va=0 ms=7 code=25 consts=12 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='SimpleButton'
  ;   K[2]='Init'
  ;   K[3]='GetDoubleMultipleUnlockItemCode'
  ;   K[4]='m_tip'
  ;   K[5]='SetEnabled'
  ;   K[6]='_UpdateUI'
  ;   K[7]='EventDispatcher'
  ;   K[8]='AddListener'
  ;   K[9]='EEventType'
  ;   K[10]='ExtraBoardMultipleUnlock'
  ;   K[11]='_OnMultipleUnlock'
  ;   upvals: _ENV
  ;   locals: self(0-25), model(0-25), itemCode(8-25)
  0000  SETTABLE  R0[K0('m_model')] = R1
  0001  GETTABUP  R2 = _ENV[K1('SimpleButton')]
  0002  GETTABLE  R2 = R2[K2('Init')]
  0003  MOVE      R3 = R0
  0004  CALL      R2 = call(R2, 0 args, 1 rets)
  0005  GETTABLE  R2 = R0[K0('m_model')]
  0006  SELF      R3 = R2[K3('GetDoubleMultipleUnlockItemCode')] (self)
  0007  CALL      R2 = call(R2, 1 args, 1 rets)
  0008  GETTABLE  R3 = R0[K4('m_tip')]
  0009  SELF      R4 = R3[K2('Init')] (self)
  0010  MOVE      R5 = R0
  0011  CALL      R3 = call(R3, 0 args, 2 rets)
  0012  SELF      R4 = R0[K5('SetEnabled')] (self)
  0013  LOADBOOL  R5 = true
  0014  CALL      R3 = call(R3, 0 args, 2 rets)
  0015  SELF      R4 = R0[K6('_UpdateUI')] (self)
  0016  CALL      R3 = call(R3, 0 args, 1 rets)
  0017  GETTABUP  R3 = _ENV[K7('EventDispatcher')]
  0018  GETTABLE  R3 = R3[K8('AddListener')]
  0019  GETTABUP  R4 = _ENV[K9('EEventType')]
  0020  GETTABLE  R4 = R4[K10('ExtraBoardMultipleUnlock')]
  0021  MOVE      R5 = R0
  0022  GETTABLE  R6 = R0[K11('_OnMultipleUnlock')]
  0023  CALL      R3 = call(R3, 0 args, 3 rets)
  0024  RETURN    return R0..R-1
; ---------- proto1 [OnDestroy] ----------
  ; fn ?  line 16-18 np=1 va=0 ms=3 code=5 consts=2 upvals=1 protos=0
  ;   K[0]='EventDispatcher'
  ;   K[1]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-5)
  0000  GETTABUP  R1 = _ENV[K0('EventDispatcher')]
  0001  GETTABLE  R1 = R1[K1('RemoveTarget')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  RETURN    return R0..R-1
; ---------- proto2 [_OnMultipleUnlock] ----------
  ; fn ?  line 20-22 np=2 va=0 ms=5 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_tip'
  ;   K[1]='OnMultipleUnlock'
  ;   locals: self(0-5), msg(0-5)
  0000  GETTABLE  R2 = R0[K0('m_tip')]
  0001  SELF      R3 = R2[K1('OnMultipleUnlock')] (self)
  0002  MOVE      R4 = R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
; ---------- proto3 [OnBtnClicked] ----------
  ; fn ?  line 24-32 np=1 va=0 ms=14 code=27 consts=12 upvals=1 protos=0
  ;   K[0]='m_model'
  ;   K[1]='SwitchMultipleTokenMode'
  ;   K[2]='_UpdateUI'
  ;   K[3]='GM'
  ;   K[4]='UIManager'
  ;   K[5]='ShowPrompt'
  ;   K[6]='GetActivityDefinition'
  ;   K[7]='PromptPrefabNamex'
  ;   K[8]='EventDispatcher'
  ;   K[9]='DispatchEvent'
  ;   K[10]='EEventType'
  ;   K[11]='RefreshPrompt'
  ;   upvals: _ENV
  ;   locals: self(0-27), result(3-27), currentMode(3-27)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('SwitchMultipleTokenMode')] (self)
  0002  CALL      R1 = call(R1, 2 args, 1 rets)
  0003  SELF      R4 = R0[K2('_UpdateUI')] (self)
  0004  CALL      R3 = call(R3, 0 args, 1 rets)
  0005  TEST      if not R1 then   -> -131065
  0006  JMP       (jump)   -> 21
  0007  GETTABUP  R3 = _ENV[K3('GM')]
  0008  GETTABLE  R3 = R3[K4('UIManager')]
  0009  SELF      R4 = R3[K5('ShowPrompt')] (self)
  0010  LOADNIL   R5..R5 = nil
  0011  LOADBOOL  R8 = false
  0012  LOADNIL   R9..R9 = nil
  0013  GETTABLE  R11 = R0[K0('m_model')]
  0014  SELF      R12 = R11[K6('GetActivityDefinition')] (self)
  0015  CALL      R11 = call(R11, 1 args, 1 rets)
  0016  LOADK     R12 = K7 'PromptPrefabNamex'
  0017  MOVE      R13 = R0
  0018  CONCAT    R12 = concat(R12..R12)
  0019  GETTABLE  R11 = R11[R12]
  0020  CALL      R3 = call(R3, 0 args, 8 rets)
  0021  GETTABUP  R3 = _ENV[K8('EventDispatcher')]
  0022  GETTABLE  R3 = R3[K9('DispatchEvent')]
  0023  GETTABUP  R4 = _ENV[K10('EEventType')]
  0024  GETTABLE  R4 = R4[K11('RefreshPrompt')]
  0025  CALL      R3 = call(R3, 0 args, 1 rets)
  0026  RETURN    return R0..R-1
; ---------- proto4 [_UpdateUI] ----------
  ; fn ?  line 34-38 np=1 va=0 ms=6 code=15 consts=7 upvals=0 protos=0
  ;   K[0]='m_model'
  ;   K[1]='GetMultipleTokenMode'
  ;   K[2]='SetText'
  ;   K[3]='x'
  ;   K[4]='m_iconImg'
  ;   K[5]='sprite'
  ;   K[6]='m_bgSpritex'
  ;   locals: self(0-15), currentMode(3-15)
  0000  GETTABLE  R1 = R0[K0('m_model')]
  0001  SELF      R2 = R1[K1('GetMultipleTokenMode')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  SELF      R3 = R0[K2('SetText')] (self)
  0004  LOADK     R4 = K3 'x'
  0005  MOVE      R5 = R0
  0006  CONCAT    R4 = concat(R4..R4)
  0007  CALL      R2 = call(R2, 0 args, 2 rets)
  0008  GETTABLE  R2 = R0[K4('m_iconImg')]
  0009  LOADK     R3 = K6 'm_bgSpritex'
  0010  MOVE      R4 = R0
  0011  CONCAT    R3 = concat(R3..R3)
  0012  GETTABLE  R3 = R0[R3]
  0013  SETTABLE  R2[K5('sprite')] = R3
  0014  RETURN    return R0..R-1
; ---------- proto5 [Init] ----------
  ; fn ?  line 44-51 np=2 va=0 ms=6 code=14 consts=6 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ItemDataModel'
  ;   K[2]='GetSpriteName'
  ;   K[3]='SpriteUtil'
  ;   K[4]='SetImage'
  ;   K[5]='m_iconImg'
  ;   upvals: _ENV
  ;   locals: self(0-14), itemCode(0-14), imgName(8-14)
  0000  TEST      if not R1 then   -> -131069
  0001  JMP       (jump)   -> 3
  0002  RETURN    return R0..R-1
  0003  GETTABUP  R2 = _ENV[K0('GM')]
  0004  GETTABLE  R2 = R2[K1('ItemDataModel')]
  0005  SELF      R3 = R2[K2('GetSpriteName')] (self)
  0006  MOVE      R4 = R0
  0007  CALL      R2 = call(R2, 1 args, 2 rets)
  0008  GETTABUP  R3 = _ENV[K3('SpriteUtil')]
  0009  GETTABLE  R3 = R3[K4('SetImage')]
  0010  GETTABLE  R4 = R0[K5('m_iconImg')]
  0011  MOVE      R5 = R0
  0012  CALL      R3 = call(R3, 0 args, 2 rets)
  0013  RETURN    return R0..R-1
; ---------- proto6 [OnMultipleUnlock] ----------
  ; fn ?  line 53-71 np=2 va=0 ms=5 code=35 consts=14 upvals=1 protos=0
  ;   K[0]='bUnlock'
  ;   K[1]='bTutotiralFinished'
  ;   K[2]='m_unlockImg'
  ;   K[3]='sprite'
  ;   K[4]='m_bgSpritex'
  ;   K[5]='UnlockMode'
  ;   K[6]='m_text'
  ;   K[7]='text'
  ;   K[8]='x'
  ;   K[9]='UIUtil'
  ;   K[10]='SetActive'
  ;   K[11]='m_unlockGo'
  ;   K[12]='m_lockedGo'
  ;   K[13]='Show'
  ;   upvals: _ENV
  ;   locals: self(0-35), msg(0-35)
  0000  TEST      if not R1 then   -> -131069
  0001  JMP       (jump)   -> 3
  0002  RETURN    return R0..R-1
  0003  GETTABLE  R2 = R1[K0('bUnlock')]
  0004  TEST      if not R2 then   -> -131066
  0005  JMP       (jump)   -> 21
  0006  GETTABLE  R2 = R1[K1('bTutotiralFinished')]
  0007  TEST      if not R2 then   -> -131062
  0008  JMP       (jump)   -> 10
  0009  RETURN    return R0..R-1
  0010  GETTABLE  R2 = R0[K2('m_unlockImg')]
  0011  LOADK     R3 = K4 'm_bgSpritex'
  0012  GETTABLE  R4 = R1[K5('UnlockMode')]
  0013  CONCAT    R3 = concat(R3..R3)
  0014  GETTABLE  R3 = R0[R3]
  0015  SETTABLE  R2[K3('sprite')] = R3
  0016  GETTABLE  R2 = R0[K6('m_text')]
  0017  LOADK     R3 = K8 'x'
  0018  GETTABLE  R4 = R1[K5('UnlockMode')]
  0019  CONCAT    R3 = concat(R3..R3)
  0020  SETTABLE  R2[K7('text')] = R3
  0021  GETTABUP  R2 = _ENV[K9('UIUtil')]
  0022  GETTABLE  R2 = R2[K10('SetActive')]
  0023  GETTABLE  R3 = R0[K11('m_unlockGo')]
  0024  GETTABLE  R4 = R1[K0('bUnlock')]
  0025  CALL      R2 = call(R2, 0 args, 2 rets)
  0026  GETTABUP  R2 = _ENV[K9('UIUtil')]
  0027  GETTABLE  R2 = R2[K10('SetActive')]
  0028  GETTABLE  R3 = R0[K12('m_lockedGo')]
  0029  GETTABLE  R4 = R1[K0('bUnlock')]
  0030  NOT       R4 = not R0
  0031  CALL      R2 = call(R2, 0 args, 2 rets)
  0032  SELF      R3 = R0[K13('Show')] (self)
  0033  CALL      R2 = call(R2, 0 args, 1 rets)
  0034  RETURN    return R0..R-1
