# MultiRank_View_MultiRankScrollView_1207.luac
; fn @MultiRankScrollView.lua  line 0-0 np=0 va=1 ms=3 code=39 consts=19 upvals=1 protos=9
;   K[0]='MultiRankScrollView'
;   K[1]='setmetatable'
;   K[2]='TopFloatOffset'
;   K[3]=8
;   K[4]='BottomFloatOffset'
;   K[5]=-6
;   K[6]='TopThresholdPadding'
;   K[7]=2
;   K[8]='BaseRankScrollView'
;   K[9]='__index'
;   K[10]='Init'
;   K[11]='SetHistoryPosY'
;   K[12]='_InitFloatOwnCell'
;   K[13]='GetListItemByIndex'
;   K[14]='SetUserRank'
;   K[15]='GetUserRank'
;   K[16]='_GetMaxCellCount'
;   K[17]='Update'
;   K[18]='RecordScrollContentPosY'
;   upvals: _ENV
0000  GETTABUP  R0 = _ENV[K1('setmetatable')]
0001  NEWTABLE  R1 = {} (0 items)
0002  SETTABLE  R1[K2('TopFloatOffset')] = K3(8)
0003  SETTABLE  R1[K4('BottomFloatOffset')] = K5(-6)
0004  SETTABLE  R1[K6('TopThresholdPadding')] = K7(2)
0005  GETTABUP  R2 = _ENV[K8('BaseRankScrollView')]
0006  CALL      R0 = call(R0, 1 args, 2 rets)
0007  SETTABUP  _ENV[K0('MultiRankScrollView')] = R0
0008  GETTABUP  R0 = _ENV[K0('MultiRankScrollView')]
0009  GETTABUP  R1 = _ENV[K0('MultiRankScrollView')]
0010  SETTABLE  R0[K9('__index')] = R1
0011  GETTABUP  R0 = _ENV[K0('MultiRankScrollView')]
0012  CLOSURE   R1 = closure proto0
0013  SETTABLE  R0[K10('Init')] = R1
0014  GETTABUP  R0 = _ENV[K0('MultiRankScrollView')]
0015  CLOSURE   R1 = closure proto1
0016  SETTABLE  R0[K11('SetHistoryPosY')] = R1
0017  GETTABUP  R0 = _ENV[K0('MultiRankScrollView')]
0018  CLOSURE   R1 = closure proto2
0019  SETTABLE  R0[K12('_InitFloatOwnCell')] = R1
0020  GETTABUP  R0 = _ENV[K0('MultiRankScrollView')]
0021  CLOSURE   R1 = closure proto3
0022  SETTABLE  R0[K13('GetListItemByIndex')] = R1
0023  GETTABUP  R0 = _ENV[K0('MultiRankScrollView')]
0024  CLOSURE   R1 = closure proto4
0025  SETTABLE  R0[K14('SetUserRank')] = R1
0026  GETTABUP  R0 = _ENV[K0('MultiRankScrollView')]
0027  CLOSURE   R1 = closure proto5
0028  SETTABLE  R0[K15('GetUserRank')] = R1
0029  GETTABUP  R0 = _ENV[K0('MultiRankScrollView')]
0030  CLOSURE   R1 = closure proto6
0031  SETTABLE  R0[K16('_GetMaxCellCount')] = R1
0032  GETTABUP  R0 = _ENV[K0('MultiRankScrollView')]
0033  CLOSURE   R1 = closure proto7
0034  SETTABLE  R0[K17('Update')] = R1
0035  GETTABUP  R0 = _ENV[K0('MultiRankScrollView')]
0036  CLOSURE   R1 = closure proto8
0037  SETTABLE  R0[K18('RecordScrollContentPosY')] = R1
0038  RETURN    return R0..R-1
; ---------- proto0 [Init] ----------
  ; fn ?  line 12-19 np=4 va=0 ms=6 code=11 consts=7 upvals=1 protos=0
  ;   K[0]='m_arrData'
  ;   K[1]='m_model'
  ;   K[2]='m_activityDefinition'
  ;   K[3]='GetActivityDefinition'
  ;   K[4]='m_window'
  ;   K[5]='BaseRankScrollView'
  ;   K[6]='Init'
  ;   upvals: _ENV
  ;   locals: self(0-11), model(0-11), arrData(0-11), window(0-11)
  0000  SETTABLE  R0[K0('m_arrData')] = R2
  0001  SETTABLE  R0[K1('m_model')] = R1
  0002  SELF      R5 = R1[K3('GetActivityDefinition')] (self)
  0003  CALL      R4 = call(R4, 1 args, 1 rets)
  0004  SETTABLE  R0[K2('m_activityDefinition')] = R4
  0005  SETTABLE  R0[K4('m_window')] = R3
  0006  GETTABUP  R4 = _ENV[K5('BaseRankScrollView')]
  0007  GETTABLE  R4 = R4[K6('Init')]
  0008  MOVE      R5 = R0
  0009  CALL      R4 = call(R4, 0 args, 1 rets)
  0010  RETURN    return R0..R-1
; ---------- proto1 [SetHistoryPosY] ----------
  ; fn ?  line 21-27 np=1 va=0 ms=5 code=13 consts=8 upvals=1 protos=1
  ;   K[0]='m_recordScrollContentPosY'
  ;   K[1]='PlayerPrefs'
  ;   K[2]='GetFloat'
  ;   K[3]='EPlayerPrefKey'
  ;   K[4]='MultiRankMainWindowContentPosY'
  ;   K[5]=0
  ;   K[6]='DelayExecuteFuncInView'
  ;   K[7]=0.1
  ;   upvals: _ENV
  ;   locals: self(0-13)
  0000  GETTABUP  R1 = _ENV[K1('PlayerPrefs')]
  0001  GETTABLE  R1 = R1[K2('GetFloat')]
  0002  GETTABUP  R2 = _ENV[K3('EPlayerPrefKey')]
  0003  GETTABLE  R2 = R2[K4('MultiRankMainWindowContentPosY')]
  0004  LOADK     R3 = K5 0
  0005  CALL      R1 = call(R1, 1 args, 2 rets)
  0006  SETTABLE  R0[K0('m_recordScrollContentPosY')] = R1
  0007  GETTABUP  R1 = _ENV[K6('DelayExecuteFuncInView')]
  0008  CLOSURE   R2 = closure proto0
  0009  LOADK     R3 = K7 0.1
  0010  MOVE      R4 = R0
  0011  CALL      R1 = call(R1, 0 args, 3 rets)
  0012  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 24-26 np=0 va=0 ms=3 code=5 consts=3 upvals=1 protos=0
    ;   K[0]='m_scrollContentTransform'
    ;   K[1]='SetLocalPosY'
    ;   K[2]='m_recordScrollContentPosY'
    ;   upvals: self
    0000  GETTABUP  R0 = self[K0('m_scrollContentTransform')]
    0001  SELF      R1 = R0[K1('SetLocalPosY')] (self)
    0002  GETTABUP  R2 = self[K2('m_recordScrollContentPosY')]
    0003  CALL      R0 = call(R0, 0 args, 2 rets)
    0004  RETURN    return R0..R-1
; ---------- proto2 [_InitFloatOwnCell] ----------
  ; fn ?  line 29-36 np=1 va=0 ms=9 code=27 consts=16 upvals=1 protos=1
  ;   K[0]='BaseRankScrollView'
  ;   K[1]='_InitFloatOwnCell'
  ;   K[2]='Table'
  ;   K[3]='ListSelect'
  ;   K[4]='m_arrData'
  ;   K[5]=1
  ;   K[6]=nil
  ;   K[7]='m_curRank'
  ;   K[8]='Rank'
  ;   K[9]='m_floatOwnRankCell'
  ;   K[10]='Init'
  ;   K[11]='m_model'
  ;   K[12]='GetRewards'
  ;   K[13]='m_activityDefinition'
  ;   K[14]='TokenImageName'
  ;   K[15]='m_window'
  ;   upvals: _ENV
  ;   locals: self(0-27), ownData(10-27)
  0000  GETTABUP  R1 = _ENV[K0('BaseRankScrollView')]
  0001  GETTABLE  R1 = R1[K1('_InitFloatOwnCell')]
  0002  MOVE      R2 = R0
  0003  CALL      R1 = call(R1, 0 args, 1 rets)
  0004  GETTABUP  R1 = _ENV[K2('Table')]
  0005  GETTABLE  R1 = R1[K3('ListSelect')]
  0006  GETTABLE  R2 = R0[K4('m_arrData')]
  0007  CLOSURE   R3 = closure proto0
  0008  CALL      R1 = call(R1, 1 args, 2 rets)
  0009  GETTABLE  R1 = R1[K5(1)]
  0010  EQ        if R1 eq K6(nil)   -> -130286
  0011  JMP       (jump)   -> 26
  0012  GETTABLE  R2 = R1[K8('Rank')]
  0013  SETTABLE  R0[K7('m_curRank')] = R2
  0014  GETTABLE  R2 = R0[K9('m_floatOwnRankCell')]
  0015  SELF      R3 = R2[K10('Init')] (self)
  0016  MOVE      R4 = R0
  0017  GETTABLE  R5 = R0[K11('m_model')]
  0018  SELF      R6 = R5[K12('GetRewards')] (self)
  0019  GETTABLE  R7 = R1[K8('Rank')]
  0020  CALL      R5 = call(R5, 1 args, 2 rets)
  0021  GETTABLE  R6 = R0[K13('m_activityDefinition')]
  0022  GETTABLE  R6 = R6[K14('TokenImageName')]
  0023  LOADBOOL  R7 = true
  0024  GETTABLE  R8 = R0[K15('m_window')]
  0025  CALL      R2 = call(R2, 0 args, 6 rets)
  0026  RETURN    return R0..R-1
  ; ---------- proto0 [] ----------
    ; fn ?  line 31-31 np=1 va=0 ms=4 code=11 consts=4 upvals=1 protos=0
    ;   K[0]='UserId'
    ;   K[1]='GM'
    ;   K[2]='UserModel'
    ;   K[3]='GetUserId'
    ;   upvals: _ENV
    ;   locals: data(0-11)
    0000  GETTABLE  R1 = R0[K0('UserId')]
    0001  GETTABUP  R2 = _ENV[K1('GM')]
    0002  GETTABLE  R2 = R2[K2('UserModel')]
    0003  SELF      R3 = R2[K3('GetUserId')] (self)
    0004  CALL      R2 = call(R2, 1 args, 1 rets)
    0005  EQ        if R1 eq R2   -> -130551
    0006  JMP       (jump)   -> 8
    0007  LOADBOOL  R1 = false
    0008  LOADBOOL  R1 = true
    0009  RETURN    return R1..R0
    0010  RETURN    return R0..R-1
; ---------- proto3 [GetListItemByIndex] ----------
  ; fn ?  line 38-58 np=3 va=0 ms=14 code=44 consts=19 upvals=1 protos=0
  ;   K[0]=0
  ;   K[1]='m_arrData'
  ;   K[2]=1
  ;   K[3]='UserId'
  ;   K[4]='GM'
  ;   K[5]='UserModel'
  ;   K[6]='GetUserId'
  ;   K[7]='NewListViewItem'
  ;   K[8]='MultiRankOwnCell'
  ;   K[9]='MultiRankPlayerCell'
  ;   K[10]='gameObject'
  ;   K[11]='GetLuaTable'
  ;   K[12]='Init'
  ;   K[13]='m_model'
  ;   K[14]='GetRewards'
  ;   K[15]='Rank'
  ;   K[16]='m_activityDefinition'
  ;   K[17]='TokenImageName'
  ;   K[18]='m_window'
  ;   upvals: _ENV
  ;   locals: self(0-44), listView(0-44), cellIndex(0-44), tbData(7-44), isMySelf(20-44), item(28-44), tbCell(31-44)
  0000  LT        if R0 lt K0(0)   -> -129790
  0001  JMP       (jump)   -> 4
  0002  LOADNIL   R3..R3 = nil
  0003  RETURN    return R3..R2
  0004  GETTABLE  R3 = R0[K1('m_arrData')]
  0005  ADD       R4 = K2(1) add R2
  0006  GETTABLE  R3 = R3[R4]
  0007  TEST      if not R3 then   -> -131062
  0008  JMP       (jump)   -> 11
  0009  LOADNIL   R4..R4 = nil
  0010  RETURN    return R4..R3
  0011  GETTABLE  R4 = R3[K3('UserId')]
  0012  GETTABUP  R5 = _ENV[K4('GM')]
  0013  GETTABLE  R5 = R5[K5('UserModel')]
  0014  SELF      R6 = R5[K6('GetUserId')] (self)
  0015  CALL      R5 = call(R5, 1 args, 1 rets)
  0016  EQ        if R1 eq R5   -> -129001
  0017  JMP       (jump)   -> 19
  0018  LOADBOOL  R4 = false
  0019  LOADBOOL  R4 = true
  0020  SELF      R6 = R1[K7('NewListViewItem')] (self)
  0021  TEST      if not R4 then   -> -131049
  0022  JMP       (jump)   -> 26
  0023  LOADK     R7 = K8 'MultiRankOwnCell'
  0024  TEST      if not R7 then   -> -131045
  0025  JMP       (jump)   -> 27
  0026  LOADK     R7 = K9 'MultiRankPlayerCell'
  0027  CALL      R5 = call(R5, 1 args, 2 rets)
  0028  GETTABLE  R6 = R5[K10('gameObject')]
  0029  SELF      R7 = R6[K11('GetLuaTable')] (self)
  0030  CALL      R6 = call(R6, 1 args, 1 rets)
  0031  SELF      R8 = R6[K12('Init')] (self)
  0032  MOVE      R9 = R0
  0033  GETTABLE  R10 = R0[K13('m_model')]
  0034  SELF      R11 = R10[K14('GetRewards')] (self)
  0035  GETTABLE  R12 = R3[K15('Rank')]
  0036  CALL      R10 = call(R10, 1 args, 2 rets)
  0037  GETTABLE  R11 = R0[K16('m_activityDefinition')]
  0038  GETTABLE  R11 = R11[K17('TokenImageName')]
  0039  MOVE      R12 = R0
  0040  GETTABLE  R13 = R0[K18('m_window')]
  0041  CALL      R7 = call(R7, 0 args, 6 rets)
  0042  RETURN    return R5..R4
  0043  RETURN    return R0..R-1
; ---------- proto4 [SetUserRank] ----------
  ; fn ?  line 60-62 np=2 va=0 ms=5 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_floatOwnRankCell'
  ;   K[1]='UpdateRank'
  ;   locals: self(0-5), rank(0-5)
  0000  GETTABLE  R2 = R0[K0('m_floatOwnRankCell')]
  0001  SELF      R3 = R2[K1('UpdateRank')] (self)
  0002  MOVE      R4 = R0
  0003  CALL      R2 = call(R2, 0 args, 2 rets)
  0004  RETURN    return R0..R-1
; ---------- proto5 [GetUserRank] ----------
  ; fn ?  line 64-66 np=1 va=0 ms=3 code=5 consts=2 upvals=0 protos=0
  ;   K[0]='m_floatOwnRankCell'
  ;   K[1]='GetRank'
  ;   locals: self(0-5)
  0000  GETTABLE  R1 = R0[K0('m_floatOwnRankCell')]
  0001  SELF      R2 = R1[K1('GetRank')] (self)
  0002  TAILCALL  tailcall(R1, 0)
  0003  RETURN    return R1..R0
  0004  RETURN    return R0..R-1
; ---------- proto6 [_GetMaxCellCount] ----------
  ; fn ?  line 69-71 np=1 va=0 ms=2 code=4 consts=1 upvals=0 protos=0
  ;   K[0]='m_arrData'
  ;   locals: self(0-4)
  0000  GETTABLE  R1 = R0[K0('m_arrData')]
  0001  LEN       R1 = len R0
  0002  RETURN    return R1..R0
  0003  RETURN    return R0..R-1
; ---------- proto7 [Update] ----------
  ; fn ?  line 73-77 np=1 va=0 ms=4 code=7 consts=3 upvals=0 protos=0
  ;   K[0]='m_curRank'
  ;   K[1]=nil
  ;   K[2]='_AdjustFloatOwnCellAppearance'
  ;   locals: self(0-7)
  0000  GETTABLE  R1 = R0[K0('m_curRank')]
  0001  EQ        if R1 eq K1(nil)   -> -130300
  0002  JMP       (jump)   -> 6
  0003  SELF      R2 = R0[K2('_AdjustFloatOwnCellAppearance')] (self)
  0004  GETTABLE  R3 = R0[K0('m_curRank')]
  0005  CALL      R1 = call(R1, 0 args, 2 rets)
  0006  RETURN    return R0..R-1
; ---------- proto8 [RecordScrollContentPosY] ----------
  ; fn ?  line 79-89 np=1 va=0 ms=5 code=17 consts=6 upvals=1 protos=0
  ;   K[0]='m_recordScrollContentPosY'
  ;   K[1]='_GetScrollContentPosY'
  ;   K[2]='PlayerPrefs'
  ;   K[3]='SetFloat'
  ;   K[4]='EPlayerPrefKey'
  ;   K[5]='MultiRankMainWindowContentPosY'
  ;   upvals: _ENV
  ;   locals: self(0-17), posY(6-17)
  0000  GETTABLE  R1 = R0[K0('m_recordScrollContentPosY')]
  0001  TEST      if not R1 then   -> -131068
  0002  JMP       (jump)   -> 4
  0003  RETURN    return R0..R-1
  0004  SELF      R2 = R0[K1('_GetScrollContentPosY')] (self)
  0005  CALL      R1 = call(R1, 1 args, 1 rets)
  0006  GETTABLE  R2 = R0[K0('m_recordScrollContentPosY')]
  0007  EQ        if R1 eq R2   -> -130549
  0008  JMP       (jump)   -> 16
  0009  SETTABLE  R0[K0('m_recordScrollContentPosY')] = R1
  0010  GETTABUP  R2 = _ENV[K2('PlayerPrefs')]
  0011  GETTABLE  R2 = R2[K3('SetFloat')]
  0012  GETTABUP  R3 = _ENV[K4('EPlayerPrefKey')]
  0013  GETTABLE  R3 = R3[K5('MultiRankMainWindowContentPosY')]
  0014  MOVE      R4 = R0
  0015  CALL      R2 = call(R2, 0 args, 2 rets)
  0016  RETURN    return R0..R-1
