// File: /workspace/github_cpp_makefile_star2_O1/Kei18[P]pibt/./src/solver/tp.cpp
// Function: TP::getExecutableTask(Agent*, int)
bool TP::shouldAvoid(Agent* a, int timestep) {
  Node* v = a->getNode();
  Node* g;

  for (auto tau : P->getT()) {
    g = tau->getG()[tau->getG().size() - 1];  // delivery points
    if (g == v) return true;
  }
  return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rdi, 0x10(%rsp)
movq $0x0, 0x10(%rdi)
movq 0x8(%rdx), %rax
movq %rax, 0x68(%rsp)
movq %rsi, 0x58(%rsp)
movq 0x10(%rsi), %rsi
addq $0x30, %rsi
leaq 0x38(%rsp), %rdi
callq 0xb59c
movq 0x38(%rsp), %r14
movq 0x40(%rsp), %rax
movq %rax, 0x50(%rsp)
cmpq %rax, %r14
je 0x40767
xorl %r12d, %r12d
xorl %r13d, %r13d
movq (%r14), %rax
movq %rax, 0x18(%rsp)
movq 0x58(%rsp), %rax
movq 0x88(%rax), %rbx
movq 0x90(%rax), %rax
movq %rax, 0x70(%rsp)
cmpq %rax, %rbx
je 0x40728
movq %r14, 0x60(%rsp)
movb $0x1, 0xf(%rsp)
movq %r12, %r15
leaq 0x80(%rsp), %rdi
movq %rbx, %rsi
callq 0x19a68
movq 0x88(%rsp), %rax
movq -0x8(%rax), %rbp
cmpq 0x68(%rsp), %rbp
je 0x406a3
movq 0x18(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x19a68
movq 0x20(%rsp), %r12
movq 0x28(%rsp), %r14
movq 0x30(%rsp), %rax
movq %rax, 0x78(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movq $0x0, 0x30(%rsp)
testq %r15, %r15
je 0x40604
subq %r15, %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x6380
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x4061b
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x6380
movq %r14, %rcx
subq %r12, %rcx
movq %rcx, %rdx
sarq $0x5, %rdx
movq %r12, %rax
testq %rdx, %rdx
jle 0x40666
andq $-0x20, %rcx
movq %rcx, %rax
addq %r12, %rax
incq %rdx
leaq 0x10(%r12), %rcx
cmpq %rbp, -0x10(%rcx)
je 0x406b0
cmpq %rbp, -0x8(%rcx)
je 0x406b6
cmpq %rbp, (%rcx)
je 0x406c0
cmpq %rbp, 0x8(%rcx)
je 0x406bc
decq %rdx
addq $0x20, %rcx
cmpq $0x1, %rdx
jg 0x40642
movq %r14, %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq $0x1, %rdx
je 0x40697
cmpq $0x2, %rdx
je 0x4068e
movq %r14, %rcx
cmpq $0x3, %rdx
jne 0x406c0
cmpq %rbp, (%rax)
je 0x4069e
addq $0x8, %rax
cmpq %rbp, (%rax)
je 0x4069e
addq $0x8, %rax
cmpq %rbp, (%rax)
cmovneq %r14, %rax
movq %rax, %rcx
jmp 0x406c0
movl $0x5, %ebp
movq %r13, %r14
movq %r15, %r12
jmp 0x406df
addq $-0x10, %rcx
jmp 0x406c0
addq $-0x8, %rcx
jmp 0x406c0
addq $0x8, %rcx
cmpq %r14, %rcx
sete %al
movb 0xf(%rsp), %cl
andb %al, %cl
movb %cl, 0xf(%rsp)
movl %ecx, %eax
xorb $0x1, %al
movzbl %al, %ebp
shll $0x2, %ebp
movq 0x78(%rsp), %r14
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x406fc
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x6380
cmpl $0x5, %ebp
je 0x40705
testl %ebp, %ebp
jne 0x4071a
addq $0x18, %rbx
movq %r12, %r15
movq %r14, %r13
cmpq 0x70(%rsp), %rbx
jne 0x40596
movq %r14, %r13
movq 0x60(%rsp), %r14
movb 0xf(%rsp), %al
jmp 0x4072a
movb $0x1, %al
testb $0x1, %al
je 0x40756
movq 0x10(%rsp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x4074c
movq 0x18(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x40756
leaq 0x18(%rsp), %rdx
callq 0x18ffc
addq $0x8, %r14
cmpq 0x50(%rsp), %r14
jne 0x40560
jmp 0x4076d
xorl %r13d, %r13d
xorl %r12d, %r12d
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x40784
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x6380
testq %r12, %r12
je 0x40797
subq %r12, %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x6380
movq 0x10(%rsp), %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
xorl %r13d, %r13d
xorl %r15d, %r15d
jmp 0x407fd
movq %rax, %rbx
movq %r12, %r15
jmp 0x407e6
movq %rax, %rbx
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0x407e6
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x6380
jmp 0x407e6
movq %rax, %rbx
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x407fd
movq 0x48(%rsp), %rsi
subq %rdi, %rsi
callq 0x6380
testq %r15, %r15
je 0x40810
subq %r15, %r13
movq %r15, %rdi
movq %r13, %rsi
callq 0x6380
movq 0x10(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x40829
movq 0x10(%rax), %rsi
subq %rdi, %rsi
callq 0x6380
movq %rbx, %rdi
callq 0x6620
nop