# UI_Window_Account_DataConflictRegion_650.luac
; fn @DataConflictRegion.lua  line 0-0 np=0 va=1 ms=3 code=31 consts=15 upvals=1 protos=7
;   K[0]='Equal'
;   K[1]=1
;   K[2]='Greater'
;   K[3]=2
;   K[4]='Less'
;   K[5]=3
;   K[6]='DataConflictRegion'
;   K[7]='__index'
;   K[8]='Init'
;   K[9]='_SetNumber'
;   K[10]='_SetDisplayTask'
;   K[11]='_TaskGreater'
;   K[12]='_SetText'
;   K[13]='OnButtonClicked'
;   K[14]='SetSelected'
;   upvals: _ENV
;   locals: CompareFlag(4-31)
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABLE  R0[K0('Equal')] = K1(1)
0002  SETTABLE  R0[K2('Greater')] = K3(2)
0003  SETTABLE  R0[K4('Less')] = K5(3)
0004  NEWTABLE  R1 = {} (0 items)
0005  SETTABUP  _ENV[K6('DataConflictRegion')] = R1
0006  GETTABUP  R1 = _ENV[K6('DataConflictRegion')]
0007  GETTABUP  R2 = _ENV[K6('DataConflictRegion')]
0008  SETTABLE  R1[K7('__index')] = R2
0009  GETTABUP  R1 = _ENV[K6('DataConflictRegion')]
0010  CLOSURE   R2 = closure proto0
0011  SETTABLE  R1[K8('Init')] = R2
0012  GETTABUP  R1 = _ENV[K6('DataConflictRegion')]
0013  CLOSURE   R2 = closure proto1
0014  SETTABLE  R1[K9('_SetNumber')] = R2
0015  GETTABUP  R1 = _ENV[K6('DataConflictRegion')]
0016  CLOSURE   R2 = closure proto2
0017  SETTABLE  R1[K10('_SetDisplayTask')] = R2
0018  GETTABUP  R1 = _ENV[K6('DataConflictRegion')]
0019  CLOSURE   R2 = closure proto3
0020  SETTABLE  R1[K11('_TaskGreater')] = R2
0021  GETTABUP  R1 = _ENV[K6('DataConflictRegion')]
0022  CLOSURE   R2 = closure proto4
0023  SETTABLE  R1[K12('_SetText')] = R2
0024  GETTABUP  R1 = _ENV[K6('DataConflictRegion')]
0025  CLOSURE   R2 = closure proto5
0026  SETTABLE  R1[K13('OnButtonClicked')] = R2
0027  GETTABUP  R1 = _ENV[K6('DataConflictRegion')]
0028  CLOSURE   R2 = closure proto6
0029  SETTABLE  R1[K14('SetSelected')] = R2
0030  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 12-34 np=5 va=0 ms=15 code=66 consts=29 upvals=1 protos=0
  ;   K[0]='m_conflictWindow'
  ;   K[1]='m_index'
  ;   K[2]='m_data'
  ;   K[3]='m_referenceData'
  ;   K[4]='_SetNumber'
  ;   K[5]='m_gemProgressText'
  ;   K[6]='Gems'
  ;   K[7]='m_coinProgressText'
  ;   K[8]='Coins'
  ;   K[9]='m_dayProgressText'
  ;   K[10]='Day'
  ;   K[11]='order_day_button'
  ;   K[12]='_SetDisplayTask'
  ;   K[13]='ProfileCount'
  ;   K[14]=0
  ;   K[15]='m_profileRowGo'
  ;   K[16]='SetActive'
  ;   K[17]='m_profileProgressText'
  ;   K[18]='Timestamp'
  ;   K[19]='m_timestampText'
  ;   K[20]='text'
  ;   K[21]='GM'
  ;   K[22]='GameTextModel'
  ;   K[23]='GetText'
  ;   K[24]='progress_save_time_local'
  ;   K[25]='progress_save_time_cloud'
  ;   K[26]='TimeUtil'
  ;   K[27]='ParseTimeDescription'
  ;   K[28]=2
  ;   upvals: _ENV
  ;   locals: self(0-66), conflictWindow(0-66), index(0-66), data(0-66), referenceData(0-66), bShowProfileRow(27-66)
  0000  SETTABLE  R0[K0('m_conflictWindow')] = R1
  0001  SETTABLE  R0[K1('m_index')] = R2
  0002  SETTABLE  R0[K2('m_data')] = R3
  0003  SETTABLE  R0[K3('m_referenceData')] = R4
  0004  SELF      R6 = R0[K4('_SetNumber')] (self)
  0005  GETTABLE  R7 = R0[K5('m_gemProgressText')]
  0006  LOADK     R8 = K6 'Gems'
  0007  CALL      R5 = call(R5, 0 args, 3 rets)
  0008  SELF      R6 = R0[K4('_SetNumber')] (self)
  0009  GETTABLE  R7 = R0[K7('m_coinProgressText')]
  0010  LOADK     R8 = K8 'Coins'
  0011  CALL      R5 = call(R5, 0 args, 3 rets)
  0012  SELF      R6 = R0[K4('_SetNumber')] (self)
  0013  GETTABLE  R7 = R0[K9('m_dayProgressText')]
  0014  LOADK     R8 = K10 'Day'
  0015  LOADK     R9 = K11 'order_day_button'
  0016  CALL      R5 = call(R5, 0 args, 4 rets)
  0017  SELF      R6 = R0[K12('_SetDisplayTask')] (self)
  0018  CALL      R5 = call(R5, 0 args, 1 rets)
  0019  GETTABLE  R5 = R3[K13('ProfileCount')]
  0020  LT        if R1 lt R5   -> 7195
  0021  JMP       (jump)   -> 26
  0022  GETTABLE  R5 = R4[K13('ProfileCount')]
  0023  LT        if R1 lt R5   -> 7198
  0024  JMP       (jump)   -> 26
  0025  LOADBOOL  R5 = false
  0026  LOADBOOL  R5 = true
  0027  GETTABLE  R6 = R0[K15('m_profileRowGo')]
  0028  SELF      R7 = R6[K16('SetActive')] (self)
  0029  MOVE      R8 = R0
  0030  CALL      R6 = call(R6, 0 args, 2 rets)
  0031  TEST      if not R5 then   -> -131039
  0032  JMP       (jump)   -> 37
  0033  SELF      R7 = R0[K4('_SetNumber')] (self)
  0034  GETTABLE  R8 = R0[K17('m_profileProgressText')]
  0035  LOADK     R9 = K13 'ProfileCount'
  0036  CALL      R6 = call(R6, 0 args, 3 rets)
  0037  GETTABLE  R6 = R3[K18('Timestamp')]
  0038  TEST      if not R6 then   -> -131032
  0039  JMP       (jump)   -> 43
  0040  GETTABLE  R6 = R3[K18('Timestamp')]
  0041  EQ        if R0 eq K14(0)   -> -127687
  0042  JMP       (jump)   -> 51
  0043  GETTABLE  R6 = R0[K19('m_timestampText')]
  0044  GETTABUP  R7 = _ENV[K21('GM')]
  0045  GETTABLE  R7 = R7[K22('GameTextModel')]
  0046  SELF      R8 = R7[K23('GetText')] (self)
  0047  LOADK     R9 = K24 'progress_save_time_local'
  0048  CALL      R7 = call(R7, 1 args, 2 rets)
  0049  SETTABLE  R6[K20('text')] = R7
  0050  JMP       (jump)   -> 65
  0051  GETTABLE  R6 = R0[K19('m_timestampText')]
  0052  GETTABUP  R7 = _ENV[K21('GM')]
  0053  GETTABLE  R7 = R7[K22('GameTextModel')]
  0054  SELF      R8 = R7[K23('GetText')] (self)
  0055  LOADK     R9 = K25 'progress_save_time_cloud'
  0056  GETTABUP  R10 = _ENV[K26('TimeUtil')]
  0057  GETTABLE  R10 = R10[K27('ParseTimeDescription')]
  0058  GETTABLE  R11 = R3[K18('Timestamp')]
  0059  LOADK     R12 = K28 2
  0060  LOADBOOL  R13 = false
  0061  LOADBOOL  R14 = true
  0062  CALL      R10 = call(R10, -1 args, 4 rets)
  0063  CALL      R7 = call(R7, 1 args, -1 rets)
  0064  SETTABLE  R6[K20('text')] = R7
  0065  RETURN    return R0..R-1
; ---------- proto1 [_SetNumber] ----------
  ; fn ?  line 36-56 np=4 va=0 ms=12 code=34 consts=12 upvals=2 protos=0
  ;   K[0]='m_data'
  ;   K[1]='Equal'
  ;   K[2]='m_referenceData'
  ;   K[3]=nil
  ;   K[4]='m_index'
  ;   K[5]=2
  ;   K[6]='Greater'
  ;   K[7]='Less'
  ;   K[8]='GM'
  ;   K[9]='GameTextModel'
  ;   K[10]='GetText'
  ;   K[11]='_SetText'
  ;   upvals: CompareFlag, _ENV
  ;   locals: self(0-34), text(0-34), key(0-34), valueKey(0-34), value(2-34), compareFlag(3-34), referenceValue(11-18)
  0000  GETTABLE  R4 = R0[K0('m_data')]
  0001  GETTABLE  R4 = R4[R2]
  0002  GETTABUP  R5 = CompareFlag[K1('Equal')]
  0003  GETTABLE  R6 = R0[K2('m_referenceData')]
  0004  EQ        if R1 eq K3(nil)   -> -127735
  0005  JMP       (jump)   -> 18
  0006  GETTABLE  R6 = R0[K4('m_index')]
  0007  EQ        if R0 eq K5(2)   -> -127730
  0008  JMP       (jump)   -> 18
  0009  GETTABLE  R6 = R0[K2('m_referenceData')]
  0010  GETTABLE  R6 = R6[R2]
  0011  EQ        if R1 eq R6   -> -129005
  0012  JMP       (jump)   -> 18
  0013  LT        if R0 lt R4   -> -127981
  0014  JMP       (jump)   -> 17
  0015  GETTABUP  R5 = CompareFlag[K6('Greater')]
  0016  JMP       (jump)   -> 18
  0017  GETTABUP  R5 = CompareFlag[K7('Less')]
  0018  TEST      if not R3 then   -> -131052
  0019  JMP       (jump)   -> 27
  0020  GETTABUP  R6 = _ENV[K8('GM')]
  0021  GETTABLE  R6 = R6[K9('GameTextModel')]
  0022  SELF      R7 = R6[K10('GetText')] (self)
  0023  MOVE      R8 = R0
  0024  MOVE      R9 = R0
  0025  CALL      R6 = call(R6, 1 args, 3 rets)
  0026  MOVE      R4 = R0
  0027  SELF      R7 = R0[K11('_SetText')] (self)
  0028  MOVE      R8 = R0
  0029  MOVE      R9 = R0
  0030  MOVE      R10 = R0
  0031  MOVE      R11 = R0
  0032  CALL      R6 = call(R6, 0 args, 5 rets)
  0033  RETURN    return R0..R-1
; ---------- proto2 [_SetDisplayTask] ----------
  ; fn ?  line 58-83 np=1 va=0 ms=12 code=65 consts=21 upvals=2 protos=0
  ;   K[0]='m_data'
  ;   K[1]='CurrentChapter'
  ;   K[2]='StringUtil'
  ;   K[3]='SplitToNum'
  ;   K[4]='CurrentTasks'
  ;   K[5]='TASK_ID_SEPARATOR'
  ;   K[6]=1
  ;   K[7]='Equal'
  ;   K[8]='m_referenceData'
  ;   K[9]=nil
  ;   K[10]='m_index'
  ;   K[11]=2
  ;   K[12]='_TaskGreater'
  ;   K[13]='Greater'
  ;   K[14]='Less'
  ;   K[15]=0
  ;   K[16]='tostring'
  ;   K[17]='-'
  ;   K[18]='_SetText'
  ;   K[19]='Task'
  ;   K[20]='m_taskProgressText'
  ;   upvals: _ENV, CompareFlag
  ;   locals: self(0-65), nCurrentChapterId(2-65), firstOngoingTaskId(12-65), compareFlag(13-65), nReferenceChapterId(21-46), referenceFirstOngoingTaskId(31-46), value(58-65)
  0000  GETTABLE  R1 = R0[K0('m_data')]
  0001  GETTABLE  R1 = R1[K1('CurrentChapter')]
  0002  GETTABUP  R2 = _ENV[K2('StringUtil')]
  0003  GETTABLE  R2 = R2[K3('SplitToNum')]
  0004  GETTABLE  R3 = R0[K0('m_data')]
  0005  GETTABLE  R3 = R3[K4('CurrentTasks')]
  0006  GETTABUP  R4 = _ENV[K5('TASK_ID_SEPARATOR')]
  0007  CALL      R2 = call(R2, 1 args, 2 rets)
  0008  TEST      if not R2 then   -> -131061
  0009  JMP       (jump)   -> 11
  0010  NEWTABLE  R2 = {} (0 items)
  0011  GETTABLE  R2 = R2[K6(1)]
  0012  GETTABUP  R3 = CompareFlag[K7('Equal')]
  0013  GETTABLE  R4 = R0[K8('m_referenceData')]
  0014  EQ        if R1 eq K9(nil)   -> -128743
  0015  JMP       (jump)   -> 46
  0016  GETTABLE  R4 = R0[K10('m_index')]
  0017  EQ        if R0 eq K11(2)   -> -128738
  0018  JMP       (jump)   -> 46
  0019  GETTABLE  R4 = R0[K8('m_referenceData')]
  0020  GETTABLE  R4 = R4[K1('CurrentChapter')]
  0021  GETTABUP  R5 = _ENV[K2('StringUtil')]
  0022  GETTABLE  R5 = R5[K3('SplitToNum')]
  0023  GETTABLE  R6 = R0[K8('m_referenceData')]
  0024  GETTABLE  R6 = R6[K4('CurrentTasks')]
  0025  GETTABUP  R7 = _ENV[K5('TASK_ID_SEPARATOR')]
  0026  CALL      R5 = call(R5, 1 args, 2 rets)
  0027  TEST      if not R5 then   -> -131042
  0028  JMP       (jump)   -> 30
  0029  NEWTABLE  R5 = {} (0 items)
  0030  GETTABLE  R5 = R5[K6(1)]
  0031  EQ        if R0 eq R1   -> -128990
  0032  JMP       (jump)   -> 35
  0033  EQ        if R1 eq R2   -> -128475
  0034  JMP       (jump)   -> 46
  0035  SELF      R7 = R0[K12('_TaskGreater')] (self)
  0036  MOVE      R8 = R0
  0037  MOVE      R9 = R0
  0038  MOVE      R10 = R0
  0039  MOVE      R11 = R0
  0040  CALL      R6 = call(R6, 1 args, 5 rets)
  0041  TEST      if not R6 then   -> -131029
  0042  JMP       (jump)   -> 45
  0043  GETTABUP  R3 = CompareFlag[K13('Greater')]
  0044  JMP       (jump)   -> 46
  0045  GETTABUP  R3 = CompareFlag[K14('Less')]
  0046  TEST      if not R2 then   -> -131023
  0047  JMP       (jump)   -> 50
  0048  ADD       R1 = K6(1) add R1
  0049  LOADK     R2 = K15 0
  0050  GETTABUP  R4 = _ENV[K16('tostring')]
  0051  MOVE      R5 = R0
  0052  CALL      R4 = call(R4, 1 args, 1 rets)
  0053  LOADK     R5 = K17 '-'
  0054  GETTABUP  R6 = _ENV[K16('tostring')]
  0055  MOVE      R7 = R0
  0056  CALL      R6 = call(R6, 1 args, 1 rets)
  0057  CONCAT    R4 = concat(R4..R4)
  0058  SELF      R6 = R0[K18('_SetText')] (self)
  0059  LOADK     R7 = K19 'Task'
  0060  GETTABLE  R8 = R0[K20('m_taskProgressText')]
  0061  MOVE      R9 = R0
  0062  MOVE      R10 = R0
  0063  CALL      R5 = call(R5, 0 args, 5 rets)
  0064  RETURN    return R0..R-1
; ---------- proto3 [_TaskGreater] ----------
  ; fn ?  line 85-98 np=5 va=0 ms=6 code=22 consts=0 upvals=0 protos=0
  ;   locals: self(0-22), chapterId(0-22), taskId(0-22), referenceChapterId(0-22), referenceTaskId(0-22)
  0000  EQ        if R1 eq R3   -> -130555
  0001  JMP       (jump)   -> 7
  0002  LT        if R1 lt R1   -> -129531
  0003  JMP       (jump)   -> 5
  0004  LOADBOOL  R5 = false
  0005  LOADBOOL  R5 = true
  0006  RETURN    return R5..R4
  0007  TEST      if not R2 then   -> -131062
  0008  JMP       (jump)   -> 12
  0009  LOADBOOL  R5 = true
  0010  RETURN    return R5..R4
  0011  JMP       (jump)   -> 16
  0012  TEST      if not R4 then   -> -131057
  0013  JMP       (jump)   -> 16
  0014  LOADBOOL  R5 = false
  0015  RETURN    return R5..R4
  0016  LT        if R1 lt R2   -> -129004
  0017  JMP       (jump)   -> 19
  0018  LOADBOOL  R5 = false
  0019  LOADBOOL  R5 = true
  0020  RETURN    return R5..R4
  0021  RETURN    return R0..R-1
; ---------- proto4 [_SetText] ----------
  ; fn ?  line 100-107 np=5 va=0 ms=7 code=19 consts=8 upvals=2 protos=0
  ;   K[0]='text'
  ;   K[1]='Greater'
  ;   K[2]='color'
  ;   K[3]='UIUtil'
  ;   K[4]='ConvertHexColor2CSColor'
  ;   K[5]='49B124'
  ;   K[6]='Less'
  ;   K[7]='E8254F'
  ;   upvals: CompareFlag, _ENV
  ;   locals: self(0-19), key(0-19), text(0-19), value(0-19), compareFlag(0-19)
  0000  SETTABLE  R2[K0('text')] = R3
  0001  GETTABUP  R5 = CompareFlag[K1('Greater')]
  0002  EQ        if R0 eq R5   -> -129015
  0003  JMP       (jump)   -> 10
  0004  GETTABUP  R5 = _ENV[K3('UIUtil')]
  0005  GETTABLE  R5 = R5[K4('ConvertHexColor2CSColor')]
  0006  LOADK     R6 = K5 '49B124'
  0007  CALL      R5 = call(R5, 1 args, 1 rets)
  0008  SETTABLE  R2[K2('color')] = R5
  0009  JMP       (jump)   -> 18
  0010  GETTABUP  R5 = CompareFlag[K6('Less')]
  0011  EQ        if R0 eq R5   -> -129006
  0012  JMP       (jump)   -> 18
  0013  GETTABUP  R5 = _ENV[K3('UIUtil')]
  0014  GETTABLE  R5 = R5[K4('ConvertHexColor2CSColor')]
  0015  LOADK     R6 = K7 'E8254F'
  0016  CALL      R5 = call(R5, 1 args, 1 rets)
  0017  SETTABLE  R2[K2('color')] = R5
  0018  RETURN    return R0..R-1
; ---------- proto5 [OnButtonClicked] ----------
  ; fn ?  line 109-111 np=1 va=0 ms=4 code=5 consts=3 upvals=0 protos=0
  ;   K[0]='m_conflictWindow'
  ;   K[1]='OnRegionSelected'
  ;   K[2]='m_index'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_conflictWindow')]
  0001  SELF      R2 = R1[K1('OnRegionSelected')] (self)
  0002  GETTABLE  R3 = R0[K2('m_index')]
  0003  CALL      R1 = call(R1, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
; ---------- proto6 [SetSelected] ----------
  ; fn ?  line 113-116 np=2 va=0 ms=5 code=9 consts=3 upvals=0 protos=0
  ;   K[0]='m_buttonGo'
  ;   K[1]='SetActive'
  ;   K[2]='m_selectedGo'
  ;   locals: self(0-9), selected(0-9)
  0000  GETTABLE  R2 = R0[K0('m_buttonGo')]
  0001  SELF      R3 = R2[K1('SetActive')] (self)
  0002  NOT       R4 = not R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  GETTABLE  R2 = R0[K2('m_selectedGo')]
  0005  SELF      R3 = R2[K1('SetActive')] (self)
  0006  MOVE      R4 = R0
  0007  CALL      R2 = call(R2, 0 args, 2 rets)
  0008  RETURN    return R0..R-1
