# UI_Window_Chapter_ChapterSelectWindow_703.luac
; fn @ChapterSelectWindow.lua  line 0-0 np=0 va=1 ms=6 code=56 consts=24 upvals=1 protos=9
;   K[0]='ChapterSelectWindow'
;   K[1]='setmetatable'
;   K[2]='windowMaskAlpha'
;   K[3]='EWindowMaskAlpha'
;   K[4]='Dark'
;   K[5]='hideHudAnchorType'
;   K[6]='EHudAnchorType'
;   K[7]='All'
;   K[8]='BaseWindow'
;   K[9]='__index'
;   K[10]='upcoming'
;   K[11]='Init'
;   K[12]='OnCloseView'
;   K[13]='OnClickReturn'
;   K[14]='InitCells'
;   K[15]='GetListItemByIndex'
;   K[16]='ChapterSelectCell'
;   K[17]='CSColor'
;   K[18]=0.6
;   K[19]=1
;   K[20]='Init'
;   K[21]='OnDestroy'
;   K[22]='OnClickButton'
;   K[23]='OnCloseView'
;   upvals: _ENV
;   locals: UPCOMING_CHAPTER(17-56), DRAK_COLOR(43-56)
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  NEWTABLE  R2 = {} (1 items)
0006  GETTABUP  R3 = _ENV[K6('EHudAnchorType')]
0007  GETTABLE  R3 = R3[K7('All')]
0008  SETLIST   setlist R2[B=1,C=1]
0009  SETTABLE  R1[K5('hideHudAnchorType')] = R2
0010  GETTABUP  R2 = _ENV[K8('BaseWindow')]
0011  CALL      R0 = call(R0, 1 args, 2 rets)
0012  SETTABUP  _ENV[K0('ChapterSelectWindow')] = R0
0013  GETTABUP  R0 = _ENV[K0('ChapterSelectWindow')]
0014  GETTABUP  R1 = _ENV[K0('ChapterSelectWindow')]
0015  SETTABLE  R0[K9('__index')] = R1
0016  LOADK     R0 = K10 'upcoming'
0017  GETTABUP  R1 = _ENV[K0('ChapterSelectWindow')]
0018  CLOSURE   R2 = closure proto0
0019  SETTABLE  R1[K11('Init')] = R2
0020  GETTABUP  R1 = _ENV[K0('ChapterSelectWindow')]
0021  CLOSURE   R2 = closure proto1
0022  SETTABLE  R1[K12('OnCloseView')] = R2
0023  GETTABUP  R1 = _ENV[K0('ChapterSelectWindow')]
0024  CLOSURE   R2 = closure proto2
0025  SETTABLE  R1[K13('OnClickReturn')] = R2
0026  GETTABUP  R1 = _ENV[K0('ChapterSelectWindow')]
0027  CLOSURE   R2 = closure proto3
0028  SETTABLE  R1[K14('InitCells')] = R2
0029  GETTABUP  R1 = _ENV[K0('ChapterSelectWindow')]
0030  CLOSURE   R2 = closure proto4
0031  SETTABLE  R1[K15('GetListItemByIndex')] = R2
0032  NEWTABLE  R1 = {} (0 items)
0033  SETTABUP  _ENV[K16('ChapterSelectCell')] = R1
0034  GETTABUP  R1 = _ENV[K16('ChapterSelectCell')]
0035  GETTABUP  R2 = _ENV[K16('ChapterSelectCell')]
0036  SETTABLE  R1[K9('__index')] = R2
0037  GETTABUP  R1 = _ENV[K17('CSColor')]
0038  LOADK     R2 = K18 0.6
0039  LOADK     R3 = K18 0.6
0040  LOADK     R4 = K18 0.6
0041  LOADK     R5 = K19 1
0042  CALL      R1 = call(R1, 1 args, 4 rets)
0043  GETTABUP  R2 = _ENV[K16('ChapterSelectCell')]
0044  CLOSURE   R3 = closure proto5
0045  SETTABLE  R2[K20('Init')] = R3
0046  GETTABUP  R2 = _ENV[K16('ChapterSelectCell')]
0047  CLOSURE   R3 = closure proto6
0048  SETTABLE  R2[K21('OnDestroy')] = R3
0049  GETTABUP  R2 = _ENV[K16('ChapterSelectCell')]
0050  CLOSURE   R3 = closure proto7
0051  SETTABLE  R2[K22('OnClickButton')] = R3
0052  GETTABUP  R2 = _ENV[K16('ChapterSelectCell')]
0053  CLOSURE   R3 = closure proto8
0054  SETTABLE  R2[K23('OnCloseView')] = R3
0055  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 11-31 np=1 va=0 ms=9 code=74 consts=37 upvals=1 protos=0
  ;   K[0]='InitCells'
  ;   K[1]='LayoutRebuilder'
  ;   K[2]='ForceRebuildLayoutImmediate'
  ;   K[3]='m_cellRoot'
  ;   K[4]='transform'
  ;   K[5]='GM'
  ;   K[6]='ChapterManager'
  ;   K[7]='curActiveChapterName'
  ;   K[8]='ChapterDataModel'
  ;   K[9]='GetChapterIdByName'
  ;   K[10]='TaskManager'
  ;   K[11]='GetOngoingChapterName'
  ;   K[12]='IsAllFinished'
  ;   K[13]=1
  ;   K[14]=-742
  ;   K[15]='UIManager'
  ;   K[16]='GetCanvasSize'
  ;   K[17]='y'
  ;   K[18]=290
  ;   K[19]=0.5
  ;   K[20]=180
  ;   K[21]='SetAnchoredPosY'
  ;   K[22]='m_currentRoomBtnGo'
  ;   K[23]='SetActive'
  ;   K[24]='m_otherRoomBtnGo'
  ;   K[25]='EventDispatcher'
  ;   K[26]='DispatchEvent'
  ;   K[27]='EEventType'
  ;   K[28]='UpdateSceneViewHud'
  ;   K[29]='Show'
  ;   K[30]=false
  ;   K[31]='LogWindowAction'
  ;   K[32]='EBIType'
  ;   K[33]='UIActionType'
  ;   K[34]='Open'
  ;   K[35]='EBIReferType'
  ;   K[36]='UserClick'
  ;   upvals: _ENV
  ;   locals: self(0-74), chapterName(10-74), chapterId(15-74), offsetY(38-74), isCurChapter(51-74)
  0000  SELF      R2 = R0[K0('InitCells')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABUP  R1 = _ENV[K1('LayoutRebuilder')]
  0003  GETTABLE  R1 = R1[K2('ForceRebuildLayoutImmediate')]
  0004  GETTABLE  R2 = R0[K3('m_cellRoot')]
  0005  GETTABLE  R2 = R2[K4('transform')]
  0006  CALL      R1 = call(R1, 0 args, 1 rets)
  0007  GETTABUP  R1 = _ENV[K5('GM')]
  0008  GETTABLE  R1 = R1[K6('ChapterManager')]
  0009  GETTABLE  R1 = R1[K7('curActiveChapterName')]
  0010  GETTABUP  R2 = _ENV[K5('GM')]
  0011  GETTABLE  R2 = R2[K8('ChapterDataModel')]
  0012  SELF      R3 = R2[K9('GetChapterIdByName')] (self)
  0013  MOVE      R4 = R0
  0014  CALL      R2 = call(R2, 1 args, 2 rets)
  0015  GETTABUP  R3 = _ENV[K5('GM')]
  0016  GETTABLE  R3 = R3[K10('TaskManager')]
  0017  SELF      R4 = R3[K11('GetOngoingChapterName')] (self)
  0018  CALL      R3 = call(R3, 1 args, 1 rets)
  0019  EQ        if R0 eq R3   -> -130536
  0020  JMP       (jump)   -> 28
  0021  GETTABUP  R3 = _ENV[K5('GM')]
  0022  GETTABLE  R3 = R3[K10('TaskManager')]
  0023  SELF      R4 = R3[K12('IsAllFinished')] (self)
  0024  CALL      R3 = call(R3, 1 args, 1 rets)
  0025  TEST      if not R3 then   -> -131045
  0026  JMP       (jump)   -> 28
  0027  ADD       R2 = K13(1) add R2
  0028  MUL       R3 = R2 mul K14(-742)
  0029  GETTABUP  R4 = _ENV[K5('GM')]
  0030  GETTABLE  R4 = R4[K15('UIManager')]
  0031  SELF      R5 = R4[K16('GetCanvasSize')] (self)
  0032  CALL      R4 = call(R4, 1 args, 1 rets)
  0033  GETTABLE  R4 = R4[K17('y')]
  0034  SUB       R4 = K18(290) sub R4
  0035  MUL       R4 = K19(0.5) mul R4
  0036  ADD       R3 = R4 add R3
  0037  ADD       R3 = K20(180) add R3
  0038  GETTABLE  R4 = R0[K3('m_cellRoot')]
  0039  GETTABLE  R4 = R4[K4('transform')]
  0040  SELF      R5 = R4[K21('SetAnchoredPosY')] (self)
  0041  MOVE      R6 = R0
  0042  CALL      R4 = call(R4, 0 args, 2 rets)
  0043  GETTABUP  R4 = _ENV[K5('GM')]
  0044  GETTABLE  R4 = R4[K10('TaskManager')]
  0045  SELF      R5 = R4[K11('GetOngoingChapterName')] (self)
  0046  CALL      R4 = call(R4, 1 args, 1 rets)
  0047  EQ        if R1 eq R4   -> -130507
  0048  JMP       (jump)   -> 50
  0049  LOADBOOL  R4 = false
  0050  LOADBOOL  R4 = true
  0051  GETTABLE  R5 = R0[K22('m_currentRoomBtnGo')]
  0052  SELF      R6 = R5[K23('SetActive')] (self)
  0053  MOVE      R7 = R0
  0054  CALL      R5 = call(R5, 0 args, 2 rets)
  0055  GETTABLE  R5 = R0[K24('m_otherRoomBtnGo')]
  0056  SELF      R6 = R5[K23('SetActive')] (self)
  0057  NOT       R7 = not R0
  0058  CALL      R5 = call(R5, 0 args, 2 rets)
  0059  GETTABUP  R5 = _ENV[K25('EventDispatcher')]
  0060  GETTABLE  R5 = R5[K26('DispatchEvent')]
  0061  GETTABUP  R6 = _ENV[K27('EEventType')]
  0062  GETTABLE  R6 = R6[K28('UpdateSceneViewHud')]
  0063  NEWTABLE  R7 = {} (0 items)
  0064  SETTABLE  R7[K29('Show')] = K30(false)
  0065  CALL      R5 = call(R5, 0 args, 2 rets)
  0066  SELF      R6 = R0[K31('LogWindowAction')] (self)
  0067  GETTABUP  R7 = _ENV[K32('EBIType')]
  0068  GETTABLE  R7 = R7[K33('UIActionType')]
  0069  GETTABLE  R7 = R7[K34('Open')]
  0070  GETTABUP  R8 = _ENV[K35('EBIReferType')]
  0071  GETTABLE  R8 = R8[K36('UserClick')]
  0072  CALL      R5 = call(R5, 0 args, 3 rets)
  0073  RETURN    return R0..R-1
; ---------- proto1 [OnCloseView] ----------
  ; fn ?  line 33-36 np=1 va=0 ms=4 code=12 consts=8 upvals=1 protos=0
  ;   K[0]='BaseWindow'
  ;   K[1]='OnCloseView'
  ;   K[2]='EventDispatcher'
  ;   K[3]='DispatchEvent'
  ;   K[4]='EEventType'
  ;   K[5]='UpdateSceneViewHud'
  ;   K[6]='Show'
  ;   K[7]=true
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABUP  R1 = _ENV[K0('BaseWindow')]
  0001  GETTABLE  R1 = R1[K1('OnCloseView')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('EventDispatcher')]
  0005  GETTABLE  R1 = R1[K3('DispatchEvent')]
  0006  GETTABUP  R2 = _ENV[K4('EEventType')]
  0007  GETTABLE  R2 = R2[K5('UpdateSceneViewHud')]
  0008  NEWTABLE  R3 = {} (0 items)
  0009  SETTABLE  R3[K6('Show')] = K7(true)
  0010  CALL      R1 = call(R1, 0 args, 2 rets)
  0011  RETURN    return R0..R-1
; ---------- proto2 [OnClickReturn] ----------
  ; fn ?  line 38-48 np=1 va=0 ms=7 code=29 consts=12 upvals=1 protos=0
  ;   K[0]='Close'
  ;   K[1]='GM'
  ;   K[2]='ChapterManager'
  ;   K[3]='curActiveChapterName'
  ;   K[4]='TaskManager'
  ;   K[5]='GetOngoingChapterName'
  ;   K[6]='SceneManager'
  ;   K[7]='ChangeChapterWithTransition'
  ;   K[8]='BIManager'
  ;   K[9]='LogProject'
  ;   K[10]='EBIProjectType'
  ;   K[11]='ClickChapterSelectReturn'
  ;   upvals: _ENV
  ;   locals: self(0-29), curActiveChapterName(5-29), ongoingChapterName(9-29), isOngoingChapter(15-29)
  0000  SELF      R2 = R0[K0('Close')] (self)
  0001  CALL      R1 = call(R1, 0 args, 1 rets)
  0002  GETTABUP  R1 = _ENV[K1('GM')]
  0003  GETTABLE  R1 = R1[K2('ChapterManager')]
  0004  GETTABLE  R1 = R1[K3('curActiveChapterName')]
  0005  GETTABUP  R2 = _ENV[K1('GM')]
  0006  GETTABLE  R2 = R2[K4('TaskManager')]
  0007  SELF      R3 = R2[K5('GetOngoingChapterName')] (self)
  0008  CALL      R2 = call(R2, 1 args, 1 rets)
  0009  TESTSET   if R0 then R3   -> -130549
  0010  JMP       (jump)   -> 15
  0011  EQ        if R1 eq R2   -> -130545
  0012  JMP       (jump)   -> 14
  0013  LOADBOOL  R3 = false
  0014  LOADBOOL  R3 = true
  0015  TEST      if not R3 then   -> -131054
  0016  JMP       (jump)   -> 22
  0017  GETTABUP  R4 = _ENV[K1('GM')]
  0018  GETTABLE  R4 = R4[K6('SceneManager')]
  0019  SELF      R5 = R4[K7('ChangeChapterWithTransition')] (self)
  0020  MOVE      R6 = R0
  0021  CALL      R4 = call(R4, 0 args, 2 rets)
  0022  GETTABUP  R4 = _ENV[K1('GM')]
  0023  GETTABLE  R4 = R4[K8('BIManager')]
  0024  SELF      R5 = R4[K9('LogProject')] (self)
  0025  GETTABUP  R6 = _ENV[K10('EBIProjectType')]
  0026  GETTABLE  R6 = R6[K11('ClickChapterSelectReturn')]
  0027  CALL      R4 = call(R4, 0 args, 2 rets)
  0028  RETURN    return R0..R-1
; ---------- proto3 [InitCells] ----------
  ; fn ?  line 50-69 np=1 va=0 ms=12 code=48 consts=18 upvals=2 protos=1
  ;   K[0]='m_arrIds'
  ;   K[1]='Table'
  ;   K[2]='GetKeys'
  ;   K[3]='GM'
  ;   K[4]='ChapterDataModel'
  ;   K[5]='GetChapterSequence'
  ;   K[6]=1
  ;   K[7]=682
  ;   K[8]='ListViewParam'
  ;   K[9]='CopyDefaultInitParam'
  ;   K[10]='mItemDefaultWithPaddingSize'
  ;   K[11]='m_loopListView'
  ;   K[12]='InitListView'
  ;   K[13]='SetItemSize'
  ;   K[14]=0
  ;   K[15]=50
  ;   K[16]=60
  ;   K[17]='UpdateContentSize'
  ;   upvals: _ENV, UPCOMING_CHAPTER
  ;   locals: self(0-48), cellHeight(15-48), initParam(18-48), (for index)(36-44), (for limit)(36-44), (for step)(36-44), i(37-43)
  0000  GETTABUP  R1 = _ENV[K1('Table')]
  0001  GETTABLE  R1 = R1[K2('GetKeys')]
  0002  GETTABUP  R2 = _ENV[K3('GM')]
  0003  GETTABLE  R2 = R2[K4('ChapterDataModel')]
  0004  SELF      R3 = R2[K5('GetChapterSequence')] (self)
  0005  CALL      R2 = call(R2, -1 args, 1 rets)
  0006  CALL      R1 = call(R1, 1 args, -1 rets)
  0007  SETTABLE  R0[K0('m_arrIds')] = R1
  0008  GETTABLE  R1 = R0[K0('m_arrIds')]
  0009  GETTABLE  R2 = R0[K0('m_arrIds')]
  0010  LEN       R2 = len R0
  0011  ADD       R2 = K6(1) add R2
  0012  GETUPVAL  R3 = _ENV
  0013  SETTABLE  R1[R2] = R3
  0014  LOADK     R1 = K7 682
  0015  GETTABUP  R2 = _ENV[K8('ListViewParam')]
  0016  GETTABLE  R2 = R2[K9('CopyDefaultInitParam')]
  0017  CALL      R2 = call(R2, 1 args, 0 rets)
  0018  SETTABLE  R2[K10('mItemDefaultWithPaddingSize')] = R1
  0019  GETTABLE  R3 = R0[K11('m_loopListView')]
  0020  SELF      R4 = R3[K12('InitListView')] (self)
  0021  GETTABLE  R5 = R0[K0('m_arrIds')]
  0022  LEN       R5 = len R0
  0023  ADD       R5 = K6(1) add R5
  0024  CLOSURE   R6 = closure proto0
  0025  MOVE      R7 = R0
  0026  CALL      R3 = call(R3, 0 args, 4 rets)
  0027  GETTABLE  R3 = R0[K11('m_loopListView')]
  0028  SELF      R4 = R3[K13('SetItemSize')] (self)
  0029  LOADK     R5 = K14 0
  0030  LOADK     R6 = K15 50
  0031  CALL      R3 = call(R3, 0 args, 3 rets)
  0032  LOADK     R3 = K6 1
  0033  GETTABLE  R4 = R0[K0('m_arrIds')]
  0034  LEN       R4 = len R0
  0035  LOADK     R5 = K6 1
  0036  FORPREP   forprep R3(sBx=6)   -> 43
  0037  GETTABLE  R7 = R0[K11('m_loopListView')]
  0038  SELF      R8 = R7[K13('SetItemSize')] (self)
  0039  MOVE      R9 = R0
  0040  MOVE      R10 = R0
  0041  LOADK     R11 = K16 60
  0042  CALL      R7 = call(R7, 0 args, 4 rets)
  0043  FORLOOP   forloop R3(sBx=-7)   -> 37
  0044  GETTABLE  R3 = R0[K11('m_loopListView')]
  0045  SELF      R4 = R3[K17('UpdateContentSize')] (self)
  0046  CALL      R3 = call(R3, 0 args, 1 rets)
  0047  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 57-59 np=2 va=0 ms=6 code=7 consts=1 upvals=1 protos=0
    ;   K[0]='GetListItemByIndex'
    ;   upvals: self
    ;   locals: listView(0-7), cellIndex(0-7)
    0000  GETUPVAL  R2 = self
    0001  SELF      R3 = R2[K0('GetListItemByIndex')] (self)
    0002  MOVE      R4 = R0
    0003  MOVE      R5 = R0
    0004  TAILCALL  tailcall(R2, 0)
    0005  RETURN    return R2..R1
    0006  RETURN    return R0..R-1
; ---------- proto4 [GetListItemByIndex] ----------
  ; fn ?  line 71-84 np=3 va=0 ms=8 code=21 consts=8 upvals=0 protos=0
  ;   K[0]=0
  ;   K[1]='NewListViewItem'
  ;   K[2]='BottomEmpty'
  ;   K[3]='ChapterSelectCell'
  ;   K[4]='gameObject'
  ;   K[5]='GetLuaTable'
  ;   K[6]='Init'
  ;   K[7]='m_arrIds'
  ;   locals: self(0-21), listView(0-21), cellIndex(0-21), item(12-21), luaTable(15-21)
  0000  LT        if R0 lt K0(0)   -> -129790
  0001  JMP       (jump)   -> 3
  0002  RETURN    return R0..R-1
  0003  EQ        if R0 eq K0(0)   -> -129787
  0004  JMP       (jump)   -> 9
  0005  SELF      R4 = R1[K1('NewListViewItem')] (self)
  0006  LOADK     R5 = K2 'BottomEmpty'
  0007  TAILCALL  tailcall(R3, 0)
  0008  RETURN    return R3..R2
  0009  SELF      R4 = R1[K1('NewListViewItem')] (self)
  0010  LOADK     R5 = K3 'ChapterSelectCell'
  0011  CALL      R3 = call(R3, 1 args, 2 rets)
  0012  GETTABLE  R4 = R3[K4('gameObject')]
  0013  SELF      R5 = R4[K5('GetLuaTable')] (self)
  0014  CALL      R4 = call(R4, 1 args, 1 rets)
  0015  SELF      R6 = R4[K6('Init')] (self)
  0016  GETTABLE  R7 = R0[K7('m_arrIds')]
  0017  GETTABLE  R7 = R7[R2]
  0018  CALL      R5 = call(R5, 0 args, 2 rets)
  0019  RETURN    return R3..R2
  0020  RETURN    return R0..R-1
; ---------- proto5 [Init] ----------
  ; fn ?  line 90-146 np=2 va=0 ms=15 code=196 consts=65 upvals=3 protos=1
  ;   K[0]='chapterId'
  ;   K[1]='GM'
  ;   K[2]='TaskManager'
  ;   K[3]='GetOngoingChapterId'
  ;   K[4]='chapterName'
  ;   K[5]='ChapterDataModel'
  ;   K[6]='GetChapterNameById'
  ;   K[7]='IsChapterFinished'
  ;   K[8]='m_lockGo'
  ;   K[9]='SetActive'
  ;   K[10]='m_doneGo'
  ;   K[11]='m_doingGo'
  ;   K[12]='m_upcomingGo'
  ;   K[13]='m_titleText'
  ;   K[14]='text'
  ;   K[15]='GetChapterNameText'
  ;   K[16]='m_image'
  ;   K[17]='enabled'
  ;   K[18]=false
  ;   K[19]='m_loadingGo'
  ;   K[20]='GetChapterImageKey'
  ;   K[21]='SpriteUtil'
  ;   K[22]='SetImage'
  ;   K[23]='m_idText'
  ;   K[24]='No.'
  ;   K[25]='m_idLockBgGo'
  ;   K[26]='SetActive'
  ;   K[27]='m_idGo'
  ;   K[28]='color'
  ;   K[29]='CSColor'
  ;   K[30]='white'
  ;   K[31]='GetOngoingChapterProgressCount'
  ;   K[32]=100
  ;   K[33]='m_slider'
  ;   K[34]='value'
  ;   K[35]='m_sliderText'
  ;   K[36]='%'
  ;   K[37]='transform'
  ;   K[38]='SetLocalScaleXY'
  ;   K[39]=1
  ;   K[40]='m_loadingTrans'
  ;   K[41]='SetLocalPosY'
  ;   K[42]=-170
  ;   K[43]=0.5
  ;   K[44]='sceneList_btn_return'
  ;   K[45]='sceneList_btn_view'
  ;   K[46]='m_doneBtnText'
  ;   K[47]='GameTextModel'
  ;   K[48]='GetText'
  ;   K[49]='m_contentTrans'
  ;   K[50]=0.6
  ;   K[51]='m_tween'
  ;   K[52]='DOScale'
  ;   K[53]='SetEase'
  ;   K[54]='Ease'
  ;   K[55]='OutBack'
  ;   K[56]='gameObject'
  ;   K[57]='activeInHierarchy'
  ;   K[58]='m_bAddListener'
  ;   K[59]=true
  ;   K[60]='EventDispatcher'
  ;   K[61]='AddListener'
  ;   K[62]='EEventType'
  ;   K[63]='OnViewWillClose'
  ;   K[64]='OnCloseView'
  ;   upvals: _ENV, UPCOMING_CHAPTER, DRAK_COLOR
  ;   locals: self(0-196), chapterId(0-196), ongoingChapterId(5-196), isUpcoming(10-196), isDone(32-196), isDoing(38-196), isLocked(44-196), imageName(78-196), finishedCount(110-120), totalCount(110-120), percent(112-120), sliderValue(113-120), key(159-166)
  0000  SETTABLE  R0[K0('chapterId')] = R1
  0001  GETTABUP  R2 = _ENV[K1('GM')]
  0002  GETTABLE  R2 = R2[K2('TaskManager')]
  0003  SELF      R3 = R2[K3('GetOngoingChapterId')] (self)
  0004  CALL      R2 = call(R2, 1 args, 1 rets)
  0005  GETUPVAL  R3 = _ENV
  0006  EQ        if R1 eq R3   -> -130549
  0007  JMP       (jump)   -> 9
  0008  LOADBOOL  R3 = false
  0009  LOADBOOL  R3 = true
  0010  TEST      if not R3 then   -> -131060
  0011  JMP       (jump)   -> 14
  0012  TESTSET   if R1 then R4   -> -130545
  0013  JMP       (jump)   -> 19
  0014  GETTABUP  R4 = _ENV[K1('GM')]
  0015  GETTABLE  R4 = R4[K5('ChapterDataModel')]
  0016  SELF      R5 = R4[K6('GetChapterNameById')] (self)
  0017  MOVE      R6 = R0
  0018  CALL      R4 = call(R4, 1 args, 2 rets)
  0019  SETTABLE  R0[K4('chapterName')] = R4
  0020  TEST      if not R3 then   -> -131049
  0021  JMP       (jump)   -> 30
  0022  LT        if R1 lt R2   -> -130534
  0023  JMP       (jump)   -> 31
  0024  GETTABUP  R4 = _ENV[K1('GM')]
  0025  GETTABLE  R4 = R4[K2('TaskManager')]
  0026  SELF      R5 = R4[K7('IsChapterFinished')] (self)
  0027  MOVE      R6 = R0
  0028  CALL      R4 = call(R4, 1 args, 2 rets)
  0029  JMP       (jump)   -> 32
  0030  LOADBOOL  R4 = false
  0031  LOADBOOL  R4 = true
  0032  TEST      if not R4 then   -> -131037
  0033  JMP       (jump)   -> 36
  0034  EQ        if R1 eq R2   -> -130522
  0035  JMP       (jump)   -> 37
  0036  LOADBOOL  R5 = false
  0037  LOADBOOL  R5 = true
  0038  TEST      if not R3 then   -> -131031
  0039  JMP       (jump)   -> 42
  0040  LT        if R1 lt R1   -> -130005
  0041  JMP       (jump)   -> 43
  0042  LOADBOOL  R6 = false
  0043  LOADBOOL  R6 = true
  0044  GETTABLE  R7 = R0[K8('m_lockGo')]
  0045  SELF      R8 = R7[K9('SetActive')] (self)
  0046  MOVE      R9 = R0
  0047  CALL      R7 = call(R7, 0 args, 2 rets)
  0048  GETTABLE  R7 = R0[K10('m_doneGo')]
  0049  SELF      R8 = R7[K9('SetActive')] (self)
  0050  MOVE      R9 = R0
  0051  CALL      R7 = call(R7, 0 args, 2 rets)
  0052  GETTABLE  R7 = R0[K11('m_doingGo')]
  0053  SELF      R8 = R7[K9('SetActive')] (self)
  0054  MOVE      R9 = R0
  0055  CALL      R7 = call(R7, 0 args, 2 rets)
  0056  GETTABLE  R7 = R0[K12('m_upcomingGo')]
  0057  SELF      R8 = R7[K9('SetActive')] (self)
  0058  MOVE      R9 = R0
  0059  CALL      R7 = call(R7, 0 args, 2 rets)
  0060  GETTABLE  R7 = R0[K13('m_titleText')]
  0061  GETTABUP  R8 = _ENV[K1('GM')]
  0062  GETTABLE  R8 = R8[K5('ChapterDataModel')]
  0063  SELF      R9 = R8[K15('GetChapterNameText')] (self)
  0064  GETTABLE  R10 = R0[K4('chapterName')]
  0065  CALL      R8 = call(R8, 1 args, 2 rets)
  0066  SETTABLE  R7[K14('text')] = R8
  0067  GETTABLE  R7 = R0[K16('m_image')]
  0068  SETTABLE  R7[K17('enabled')] = K18(false)
  0069  GETTABLE  R7 = R0[K19('m_loadingGo')]
  0070  SELF      R8 = R7[K9('SetActive')] (self)
  0071  LOADBOOL  R9 = true
  0072  CALL      R7 = call(R7, 0 args, 2 rets)
  0073  GETTABUP  R7 = _ENV[K1('GM')]
  0074  GETTABLE  R7 = R7[K5('ChapterDataModel')]
  0075  SELF      R8 = R7[K20('GetChapterImageKey')] (self)
  0076  GETTABLE  R9 = R0[K4('chapterName')]
  0077  CALL      R7 = call(R7, 1 args, 2 rets)
  0078  GETTABUP  R8 = _ENV[K21('SpriteUtil')]
  0079  GETTABLE  R8 = R8[K22('SetImage')]
  0080  GETTABLE  R9 = R0[K16('m_image')]
  0081  MOVE      R10 = R0
  0082  LOADBOOL  R11 = false
  0083  CLOSURE   R12 = closure proto0
  0084  LOADNIL   R13..R13 = nil
  0085  LOADBOOL  R14 = true
  0086  CALL      R8 = call(R8, 0 args, 6 rets)
  0087  GETTABLE  R8 = R0[K23('m_idText')]
  0088  LOADK     R9 = K24 'No.'
  0089  MOVE      R10 = R0
  0090  CONCAT    R9 = concat(R9..R9)
  0091  SETTABLE  R8[K14('text')] = R9
  0092  GETTABLE  R8 = R0[K25('m_idLockBgGo')]
  0093  SELF      R9 = R8[K26('SetActive')] (self)
  0094  LOADBOOL  R10 = false
  0095  CALL      R8 = call(R8, 0 args, 2 rets)
  0096  GETTABLE  R8 = R0[K27('m_idGo')]
  0097  SELF      R9 = R8[K26('SetActive')] (self)
  0098  LOADBOOL  R10 = true
  0099  CALL      R8 = call(R8, 0 args, 2 rets)
  0100  GETTABLE  R8 = R0[K16('m_image')]
  0101  GETTABUP  R9 = _ENV[K29('CSColor')]
  0102  GETTABLE  R9 = R9[K30('white')]
  0103  SETTABLE  R8[K28('color')] = R9
  0104  TEST      if not R5 then   -> -130966
  0105  JMP       (jump)   -> 121
  0106  GETTABUP  R8 = _ENV[K1('GM')]
  0107  GETTABLE  R8 = R8[K2('TaskManager')]
  0108  SELF      R9 = R8[K31('GetOngoingChapterProgressCount')] (self)
  0109  CALL      R8 = call(R8, 2 args, 1 rets)
  0110  MUL       R10 = K32(100) mul R8
  0111  IDIV      R10 = R9 idiv R10
  0112  DIV       R11 = R9 div R8
  0113  GETTABLE  R12 = R0[K33('m_slider')]
  0114  SETTABLE  R12[K34('value')] = R11
  0115  GETTABLE  R12 = R0[K35('m_sliderText')]
  0116  MOVE      R13 = R0
  0117  LOADK     R14 = K36 '%'
  0118  CONCAT    R13 = concat(R13..R13)
  0119  SETTABLE  R12[K14('text')] = R13
  0120  JMP       (jump)   -> 166
  0121  TEST      if not R3 then   -> -130949
  0122  JMP       (jump)   -> 133
  0123  GETTABLE  R8 = R0[K27('m_idGo')]
  0124  SELF      R9 = R8[K26('SetActive')] (self)
  0125  LOADBOOL  R10 = false
  0126  CALL      R8 = call(R8, 0 args, 2 rets)
  0127  GETTABLE  R8 = R0[K16('m_image')]
  0128  GETTABLE  R8 = R8[K37('transform')]
  0129  SELF      R9 = R8[K38('SetLocalScaleXY')] (self)
  0130  LOADK     R10 = K39 1
  0131  CALL      R8 = call(R8, 0 args, 2 rets)
  0132  JMP       (jump)   -> 166
  0133  TEST      if not R6 then   -> -130937
  0134  JMP       (jump)   -> 151
  0135  GETTABLE  R8 = R0[K25('m_idLockBgGo')]
  0136  SELF      R9 = R8[K26('SetActive')] (self)
  0137  LOADBOOL  R10 = true
  0138  CALL      R8 = call(R8, 0 args, 2 rets)
  0139  GETTABLE  R8 = R0[K16('m_image')]
  0140  GETUPVAL  R9 = _ENV
  0141  SETTABLE  R8[K28('color')] = R9
  0142  GETTABLE  R8 = R0[K40('m_loadingTrans')]
  0143  SELF      R9 = R8[K41('SetLocalPosY')] (self)
  0144  LOADK     R10 = K42 -170
  0145  CALL      R8 = call(R8, 0 args, 2 rets)
  0146  GETTABLE  R8 = R0[K40('m_loadingTrans')]
  0147  SELF      R9 = R8[K38('SetLocalScaleXY')] (self)
  0148  LOADK     R10 = K43 0.5
  0149  CALL      R8 = call(R8, 0 args, 2 rets)
  0150  JMP       (jump)   -> 166
  0151  TEST      if not R4 then   -> -130919
  0152  JMP       (jump)   -> 166
  0153  EQ        if R0 eq R2   -> -130403
  0154  JMP       (jump)   -> 158
  0155  LOADK     R8 = K44 'sceneList_btn_return'
  0156  TEST      if not R8 then   -> -130913
  0157  JMP       (jump)   -> 159
  0158  LOADK     R8 = K45 'sceneList_btn_view'
  0159  GETTABLE  R9 = R0[K46('m_doneBtnText')]
  0160  GETTABUP  R10 = _ENV[K1('GM')]
  0161  GETTABLE  R10 = R10[K47('GameTextModel')]
  0162  SELF      R11 = R10[K48('GetText')] (self)
  0163  MOVE      R12 = R0
  0164  CALL      R10 = call(R10, 1 args, 2 rets)
  0165  SETTABLE  R9[K14('text')] = R10
  0166  GETTABLE  R8 = R0[K49('m_contentTrans')]
  0167  SELF      R9 = R8[K38('SetLocalScaleXY')] (self)
  0168  LOADK     R10 = K50 0.6
  0169  CALL      R8 = call(R8, 0 args, 2 rets)
  0170  GETTABLE  R8 = R0[K49('m_contentTrans')]
  0171  SELF      R9 = R8[K52('DOScale')] (self)
  0172  LOADK     R10 = K39 1
  0173  LOADK     R11 = K43 0.5
  0174  CALL      R8 = call(R8, 1 args, 3 rets)
  0175  SELF      R9 = R8[K53('SetEase')] (self)
  0176  GETTABUP  R10 = _ENV[K54('Ease')]
  0177  GETTABLE  R10 = R10[K55('OutBack')]
  0178  CALL      R8 = call(R8, 1 args, 2 rets)
  0179  SETTABLE  R0[K51('m_tween')] = R8
  0180  GETTABLE  R8 = R0[K56('gameObject')]
  0181  GETTABLE  R8 = R8[K57('activeInHierarchy')]
  0182  TEST      if not R8 then   -> -130888
  0183  JMP       (jump)   -> 195
  0184  GETTABLE  R8 = R0[K58('m_bAddListener')]
  0185  TEST      if not R8 then   -> -130884
  0186  JMP       (jump)   -> 195
  0187  SETTABLE  R0[K58('m_bAddListener')] = K59(true)
  0188  GETTABUP  R8 = _ENV[K60('EventDispatcher')]
  0189  GETTABLE  R8 = R8[K61('AddListener')]
  0190  GETTABUP  R9 = _ENV[K62('EEventType')]
  0191  GETTABLE  R9 = R9[K63('OnViewWillClose')]
  0192  MOVE      R10 = R0
  0193  GETTABLE  R11 = R0[K64('OnCloseView')]
  0194  CALL      R8 = call(R8, 0 args, 3 rets)
  0195  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 110-114 np=0 va=0 ms=3 code=13 consts=3 upvals=1 protos=0
    ;   K[0]='m_loadingGo'
    ;   K[1]='IsNull'
    ;   K[2]='SetActive'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_loadingGo')]
    0001  TEST      if not R0 then   -> -131069
    0002  JMP       (jump)   -> 12
    0003  GETTABUP  R0 = self[K0('m_loadingGo')]
    0004  SELF      R1 = R0[K1('IsNull')] (self)
    0005  CALL      R0 = call(R0, 1 args, 1 rets)
    0006  TEST      if not R0 then   -> -131063
    0007  JMP       (jump)   -> 12
    0008  GETTABUP  R0 = self[K0('m_loadingGo')]
    0009  SELF      R1 = R0[K2('SetActive')] (self)
    0010  LOADBOOL  R2 = false
    0011  CALL      R0 = call(R0, 0 args, 2 rets)
    0012  RETURN    return R0..R-1
; ---------- proto6 [OnDestroy] ----------
  ; fn ?  line 148-155 np=1 va=0 ms=3 code=12 consts=5 upvals=1 protos=0
  ;   K[0]='m_tween'
  ;   K[1]='Kill'
  ;   K[2]=nil
  ;   K[3]='EventDispatcher'
  ;   K[4]='RemoveTarget'
  ;   upvals: _ENV
  ;   locals: self(0-12)
  0000  GETTABLE  R1 = R0[K0('m_tween')]
  0001  TEST      if not R1 then   -> -131069
  0002  JMP       (jump)   -> 7
  0003  GETTABLE  R1 = R0[K0('m_tween')]
  0004  SELF      R2 = R1[K1('Kill')] (self)
  0005  CALL      R1 = call(R1, 0 args, 1 rets)
  0006  SETTABLE  R0[K0('m_tween')] = K2(nil)
  0007  GETTABUP  R1 = _ENV[K3('EventDispatcher')]
  0008  GETTABLE  R1 = R1[K4('RemoveTarget')]
  0009  MOVE      R2 = R0
  0010  CALL      R1 = call(R1, 0 args, 1 rets)
  0011  RETURN    return R0..R-1
; ---------- proto7 [OnClickButton] ----------
  ; fn ?  line 157-164 np=1 va=0 ms=5 code=25 consts=14 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='UIManager'
  ;   K[2]='CloseView'
  ;   K[3]='UIPrefabConfigName'
  ;   K[4]='ChapterSelectWindow'
  ;   K[5]='chapterName'
  ;   K[6]='ChapterManager'
  ;   K[7]='curActiveChapterName'
  ;   K[8]='SceneManager'
  ;   K[9]='ChangeChapterWithTransition'
  ;   K[10]='BIManager'
  ;   K[11]='LogProject'
  ;   K[12]='EBIProjectType'
  ;   K[13]='ClickChapterSelectCell'
  ;   upvals: _ENV
  ;   locals: self(0-25)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('UIManager')]
  0002  SELF      R2 = R1[K2('CloseView')] (self)
  0003  GETTABUP  R3 = _ENV[K3('UIPrefabConfigName')]
  0004  GETTABLE  R3 = R3[K4('ChapterSelectWindow')]
  0005  CALL      R1 = call(R1, 0 args, 2 rets)
  0006  GETTABLE  R1 = R0[K5('chapterName')]
  0007  GETTABUP  R2 = _ENV[K0('GM')]
  0008  GETTABLE  R2 = R2[K6('ChapterManager')]
  0009  GETTABLE  R2 = R2[K7('curActiveChapterName')]
  0010  EQ        if R1 eq R2   -> -130546
  0011  JMP       (jump)   -> 17
  0012  GETTABUP  R1 = _ENV[K0('GM')]
  0013  GETTABLE  R1 = R1[K8('SceneManager')]
  0014  SELF      R2 = R1[K9('ChangeChapterWithTransition')] (self)
  0015  GETTABLE  R3 = R0[K5('chapterName')]
  0016  CALL      R1 = call(R1, 0 args, 2 rets)
  0017  GETTABUP  R1 = _ENV[K0('GM')]
  0018  GETTABLE  R1 = R1[K10('BIManager')]
  0019  SELF      R2 = R1[K11('LogProject')] (self)
  0020  GETTABUP  R3 = _ENV[K12('EBIProjectType')]
  0021  GETTABLE  R3 = R3[K13('ClickChapterSelectCell')]
  0022  GETTABLE  R4 = R0[K5('chapterName')]
  0023  CALL      R1 = call(R1, 0 args, 3 rets)
  0024  RETURN    return R0..R-1
; ---------- proto8 [OnCloseView] ----------
  ; fn ?  line 166-177 np=2 va=0 ms=6 code=26 consts=13 upvals=1 protos=0
  ;   K[0]='name'
  ;   K[1]='UIPrefabConfigName'
  ;   K[2]='ChapterSelectWindow'
  ;   K[3]='m_tween'
  ;   K[4]='Kill'
  ;   K[5]=nil
  ;   K[6]='m_contentTrans'
  ;   K[7]='DOScale'
  ;   K[8]=0.6
  ;   K[9]=0.3
  ;   K[10]='SetEase'
  ;   K[11]='Ease'
  ;   K[12]='InBack'
  ;   upvals: _ENV
  ;   locals: self(0-26), msg(0-26)
  0000  TEST      if not R1 then   -> -131070
  0001  JMP       (jump)   -> 7
  0002  GETTABLE  R2 = R1[K0('name')]
  0003  GETTABUP  R3 = _ENV[K1('UIPrefabConfigName')]
  0004  GETTABLE  R3 = R3[K2('ChapterSelectWindow')]
  0005  EQ        if R1 eq R3   -> -130038
  0006  JMP       (jump)   -> 8
  0007  RETURN    return R0..R-1
  0008  GETTABLE  R2 = R0[K3('m_tween')]
  0009  TEST      if not R2 then   -> -131061
  0010  JMP       (jump)   -> 15
  0011  GETTABLE  R2 = R0[K3('m_tween')]
  0012  SELF      R3 = R2[K4('Kill')] (self)
  0013  CALL      R2 = call(R2, 0 args, 1 rets)
  0014  SETTABLE  R0[K3('m_tween')] = K5(nil)
  0015  GETTABLE  R2 = R0[K6('m_contentTrans')]
  0016  SELF      R3 = R2[K7('DOScale')] (self)
  0017  LOADK     R4 = K8 0.6
  0018  LOADK     R5 = K9 0.3
  0019  CALL      R2 = call(R2, 1 args, 3 rets)
  0020  SELF      R3 = R2[K10('SetEase')] (self)
  0021  GETTABUP  R4 = _ENV[K11('Ease')]
  0022  GETTABLE  R4 = R4[K12('InBack')]
  0023  CALL      R2 = call(R2, 1 args, 2 rets)
  0024  SETTABLE  R0[K3('m_tween')] = R2
  0025  RETURN    return R0..R-1
