# UI_Window_Setting_LanguageSettingWindow_559.luac
; fn @LanguageSettingWindow.lua  line 0-0 np=0 va=1 ms=3 code=16 consts=8 upvals=1 protos=2
;   K[0]='LanguageSettingWindow'
;   K[1]='setmetatable'
;   K[2]='canClickWindowMask'
;   K[3]=true
;   K[4]='BaseWindow'
;   K[5]='__index'
;   K[6]='Init'
;   K[7]='OpenConfirmWindow'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('canClickWindowMask')] = K3(true)
0003  GETTABUP  R2 = _ENV[K4('BaseWindow')]
0004  CALL      R0 = call(R0, 1 args, 2 rets)
0005  SETTABUP  _ENV[K0('LanguageSettingWindow')] = R0
0006  GETTABUP  R0 = _ENV[K0('LanguageSettingWindow')]
0007  GETTABUP  R1 = _ENV[K0('LanguageSettingWindow')]
0008  SETTABLE  R0[K5('__index')] = R1
0009  GETTABUP  R0 = _ENV[K0('LanguageSettingWindow')]
0010  CLOSURE   R1 = closure proto0
0011  SETTABLE  R0[K6('Init')] = R1
0012  GETTABUP  R0 = _ENV[K0('LanguageSettingWindow')]
0013  CLOSURE   R1 = closure proto1
0014  SETTABLE  R0[K7('OpenConfirmWindow')] = R1
0015  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 6-28 np=1 va=0 ms=14 code=49 consts=18 upvals=1 protos=2
  ;   K[0]='LocalizationModel'
  ;   K[1]='GetLanguageOptions'
  ;   K[2]='GetCurLanguageInString'
  ;   K[3]=1
  ;   K[4]='Length'
  ;   K[5]='ToString'
  ;   K[6]='GM'
  ;   K[7]='ResourceLoader'
  ;   K[8]='LoadPrefab'
  ;   K[9]='DataResource'
  ;   K[10]='UIPrefabConfig'
  ;   K[11]='GetConfig'
  ;   K[12]='UIPrefabConfigName'
  ;   K[13]='LanguageCurrentCell'
  ;   K[14]='m_contentRectTrans'
  ;   K[15]='V3Zero'
  ;   K[16]='GM'
  ;   K[17]='LanguageOptionCell'
  ;   upvals: _ENV
  ;   locals: self(0-49), options(3-49), currentLanguage(6-49), (for index)(9-48), (for limit)(9-48), (for step)(9-48), i(10-47), language(14-46)
  0000  GETTABUP  R1 = _ENV[K0('LocalizationModel')]
  0001  SELF      R2 = R1[K1('GetLanguageOptions')] (self)
  0002  CALL      R1 = call(R1, 1 args, 1 rets)
  0003  GETTABUP  R2 = _ENV[K0('LocalizationModel')]
  0004  SELF      R3 = R2[K2('GetCurLanguageInString')] (self)
  0005  CALL      R2 = call(R2, 1 args, 1 rets)
  0006  LOADK     R3 = K3 1
  0007  GETTABLE  R4 = R1[K4('Length')]
  0008  LOADK     R5 = K3 1
  0009  FORPREP   forprep R3(sBx=37)   -> 47
  0010  SUB       R7 = K3(1) sub R6
  0011  GETTABLE  R7 = R1[R7]
  0012  SELF      R8 = R7[K5('ToString')] (self)
  0013  CALL      R7 = call(R7, 1 args, 1 rets)
  0014  EQ        if R0 eq R2   -> -127470
  0015  JMP       (jump)   -> 31
  0016  GETTABUP  R8 = _ENV[K6('GM')]
  0017  GETTABLE  R8 = R8[K7('ResourceLoader')]
  0018  SELF      R9 = R8[K8('LoadPrefab')] (self)
  0019  GETTABUP  R10 = _ENV[K6('GM')]
  0020  GETTABLE  R10 = R10[K9('DataResource')]
  0021  GETTABLE  R10 = R10[K10('UIPrefabConfig')]
  0022  SELF      R11 = R10[K11('GetConfig')] (self)
  0023  GETTABUP  R12 = _ENV[K12('UIPrefabConfigName')]
  0024  GETTABLE  R12 = R12[K13('LanguageCurrentCell')]
  0025  CALL      R10 = call(R10, 1 args, 2 rets)
  0026  GETTABLE  R11 = R0[K14('m_contentRectTrans')]
  0027  GETTABUP  R12 = _ENV[K15('V3Zero')]
  0028  CLOSURE   R13 = closure proto0
  0029  CALL      R8 = call(R8, 0 args, 5 rets)
  0030  JMP       (jump)   -> 47
  0031  GETTABUP  R8 = _ENV[K16('GM')]
  0032  GETTABLE  R8 = R8[K7('ResourceLoader')]
  0033  SELF      R9 = R8[K8('LoadPrefab')] (self)
  0034  GETTABUP  R10 = _ENV[K16('GM')]
  0035  GETTABLE  R10 = R10[K9('DataResource')]
  0036  GETTABLE  R10 = R10[K10('UIPrefabConfig')]
  0037  SELF      R11 = R10[K11('GetConfig')] (self)
  0038  GETTABUP  R12 = _ENV[K12('UIPrefabConfigName')]
  0039  GETTABLE  R12 = R12[K17('LanguageOptionCell')]
  0040  CALL      R10 = call(R10, 1 args, 2 rets)
  0041  GETTABLE  R11 = R0[K14('m_contentRectTrans')]
  0042  GETTABUP  R12 = _ENV[K15('V3Zero')]
  0043  CLOSURE   R13 = closure proto1
  0044  CALL      R8 = call(R8, 0 args, 5 rets)
  0045  JMP       (jump)   -> 47
  0046  JMP       (jump)   -> 47
  0047  FORLOOP   forloop R3(sBx=-38)   -> 10
  0048  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 13-17 np=1 va=0 ms=10 code=21 consts=12 upvals=3 protos=0
    ;   K[0]='transform'
    ;   K[1]='SetSiblingIndex'
    ;   K[2]=1
    ;   K[3]='GetLuaTable'
    ;   K[4]='Init'
    ;   K[5]='GM'
    ;   K[6]='GameTextModel'
    ;   K[7]='GetText'
    ;   K[8]='language_'
    ;   K[9]='LocalizationModel'
    ;   K[10]='GetLanguageAbbreviation'
    ;   K[11]='_button'
    ;   upvals: i, _ENV, language
    ;   locals: go(0-21), cell(7-21)
    0000  GETTABLE  R1 = R0[K0('transform')]
    0001  SELF      R2 = R1[K1('SetSiblingIndex')] (self)
    0002  GETUPVAL  R3 = i
    0003  SUB       R3 = K2(1) sub R3
    0004  CALL      R1 = call(R1, 0 args, 2 rets)
    0005  SELF      R2 = R0[K3('GetLuaTable')] (self)
    0006  CALL      R1 = call(R1, 1 args, 1 rets)
    0007  SELF      R3 = R1[K4('Init')] (self)
    0008  GETTABUP  R4 = _ENV[K5('GM')]
    0009  GETTABLE  R4 = R4[K6('GameTextModel')]
    0010  SELF      R5 = R4[K7('GetText')] (self)
    0011  LOADK     R6 = K8 'language_'
    0012  GETTABUP  R7 = _ENV[K9('LocalizationModel')]
    0013  SELF      R8 = R7[K10('GetLanguageAbbreviation')] (self)
    0014  GETUPVAL  R9 = i
    0015  CALL      R7 = call(R7, 1 args, 2 rets)
    0016  LOADK     R8 = K11 '_button'
    0017  CONCAT    R6 = concat(R6..R6)
    0018  CALL      R4 = call(R4, -1 args, 2 rets)
    0019  CALL      R2 = call(R2, 0 args, -1 rets)
    0020  RETURN    return R0..R-1
  ; ---------- proto1 [] ----------
    ; fn ?  line 19-25 np=1 va=0 ms=10 code=22 consts=12 upvals=4 protos=1
    ;   K[0]='transform'
    ;   K[1]='SetSiblingIndex'
    ;   K[2]=1
    ;   K[3]='GetLuaTable'
    ;   K[4]='Init'
    ;   K[5]='GM'
    ;   K[6]='GameTextModel'
    ;   K[7]='GetText'
    ;   K[8]='language_'
    ;   K[9]='LocalizationModel'
    ;   K[10]='GetLanguageAbbreviation'
    ;   K[11]='_button'
    ;   upvals: i, _ENV, language, self
    ;   locals: go(0-22), cell(7-22)
    0000  GETTABLE  R1 = R0[K0('transform')]
    0001  SELF      R2 = R1[K1('SetSiblingIndex')] (self)
    0002  GETUPVAL  R3 = i
    0003  SUB       R3 = K2(1) sub R3
    0004  CALL      R1 = call(R1, 0 args, 2 rets)
    0005  SELF      R2 = R0[K3('GetLuaTable')] (self)
    0006  CALL      R1 = call(R1, 1 args, 1 rets)
    0007  SELF      R3 = R1[K4('Init')] (self)
    0008  GETTABUP  R4 = _ENV[K5('GM')]
    0009  GETTABLE  R4 = R4[K6('GameTextModel')]
    0010  SELF      R5 = R4[K7('GetText')] (self)
    0011  LOADK     R6 = K8 'language_'
    0012  GETTABUP  R7 = _ENV[K9('LocalizationModel')]
    0013  SELF      R8 = R7[K10('GetLanguageAbbreviation')] (self)
    0014  GETUPVAL  R9 = i
    0015  CALL      R7 = call(R7, 1 args, 2 rets)
    0016  LOADK     R8 = K11 '_button'
    0017  CONCAT    R6 = concat(R6..R6)
    0018  CALL      R4 = call(R4, 1 args, 2 rets)
    0019  CLOSURE   R5 = closure proto0
    0020  CALL      R2 = call(R2, 0 args, 3 rets)
    0021  RETURN    return R0..R-1
    ; ---------- proto0 [] ----------
      ; fn ?  line 22-24 np=0 va=0 ms=3 code=5 consts=1 upvals=2 protos=0
      ;   K[0]='OpenConfirmWindow'
      ;   upvals: self, language
      0000  GETUPVAL  R0 = self
      0001  SELF      R1 = R0[K0('OpenConfirmWindow')] (self)
      0002  GETUPVAL  R2 = self
      0003  CALL      R0 = call(R0, 0 args, 2 rets)
      0004  RETURN    return R0..R-1
; ---------- proto1 [OpenConfirmWindow] ----------
  ; fn ?  line 30-43 np=2 va=0 ms=12 code=14 consts=9 upvals=1 protos=1
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='OpenView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='TwoButtonWindow'
  ;   K[5]='language_change_confirm_window_title'
  ;   K[6]='language_change_confirm_desc'
  ;   K[7]='language_change_confirm_button_yes'
  ;   K[8]='language_change_confirm_button_no'
  ;   upvals: _ENV
  ;   locals: self(0-14), language(0-14)
  0000  GETTABUP  R2 = _ENV[K0('GM')]
  0001  GETTABLE  R2 = R2[K1('UIManager')]
  0002  SELF      R3 = R2[K2('OpenView')] (self)
  0003  GETTABUP  R4 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R4 = R4[K4('TwoButtonWindow')]
  0005  LOADK     R5 = K5 'language_change_confirm_window_title'
  0006  LOADK     R6 = K6 'language_change_confirm_desc'
  0007  LOADK     R7 = K7 'language_change_confirm_button_yes'
  0008  LOADK     R8 = K8 'language_change_confirm_button_no'
  0009  CLOSURE   R9 = closure proto0
  0010  LOADNIL   R10..R10 = nil
  0011  LOADBOOL  R11 = true
  0012  CALL      R2 = call(R2, 0 args, 9 rets)
  0013  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 36-39 np=0 va=0 ms=4 code=13 consts=9 upvals=2 protos=0
    ;   K[0]='LocalizationModel'
    ;   K[1]='ChangeLanguageWithString'
    ;   K[2]='GM'
    ;   K[3]='RestartGame'
    ;   K[4]='ERestartType'
    ;   K[5]='WithLocalization'
    ;   K[6]='EBIProjectType'
    ;   K[7]='RestartGameAction'
    ;   K[8]='Language'
    ;   upvals: _ENV, language
    0000  GETTABUP  R0 = _ENV[K0('LocalizationModel')]
    0001  SELF      R1 = R0[K1('ChangeLanguageWithString')] (self)
    0002  GETUPVAL  R2 = _ENV
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  GETTABUP  R0 = _ENV[K2('GM')]
    0005  SELF      R1 = R0[K3('RestartGame')] (self)
    0006  GETTABUP  R2 = _ENV[K4('ERestartType')]
    0007  GETTABLE  R2 = R2[K5('WithLocalization')]
    0008  GETTABUP  R3 = _ENV[K6('EBIProjectType')]
    0009  GETTABLE  R3 = R3[K7('RestartGameAction')]
    0010  GETTABLE  R3 = R3[K8('Language')]
    0011  CALL      R0 = call(R0, 0 args, 3 rets)
    0012  RETURN    return R0..R-1
