// File: /workspace/github_cpp_makefile_star2_O3/eryxcc[P]lois/src/solvers.cpp
// Function: lois::SolverSPASS::solve(lois::rbool)
virtual int solve(rbool phi) {
    std::ofstream ofs;

    featurelist fl;
    phi->listFeatures(fl);
    for(auto r: fl.relations) if(!r->worksWith(SPASS)) {
      ofs << "SPASS cannot use " << r->getName() << std::endl;
      return 1;
      }

    ofs.open("query.spass", std::ofstream::out);
    ofs << "begin_problem(LoisProblem)." << std::endl;
    ofs << std::endl;

    ofs << "list_of_descriptions." << std::endl;
    ofs << "name({*LOIS*})." << std::endl;
    ofs << "author({*LOIS*})." << std::endl;
    ofs << "status(unknown)." << std::endl;
    ofs << "description({*generated by LOIS*})." << std::endl;
    ofs << "end_of_list." << std::endl;
    ofs << std::endl;

    OutputLanguage sav = outlan;

    outlan = SPASS_SYMBOLS;
    ofs << "list_of_symbols." << std::endl;
    for(auto r: fl.relations) {
      RelOrder *o = dynamic_cast<RelOrder*> (r);
      if(o) ofs << "predicates[(" << spassescape(o->opgreater) << ", 2)]." << std::endl;
      }
    for(auto d: fl.domains) 
      ofs << "sorts[" << d->name << "]." << std::endl;
    ofs << "end_of_list." << std::endl;
    ofs << std::endl;

    outlan = SPASS_AXIOMS;
    ofs << "list_of_formulae(axioms)." << std::endl;
    for(auto r: fl.relations) {
      RelOrder *o = dynamic_cast<RelOrder*> (r);
      // to do: axiomatize min/max
      // to do: specify domains
      // (BUT: it does not work effectively with order even now)
#define G << spassescape(o->opgreater) <<
      ofs << "formula(forall([x,y,z],implies(and(" G "(x,y), " G "(y,z)), " G "(x,z))),1)." << std::endl;
      ofs << "formula(forall([x,y],not(and(" G "(x,y), equal(x,y)))),2)." << std::endl;
      ofs << "formula(forall([x,y],or(" G "(x,y), " G "(y,x), equal(x,y))),3)." << std::endl;
      ofs << "formula(forall([x],exists([y], " G "(y,x))),4)." << std::endl;
      ofs << "formula(forall([x],exists([y], " G "(x,y))),5)." << std::endl;
      ofs << "formula(forall([x,z], implies(" G "(x,z), exists([y], and(" G "(x,y), " G "(y,z))))), 6)." << std::endl;
#undef G
      }
    ofs << "end_of_list." << std::endl;
    ofs << std::endl;

    outlan = SPASS;
    ofs << "list_of_formulae(conjectures)." << std::endl;
    ofs << "formula(not(" << phi << "))." << std::endl;
    ofs << "end_of_list." << std::endl;
    ofs << std::endl;

    ofs << "end_problem." << std::endl;

    outlan = sav;
    ofs.close();
    if(system(cmd.c_str()))
      printf("system error\n");
    FILE *f = fopen("query.out", "rt");
    char buf[500];
    int ans = 1;
    while(fgets(buf, 500, f)) {
      if(strstr(buf, "Proof found")) ans=0;
      if(strstr(buf, "Completion found")) ans=2;
      }
    fclose(f);
    printf("SPASS answer: %d\n", ans);
    return ans;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x588, %rsp            # imm = 0x588
movq %rsi, %r15
movq %rdi, 0x128(%rsp)
leaq 0x388(%rsp), %rdi
callq 0x73f0
leaq 0x138(%rsp), %rcx
xorl %eax, %eax
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x168(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
movq (%r15), %rdi
movq (%rdi), %rax
leaq 0x130(%rsp), %rsi
callq *0x40(%rax)
movq 0x178(%rsp), %r14
leaq 0x168(%rsp), %rax
cmpq %rax, %r14
je 0x38d9a
movq 0x20(%r14), %rbx
movq (%rbx), %rax
movq %rbx, %rdi
movl $0x3, %esi
callq *0x30(%rax)
testb %al, %al
je 0x39d1f
movq %r14, %rdi
callq 0x72d0
movq %rax, %r14
jmp 0x38d66
leaq 0x7b22(%rip), %rsi      # 0x408c3
leaq 0x388(%rsp), %rdi
movl $0x10, %edx
callq 0x7060
leaq 0x7b15(%rip), %rsi      # 0x408cf
leaq 0x388(%rsp), %rbx
movl $0x1b, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rbx
movq %rbx, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
leaq 0x7ab0(%rip), %rsi      # 0x408eb
leaq 0x388(%rsp), %rbx
movl $0x15, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
leaq 0x7a79(%rip), %rsi      # 0x40901
leaq 0x388(%rsp), %rbx
movl $0xf, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
leaq 0x7a3c(%rip), %rsi      # 0x40911
leaq 0x388(%rsp), %rbx
movl $0x11, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
leaq 0x7a01(%rip), %rsi      # 0x40923
leaq 0x388(%rsp), %rbx
movl $0x10, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
leaq 0x79c5(%rip), %rsi      # 0x40934
leaq 0x388(%rsp), %rbx
movl $0x23, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
leaq 0x799c(%rip), %rsi      # 0x40958
leaq 0x388(%rsp), %rbx
movl $0xc, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rbx
movq %rbx, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq %r15, 0x120(%rsp)
leaq 0x198a7(%rip), %rax     # 0x528ec
movl (%rax), %ecx
movl %ecx, 0x4c(%rsp)
movl $0x4, (%rax)
leaq 0x790d(%rip), %rsi      # 0x40965
leaq 0x388(%rsp), %rbx
movl $0x10, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x178(%rsp), %rbx
leaq 0x168(%rsp), %rax
cmpq %rax, %rbx
je 0x391fd
leaq 0x1813a(%rip), %r14     # 0x511f8
leaq 0x17f5b(%rip), %r15     # 0x51020
leaq 0x388(%rsp), %r13
leaq 0x78af(%rip), %rbp      # 0x40983
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x391e1
movq %r14, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x72b0
testq %rax, %rax
je 0x391e1
movq %rax, %r12
movl $0xc, %edx
movq %r13, %rdi
leaq 0x786d(%rip), %rsi      # 0x40976
callq 0x72c0
movq 0x8(%r12), %rax
movq %rax, 0x110(%rsp)
movq 0x10(%r12), %rax
movq %rax, 0x118(%rsp)
testq %rax, %rax
je 0x39142
movq 0x18e94(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x3913e
incl 0x8(%rax)
jmp 0x39142
lock
incl 0x8(%rax)
leaq 0x190(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0x35004
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r13, %rdi
callq 0x72c0
movq %rax, %r12
movl $0x6, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x72c0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
movq %r12, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x391cf
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0x391e1
callq 0x133fc
movq %rbx, %rdi
callq 0x72d0
movq %rax, %rbx
leaq 0x168(%rsp), %rax
cmpq %rax, %rbx
jne 0x390d4
movq 0x148(%rsp), %rbx
leaq 0x138(%rsp), %rbp
cmpq %rbp, %rbx
je 0x3929b
leaq 0x776d(%rip), %r14      # 0x4098a
leaq 0x388(%rsp), %r15
leaq 0x775b(%rip), %r12      # 0x40987
movq 0x20(%rbx), %r13
movl $0x6, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x72c0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r15, %rdi
callq 0x72c0
movq %rax, %r13
movl $0x2, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x72c0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
movq %r13, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq %rbx, %rdi
callq 0x72d0
movq %rax, %rbx
cmpq %rbp, %rax
jne 0x3922c
leaq 0x76b6(%rip), %rsi      # 0x40958
leaq 0x388(%rsp), %rbx
movl $0xc, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rbx
movq %rbx, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
leaq 0x195c9(%rip), %rax     # 0x528ec
movl $0x5, (%rax)
leaq 0x7661(%rip), %rsi      # 0x40991
leaq 0x388(%rsp), %rbx
movl $0x19, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x178(%rsp), %r15
leaq 0x168(%rsp), %rax
cmpq %rax, %r15
je 0x39bf1
leaq 0x388(%rsp), %r13
leaq 0x190(%rsp), %rbp
movq 0x18c22(%rip), %r12     # 0x51fc8
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0x393c9
leaq 0x17e42(%rip), %rsi     # 0x511f8
leaq 0x17c63(%rip), %rdx     # 0x51020
xorl %ecx, %ecx
callq 0x72b0
movq %rax, %rbx
jmp 0x393cb
xorl %ebx, %ebx
movl $0x23, %edx
movq %r13, %rdi
leaq 0x75d1(%rip), %rsi      # 0x409ab
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0x100(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x108(%rsp)
testq %rax, %rax
je 0x3940c
cmpb $0x0, (%r12)
je 0x39408
incl 0x8(%rax)
jmp 0x3940c
lock
incl 0x8(%rax)
movq %rbp, %rdi
leaq 0x100(%rsp), %rsi
callq 0x35004
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r13, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x7, %edx
movq %rax, %rdi
leaq 0x7589(%rip), %rsi      # 0x409cf
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0xf0(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0xf8(%rsp)
testq %rax, %rax
je 0x39478
cmpb $0x0, (%r12)
je 0x39474
incl 0x8(%rax)
jmp 0x39478
lock
incl 0x8(%rax)
leaq 0x8(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x35004
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x8, %edx
movq %rax, %rdi
leaq 0x7529(%rip), %rsi      # 0x409d7
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0xe0(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0xe8(%rsp)
testq %rax, %rax
je 0x394e0
cmpb $0x0, (%r12)
je 0x394dc
incl 0x8(%rax)
jmp 0x394e0
lock
incl 0x8(%rax)
leaq 0x28(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x35004
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x72c0
movq %rax, %r14
movl $0xb, %edx
movq %rax, %rdi
leaq 0x74ca(%rip), %rsi      # 0x409e0
callq 0x72c0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
movq %r14, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3955e
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x39570
callq 0x133fc
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3958c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x3959e
callq 0x133fc
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x395c3
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x395d5
callq 0x133fc
movl $0x1d, %edx
movq %r13, %rdi
leaq 0x7408(%rip), %rsi      # 0x409ec
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0xd0(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0xd8(%rsp)
testq %rax, %rax
je 0x39616
cmpb $0x0, (%r12)
je 0x39612
incl 0x8(%rax)
jmp 0x39616
lock
incl 0x8(%rax)
movq %rbp, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x35004
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r13, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x18, %edx
movq %rax, %rdi
leaq 0x73ba(%rip), %rsi      # 0x40a0a
callq 0x72c0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
movq %r14, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x396a1
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x396b3
callq 0x133fc
movl $0x18, %edx
movq %r13, %rdi
leaq 0x7361(%rip), %rsi      # 0x40a23
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0xc0(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0xc8(%rsp)
testq %rax, %rax
je 0x396f4
cmpb $0x0, (%r12)
je 0x396f0
incl 0x8(%rax)
jmp 0x396f4
lock
incl 0x8(%rax)
movq %rbp, %rdi
leaq 0xc0(%rsp), %rsi
callq 0x35004
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r13, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x7, %edx
movq %rax, %rdi
leaq 0x72a1(%rip), %rsi      # 0x409cf
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0xb0(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0xb8(%rsp)
testq %rax, %rax
je 0x39760
cmpb $0x0, (%r12)
je 0x3975c
incl 0x8(%rax)
jmp 0x39760
lock
incl 0x8(%rax)
leaq 0x8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x35004
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x17, %edx
movq %rax, %rdi
leaq 0x72a6(%rip), %rsi      # 0x40a3c
callq 0x72c0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
movq %r14, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x397de
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x397f0
callq 0x133fc
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x39815
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x39827
callq 0x133fc
movl $0x1f, %edx
movq %r13, %rdi
leaq 0x721e(%rip), %rsi      # 0x40a54
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0xa0(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0xa8(%rsp)
testq %rax, %rax
je 0x39868
cmpb $0x0, (%r12)
je 0x39864
incl 0x8(%rax)
jmp 0x39868
lock
incl 0x8(%rax)
movq %rbp, %rdi
leaq 0xa0(%rsp), %rsi
callq 0x35004
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r13, %rdi
callq 0x72c0
movq %rax, %r14
movl $0xb, %edx
movq %rax, %rdi
leaq 0x71d2(%rip), %rsi      # 0x40a74
callq 0x72c0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
movq %r14, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x398f3
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x39905
callq 0x133fc
movl $0x1f, %edx
movq %r13, %rdi
leaq 0x7140(%rip), %rsi      # 0x40a54
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0x90(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x98(%rsp)
testq %rax, %rax
je 0x39946
cmpb $0x0, (%r12)
je 0x39942
incl 0x8(%rax)
jmp 0x39946
lock
incl 0x8(%rax)
movq %rbp, %rdi
leaq 0x90(%rsp), %rsi
callq 0x35004
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r13, %rdi
callq 0x72c0
movq %rax, %r14
movl $0xb, %edx
movq %rax, %rdi
leaq 0x7100(%rip), %rsi      # 0x40a80
callq 0x72c0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
movq %r14, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x399d1
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x399e3
callq 0x133fc
movl $0x1e, %edx
movq %r13, %rdi
leaq 0x709a(%rip), %rsi      # 0x40a8c
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0x80(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x88(%rsp)
testq %rax, %rax
je 0x39a24
cmpb $0x0, (%r12)
je 0x39a20
incl 0x8(%rax)
jmp 0x39a24
lock
incl 0x8(%rax)
movq %rbp, %rdi
leaq 0x80(%rsp), %rsi
callq 0x35004
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r13, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x17, %edx
movq %rax, %rdi
leaq 0x704d(%rip), %rsi      # 0x40aab
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0x70(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x78(%rsp)
testq %rax, %rax
je 0x39a8a
cmpb $0x0, (%r12)
je 0x39a86
incl 0x8(%rax)
jmp 0x39a8a
lock
incl 0x8(%rax)
leaq 0x8(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x35004
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x7, %edx
movq %rax, %rdi
leaq 0x6f12(%rip), %rsi      # 0x409cf
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0x60(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x68(%rsp)
testq %rax, %rax
je 0x39ae9
cmpb $0x0, (%r12)
je 0x39ae5
incl 0x8(%rax)
jmp 0x39ae9
lock
incl 0x8(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x35004
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x72c0
movq %rax, %rbx
movl $0xe, %edx
movq %rax, %rdi
leaq 0x6fa7(%rip), %rsi      # 0x40ac3
callq 0x72c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x39b64
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x39b73
callq 0x133fc
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x39b8f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x39b9e
callq 0x133fc
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x39bc3
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x39bd5
callq 0x133fc
movq %r15, %rdi
callq 0x72d0
movq %rax, %r15
leaq 0x168(%rsp), %rax
cmpq %rax, %r15
jne 0x393a6
leaq 0x6d60(%rip), %rsi      # 0x40958
leaq 0x388(%rsp), %rbx
movl $0xc, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rbx
movq %rbx, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
leaq 0x18c73(%rip), %rax     # 0x528ec
movl $0x3, (%rax)
leaq 0x6e4c(%rip), %rsi      # 0x40ad2
leaq 0x388(%rsp), %rbx
movl $0x1e, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
leaq 0x6e1e(%rip), %rsi      # 0x40af1
leaq 0x388(%rsp), %rdi
movl $0xc, %edx
callq 0x72c0
movq 0x120(%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x50(%rsp)
movq 0x8(%rcx), %rax
movq %rax, 0x58(%rsp)
testq %rax, %rax
je 0x39dbf
movq 0x182ba(%rip), %rcx     # 0x51fc8
cmpb $0x0, (%rcx)
je 0x39dbb
incl 0x8(%rax)
jmp 0x39dbf
leaq 0x6b8b(%rip), %rsi      # 0x408b1
leaq 0x388(%rsp), %rdi
movl $0x11, %edx
callq 0x72c0
movq (%rbx), %rax
leaq 0x190(%rsp), %rdi
movq %rbx, %rsi
callq *0x38(%rax)
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
leaq 0x388(%rsp), %rdi
callq 0x72c0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
leaq 0x1a0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x39db1
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movl $0x1, %ebx
jmp 0x39fc7
lock
incl 0x8(%rax)
leaq 0x388(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x297cc
movq %rax, %rbx
leaq 0x6d23(%rip), %rsi      # 0x40afe
movl $0x3, %edx
movq %rax, %rdi
callq 0x72c0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
movq %rbx, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x58(%rsp), %rdi
testq %rdi, %rdi
je 0x39e1e
callq 0x133fc
leaq 0x6b33(%rip), %rsi      # 0x40958
leaq 0x388(%rsp), %rbx
movl $0xc, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rbx
movq %rbx, %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
leaq 0x6c5c(%rip), %rsi      # 0x40b02
leaq 0x388(%rsp), %rbx
movl $0xc, %edx
movq %rbx, %rdi
callq 0x72c0
movq 0x388(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x7250
movsbl %al, %esi
leaq 0x388(%rsp), %rdi
callq 0x7030
movq %rax, %rdi
callq 0x7190
leaq 0x189f9(%rip), %rax     # 0x528ec
movl 0x4c(%rsp), %ecx
movl %ecx, (%rax)
leaq 0x388(%rsp), %rdi
callq 0x7330
movq 0x128(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x7210
testl %eax, %eax
je 0x39f27
leaq 0x6c6f(%rip), %rdi      # 0x40b91
callq 0x7370
leaq 0x6c24(%rip), %rdi      # 0x40b52
leaq 0x5337(%rip), %rsi      # 0x3f26c
callq 0x72e0
movq %rax, %r14
leaq 0x190(%rsp), %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq %rax, %rdx
callq 0x7390
movl $0x1, %ebx
testq %rax, %rax
je 0x39faf
leaq 0x190(%rsp), %r12
xorl %ebp, %ebp
leaq 0x6bae(%rip), %r13      # 0x40b1b
movl $0x2, %r15d
movq %r12, %rdi
leaq 0x6b92(%rip), %rsi      # 0x40b0f
callq 0x7090
testq %rax, %rax
cmovnel %ebp, %ebx
movq %r12, %rdi
movq %r13, %rsi
callq 0x7090
testq %rax, %rax
cmovnel %r15d, %ebx
movq %r12, %rdi
movl $0x1f4, %esi            # imm = 0x1F4
movq %r14, %rdx
callq 0x7390
testq %rax, %rax
jne 0x39f73
movq %r14, %rdi
callq 0x7260
leaq 0x6b6e(%rip), %rdi      # 0x40b2c
movl %ebx, %esi
xorl %eax, %eax
callq 0x7050
leaq 0x160(%rsp), %rdi
callq 0x352a2
leaq 0x130(%rsp), %rdi
callq 0x352f2
movq 0x17fd8(%rip), %rax     # 0x51fc0
movq (%rax), %rcx
movq 0x18(%rax), %rax
leaq 0x390(%rsp), %rdi
movq %rcx, -0x8(%rdi)
movq -0x18(%rcx), %rcx
movq %rax, 0x388(%rsp,%rcx)
callq 0x7200
leaq 0x480(%rsp), %rdi
callq 0x70d0
movl %ebx, %eax
addq $0x588, %rsp            # imm = 0x588
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x3a363
jmp 0x3a363
movq %rax, %rbx
leaq 0x1a0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x3a366
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
jmp 0x3a366
movq %rax, %rbx
movq 0x58(%rsp), %rdi
jmp 0x3a355
movq %rax, %rbx
jmp 0x3a108
jmp 0x3a363
jmp 0x3a363
movq %rax, %rbx
jmp 0x3a15b
movq %rax, %rbx
jmp 0x3a287
movq %rax, %rbx
jmp 0x3a250
movq %rax, %rbx
jmp 0x3a224
movq %rax, %rbx
jmp 0x3a1ef
movq %rax, %rbx
jmp 0x3a1ba
movq %rax, %rbx
jmp 0x3a186
movq %rax, %rbx
jmp 0x3a34d
movq %rax, %rbx
jmp 0x3a316
movq %rax, %rbx
jmp 0x3a2e8
movq %rax, %rbx
jmp 0x3a2bc
jmp 0x3a363
movq %rax, %rbx
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a108
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x118(%rsp), %rdi
jmp 0x3a355
movq %rax, %rbx
jmp 0x3a195
movq %rax, %rbx
jmp 0x3a16a
movq %rax, %rbx
jmp 0x3a262
movq %rax, %rbx
jmp 0x3a328
movq %rax, %rbx
jmp 0x3a2fa
jmp 0x3a363
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3a15b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x3a16a
callq 0x133fc
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3a186
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x3a195
callq 0x133fc
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a1ba
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x88(%rsp), %rdi
jmp 0x3a355
movq %rax, %rbx
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a1ef
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x98(%rsp), %rdi
jmp 0x3a355
movq %rax, %rbx
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a224
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xa8(%rsp), %rdi
jmp 0x3a355
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3a250
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x3a262
callq 0x133fc
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a287
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xc8(%rsp), %rdi
jmp 0x3a355
movq %rax, %rbx
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a2bc
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xd8(%rsp), %rdi
jmp 0x3a355
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3a2e8
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x3a2fa
callq 0x133fc
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3a316
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x3a328
callq 0x133fc
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a34d
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x3a366
callq 0x133fc
jmp 0x3a366
jmp 0x3a363
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0x352a2
leaq 0x130(%rsp), %rdi
callq 0x352f2
leaq 0x388(%rsp), %rdi
callq 0x7350
movq %rbx, %rdi
callq 0x7430
nop