// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
movq %rdi, 0x120(%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 %rbx, 0x128(%rsp)
movq (%rbx), %rdi
movq (%rdi), %rax
leaq 0x130(%rsp), %rsi
callq *0x40(%rax)
movq 0x178(%rsp), %rbx
leaq 0x168(%rsp), %rax
cmpq %rax, %rbx
je 0x39430
leaq 0x857b(%rip), %r14      # 0x418d5
leaq 0x388(%rsp), %r15
leaq 0x190(%rsp), %r12
movq 0x20(%rbx), %r13
movq (%r13), %rax
movq %r13, %rdi
movl $0x3, %esi
callq *0x30(%rax)
movl %eax, %ebp
testb %al, %al
jne 0x39414
movl $0x11, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x72c0
movq (%r13), %rax
movq %r12, %rdi
movq %r13, %rsi
callq *0x38(%rax)
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r15, %rdi
callq 0x72c0
movq %rax, %r13
movq (%rax), %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 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3940b
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
testb %bpl, %bpl
je 0x3a3a9
movq %rbx, %rdi
callq 0x72d0
movq %rax, %rbx
leaq 0x168(%rsp), %rax
cmpq %rax, %rbx
jne 0x3936a
leaq 0x84b0(%rip), %rsi      # 0x418e7
leaq 0x388(%rsp), %rdi
movl $0x10, %edx
callq 0x7060
leaq 0x84a3(%rip), %rsi      # 0x418f3
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 0x843e(%rip), %rsi      # 0x4190f
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 0x8407(%rip), %rsi      # 0x41925
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 0x83ca(%rip), %rsi      # 0x41935
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 0x838f(%rip), %rsi      # 0x41947
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 0x8353(%rip), %rsi      # 0x41958
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 0x832a(%rip), %rsi      # 0x4197c
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 0x1a211(%rip), %rax     # 0x538e4
movl (%rax), %ecx
movl %ecx, 0x4c(%rsp)
movl $0x4, (%rax)
leaq 0x82a3(%rip), %rsi      # 0x41989
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 0x3988a
leaq 0x388(%rsp), %r15
leaq 0x8253(%rip), %rbp      # 0x419a7
leaq 0x18a75(%rip), %r14     # 0x521d0
leaq 0x18896(%rip), %r12     # 0x51ff8
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x3977d
movq %r14, %rsi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x72b0
movq %rax, %r13
jmp 0x39780
xorl %r13d, %r13d
testq %r13, %r13
je 0x3986e
movl $0xc, %edx
movq %r15, %rdi
leaq 0x8202(%rip), %rsi      # 0x4199a
callq 0x72c0
movq 0x8(%r13), %rax
movq %rax, 0x110(%rsp)
movq 0x10(%r13), %rax
movq %rax, 0x118(%rsp)
testq %rax, %rax
je 0x397cf
movq 0x19807(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x397cb
incl 0x8(%rax)
jmp 0x397cf
lock
incl 0x8(%rax)
leaq 0x190(%rsp), %rdi
leaq 0x110(%rsp), %rsi
callq 0x354c2
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r15, %rdi
callq 0x72c0
movq %rax, %r13
movl $0x6, %edx
movq %rax, %rdi
movq %rbp, %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 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3985c
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x118(%rsp), %rdi
testq %rdi, %rdi
je 0x3986e
callq 0x13308
movq %rbx, %rdi
callq 0x72d0
movq %rax, %rbx
leaq 0x168(%rsp), %rax
cmpq %rax, %rbx
jne 0x39762
movq 0x148(%rsp), %rbx
leaq 0x138(%rsp), %rax
cmpq %rax, %rbx
je 0x39930
leaq 0x8104(%rip), %r14      # 0x419ae
leaq 0x388(%rsp), %r15
leaq 0x80f2(%rip), %r12      # 0x419ab
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
leaq 0x138(%rsp), %rax
cmpq %rax, %rbx
jne 0x398b9
leaq 0x8045(%rip), %rsi      # 0x4197c
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 0x19f2c(%rip), %rax     # 0x538e4
movl $0x5, (%rax)
leaq 0x7ff0(%rip), %rsi      # 0x419b5
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 0x3a286
leaq 0x388(%rsp), %r13
leaq 0x190(%rsp), %rbp
movq 0x1958d(%rip), %r12     # 0x52fc8
movq 0x20(%r15), %rdi
testq %rdi, %rdi
je 0x39a5e
leaq 0x18785(%rip), %rsi     # 0x521d0
leaq 0x185a6(%rip), %rdx     # 0x51ff8
xorl %ecx, %ecx
callq 0x72b0
movq %rax, %rbx
jmp 0x39a60
xorl %ebx, %ebx
movl $0x23, %edx
movq %r13, %rdi
leaq 0x7f60(%rip), %rsi      # 0x419cf
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0x100(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x108(%rsp)
testq %rax, %rax
je 0x39aa1
cmpb $0x0, (%r12)
je 0x39a9d
incl 0x8(%rax)
jmp 0x39aa1
lock
incl 0x8(%rax)
movq %rbp, %rdi
leaq 0x100(%rsp), %rsi
callq 0x354c2
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r13, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x7, %edx
movq %rax, %rdi
leaq 0x7f18(%rip), %rsi      # 0x419f3
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0xf0(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0xf8(%rsp)
testq %rax, %rax
je 0x39b0d
cmpb $0x0, (%r12)
je 0x39b09
incl 0x8(%rax)
jmp 0x39b0d
lock
incl 0x8(%rax)
leaq 0x8(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x354c2
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x8, %edx
movq %rax, %rdi
leaq 0x7eb8(%rip), %rsi      # 0x419fb
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0xe0(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0xe8(%rsp)
testq %rax, %rax
je 0x39b75
cmpb $0x0, (%r12)
je 0x39b71
incl 0x8(%rax)
jmp 0x39b75
lock
incl 0x8(%rax)
leaq 0x28(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x354c2
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x72c0
movq %rax, %r14
movl $0xb, %edx
movq %rax, %rdi
leaq 0x7e59(%rip), %rsi      # 0x41a04
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 0x39bf3
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x39c05
callq 0x13308
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x39c21
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x39c33
callq 0x13308
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x39c58
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x39c6a
callq 0x13308
movl $0x1d, %edx
movq %r13, %rdi
leaq 0x7d97(%rip), %rsi      # 0x41a10
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0xd0(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0xd8(%rsp)
testq %rax, %rax
je 0x39cab
cmpb $0x0, (%r12)
je 0x39ca7
incl 0x8(%rax)
jmp 0x39cab
lock
incl 0x8(%rax)
movq %rbp, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x354c2
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r13, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x18, %edx
movq %rax, %rdi
leaq 0x7d49(%rip), %rsi      # 0x41a2e
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 0x39d36
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xd8(%rsp), %rdi
testq %rdi, %rdi
je 0x39d48
callq 0x13308
movl $0x18, %edx
movq %r13, %rdi
leaq 0x7cf0(%rip), %rsi      # 0x41a47
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0xc0(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0xc8(%rsp)
testq %rax, %rax
je 0x39d89
cmpb $0x0, (%r12)
je 0x39d85
incl 0x8(%rax)
jmp 0x39d89
lock
incl 0x8(%rax)
movq %rbp, %rdi
leaq 0xc0(%rsp), %rsi
callq 0x354c2
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r13, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x7, %edx
movq %rax, %rdi
leaq 0x7c30(%rip), %rsi      # 0x419f3
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0xb0(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0xb8(%rsp)
testq %rax, %rax
je 0x39df5
cmpb $0x0, (%r12)
je 0x39df1
incl 0x8(%rax)
jmp 0x39df5
lock
incl 0x8(%rax)
leaq 0x8(%rsp), %rdi
leaq 0xb0(%rsp), %rsi
callq 0x354c2
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x17, %edx
movq %rax, %rdi
leaq 0x7c35(%rip), %rsi      # 0x41a60
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 0x39e73
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x39e85
callq 0x13308
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x39eaa
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xc8(%rsp), %rdi
testq %rdi, %rdi
je 0x39ebc
callq 0x13308
movl $0x1f, %edx
movq %r13, %rdi
leaq 0x7bad(%rip), %rsi      # 0x41a78
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0xa0(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0xa8(%rsp)
testq %rax, %rax
je 0x39efd
cmpb $0x0, (%r12)
je 0x39ef9
incl 0x8(%rax)
jmp 0x39efd
lock
incl 0x8(%rax)
movq %rbp, %rdi
leaq 0xa0(%rsp), %rsi
callq 0x354c2
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r13, %rdi
callq 0x72c0
movq %rax, %r14
movl $0xb, %edx
movq %rax, %rdi
leaq 0x7b61(%rip), %rsi      # 0x41a98
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 0x39f88
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x39f9a
callq 0x13308
movl $0x1f, %edx
movq %r13, %rdi
leaq 0x7acf(%rip), %rsi      # 0x41a78
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0x90(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x98(%rsp)
testq %rax, %rax
je 0x39fdb
cmpb $0x0, (%r12)
je 0x39fd7
incl 0x8(%rax)
jmp 0x39fdb
lock
incl 0x8(%rax)
movq %rbp, %rdi
leaq 0x90(%rsp), %rsi
callq 0x354c2
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r13, %rdi
callq 0x72c0
movq %rax, %r14
movl $0xb, %edx
movq %rax, %rdi
leaq 0x7a8f(%rip), %rsi      # 0x41aa4
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 0x3a066
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x98(%rsp), %rdi
testq %rdi, %rdi
je 0x3a078
callq 0x13308
movl $0x1e, %edx
movq %r13, %rdi
leaq 0x7a29(%rip), %rsi      # 0x41ab0
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0x80(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x88(%rsp)
testq %rax, %rax
je 0x3a0b9
cmpb $0x0, (%r12)
je 0x3a0b5
incl 0x8(%rax)
jmp 0x3a0b9
lock
incl 0x8(%rax)
movq %rbp, %rdi
leaq 0x80(%rsp), %rsi
callq 0x354c2
movq 0x190(%rsp), %rsi
movq 0x198(%rsp), %rdx
movq %r13, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x17, %edx
movq %rax, %rdi
leaq 0x79dc(%rip), %rsi      # 0x41acf
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0x70(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x78(%rsp)
testq %rax, %rax
je 0x3a11f
cmpb $0x0, (%r12)
je 0x3a11b
incl 0x8(%rax)
jmp 0x3a11f
lock
incl 0x8(%rax)
leaq 0x8(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x354c2
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rdi
callq 0x72c0
movq %rax, %r14
movl $0x7, %edx
movq %rax, %rdi
leaq 0x78a1(%rip), %rsi      # 0x419f3
callq 0x72c0
movq 0x8(%rbx), %rax
movq %rax, 0x60(%rsp)
movq 0x10(%rbx), %rax
movq %rax, 0x68(%rsp)
testq %rax, %rax
je 0x3a17e
cmpb $0x0, (%r12)
je 0x3a17a
incl 0x8(%rax)
jmp 0x3a17e
lock
incl 0x8(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x354c2
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r14, %rdi
callq 0x72c0
movq %rax, %rbx
movl $0xe, %edx
movq %rax, %rdi
leaq 0x7936(%rip), %rsi      # 0x41ae7
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 0x3a1f9
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x3a208
callq 0x13308
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3a224
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x3a233
callq 0x13308
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a258
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x3a26a
callq 0x13308
movq %r15, %rdi
callq 0x72d0
movq %rax, %r15
leaq 0x168(%rsp), %rax
cmpq %rax, %r15
jne 0x39a3b
leaq 0x76ef(%rip), %rsi      # 0x4197c
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 0x195d6(%rip), %rax     # 0x538e4
movl $0x3, (%rax)
leaq 0x77db(%rip), %rsi      # 0x41af6
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 0x77ad(%rip), %rsi      # 0x41b15
leaq 0x388(%rsp), %rdi
movl $0xc, %edx
callq 0x72c0
movq 0x128(%rsp), %rcx
movq (%rcx), %rax
movq %rax, 0x50(%rsp)
movq 0x8(%rcx), %rax
movq %rax, 0x58(%rsp)
testq %rax, %rax
je 0x3a3b7
movq 0x18c29(%rip), %rcx     # 0x52fc8
cmpb $0x0, (%rcx)
je 0x3a3b3
incl 0x8(%rax)
jmp 0x3a3b7
movl $0x1, %ebx
jmp 0x3a5bf
lock
incl 0x8(%rax)
leaq 0x388(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0x29634
movq %rax, %rbx
leaq 0x774f(%rip), %rsi      # 0x41b22
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 0x3a416
callq 0x13308
leaq 0x755f(%rip), %rsi      # 0x4197c
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 0x7688(%rip), %rsi      # 0x41b26
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 0x193f9(%rip), %rax     # 0x538e4
movl 0x4c(%rsp), %ecx
movl %ecx, (%rax)
leaq 0x388(%rsp), %rdi
callq 0x7330
movq 0x120(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x7210
testl %eax, %eax
je 0x3a51f
leaq 0x769b(%rip), %rdi      # 0x41bb5
callq 0x7370
leaq 0x7650(%rip), %rdi      # 0x41b76
leaq 0x5d3f(%rip), %rsi      # 0x4026c
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 0x3a5a7
leaq 0x190(%rsp), %r12
xorl %ebp, %ebp
leaq 0x75da(%rip), %r13      # 0x41b3f
movl $0x2, %r15d
movq %r12, %rdi
leaq 0x75be(%rip), %rsi      # 0x41b33
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 0x3a56b
movq %r14, %rdi
callq 0x7260
leaq 0x759a(%rip), %rdi      # 0x41b50
movl %ebx, %esi
xorl %eax, %eax
callq 0x7050
leaq 0x160(%rsp), %rdi
callq 0x35774
leaq 0x130(%rsp), %rdi
callq 0x357c4
movq 0x189e0(%rip), %rax     # 0x52fc0
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
movq %rax, %rbx
movq 0x58(%rsp), %rdi
jmp 0x3a952
jmp 0x3a960
movq %rax, %rbx
jmp 0x3a72c
jmp 0x3a960
movq %rax, %rbx
jmp 0x3a758
movq %rax, %rbx
jmp 0x3a884
movq %rax, %rbx
jmp 0x3a84d
movq %rax, %rbx
jmp 0x3a821
movq %rax, %rbx
jmp 0x3a7ec
movq %rax, %rbx
jmp 0x3a7b7
movq %rax, %rbx
jmp 0x3a783
movq %rax, %rbx
jmp 0x3a94a
movq %rax, %rbx
jmp 0x3a913
movq %rax, %rbx
jmp 0x3a8e5
movq %rax, %rbx
jmp 0x3a8b9
jmp 0x3a960
movq %rax, %rbx
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a963
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
jmp 0x3a963
jmp 0x3a960
movq %rax, %rbx
jmp 0x3a792
movq %rax, %rbx
jmp 0x3a767
movq %rax, %rbx
jmp 0x3a85f
movq %rax, %rbx
jmp 0x3a925
movq %rax, %rbx
jmp 0x3a8f7
jmp 0x3a960
movq %rax, %rbx
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a72c
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x118(%rsp), %rdi
jmp 0x3a952
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3a758
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x68(%rsp), %rdi
testq %rdi, %rdi
je 0x3a767
callq 0x13308
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3a783
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x78(%rsp), %rdi
testq %rdi, %rdi
je 0x3a792
callq 0x13308
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a7b7
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x88(%rsp), %rdi
jmp 0x3a952
movq %rax, %rbx
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a7ec
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x98(%rsp), %rdi
jmp 0x3a952
movq %rax, %rbx
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a821
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xa8(%rsp), %rdi
jmp 0x3a952
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3a84d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x3a85f
callq 0x13308
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a884
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xc8(%rsp), %rdi
jmp 0x3a952
movq %rax, %rbx
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a8b9
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xd8(%rsp), %rdi
jmp 0x3a952
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3a8e5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xe8(%rsp), %rdi
testq %rdi, %rdi
je 0x3a8f7
callq 0x13308
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x3a913
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0xf8(%rsp), %rdi
testq %rdi, %rdi
je 0x3a925
callq 0x13308
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0x3a94a
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x7280
movq 0x108(%rsp), %rdi
testq %rdi, %rdi
je 0x3a963
callq 0x13308
jmp 0x3a963
jmp 0x3a960
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0x35774
leaq 0x130(%rsp), %rdi
callq 0x357c4
leaq 0x388(%rsp), %rdi
callq 0x7350
movq %rbx, %rdi
callq 0x7430