# BakeOut_View_BakeOutResultWindow_874.luac
; fn @BakeOutResultWindow.lua  line 0-0 np=0 va=1 ms=3 code=21 consts=11 upvals=1 protos=3
;   K[0]='BakeOutResultWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='BaseWindow'
;   K[6]='__index'
;   K[7]='BeforeOpenCheck'
;   K[8]='Init'
;   K[9]='BakeOutResultWindow'
;   K[10]='OnCloseView'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  GETTABUP  R2 = _ENV[K3('EWindowMaskAlpha')]
0003  GETTABLE  R2 = R2[K4('Dark')]
0004  SETTABLE  R1[K2('windowMaskAlpha')] = R2
0005  GETTABUP  R2 = _ENV[K5('BaseWindow')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('BakeOutResultWindow')] = R0
0008  GETTABUP  R0 = _ENV[K0('BakeOutResultWindow')]
0009  GETTABUP  R1 = _ENV[K0('BakeOutResultWindow')]
0010  SETTABLE  R0[K6('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('BakeOutResultWindow')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K7('BeforeOpenCheck')] = R1
0014  GETTABUP  R0 = _ENV[K0('BakeOutResultWindow')]
0015  CLOSURE   R1 = closure proto1
0016  SETTABLE  R0[K8('Init')] = R1
0017  GETTABUP  R0 = _ENV[K9('BakeOutResultWindow')]
0018  CLOSURE   R1 = closure proto2
0019  SETTABLE  R0[K10('OnCloseView')] = R1
0020  RETURN    return R0..R-1
; ---------- proto0 [BeforeOpenCheck] ----------
  ; fn ?  line 7-10 np=1 va=0 ms=4 code=16 consts=7 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='ActivityManager'
  ;   K[2]='GetModel'
  ;   K[3]='ActivityType'
  ;   K[4]='BakeOut'
  ;   K[5]=nil
  ;   K[6]='GetFinalRankInfos'
  ;   upvals: _ENV
  ;   locals: self(0-16), model(6-16)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('ActivityManager')]
  0002  SELF      R2 = R1[K2('GetModel')] (self)
  0003  GETTABUP  R3 = _ENV[K3('ActivityType')]
  0004  GETTABLE  R3 = R3[K4('BakeOut')]
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  EQ        if R1 eq K5(nil)   -> -130291
  0007  JMP       (jump)   -> 12
  0008  SELF      R3 = R1[K6('GetFinalRankInfos')] (self)
  0009  CALL      R2 = call(R2, 1 args, 1 rets)
  0010  EQ        if R0 eq K5(nil)   -> -129775
  0011  JMP       (jump)   -> 13
  0012  LOADBOOL  R2 = false
  0013  LOADBOOL  R2 = true
  0014  RETURN    return R2..R1
  0015  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 12-46 np=2 va=0 ms=12 code=100 consts=46 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='SceneManager'
  ;   K[2]='GetGameMode'
  ;   K[3]='EGameMode'
  ;   K[4]='Main'
  ;   K[5]='ChangeGameMode'
  ;   K[6]='m_model'
  ;   K[7]='ActivityManager'
  ;   K[8]='GetModel'
  ;   K[9]='ActivityType'
  ;   K[10]='BakeOut'
  ;   K[11]='SetWindowOpened'
  ;   K[12]='GetFinalRankInfos'
  ;   K[13]='GetOwnDataFromRanksData'
  ;   K[14]=nil
  ;   K[15]='m_podium'
  ;   K[16]='UpdateContent'
  ;   K[17]='m_resultText'
  ;   K[18]='text'
  ;   K[19]='GameTextModel'
  ;   K[20]='GetText'
  ;   K[21]='bakeout_result'
  ;   K[22]='rank'
  ;   K[23]=0
  ;   K[24]='UserProfileModel'
  ;   K[25]='GetName'
  ;   K[26]='GetWaitingOpenWindowDatas'
  ;   K[27]=1
  ;   K[28]='name'
  ;   K[29]='UIPrefabConfigName'
  ;   K[30]='BakeOutResultWindow'
  ;   K[31]='table'
  ;   K[32]='remove'
  ;   K[33]='LogWindowAction'
  ;   K[34]='EBIType'
  ;   K[35]='UIActionType'
  ;   K[36]='Open'
  ;   K[37]='EBIReferType'
  ;   K[38]='UserClick'
  ;   K[39]='AutoPopup'
  ;   K[40]='GetId'
  ;   K[41]='m_bInited'
  ;   K[42]=true
  ;   K[43]='m_role'
  ;   K[44]='Init'
  ;   K[45]='PlayEnterAnimation'
  ;   upvals: _ENV
  ;   locals: self(0-100), userClick(0-100), finalRankDatas(27-100), ownRankData(31-100), arrWindows(56-100), index(57-100)
  0000  GETTABUP  R2 = _ENV[K0('GM')]
  0001  GETTABLE  R2 = R2[K1('SceneManager')]
  0002  SELF      R3 = R2[K2('GetGameMode')] (self)
  0003  CALL      R2 = call(R2, 1 args, 1 rets)
  0004  GETTABUP  R3 = _ENV[K3('EGameMode')]
  0005  GETTABLE  R3 = R3[K4('Main')]
  0006  EQ        if R1 eq R3   -> -130037
  0007  JMP       (jump)   -> 14
  0008  GETTABUP  R2 = _ENV[K0('GM')]
  0009  GETTABLE  R2 = R2[K1('SceneManager')]
  0010  SELF      R3 = R2[K5('ChangeGameMode')] (self)
  0011  GETTABUP  R4 = _ENV[K3('EGameMode')]
  0012  GETTABLE  R4 = R4[K4('Main')]
  0013  CALL      R2 = call(R2, 0 args, 2 rets)
  0014  GETTABUP  R2 = _ENV[K0('GM')]
  0015  GETTABLE  R2 = R2[K7('ActivityManager')]
  0016  SELF      R3 = R2[K8('GetModel')] (self)
  0017  GETTABUP  R4 = _ENV[K9('ActivityType')]
  0018  GETTABLE  R4 = R4[K10('BakeOut')]
  0019  CALL      R2 = call(R2, 1 args, 2 rets)
  0020  SETTABLE  R0[K6('m_model')] = R2
  0021  GETTABLE  R2 = R0[K6('m_model')]
  0022  SELF      R3 = R2[K11('SetWindowOpened')] (self)
  0023  CALL      R2 = call(R2, 0 args, 1 rets)
  0024  GETTABLE  R2 = R0[K6('m_model')]
  0025  SELF      R3 = R2[K12('GetFinalRankInfos')] (self)
  0026  CALL      R2 = call(R2, 1 args, 1 rets)
  0027  GETTABLE  R3 = R0[K6('m_model')]
  0028  SELF      R4 = R3[K13('GetOwnDataFromRanksData')] (self)
  0029  MOVE      R5 = R0
  0030  CALL      R3 = call(R3, 1 args, 2 rets)
  0031  EQ        if R1 eq K14(nil)   -> -129233
  0032  JMP       (jump)   -> 53
  0033  GETTABLE  R4 = R0[K15('m_podium')]
  0034  SELF      R5 = R4[K16('UpdateContent')] (self)
  0035  MOVE      R6 = R0
  0036  CALL      R4 = call(R4, 0 args, 2 rets)
  0037  GETTABLE  R4 = R0[K17('m_resultText')]
  0038  GETTABUP  R5 = _ENV[K0('GM')]
  0039  GETTABLE  R5 = R5[K19('GameTextModel')]
  0040  SELF      R6 = R5[K20('GetText')] (self)
  0041  LOADK     R7 = K21 'bakeout_result'
  0042  GETTABLE  R8 = R3[K22('rank')]
  0043  LEN       R9 = len R0
  0044  TEST      if not R9 then   -> -131025
  0045  JMP       (jump)   -> 47
  0046  LOADK     R9 = K23 0
  0047  GETTABUP  R10 = _ENV[K0('GM')]
  0048  GETTABLE  R10 = R10[K24('UserProfileModel')]
  0049  SELF      R11 = R10[K25('GetName')] (self)
  0050  CALL      R10 = call(R10, -1 args, 1 rets)
  0051  CALL      R5 = call(R5, 1 args, -1 rets)
  0052  SETTABLE  R4[K18('text')] = R5
  0053  GETTABLE  R4 = R0[K6('m_model')]
  0054  SELF      R5 = R4[K26('GetWaitingOpenWindowDatas')] (self)
  0055  CALL      R4 = call(R4, 1 args, 1 rets)
  0056  LOADK     R5 = K27 1
  0057  LEN       R6 = len R0
  0058  LE        if R0 le R6   -> -128446
  0059  JMP       (jump)   -> 74
  0060  GETTABLE  R6 = R4[R5]
  0061  GETTABLE  R6 = R6[K28('name')]
  0062  GETTABUP  R7 = _ENV[K29('UIPrefabConfigName')]
  0063  GETTABLE  R7 = R7[K30('BakeOutResultWindow')]
  0064  EQ        if R0 eq R7   -> -127927
  0065  JMP       (jump)   -> 72
  0066  GETTABUP  R6 = _ENV[K31('table')]
  0067  GETTABLE  R6 = R6[K32('remove')]
  0068  MOVE      R7 = R0
  0069  MOVE      R8 = R0
  0070  CALL      R6 = call(R6, 0 args, 2 rets)
  0071  JMP       (jump)   -> 57
  0072  ADD       R5 = K27(1) add R5
  0073  JMP       (jump)   -> 57
  0074  SELF      R7 = R0[K33('LogWindowAction')] (self)
  0075  GETTABUP  R8 = _ENV[K34('EBIType')]
  0076  GETTABLE  R8 = R8[K35('UIActionType')]
  0077  GETTABLE  R8 = R8[K36('Open')]
  0078  NEWTABLE  R9 = {} (1 items)
  0079  TEST      if not R1 then   -> -130991
  0080  JMP       (jump)   -> 85
  0081  GETTABUP  R10 = _ENV[K37('EBIReferType')]
  0082  GETTABLE  R10 = R10[K38('UserClick')]
  0083  TEST      if not R10 then   -> -130986
  0084  JMP       (jump)   -> 87
  0085  GETTABUP  R10 = _ENV[K37('EBIReferType')]
  0086  GETTABLE  R10 = R10[K39('AutoPopup')]
  0087  SETLIST   setlist R9[B=1,C=1]
  0088  GETTABLE  R10 = R0[K6('m_model')]
  0089  SELF      R11 = R10[K40('GetId')] (self)
  0090  CALL      R10 = call(R10, -1 args, 1 rets)
  0091  CALL      R6 = call(R6, 0 args, -1 rets)
  0092  SETTABLE  R0[K41('m_bInited')] = K42(true)
  0093  GETTABLE  R6 = R0[K43('m_role')]
  0094  SELF      R7 = R6[K44('Init')] (self)
  0095  CALL      R6 = call(R6, 0 args, 1 rets)
  0096  GETTABLE  R6 = R0[K43('m_role')]
  0097  SELF      R7 = R6[K45('PlayEnterAnimation')] (self)
  0098  CALL      R6 = call(R6, 0 args, 1 rets)
  0099  RETURN    return R0..R-1
; ---------- proto2 [OnCloseView] ----------
  ; fn ?  line 48-58 np=1 va=0 ms=4 code=10 consts=4 upvals=1 protos=1
  ;   K[0]='m_bClosing'
  ;   K[1]=true
  ;   K[2]='m_model'
  ;   K[3]='AcquireReward'
  ;   upvals: _ENV
  ;   locals: self(0-10)
  0000  GETTABLE  R1 = R0[K0('m_bClosing')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  SETTABLE  R0[K0('m_bClosing')] = K1(true)
  0005  GETTABLE  R1 = R0[K2('m_model')]
  0006  SELF      R2 = R1[K3('AcquireReward')] (self)
  0007  CLOSURE   R3 = closure proto0
  0008  CALL      R1 = call(R1, 0 args, 2 rets)
  0009  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 54-57 np=0 va=0 ms=2 code=8 consts=4 upvals=2 protos=0
    ;   K[0]='BaseWindow'
    ;   K[1]='OnCloseView'
    ;   K[2]='m_model'
    ;   K[3]='TryUpdateHint'
    ;   upvals: _ENV, self
    0000  GETTABUP  R0 = _ENV[K0('BaseWindow')]
    0001  GETTABLE  R0 = R0[K1('OnCloseView')]
    0002  GETUPVAL  R1 = _ENV
    0003  CALL      R0 = call(R0, 0 args, 1 rets)
    0004  GETTABUP  R0 = self[K2('m_model')]
    0005  SELF      R1 = R0[K3('TryUpdateHint')] (self)
    0006  CALL      R0 = call(R0, 0 args, 1 rets)
    0007  RETURN    return R0..R-1
