# UI_UIFramework_PromptManager_258.luac
; fn @PromptManager.lua  line 0-0 np=0 va=1 ms=2 code=44 consts=22 upvals=1 protos=6
;   K[0]='PromptManager'
;   K[1]='__index'
;   K[2]='SpecialPromptPrefabName'
;   K[3]='Window'
;   K[4]='UIPrefabConfigName'
;   K[5]='PromptOnWindow'
;   K[6]='Prompt'
;   K[7]='DiscoSpin'
;   K[8]='DiscoSpinActivityPrompt'
;   K[9]='LuckyBlast'
;   K[10]='LuckyBlastActivityPrompt'
;   K[11]='LineRace'
;   K[12]='LineRaceActivityStartPrompt'
;   K[13]='DoubleWheel'
;   K[14]='DoubleWheelActivityPrompt'
;   K[15]='Create'
;   K[16]='PromptManager'
;   K[17]='_Init'
;   K[18]='GetCurrentId'
;   K[19]='Show'
;   K[20]='_Show'
;   K[21]='_ShowPrompt'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('PromptManager')] = R0
0002  GETTABUP  R0 = _ENV[K0('PromptManager')]
0003  GETTABUP  R1 = _ENV[K0('PromptManager')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  NEWTABLE  R0 = {} (0 items)
0006  GETTABUP  R1 = _ENV[K4('UIPrefabConfigName')]
0007  GETTABLE  R1 = R1[K5('PromptOnWindow')]
0008  SETTABLE  R0[K3('Window')] = R1
0009  GETTABUP  R1 = _ENV[K4('UIPrefabConfigName')]
0010  GETTABLE  R1 = R1[K6('Prompt')]
0011  SETTABLE  R0[K6('Prompt')] = R1
0012  GETTABUP  R1 = _ENV[K4('UIPrefabConfigName')]
0013  GETTABLE  R1 = R1[K8('DiscoSpinActivityPrompt')]
0014  SETTABLE  R0[K7('DiscoSpin')] = R1
0015  GETTABUP  R1 = _ENV[K4('UIPrefabConfigName')]
0016  GETTABLE  R1 = R1[K10('LuckyBlastActivityPrompt')]
0017  SETTABLE  R0[K9('LuckyBlast')] = R1
0018  GETTABUP  R1 = _ENV[K4('UIPrefabConfigName')]
0019  GETTABLE  R1 = R1[K12('LineRaceActivityStartPrompt')]
0020  SETTABLE  R0[K11('LineRace')] = R1
0021  GETTABUP  R1 = _ENV[K4('UIPrefabConfigName')]
0022  GETTABLE  R1 = R1[K14('DoubleWheelActivityPrompt')]
0023  SETTABLE  R0[K13('DoubleWheel')] = R1
0024  SETTABUP  _ENV[K2('SpecialPromptPrefabName')] = R0
0025  GETTABUP  R0 = _ENV[K0('PromptManager')]
0026  CLOSURE   R1 = closure proto0
0027  SETTABLE  R0[K15('Create')] = R1
0028  GETTABUP  R0 = _ENV[K16('PromptManager')]
0029  CLOSURE   R1 = closure proto1
0030  SETTABLE  R0[K17('_Init')] = R1
0031  GETTABUP  R0 = _ENV[K16('PromptManager')]
0032  CLOSURE   R1 = closure proto2
0033  SETTABLE  R0[K18('GetCurrentId')] = R1
0034  GETTABUP  R0 = _ENV[K16('PromptManager')]
0035  CLOSURE   R1 = closure proto3
0036  SETTABLE  R0[K19('Show')] = R1
0037  GETTABUP  R0 = _ENV[K16('PromptManager')]
0038  CLOSURE   R1 = closure proto4
0039  SETTABLE  R0[K20('_Show')] = R1
0040  GETTABUP  R0 = _ENV[K16('PromptManager')]
0041  CLOSURE   R1 = closure proto5
0042  SETTABLE  R0[K21('_ShowPrompt')] = R1
0043  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 14-18 np=0 va=0 ms=3 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='PromptManager'
  ;   K[2]='_Init'
  ;   upvals: _ENV
  ;   locals: instance(4-8)
  0000  GETTABUP  R0 = _ENV[K0('setmetatable')]
  0001  NEWTABLE  R1 = {} (0 items)
  0002  GETTABUP  R2 = _ENV[K1('PromptManager')]
  0003  CALL      R0 = call(R0, 1 args, 2 rets)
  0004  SELF      R2 = R0[K2('_Init')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  RETURN    return R0..R-1
  0007  RETURN    return R0..R-1
; ---------- proto1 [_Init] ----------
  ; fn ?  line 20-25 np=1 va=0 ms=2 code=3 consts=3 upvals=0 protos=0
  ;   K[0]='m_curOrder'
  ;   K[1]=0
  ;   K[2]='m_currentId'
  ;   locals: self(0-3)
  0000  SETTABLE  R0[K0('m_curOrder')] = K1(0)
  0001  SETTABLE  R0[K2('m_currentId')] = K1(0)
  0002  RETURN    return R0..R-1
; ---------- proto2 [GetCurrentId] ----------
  ; fn ?  line 27-29 np=1 va=0 ms=2 code=3 consts=1 upvals=0 protos=0
  ;   K[0]='m_currentId'
  ;   locals: self(0-3)
  0000  GETTABLE  R1 = R0[K0('m_currentId')]
  0001  RETURN    return R1..R0
  0002  RETURN    return R0..R-1
; ---------- proto3 [Show] ----------
  ; fn ?  line 31-33 np=8 va=0 ms=17 code=10 consts=1 upvals=0 protos=0
  ;   K[0]='_Show'
  ;   locals: self(0-10), text(0-10), uiWorldPos(0-10), stayDuration(0-10), bTMP(0-10), forTest(0-10), sortingOrder(0-10), specialPrefab(0-10)
  0000  SELF      R9 = R0[K0('_Show')] (self)
  0001  MOVE      R10 = R0
  0002  MOVE      R11 = R0
  0003  MOVE      R12 = R0
  0004  MOVE      R13 = R0
  0005  MOVE      R14 = R0
  0006  MOVE      R15 = R0
  0007  MOVE      R16 = R0
  0008  CALL      R8 = call(R8, 0 args, 8 rets)
  0009  RETURN    return R0..R-1
; ---------- proto4 [_Show] ----------
  ; fn ?  line 35-61 np=8 va=0 ms=17 code=75 consts=28 upvals=1 protos=1
  ;   K[0]='m_currentId'
  ;   K[1]=1
  ;   K[2]='IsTestSkipping'
  ;   K[3]='EventDispatcher'
  ;   K[4]='DispatchEvent'
  ;   K[5]='EEventType'
  ;   K[6]='ShowPrompt'
  ;   K[7]=nil
  ;   K[8]='GM'
  ;   K[9]='ModeViewController'
  ;   K[10]='GetExtraBoardActivityBoardView'
  ;   K[11]='IsTopBoardView'
  ;   K[12]='UIManager'
  ;   K[13]='GetOpenedViewCountByType'
  ;   K[14]='EViewType'
  ;   K[15]='Window'
  ;   K[16]=0
  ;   K[17]='UIPrefabConfigName'
  ;   K[18]='PromptOnWindow'
  ;   K[19]='Prompt'
  ;   K[20]='ResourceLoader'
  ;   K[21]='LoadPrefab'
  ;   K[22]='DataResource'
  ;   K[23]='UIPrefabConfig'
  ;   K[24]='GetConfig'
  ;   K[25]='GetCanvasRoot'
  ;   K[26]='Vector3'
  ;   K[27]='zero'
  ;   upvals: _ENV
  ;   locals: self(0-75), text(0-75), uiWorldPos(0-75), stayDuration(0-75), bTMP(0-75), forTest(0-75), sortingOrder(0-75), specialPrefab(0-75), id(2-75), loadCallback(13-75), prefabName(14-75), extraBoardView(29-57), bExtraBoardInTop(30-57), bInWindow(49-57)
  0000  GETTABLE  R8 = R0[K0('m_currentId')]
  0001  ADD       R8 = K1(1) add R8
  0002  SETTABLE  R0[K0('m_currentId')] = R8
  0003  GETTABUP  R9 = _ENV[K2('IsTestSkipping')]
  0004  CALL      R9 = call(R9, 1 args, 0 rets)
  0005  TEST      if not R9 then   -> -131064
  0006  JMP       (jump)   -> 12
  0007  GETTABUP  R9 = _ENV[K3('EventDispatcher')]
  0008  GETTABLE  R9 = R9[K4('DispatchEvent')]
  0009  GETTABUP  R10 = _ENV[K5('EEventType')]
  0010  GETTABLE  R10 = R10[K6('ShowPrompt')]
  0011  CALL      R9 = call(R9, 0 args, 1 rets)
  0012  CLOSURE   R9 = closure proto0
  0013  LOADNIL   R10..R10 = nil
  0014  EQ        if R1 eq K7(nil)   -> -127209
  0015  JMP       (jump)   -> 18
  0016  MOVE      R10 = R0
  0017  JMP       (jump)   -> 57
  0018  GETTABUP  R11 = _ENV[K8('GM')]
  0019  GETTABLE  R11 = R11[K9('ModeViewController')]
  0020  TEST      if not R11 then   -> -131050
  0021  JMP       (jump)   -> 28
  0022  GETTABUP  R11 = _ENV[K8('GM')]
  0023  GETTABLE  R11 = R11[K9('ModeViewController')]
  0024  SELF      R12 = R11[K10('GetExtraBoardActivityBoardView')] (self)
  0025  CALL      R11 = call(R11, 1 args, 1 rets)
  0026  TEST      if not R11 then   -> -131043
  0027  JMP       (jump)   -> 29
  0028  LOADNIL   R11..R11 = nil
  0029  LOADBOOL  R12 = false
  0030  EQ        if R1 eq K7(nil)   -> -125145
  0031  JMP       (jump)   -> 37
  0032  SELF      R14 = R11[K11('IsTopBoardView')] (self)
  0033  CALL      R13 = call(R13, 1 args, 1 rets)
  0034  TEST      if not R13 then   -> -131036
  0035  JMP       (jump)   -> 37
  0036  LOADBOOL  R12 = true
  0037  GETTABUP  R13 = _ENV[K8('GM')]
  0038  GETTABLE  R13 = R13[K12('UIManager')]
  0039  SELF      R14 = R13[K13('GetOpenedViewCountByType')] (self)
  0040  GETTABUP  R15 = _ENV[K14('EViewType')]
  0041  GETTABLE  R15 = R15[K15('Window')]
  0042  CALL      R13 = call(R13, 1 args, 2 rets)
  0043  LT        if R0 lt R13   -> 8250
  0044  JMP       (jump)   -> 47
  0045  NOT       R13 = not R0
  0046  JMP       (jump)   -> 49
  0047  LOADBOOL  R13 = false
  0048  LOADBOOL  R13 = true
  0049  TEST      if not R13 then   -> -131021
  0050  JMP       (jump)   -> 55
  0051  GETTABUP  R14 = _ENV[K17('UIPrefabConfigName')]
  0052  GETTABLE  R14 = R14[K18('PromptOnWindow')]
  0053  TESTSET   if R1 then R10   -> -123848
  0054  JMP       (jump)   -> 57
  0055  GETTABUP  R14 = _ENV[K17('UIPrefabConfigName')]
  0056  GETTABLE  R10 = R14[K19('Prompt')]
  0057  GETTABUP  R11 = _ENV[K8('GM')]
  0058  GETTABLE  R11 = R11[K20('ResourceLoader')]
  0059  SELF      R12 = R11[K21('LoadPrefab')] (self)
  0060  GETTABUP  R13 = _ENV[K8('GM')]
  0061  GETTABLE  R13 = R13[K22('DataResource')]
  0062  GETTABLE  R13 = R13[K23('UIPrefabConfig')]
  0063  SELF      R14 = R13[K24('GetConfig')] (self)
  0064  MOVE      R15 = R0
  0065  CALL      R13 = call(R13, 1 args, 2 rets)
  0066  GETTABUP  R14 = _ENV[K8('GM')]
  0067  GETTABLE  R14 = R14[K12('UIManager')]
  0068  SELF      R15 = R14[K25('GetCanvasRoot')] (self)
  0069  CALL      R14 = call(R14, 1 args, 1 rets)
  0070  GETTABUP  R15 = _ENV[K26('Vector3')]
  0071  GETTABLE  R15 = R15[K27('zero')]
  0072  MOVE      R16 = R0
  0073  CALL      R11 = call(R11, 0 args, 5 rets)
  0074  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 43-45 np=1 va=0 ms=11 code=12 consts=1 upvals=8 protos=0
    ;   K[0]='_ShowPrompt'
    ;   upvals: self, id, text, uiWorldPos, stayDuration, bTMP, forTest, sortingOrder
    ;   locals: go(0-12)
    0000  GETUPVAL  R1 = self
    0001  SELF      R2 = R1[K0('_ShowPrompt')] (self)
    0002  MOVE      R3 = R0
    0003  GETUPVAL  R4 = self
    0004  GETUPVAL  R5 = self
    0005  GETUPVAL  R6 = self
    0006  GETUPVAL  R7 = self
    0007  GETUPVAL  R8 = self
    0008  GETUPVAL  R9 = self
    0009  GETUPVAL  R10 = self
    0010  CALL      R1 = call(R1, 0 args, 9 rets)
    0011  RETURN    return R0..R-1
; ---------- proto5 [_ShowPrompt] ----------
  ; fn ?  line 63-74 np=9 va=0 ms=21 code=25 consts=7 upvals=1 protos=1
  ;   K[0]='GetLuaTable'
  ;   K[1]='m_curOrder'
  ;   K[2]=1
  ;   K[3]='ESpecialViewSortingOrder'
  ;   K[4]='Prompt'
  ;   K[5]='SetSortingOrder'
  ;   K[6]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-25), go(0-25), id(0-25), text(0-25), uiWorldPos(0-25), stayDuration(0-25), bTMP(0-25), forTest(0-25), sortingOrder(0-25), callback(1-25), prompt(3-25), targetOrder(12-25)
  0000  CLOSURE   R9 = closure proto0
  0001  SELF      R11 = R1[K0('GetLuaTable')] (self)
  0002  CALL      R10 = call(R10, 1 args, 1 rets)
  0003  GETTABLE  R11 = R0[K1('m_curOrder')]
  0004  ADD       R11 = K2(1) add R11
  0005  SETTABLE  R0[K1('m_curOrder')] = R11
  0006  TESTSET   if R1 then R11   -> -126967
  0007  JMP       (jump)   -> 10
  0008  GETTABUP  R11 = _ENV[K3('ESpecialViewSortingOrder')]
  0009  GETTABLE  R11 = R11[K4('Prompt')]
  0010  GETTABLE  R12 = R0[K1('m_curOrder')]
  0011  ADD       R11 = R12 add R11
  0012  SELF      R13 = R10[K5('SetSortingOrder')] (self)
  0013  MOVE      R14 = R0
  0014  CALL      R12 = call(R12, 0 args, 2 rets)
  0015  SELF      R13 = R10[K6('Init')] (self)
  0016  MOVE      R14 = R0
  0017  MOVE      R15 = R0
  0018  MOVE      R16 = R0
  0019  MOVE      R17 = R0
  0020  MOVE      R18 = R0
  0021  MOVE      R19 = R0
  0022  MOVE      R20 = R0
  0023  CALL      R12 = call(R12, 0 args, 8 rets)
  0024  RETURN    return R0..R-1
  ; ---------- proto0 [m_curOrder] ----------
    ; fn ?  line 64-67 np=0 va=0 ms=3 code=8 consts=4 upvals=3 protos=0
    ;   K[0]='GameObjectPool'
    ;   K[1]='Recycle'
    ;   K[2]='m_curOrder'
    ;   K[3]=1
    ;   upvals: _ENV, go, self
    0000  GETTABUP  R0 = _ENV[K0('GameObjectPool')]
    0001  SELF      R1 = R0[K1('Recycle')] (self)
    0002  GETUPVAL  R2 = _ENV
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  GETTABUP  R0 = self[K2('m_curOrder')]
    0005  SUB       R0 = K3(1) sub R0
    0006  SETTABUP  self[K2('m_curOrder')] = R0
    0007  RETURN    return R0..R-1
