# Model_Bundle_BundleConditionData_116.luac
; fn @BundleConditionData.lua  line 0-0 np=0 va=1 ms=2 code=18 consts=7 upvals=1 protos=4
;   K[0]='BundleConditionData'
;   K[1]='__index'
;   K[2]='Create'
;   K[3]='BundleConditionData'
;   K[4]='Init'
;   K[5]='IsGroupDataActive'
;   K[6]='GetRecentActivityEndTime'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('BundleConditionData')] = R0
0002  GETTABUP  R0 = _ENV[K0('BundleConditionData')]
0003  GETTABUP  R1 = _ENV[K0('BundleConditionData')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('BundleConditionData')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Create')] = R1
0008  GETTABUP  R0 = _ENV[K3('BundleConditionData')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K4('Init')] = R1
0011  GETTABUP  R0 = _ENV[K3('BundleConditionData')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K5('IsGroupDataActive')] = R1
0014  GETTABUP  R0 = _ENV[K3('BundleConditionData')]
0015  CLOSURE   R1 = closure proto3
0016  SETTABLE  R0[K6('GetRecentActivityEndTime')] = R1
0017  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 5-9 np=1 va=0 ms=4 code=8 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='BundleConditionData'
  ;   K[2]='Init'
  ;   upvals: _ENV
  ;   locals: conditionData(0-8), con(4-8)
  0000  GETTABUP  R1 = _ENV[K0('setmetatable')]
  0001  MOVE      R2 = R0
  0002  GETTABUP  R3 = _ENV[K1('BundleConditionData')]
  0003  CALL      R1 = call(R1, 1 args, 2 rets)
  0004  SELF      R3 = R1[K2('Init')] (self)
  0005  CALL      R2 = call(R2, 0 args, 1 rets)
  0006  RETURN    return R1..R0
  0007  RETURN    return R0..R-1
; ---------- proto1 [Init] ----------
  ; fn ?  line 11-13 np=1 va=0 ms=2 code=1 consts=0 upvals=0 protos=0
  ;   locals: self(0-1)
  0000  RETURN    return R0..R-1
; ---------- proto2 [IsGroupDataActive] ----------
  ; fn ?  line 15-69 np=1 va=0 ms=11 code=121 consts=28 upvals=1 protos=0
  ;   K[0]='Table'
  ;   K[1]='IsEmpty'
  ;   K[2]='taskFinished'
  ;   K[3]='TASK_CHAPTER_ID'
  ;   K[4]='TASK_COUNT'
  ;   K[5]='GM'
  ;   K[6]='TaskManager'
  ;   K[7]='GetOngoingChapterId'
  ;   K[8]='GetChapterFinishedCount'
  ;   K[9]='activity'
  ;   K[10]='pairs'
  ;   K[11]='ActivityManager'
  ;   K[12]='GetModel'
  ;   K[13]=nil
  ;   K[14]='GetState'
  ;   K[15]='ActivityState'
  ;   K[16]='Started'
  ;   K[17]='HasWindowOpenedOnce'
  ;   K[18]='StringUtil'
  ;   K[19]='IsNilOrEmpty'
  ;   K[20]='albumStar'
  ;   K[21]='AlbumActivityModel'
  ;   K[22]='GetActiveModel'
  ;   K[23]='GetStarNumber'
  ;   K[24]='GetUncollectedCardsByStarLevel'
  ;   K[25]=0
  ;   K[26]='albumfixedCard'
  ;   K[27]='GetLastNewCardIdByStar'
  ;   upvals: _ENV
  ;   locals: self(0-121), chapterId(9-27), taskCount(12-27), bActive(34-67), activityModel(35-67), (for generator)(38-63), (for state)(38-63), (for control)(38-63), _(39-61), activityType(39-61), albumModel(76-97), i32Star(83-97), bAllCollected(95-97), albumModel(106-118), targetCardId(113-118)
  0000  GETTABUP  R1 = _ENV[K0('Table')]
  0001  GETTABLE  R1 = R1[K1('IsEmpty')]
  0002  GETTABLE  R2 = R0[K2('taskFinished')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 27
  0006  GETTABLE  R1 = R0[K2('taskFinished')]
  0007  GETTABUP  R2 = _ENV[K3('TASK_CHAPTER_ID')]
  0008  GETTABLE  R1 = R1[R2]
  0009  GETTABLE  R2 = R0[K2('taskFinished')]
  0010  GETTABUP  R3 = _ENV[K4('TASK_COUNT')]
  0011  GETTABLE  R2 = R2[R3]
  0012  GETTABUP  R3 = _ENV[K5('GM')]
  0013  GETTABLE  R3 = R3[K6('TaskManager')]
  0014  SELF      R4 = R3[K7('GetOngoingChapterId')] (self)
  0015  CALL      R3 = call(R3, 1 args, 1 rets)
  0016  LE        if R0 le R3   -> -130539
  0017  JMP       (jump)   -> 25
  0018  GETTABUP  R3 = _ENV[K5('GM')]
  0019  GETTABLE  R3 = R3[K6('TaskManager')]
  0020  SELF      R4 = R3[K8('GetChapterFinishedCount')] (self)
  0021  MOVE      R5 = R0
  0022  CALL      R3 = call(R3, 1 args, 2 rets)
  0023  LE        if R1 le R3   -> -130020
  0024  JMP       (jump)   -> 27
  0025  LOADBOOL  R3 = false
  0026  RETURN    return R3..R2
  0027  GETTABUP  R1 = _ENV[K0('Table')]
  0028  GETTABLE  R1 = R1[K1('IsEmpty')]
  0029  GETTABLE  R2 = R0[K9('activity')]
  0030  CALL      R1 = call(R1, 1 args, 1 rets)
  0031  TEST      if not R1 then   -> -131038
  0032  JMP       (jump)   -> 67
  0033  LOADBOOL  R1 = false
  0034  LOADNIL   R2..R2 = nil
  0035  GETTABUP  R3 = _ENV[K10('pairs')]
  0036  GETTABLE  R4 = R0[K9('activity')]
  0037  CALL      R3 = call(R3, 3 args, 1 rets)
  0038  JMP       (jump)   -> 61
  0039  GETTABUP  R8 = _ENV[K5('GM')]
  0040  GETTABLE  R8 = R8[K11('ActivityManager')]
  0041  SELF      R9 = R8[K12('GetModel')] (self)
  0042  MOVE      R10 = R0
  0043  CALL      R8 = call(R8, 1 args, 2 rets)
  0044  MOVE      R2 = R0
  0045  EQ        if R1 eq K13(nil)   -> -129732
  0046  JMP       (jump)   -> 61
  0047  SELF      R9 = R2[K14('GetState')] (self)
  0048  CALL      R8 = call(R8, 1 args, 1 rets)
  0049  GETTABUP  R9 = _ENV[K15('ActivityState')]
  0050  GETTABLE  R9 = R9[K16('Started')]
  0051  EQ        if R0 eq R9   -> -126914
  0052  JMP       (jump)   -> 61
  0053  SELF      R9 = R2[K17('HasWindowOpenedOnce')] (self)
  0054  GETTABUP  R10 = _ENV[K15('ActivityState')]
  0055  GETTABLE  R10 = R10[K16('Started')]
  0056  CALL      R8 = call(R8, 1 args, 2 rets)
  0057  TEST      if not R8 then   -> -131013
  0058  JMP       (jump)   -> 61
  0059  LOADBOOL  R1 = true
  0060  JMP       (jump)   -> 63
  0061  TFORCALL  tforcall R3
  0062  TFORLOOP  tforloop R5(sBx=-24)   -> 39
  0063  TEST      if not R1 then   -> -131006
  0064  JMP       (jump)   -> 67
  0065  LOADBOOL  R3 = false
  0066  RETURN    return R3..R2
  0067  GETTABUP  R1 = _ENV[K18('StringUtil')]
  0068  GETTABLE  R1 = R1[K19('IsNilOrEmpty')]
  0069  GETTABLE  R2 = R0[K20('albumStar')]
  0070  CALL      R1 = call(R1, 1 args, 1 rets)
  0071  TEST      if not R1 then   -> -130998
  0072  JMP       (jump)   -> 97
  0073  GETTABUP  R1 = _ENV[K21('AlbumActivityModel')]
  0074  GETTABLE  R1 = R1[K22('GetActiveModel')]
  0075  CALL      R1 = call(R1, 1 args, 0 rets)
  0076  EQ        if R0 eq K13(nil)   -> -130213
  0077  JMP       (jump)   -> 80
  0078  LOADBOOL  R2 = false
  0079  RETURN    return R2..R1
  0080  SELF      R3 = R1[K23('GetStarNumber')] (self)
  0081  GETTABLE  R4 = R0[K20('albumStar')]
  0082  CALL      R2 = call(R2, 1 args, 2 rets)
  0083  EQ        if R0 eq K13(nil)   -> -129694
  0084  JMP       (jump)   -> 87
  0085  LOADBOOL  R3 = false
  0086  RETURN    return R3..R2
  0087  SELF      R4 = R1[K24('GetUncollectedCardsByStarLevel')] (self)
  0088  MOVE      R5 = R0
  0089  CALL      R3 = call(R3, 1 args, 2 rets)
  0090  LEN       R3 = len R0
  0091  EQ        if R1 eq K25(0)   -> -129162
  0092  JMP       (jump)   -> 94
  0093  LOADBOOL  R3 = false
  0094  LOADBOOL  R3 = true
  0095  NOT       R4 = not R0
  0096  RETURN    return R4..R3
  0097  GETTABUP  R1 = _ENV[K18('StringUtil')]
  0098  GETTABLE  R1 = R1[K19('IsNilOrEmpty')]
  0099  GETTABLE  R2 = R0[K26('albumfixedCard')]
  0100  CALL      R1 = call(R1, 1 args, 1 rets)
  0101  TEST      if not R1 then   -> -130968
  0102  JMP       (jump)   -> 118
  0103  GETTABUP  R1 = _ENV[K21('AlbumActivityModel')]
  0104  GETTABLE  R1 = R1[K22('GetActiveModel')]
  0105  CALL      R1 = call(R1, 1 args, 0 rets)
  0106  EQ        if R0 eq K13(nil)   -> -130183
  0107  JMP       (jump)   -> 110
  0108  LOADBOOL  R2 = false
  0109  RETURN    return R2..R1
  0110  SELF      R3 = R1[K27('GetLastNewCardIdByStar')] (self)
  0111  GETTABLE  R4 = R0[K26('albumfixedCard')]
  0112  CALL      R2 = call(R2, 1 args, 2 rets)
  0113  EQ        if R0 eq K13(nil)   -> -129664
  0114  JMP       (jump)   -> 116
  0115  LOADBOOL  R3 = false
  0116  LOADBOOL  R3 = true
  0117  RETURN    return R3..R2
  0118  LOADBOOL  R1 = true
  0119  RETURN    return R1..R0
  0120  RETURN    return R0..R-1
; ---------- proto3 [GetRecentActivityEndTime] ----------
  ; fn ?  line 72-89 np=1 va=0 ms=12 code=40 consts=11 upvals=1 protos=0
  ;   K[0]='Table'
  ;   K[1]='IsEmpty'
  ;   K[2]='activity'
  ;   K[3]='pairs'
  ;   K[4]='GM'
  ;   K[5]='ActivityManager'
  ;   K[6]='GetModel'
  ;   K[7]='GetEndTime'
  ;   K[8]=nil
  ;   K[9]='math'
  ;   K[10]='max'
  ;   upvals: _ENV
  ;   locals: self(0-40), endTime(7-39), activityEndTime(7-39), activityModel(7-39), (for generator)(10-38), (for state)(10-38), (for control)(10-38), _(11-36), activityType(11-36)
  0000  GETTABUP  R1 = _ENV[K0('Table')]
  0001  GETTABLE  R1 = R1[K1('IsEmpty')]
  0002  GETTABLE  R2 = R0[K2('activity')]
  0003  CALL      R1 = call(R1, 1 args, 1 rets)
  0004  TEST      if not R1 then   -> -131065
  0005  JMP       (jump)   -> 39
  0006  LOADNIL   R1..R1 = nil
  0007  GETTABUP  R4 = _ENV[K3('pairs')]
  0008  GETTABLE  R5 = R0[K2('activity')]
  0009  CALL      R4 = call(R4, 3 args, 1 rets)
  0010  JMP       (jump)   -> 36
  0011  GETTABUP  R9 = _ENV[K4('GM')]
  0012  GETTABLE  R9 = R9[K5('ActivityManager')]
  0013  SELF      R10 = R9[K6('GetModel')] (self)
  0014  MOVE      R11 = R0
  0015  CALL      R9 = call(R9, 1 args, 2 rets)
  0016  MOVE      R3 = R0
  0017  TESTSET   if R0 then R2   -> -129517
  0018  JMP       (jump)   -> 22
  0019  SELF      R10 = R3[K7('GetEndTime')] (self)
  0020  CALL      R9 = call(R9, 1 args, 1 rets)
  0021  MOVE      R2 = R0
  0022  EQ        if R1 eq K8(nil)   -> -129248
  0023  JMP       (jump)   -> 36
  0024  EQ        if R1 eq K8(nil)   -> -129758
  0025  JMP       (jump)   -> 36
  0026  EQ        if R0 eq K8(nil)   -> -130268
  0027  JMP       (jump)   -> 30
  0028  MOVE      R1 = R0
  0029  JMP       (jump)   -> 36
  0030  GETTABUP  R9 = _ENV[K9('math')]
  0031  GETTABLE  R9 = R9[K10('max')]
  0032  MOVE      R10 = R0
  0033  MOVE      R11 = R0
  0034  CALL      R9 = call(R9, 1 args, 2 rets)
  0035  MOVE      R1 = R0
  0036  TFORCALL  tforcall R4
  0037  TFORLOOP  tforloop R6(sBx=-27)   -> 11
  0038  RETURN    return R1..R0
  0039  RETURN    return R0..R-1
