# Model_Task_TaskStartCondition_205.luac
; fn @TaskStartCondition.lua  line 0-0 np=0 va=1 ms=2 code=15 consts=6 upvals=1 protos=3
;   K[0]='TaskStartCondition'
;   K[1]='__index'
;   K[2]='Create'
;   K[3]='TaskStartCondition'
;   K[4]='_Init'
;   K[5]='IsSatisfied'
;   upvals: _ENV
0000  NEWTABLE  R0 = {} (0 items)
0001  SETTABUP  _ENV[K0('TaskStartCondition')] = R0
0002  GETTABUP  R0 = _ENV[K0('TaskStartCondition')]
0003  GETTABUP  R1 = _ENV[K0('TaskStartCondition')]
0004  SETTABLE  R0[K1('__index')] = R1
0005  GETTABUP  R0 = _ENV[K0('TaskStartCondition')]
0006  CLOSURE   R1 = closure proto0
0007  SETTABLE  R0[K2('Create')] = R1
0008  GETTABUP  R0 = _ENV[K3('TaskStartCondition')]
0009  CLOSURE   R1 = closure proto1
0010  SETTABLE  R0[K4('_Init')] = R1
0011  GETTABUP  R0 = _ENV[K3('TaskStartCondition')]
0012  CLOSURE   R1 = closure proto2
0013  SETTABLE  R0[K5('IsSatisfied')] = R1
0014  RETURN    return R0..R-1
; ---------- proto0 [Create] ----------
  ; fn ?  line 4-8 np=2 va=0 ms=7 code=10 consts=3 upvals=1 protos=0
  ;   K[0]='setmetatable'
  ;   K[1]='TaskStartCondition'
  ;   K[2]='_Init'
  ;   upvals: _ENV
  ;   locals: taskData(0-10), conditionData(0-10), condition(4-10)
  0000  GETTABUP  R2 = _ENV[K0('setmetatable')]
  0001  NEWTABLE  R3 = {} (0 items)
  0002  GETTABUP  R4 = _ENV[K1('TaskStartCondition')]
  0003  CALL      R2 = call(R2, 1 args, 2 rets)
  0004  SELF      R4 = R2[K2('_Init')] (self)
  0005  MOVE      R5 = R0
  0006  MOVE      R6 = R0
  0007  CALL      R3 = call(R3, 0 args, 3 rets)
  0008  RETURN    return R2..R1
  0009  RETURN    return R0..R-1
; ---------- proto1 [_Init] ----------
  ; fn ?  line 10-13 np=3 va=0 ms=4 code=6 consts=2 upvals=0 protos=0
  ;   K[0]='taskData'
  ;   K[1]='arrPreTaskIds'
  ;   locals: self(0-6), taskData(0-6), conditionData(0-6)
  0000  SETTABLE  R0[K0('taskData')] = R1
  0001  TESTSET   if R1 then R3   -> -130044
  0002  JMP       (jump)   -> 4
  0003  NEWTABLE  R3 = {} (0 items)
  0004  SETTABLE  R0[K1('arrPreTaskIds')] = R3
  0005  RETURN    return R0..R-1
; ---------- proto2 [IsSatisfied] ----------
  ; fn ?  line 15-23 np=1 va=0 ms=11 code=20 consts=7 upvals=1 protos=0
  ;   K[0]='GM'
  ;   K[1]='TaskManager'
  ;   K[2]='ipairs'
  ;   K[3]='arrPreTaskIds'
  ;   K[4]='IsTaskFinished'
  ;   K[5]='taskData'
  ;   K[6]='chapterId'
  ;   upvals: _ENV
  ;   locals: self(0-20), taskModel(2-20), (for generator)(5-17), (for state)(5-17), (for control)(5-17), _(6-15), taskId(6-15)
  0000  GETTABUP  R1 = _ENV[K0('GM')]
  0001  GETTABLE  R1 = R1[K1('TaskManager')]
  0002  GETTABUP  R2 = _ENV[K2('ipairs')]
  0003  GETTABLE  R3 = R0[K3('arrPreTaskIds')]
  0004  CALL      R2 = call(R2, 3 args, 1 rets)
  0005  JMP       (jump)   -> 15
  0006  SELF      R8 = R1[K4('IsTaskFinished')] (self)
  0007  GETTABLE  R9 = R0[K5('taskData')]
  0008  GETTABLE  R9 = R9[K6('chapterId')]
  0009  MOVE      R10 = R0
  0010  CALL      R7 = call(R7, 1 args, 3 rets)
  0011  TEST      if not R7 then   -> -131058
  0012  JMP       (jump)   -> 15
  0013  LOADBOOL  R7 = false
  0014  RETURN    return R7..R6
  0015  TFORCALL  tforcall R2
  0016  TFORLOOP  tforloop R4(sBx=-11)   -> 6
  0017  LOADBOOL  R2 = true
  0018  RETURN    return R2..R1
  0019  RETURN    return R0..R-1
