LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: kaityo256[P]minlex/minlex.cpp
// Function: MinlexSearcher::perm_cbox(Sudoku&, int)
void perm_cbox(Sudoku &g, int hb_min) {
    for (auto a : perm3) {
      Sudoku g2 = g.perm_cbox(a);
      if (g2.headbox_index(false) > hb_min) continue;
      perm_toprbox(g2, hb_min);
    }
  }

// Assembly:
subq $0x138, %rsp            # imm = 0x138
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
movl %edx, 0x124(%rsp)
movq 0x130(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x85ce(%rip), %rax      # 0xc170
movq %rax, 0x118(%rsp)
leaq 0x85bf(%rip), %rax      # 0xc170
movq %rax, 0x110(%rsp)
leaq 0x85b0(%rip), %rax      # 0xc170
addq $0x48, %rax
movq %rax, 0x108(%rsp)
movq 0x110(%rsp), %rax
cmpq 0x108(%rsp), %rax
je 0x3c4b
movq 0x110(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x128(%rsp), %rsi
movq 0x100(%rsp), %rdx
leaq 0x10(%rsp), %rdi
callq 0x6d30
leaq 0x10(%rsp), %rdi
xorl %esi, %esi
callq 0x36e0
cmpl 0x124(%rsp), %eax
jle 0x3c1f
jmp 0x3c35
movq 0x8(%rsp), %rdi
movl 0x124(%rsp), %edx
leaq 0x10(%rsp), %rsi
callq 0x7030
movq 0x110(%rsp), %rax
addq $0xc, %rax
movq %rax, 0x110(%rsp)
jmp 0x3bcc
addq $0x138, %rsp            # imm = 0x138
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: kaityo256[P]minlex/minlex.cpp
// Function: Sudoku::str[abi:cxx11]()
std::string str(void) {
    bit2array();
    std::stringstream ss;
    for (int i = 0; i < 81; i++) {
      ss << (int)(data[i]);
    }
    return ss.str();
  }

// Assembly:
subq $0x1c8, %rsp            # imm = 0x1C8
movq %rdi, (%rsp)
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movq %rdi, 0x1c0(%rsp)
movq %rsi, 0x1b8(%rsp)
movq 0x1b8(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x31f0
leaq 0x30(%rsp), %rdi
callq 0x20e0
movl $0x0, 0x2c(%rsp)
cmpl $0x51, 0x2c(%rsp)
jge 0x3d11
movq 0x10(%rsp), %rax
leaq 0x40(%rsp), %rdi
movslq 0x2c(%rsp), %rcx
movzbl (%rax,%rcx), %esi
callq 0x2220
jmp 0x3ce8
jmp 0x3cea
movl 0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x3cc7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x20f0
jmp 0x3d38
movq (%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x2150
jmp 0x3d21
leaq 0x30(%rsp), %rdi
callq 0x20f0
movq 0x8(%rsp), %rax
addq $0x1c8, %rsp            # imm = 0x1C8
retq
movq 0x20(%rsp), %rdi
callq 0x2230
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: kaityo256[P]minlex/minlex.cpp
// Function: MinlexSearcher::perm_toprbox(Sudoku&, int)
void perm_toprbox(Sudoku &g, int hb_min) {
    for (auto a : perm3) {
      Sudoku g2 = g.perm_toprbox(a);
      if (g2.headline_index() > hb_min) continue;
      perm_columns(g2);
    }
  }

// Assembly:
subq $0x138, %rsp            # imm = 0x138
movq %rdi, 0x130(%rsp)
movq %rsi, 0x128(%rsp)
movl %edx, 0x124(%rsp)
movq 0x130(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x510e(%rip), %rax      # 0xc170
movq %rax, 0x118(%rsp)
leaq 0x50ff(%rip), %rax      # 0xc170
movq %rax, 0x110(%rsp)
leaq 0x50f0(%rip), %rax      # 0xc170
addq $0x48, %rax
movq %rax, 0x108(%rsp)
movq 0x110(%rsp), %rax
cmpq 0x108(%rsp), %rax
je 0x7102
movq 0x110(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x128(%rsp), %rsi
movq 0x100(%rsp), %rdx
leaq 0x10(%rsp), %rdi
callq 0x7110
leaq 0x10(%rsp), %rdi
callq 0x73d0
cmpl 0x124(%rsp), %eax
jle 0x70dd
jmp 0x70ec
movq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x7640
movq 0x110(%rsp), %rax
addq $0xc, %rax
movq %rax, 0x110(%rsp)
jmp 0x708c
addq $0x138, %rsp            # imm = 0x138
retq
nopw (%rax,%rax)
// File: kaityo256[P]minlex/minlex.cpp
// Function: Sudoku::headline_index()
int headline_index(void) {
    mbit v = 0;
    for (int i = 0; i < 9; i++) {
      v |= bdata[i];
    }
    std::vector<int> a(3, 0);
    for (int j = 0; j < 3; j++) {
      for (int k = 0; k < 3; k++) {
        if (v & (mbit(1) << (80 - k - j * 3))) a[j]++;
      }
    }
    std::sort(a.begin(), a.end());
    int index = 0;
    for (int i = 0; i < 3; i++) {
      int t = ((1 << a[i]) - 1) << (2 - i) * 3;
      index += t;
    }
    return index;
  }

// Assembly:
subq $0x98, %rsp
movq %rdi, 0x90(%rsp)
movq 0x90(%rsp), %rax
movq %rax, 0x18(%rsp)
movq $0x0, 0x88(%rsp)
movq $0x0, 0x80(%rsp)
movl $0x0, 0x7c(%rsp)
cmpl $0x9, 0x7c(%rsp)
jge 0x745e
movq 0x18(%rsp), %rax
movslq 0x7c(%rsp), %rcx
shlq $0x4, %rcx
movq 0x60(%rax,%rcx), %rsi
movq 0x68(%rax,%rcx), %rdx
movq 0x80(%rsp), %rax
movq 0x88(%rsp), %rcx
orq %rsi, %rax
orq %rdx, %rcx
movq %rcx, 0x88(%rsp)
movq %rax, 0x80(%rsp)
movl 0x7c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x7c(%rsp)
jmp 0x740c
movl $0x0, 0x5c(%rsp)
leaq 0x5b(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0x5230
movq 0x10(%rsp), %rcx
leaq 0x60(%rsp), %rdi
movl $0x3, %esi
leaq 0x5c(%rsp), %rdx
callq 0x5240
jmp 0x7490
leaq 0x5b(%rsp), %rdi
callq 0x52c0
movl $0x0, 0x48(%rsp)
cmpl $0x3, 0x48(%rsp)
jge 0x756b
movl $0x0, 0x44(%rsp)
cmpl $0x3, 0x44(%rsp)
jge 0x7559
movq 0x80(%rsp), %rax
movq 0x88(%rsp), %rcx
movl 0x44(%rsp), %edx
movl 0x48(%rsp), %edi
movl %edi, %esi
leal (%rsi,%rsi,2), %esi
addl %esi, %edx
movb $0x50, %sil
subb %dl, %sil
movb %sil, %dil
movl $0x1, %edx
shlxq %rdi, %rdx, %rdi
xorl %edx, %edx
testb $0x40, %sil
movl %edx, %esi
movq %rdi, %rdx
cmovneq %rsi, %rdx
cmovneq %rdi, %rsi
andq %rsi, %rcx
andq %rdx, %rax
orq %rcx, %rax
je 0x7547
jmp 0x7512
movslq 0x48(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x3b50
movl (%rax), %ecx
addl $0x1, %ecx
movl %ecx, (%rax)
jmp 0x7547
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
leaq 0x5b(%rsp), %rdi
callq 0x52c0
jmp 0x7634
jmp 0x7549
movl 0x44(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x44(%rsp)
jmp 0x74b5
jmp 0x755b
movl 0x48(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
jmp 0x74a2
leaq 0x60(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x3ac0
movq 0x8(%rsp), %rdi
movq %rax, 0x38(%rsp)
callq 0x3af0
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x52d0
jmp 0x759f
movl $0x0, 0x2c(%rsp)
movl $0x0, 0x28(%rsp)
cmpl $0x3, 0x28(%rsp)
jge 0x7616
movslq 0x28(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x3b50
movl (%rax), %ecx
movl $0x1, %eax
shll %cl, %eax
subl $0x1, %eax
movl $0x2, %ecx
subl 0x28(%rsp), %ecx
imull $0x3, %ecx, %ecx
shll %cl, %eax
movl %eax, 0x24(%rsp)
movl 0x24(%rsp), %eax
addl 0x2c(%rsp), %eax
movl %eax, 0x2c(%rsp)
movl 0x28(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x28(%rsp)
jmp 0x75af
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x3d50
jmp 0x7634
movl 0x2c(%rsp), %eax
movl %eax, 0x4(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x3d50
movl 0x4(%rsp), %eax
addq $0x98, %rsp
retq
movq 0x50(%rsp), %rdi
callq 0x2230
nop
// File: kaityo256[P]minlex/minlex.cpp
// Function: MinlexSearcher::perm_columns(Sudoku&)
void perm_columns(Sudoku &g) {
    int h1, h2, h3;
    g.headline_bits(h1, h2, h3);
    for (int k = 0; k < 6; k++) {
      if (!hlb_table[h3][k]) continue;
      int *ak = perm3[k];
      for (int j = 0; j < 6; j++) {
        if (!hlb_table[h2][j]) continue;
        int *aj = perm3[j];
        for (int i = 0; i < 6; i++) {
          if (!hlb_table[h1][i]) continue;
          int *ai = perm3[i];
          Sudoku g2 = g.perm_columns(ai, aj, ak).renumbering();
          if (min.head() < g2.head()) continue;
          perm_restrbox(g2);
        }
      }
    }
  }

// Assembly:
subq $0x418, %rsp            # imm = 0x418
movq %rdi, 0x410(%rsp)
movq %rsi, 0x408(%rsp)
movq 0x410(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x408(%rsp), %rdi
leaq 0x404(%rsp), %rsi
leaq 0x400(%rsp), %rdx
leaq 0x3fc(%rsp), %rcx
callq 0x7890
movl $0x0, 0x3f8(%rsp)
cmpl $0x6, 0x3f8(%rsp)
jge 0x7881
movslq 0x3fc(%rsp), %rcx
leaq 0x4a8f(%rip), %rax      # 0xc140
imulq $0x6, %rcx, %rcx
addq %rcx, %rax
movslq 0x3f8(%rsp), %rcx
testb $0x1, (%rax,%rcx)
jne 0x76cb
jmp 0x786b
movslq 0x3f8(%rsp), %rcx
leaq 0x4a96(%rip), %rax      # 0xc170
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x3f0(%rsp)
movl $0x0, 0x3ec(%rsp)
cmpl $0x6, 0x3ec(%rsp)
jge 0x7869
movslq 0x400(%rsp), %rcx
leaq 0x4a2f(%rip), %rax      # 0xc140
imulq $0x6, %rcx, %rcx
addq %rcx, %rax
movslq 0x3ec(%rsp), %rcx
testb $0x1, (%rax,%rcx)
jne 0x772b
jmp 0x7853
movslq 0x3ec(%rsp), %rcx
leaq 0x4a36(%rip), %rax      # 0xc170
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x3e0(%rsp)
movl $0x0, 0x3dc(%rsp)
cmpl $0x6, 0x3dc(%rsp)
jge 0x7851
movslq 0x404(%rsp), %rcx
leaq 0x49cf(%rip), %rax      # 0xc140
imulq $0x6, %rcx, %rcx
addq %rcx, %rax
movslq 0x3dc(%rsp), %rcx
testb $0x1, (%rax,%rcx)
jne 0x778b
jmp 0x783b
movslq 0x3dc(%rsp), %rcx
leaq 0x49d6(%rip), %rax      # 0xc170
imulq $0xc, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x3d0(%rsp)
movq 0x408(%rsp), %rsi
movq 0x3d0(%rsp), %rdx
movq 0x3e0(%rsp), %rcx
movq 0x3f0(%rsp), %r8
leaq 0x1f0(%rsp), %rdi
callq 0x7a70
leaq 0x2e0(%rsp), %rdi
leaq 0x1f0(%rsp), %rsi
callq 0x7eb0
movq 0x8(%rsp), %rsi
leaq 0x100(%rsp), %rdi
callq 0x7f50
leaq 0x10(%rsp), %rdi
leaq 0x2e0(%rsp), %rsi
callq 0x7f50
leaq 0x100(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x8010
testb $0x1, %al
jne 0x7827
jmp 0x7829
jmp 0x783b
movq 0x8(%rsp), %rdi
leaq 0x2e0(%rsp), %rsi
callq 0x8150
movl 0x3dc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3dc(%rsp)
jmp 0x7754
jmp 0x7853
movl 0x3ec(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3ec(%rsp)
jmp 0x76f4
jmp 0x786b
movl 0x3f8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x3f8(%rsp)
jmp 0x7694
addq $0x418, %rsp            # imm = 0x418
retq
nopl (%rax)
// File: kaityo256[P]minlex/minlex.cpp
// Function: Sudoku::headline_bits(int&, int&, int&)
void headline_bits(int &h1, int &h2, int &h3) {
    mbit v = 0;
    for (int i = 0; i < 9; i++) {
      v |= bdata[i];
    }
    h1 = 0;
    h2 = 0;
    h3 = 0;
    for (int i = 0; i < 3; i++) {
      if (v & (mbit(1) << (80 - i))) h1 += (1 << (2 - i));
      if (v & (mbit(1) << (77 - i))) h2 += (1 << (2 - i));
      if (v & (mbit(1) << (74 - i))) h3 += (1 << (2 - i));
    }
  }

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq %rdx, -0x18(%rsp)
movq %rcx, -0x20(%rsp)
movq -0x8(%rsp), %rax
movq %rax, -0x48(%rsp)
movq $0x0, -0x30(%rsp)
movq $0x0, -0x38(%rsp)
movl $0x0, -0x3c(%rsp)
cmpl $0x9, -0x3c(%rsp)
jge 0x790e
movq -0x48(%rsp), %rax
movslq -0x3c(%rsp), %rcx
shlq $0x4, %rcx
movq 0x60(%rax,%rcx), %rsi
movq 0x68(%rax,%rcx), %rdx
movq -0x38(%rsp), %rax
movq -0x30(%rsp), %rcx
orq %rsi, %rax
orq %rdx, %rcx
movq %rcx, -0x30(%rsp)
movq %rax, -0x38(%rsp)
movl -0x3c(%rsp), %eax
addl $0x1, %eax
movl %eax, -0x3c(%rsp)
jmp 0x78c8
movq -0x10(%rsp), %rax
movl $0x0, (%rax)
movq -0x18(%rsp), %rax
movl $0x0, (%rax)
movq -0x20(%rsp), %rax
movl $0x0, (%rax)
movl $0x0, -0x40(%rsp)
cmpl $0x3, -0x40(%rsp)
jge 0x7a68
movq -0x38(%rsp), %rax
movq -0x30(%rsp), %rcx
movb -0x40(%rsp), %dl
movb $0x50, %sil
subb %dl, %sil
movb %sil, %dil
movl $0x1, %edx
shlxq %rdi, %rdx, %rdi
xorl %edx, %edx
testb $0x40, %sil
movl %edx, %esi
movq %rdi, %rdx
cmovneq %rsi, %rdx
cmovneq %rdi, %rsi
andq %rsi, %rcx
andq %rdx, %rax
orq %rcx, %rax
je 0x799e
jmp 0x7983
movl $0x2, %ecx
subl -0x40(%rsp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, %ecx
movq -0x10(%rsp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movq -0x38(%rsp), %rax
movq -0x30(%rsp), %rcx
movb -0x40(%rsp), %dl
movb $0x4d, %sil
subb %dl, %sil
movb %sil, %dil
movl $0x1, %edx
shlxq %rdi, %rdx, %rdi
xorl %edx, %edx
testb $0x40, %sil
movl %edx, %esi
movq %rdi, %rdx
cmovneq %rsi, %rdx
cmovneq %rdi, %rsi
andq %rsi, %rcx
andq %rdx, %rax
orq %rcx, %rax
je 0x79fa
jmp 0x79df
movl $0x2, %ecx
subl -0x40(%rsp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, %ecx
movq -0x18(%rsp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
movq -0x38(%rsp), %rax
movq -0x30(%rsp), %rcx
movb -0x40(%rsp), %dl
movb $0x4a, %sil
subb %dl, %sil
movb %sil, %dil
movl $0x1, %edx
shlxq %rdi, %rdx, %rdi
xorl %edx, %edx
testb $0x40, %sil
movl %edx, %esi
movq %rdi, %rdx
cmovneq %rsi, %rdx
cmovneq %rdi, %rsi
andq %rsi, %rcx
andq %rdx, %rax
orq %rcx, %rax
je 0x7a56
jmp 0x7a3b
movl $0x2, %ecx
subl -0x40(%rsp), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, %ecx
movq -0x20(%rsp), %rax
addl (%rax), %ecx
movl %ecx, (%rax)
jmp 0x7a58
movl -0x40(%rsp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rsp)
jmp 0x7937
retq
nopl (%rax)
// File: kaityo256[P]minlex/minlex.cpp
// Function: Sudoku::renumbering()
Sudoku renumbering(void) {
    mbit bdata2[9];
    for (int i = 0; i < 9; i++) {
      bdata2[i] = bdata[i];
    }
    // std::sort(&bdata2[0], &bdata2[9], std::greater<mbit>());
    mysort(bdata2);
    return Sudoku(bdata2);
  }

// Assembly:
subq $0xc8, %rsp
movq %rdi, (%rsp)
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movq %rdi, 0xc0(%rsp)
movq %rsi, 0xb8(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x10(%rsp)
movl $0x0, 0x1c(%rsp)
cmpl $0x9, 0x1c(%rsp)
jge 0x7f1e
movq 0x10(%rsp), %rdx
movslq 0x1c(%rsp), %rax
shlq $0x4, %rax
movq 0x60(%rdx,%rax), %rcx
movq 0x68(%rdx,%rax), %rdx
movq %rdx, 0x28(%rsp,%rax)
movq %rcx, 0x20(%rsp,%rax)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x7ee8
leaq 0x20(%rsp), %rdi
callq 0x23c0
movq (%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x3f20
movq 0x8(%rsp), %rax
addq $0xc8, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: kaityo256[P]minlex/minlex.cpp
// Function: Sudoku::head()
Sudoku head(void) {
    mbit bdata2[9];
    mbit mask = ((mbit(1) << 27) - 1) << 54;
    for (int i = 0; i < 9; i++) {
      bdata2[i] = bdata[i] & mask;
    }
    return Sudoku(bdata2);
  }

// Assembly:
subq $0xd8, %rsp
movq %rdi, (%rsp)
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movq %rdi, 0xd0(%rsp)
movq %rsi, 0xc8(%rsp)
movq 0xc8(%rsp), %rax
movq %rax, 0x10(%rsp)
movabsq $-0x40000000000000, %rax # imm = 0xFFC0000000000000
movq %rax, 0x20(%rsp)
movq $0x1ffff, 0x28(%rsp)    # imm = 0x1FFFF
movl $0x0, 0x1c(%rsp)
cmpl $0x9, 0x1c(%rsp)
jge 0x7fe6
movq 0x10(%rsp), %rdx
movslq 0x1c(%rsp), %rax
shlq $0x4, %rax
movq 0x60(%rdx,%rax), %rcx
movq 0x68(%rdx,%rax), %rdx
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
andq %rdi, %rcx
andq %rsi, %rdx
movq %rdx, 0x38(%rsp,%rax)
movq %rcx, 0x30(%rsp,%rax)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x7fa0
movq (%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x3f20
movq 0x8(%rsp), %rax
addq $0xd8, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: kaityo256[P]minlex/minlex.cpp
// Function: Sudoku::operator<(Sudoku const&) const
bool operator<(const Sudoku &rhs) const {
    mbit vmax = 0;
    bool less = false;
    for (int i = 0; i < 9; i++) {
      mbit v = bdata[i] ^ rhs.bdata[i];
      v = left_most_bit(v);
      if (v >= vmax) {
        vmax = v;
        less = (bdata[i] < rhs.bdata[i]);
      }
    }
    return less;
  }

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x8(%rsp)
movq $0x0, 0x58(%rsp)
movq $0x0, 0x50(%rsp)
movb $0x0, 0x4f(%rsp)
movl $0x0, 0x48(%rsp)
cmpl $0x9, 0x48(%rsp)
jge 0x8144
movq 0x8(%rsp), %rcx
movslq 0x48(%rsp), %rdi
shlq $0x4, %rdi
movq 0x60(%rcx,%rdi), %rax
movq 0x68(%rcx,%rdi), %rcx
movq 0x68(%rsp), %rdx
movq 0x60(%rdx,%rdi), %rsi
movq 0x68(%rdx,%rdi), %rdx
xorq %rsi, %rax
xorq %rdx, %rcx
movq %rcx, 0x38(%rsp)
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
movq %rcx, 0x28(%rsp)
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x24f0
movq %rax, 0x10(%rsp)
movq %rdx, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq %rcx, 0x38(%rsp)
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %rax
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rcx
subq %rsi, %rdx
sbbq %rcx, %rax
jb 0x8132
jmp 0x80e8
movq 0x8(%rsp), %rax
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %rdx
movq %rdx, 0x58(%rsp)
movq %rcx, 0x50(%rsp)
movslq 0x48(%rsp), %rdi
shlq $0x4, %rdi
movq 0x60(%rax,%rdi), %rdx
movq 0x68(%rax,%rdi), %rax
movq 0x68(%rsp), %rcx
movq 0x60(%rcx,%rdi), %rsi
movq 0x68(%rcx,%rdi), %rcx
subq %rsi, %rdx
sbbq %rcx, %rax
setb %al
andb $0x1, %al
movb %al, 0x4f(%rsp)
jmp 0x8134
movl 0x48(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
jmp 0x8047
movb 0x4f(%rsp), %al
andb $0x1, %al
addq $0x78, %rsp
retq
nop
// File: kaityo256[P]minlex/minlex.cpp
// Function: MinlexSearcher::perm_restrbox(Sudoku&)
void perm_restrbox(Sudoku &g) {
    for (auto ai : perm3) {
      Sudoku g1 = g.perm_restrbox2(ai, 0);
      for (auto aj : perm3) {
        Sudoku g2 = g1.perm_restrbox2(aj, 1).renumbering();
        // Sudoku g2 = g.perm_restrbox(ai,aj).renumbering();
        if (g2 < min) {
          min = g2;
        }
      }
    }
  }

// Assembly:
subq $0x338, %rsp            # imm = 0x338
movq %rdi, 0x330(%rsp)
movq %rsi, 0x328(%rsp)
movq 0x330(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x3ff5(%rip), %rax      # 0xc170
movq %rax, 0x320(%rsp)
leaq 0x3fe6(%rip), %rax      # 0xc170
movq %rax, 0x318(%rsp)
leaq 0x3fd7(%rip), %rax      # 0xc170
addq $0x48, %rax
movq %rax, 0x310(%rsp)
movq 0x318(%rsp), %rax
cmpq 0x310(%rsp), %rax
je 0x82d7
movq 0x318(%rsp), %rax
movq %rax, 0x308(%rsp)
movq 0x328(%rsp), %rsi
movq 0x308(%rsp), %rdx
leaq 0x210(%rsp), %rdi
xorl %ecx, %ecx
callq 0x82e0
leaq 0x3f7f(%rip), %rax      # 0xc170
movq %rax, 0x208(%rsp)
leaq 0x3f70(%rip), %rax      # 0xc170
movq %rax, 0x200(%rsp)
leaq 0x3f61(%rip), %rax      # 0xc170
addq $0x48, %rax
movq %rax, 0x1f8(%rsp)
movq 0x200(%rsp), %rax
cmpq 0x1f8(%rsp), %rax
je 0x82bc
movq 0x200(%rsp), %rax
movq %rax, 0x1f0(%rsp)
movq 0x1f0(%rsp), %rdx
leaq 0x10(%rsp), %rdi
leaq 0x210(%rsp), %rsi
movl $0x1, %ecx
callq 0x82e0
leaq 0x100(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x7eb0
movq 0x8(%rsp), %rsi
leaq 0x100(%rsp), %rdi
callq 0x8010
testb $0x1, %al
jne 0x828a
jmp 0x82a1
movq 0x8(%rsp), %rdi
leaq 0x100(%rsp), %rsi
movl $0xf0, %edx
callq 0x2110
jmp 0x82a3
movq 0x200(%rsp), %rax
addq $0xc, %rax
movq %rax, 0x200(%rsp)
jmp 0x821b
jmp 0x82be
movq 0x318(%rsp), %rax
addq $0xc, %rax
movq %rax, 0x318(%rsp)
jmp 0x81a5
addq $0x338, %rsp            # imm = 0x338
retq
nop
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::MP1Node(Member*, Params*, EmulNet*, Log*, Address*)
MP1Node::MP1Node(Member *member, Params *params, EmulNet *emul, Log *log,
                 Address *address) {
    for (int i = 0; i < 6; i++) {
        NULLADDR[i] = 0;
    }
    this->memberNode = member;
    this->emulNet = emul;
    this->log = log;
    this->par = params;
    this->memberNode->addr = *address;
    this->posInMemberList = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq %r9, -0x30(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x40(%rbp)
leaq 0x12569(%rip), %rax     # 0x15c58
addq $0x10, %rax
movq %rax, (%rdi)
addq $0x29, %rdi
callq 0x4e70
movl $0x0, -0x34(%rbp)
cmpl $0x6, -0x34(%rbp)
jge 0x3724
movq -0x40(%rbp), %rax
movslq -0x34(%rbp), %rcx
movb $0x0, 0x38(%rax,%rcx)
movl -0x34(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x34(%rbp)
jmp 0x3706
movq -0x40(%rbp), %rax
movq -0x10(%rbp), %rcx
movq %rcx, 0x20(%rax)
movq -0x20(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x28(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x18(%rbp), %rcx
movq %rcx, 0x18(%rax)
movq -0x30(%rbp), %rsi
movq 0x20(%rax), %rdi
addq $0x8, %rdi
callq 0xaea0
movq -0x40(%rbp), %rax
movq $0x0, 0x30(%rax)
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::recvLoop()
int MP1Node::recvLoop() {
    if (memberNode->bFailed) {
        return false;
    } else {
        return emulNet->ENrecv(&(memberNode->addr), enqueueWrapper, NULL, 1,
                               &(memberNode->mp1q));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq 0x20(%rax), %rax
testb $0x1, 0x10(%rax)
je 0x37d7
movl $0x0, -0x4(%rbp)
jmp 0x3808
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq 0x20(%rax), %r9
addq $0x48, %r9
leaq 0x2a(%rip), %rdx        # 0x3820
xorl %eax, %eax
movl %eax, %ecx
movl $0x1, %r8d
callq 0x8720
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::initThisNode(Address*)
int MP1Node::initThisNode(Address *joinaddr) {
    memberNode->bFailed = false;
    memberNode->inited = true;
    memberNode->inGroup = false;
    // node is up!
    memberNode->pingCounter = TFAIL;
    memberNode->timeOutCounter = TREMOVE;
    initMemberListTable(memberNode);
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq 0x20(%rdi), %rax
movb $0x0, 0x10(%rax)
movq 0x20(%rdi), %rax
movb $0x1, 0xe(%rax)
movq 0x20(%rdi), %rax
movb $0x0, 0xf(%rax)
movq 0x20(%rdi), %rax
movl $0x4, 0x20(%rax)
movq 0x20(%rdi), %rax
movl $0x14, 0x24(%rax)
movq 0x20(%rdi), %rsi
callq 0x3b60
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::introduceSelfToGroup(Address*)
int MP1Node::introduceSelfToGroup(Address *joinaddr) {
    if (0 == memcmp((char *)&(memberNode->addr.addr), (char *)&(joinaddr->addr),
                    sizeof(memberNode->addr.addr))) {
        // I am the group booter (first process to join the group). Boot up the
        // group

#ifdef DEBUGLOG
        log->LOG(&memberNode->addr, "Starting up group...");
#endif
        memberNode->inGroup = true;
    } else {
        // create JOINREQ message: format of data is {struct Address myaddr}
        MessageHdr *msg;
        size_t msgsize = sizeof(MessageHdr);
        msg = new MessageHdr;
        msg->msgType = JOINREQ;
        msg->srcAddr = memberNode->addr;

#ifdef DEBUGLOG
        log->LOG(&memberNode->addr, "Trying to join...");
#endif

        // send JOINREQ message to introducer member
        emulNet->ENsend(&memberNode->addr, joinaddr, (char *)msg, msgsize);

        free(msg);
    }

    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq 0x20(%rax), %rdi
addq $0x8, %rdi
movq -0x10(%rbp), %rsi
movl $0x6, %edx
callq 0x30c0
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x3a75
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movq 0x20(%rax), %rsi
addq $0x8, %rsi
leaq 0xb60b(%rip), %rdx      # 0xf068
movb $0x0, %al
callq 0xa4c0
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rax
movb $0x1, 0xf(%rax)
jmp 0x3b2c
movq $0x30, -0x20(%rbp)
movl $0x30, %edi
callq 0x3210
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x40(%rbp)
callq 0x4ef0
jmp 0x3a98
movq -0x38(%rbp), %rax
movq -0x40(%rbp), %rcx
movq %rcx, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movl $0x0, (%rcx)
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x18(%rbp), %rdi
addq $0x20, %rdi
callq 0xaea0
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movq 0x20(%rax), %rsi
addq $0x8, %rsi
leaq 0xb5a3(%rip), %rdx      # 0xf07d
movb $0x0, %al
callq 0xa4c0
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x10(%rbp), %rdx
movq -0x18(%rbp), %rcx
movq -0x20(%rbp), %rax
movl %eax, %r8d
callq 0x8440
movq -0x18(%rbp), %rdi
callq 0x32b0
jmp 0x3b2c
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
movl $0x30, %esi
callq 0x3220
jmp 0x3b37
movl $0x1, %eax
addq $0x40, %rsp
popq %rbp
retq
movq -0x28(%rbp), %rdi
callq 0x33a0
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::checkMessages()
void MP1Node::checkMessages() {
    void *ptr;
    int size;

    // Pop waiting messages from memberNode's mp1q
    while (!memberNode->mp1q.empty()) {
        ptr = memberNode->mp1q.front().elt;
        size = memberNode->mp1q.front().size;
        memberNode->mp1q.pop();
        recvCallBack((Member *)memberNode, (MessageHdr *)ptr, size);
    }
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rdi
addq $0x48, %rdi
callq 0x4f60
xorb $-0x1, %al
testb $0x1, %al
jne 0x3c0d
jmp 0x3c69
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rdi
addq $0x48, %rdi
callq 0x4f80
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq (%rcx), %rcx
movq %rcx, -0x10(%rbp)
movq 0x20(%rax), %rdi
addq $0x48, %rdi
callq 0x4f80
movq %rax, %rcx
movq -0x20(%rbp), %rax
movl 0x8(%rcx), %ecx
movl %ecx, -0x14(%rbp)
movq 0x20(%rax), %rdi
addq $0x48, %rdi
callq 0x4fa0
movq -0x20(%rbp), %rdi
movq 0x20(%rdi), %rsi
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
callq 0x3e00
jmp 0x3bf4
addq $0x20, %rsp
popq %rbp
retq
nop
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::nodeLoopOps()
void MP1Node::nodeLoopOps() {
    if (memberNode->memberList.empty()) {
        return;
    }

    if (memberNode->timeOutCounter == 0) {
        memberNode->timeOutCounter = TREMOVE;

        if (!finishedPING) {
            // remove the failed node and send out information
            if (!deleteNode(&pingTarget)) {
                exit(1);
            }
            if (!sendFailedNode()) {
                exit(1);
            }
        }
    }

    if (posInMemberList == memberNode->memberList.size()) {
        // random time seed to boost performance
        srand(time(NULL));
        random_shuffle(memberNode->memberList.begin(),
                       memberNode->memberList.end());
        posInMemberList = 0;
    }

    if (memberNode->timeOutCounter == TREMOVE) {
        if (!startPing()) {
            exit(1);
        }
    }

    if (memberNode->timeOutCounter < TREMOVE && !finishedPING &&
        memberNode->pingCounter == 0) {
        if (!startPingREQ()) {
            exit(1);
        }
    }

    memberNode->pingCounter--;
    memberNode->timeOutCounter--;
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq 0x20(%rax), %rdi
addq $0x28, %rdi
callq 0x54d0
testb $0x1, %al
jne 0x3c97
jmp 0x3c9c
jmp 0x3df7
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
cmpl $0x0, 0x24(%rax)
jne 0x3cf8
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rcx
movl $0x14, 0x24(%rcx)
testb $0x1, 0x28(%rax)
jne 0x3cf6
movq -0x20(%rbp), %rdi
movq %rdi, %rsi
addq $0x29, %rsi
callq 0x4950
testb $0x1, %al
jne 0x3cdd
movl $0x1, %edi
callq 0x32c0
movq -0x20(%rbp), %rdi
callq 0x4a60
testb $0x1, %al
jne 0x3cf4
movl $0x1, %edi
callq 0x32c0
jmp 0x3cf6
jmp 0x3cf8
movq -0x20(%rbp), %rax
movq 0x30(%rax), %rcx
movq %rcx, -0x28(%rbp)
movq 0x20(%rax), %rdi
addq $0x28, %rdi
callq 0x5390
movq %rax, %rcx
movq -0x28(%rbp), %rax
cmpq %rcx, %rax
jne 0x3d73
xorl %eax, %eax
movl %eax, %edi
callq 0x31c0
movl %eax, %edi
callq 0x31e0
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rdi
addq $0x28, %rdi
callq 0x4fc0
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, -0x10(%rbp)
movq 0x20(%rax), %rdi
addq $0x28, %rdi
callq 0x4ff0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x5510
movq -0x20(%rbp), %rax
movq $0x0, 0x30(%rax)
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
cmpl $0x14, 0x24(%rax)
jne 0x3d9a
movq -0x20(%rbp), %rdi
callq 0x4bd0
testb $0x1, %al
jne 0x3d98
movl $0x1, %edi
callq 0x32c0
jmp 0x3d9a
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
cmpl $0x14, 0x24(%rax)
jge 0x3dd9
movq -0x20(%rbp), %rax
testb $0x1, 0x28(%rax)
jne 0x3dd9
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rax
cmpl $0x0, 0x20(%rax)
jne 0x3dd9
movq -0x20(%rbp), %rdi
callq 0x4d20
testb $0x1, %al
jne 0x3dd7
movl $0x1, %edi
callq 0x32c0
jmp 0x3dd9
movq -0x20(%rbp), %rax
movq 0x20(%rax), %rcx
movl 0x20(%rcx), %edx
addl $-0x1, %edx
movl %edx, 0x20(%rcx)
movq 0x20(%rax), %rax
movl 0x24(%rax), %ecx
addl $-0x1, %ecx
movl %ecx, 0x24(%rax)
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::recvCallBack(Member*, MessageHdr*, int)
bool MP1Node::recvCallBack(Member *memberNode, MessageHdr *msg, int size) {
    switch (msg->msgType) {
        case JOINREQ:
            return handleJoinReq(msg, size);
        case JOINREP:
            return handleJoinReply(msg, size);
        case PING:
            return handlePing(msg, size);
        case ACK:
            return handleAck(msg, size);
        case PINGREQ:
            return handlePingReq(msg, size);
        case DELETE:
            return handleDelete(msg, size);
        default:
            break;
    }
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movl %ecx, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rax
movl (%rax), %eax
movq %rax, -0x30(%rbp)
subq $0x5, %rax
ja 0x3ed1
movq -0x30(%rbp), %rax
leaq 0xb1c6(%rip), %rcx      # 0xf004
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x38(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
callq 0x3ef0
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x3ed7
movq -0x38(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
callq 0x4100
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x3ed7
movq -0x38(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
callq 0x44f0
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x3ed7
movq -0x38(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
callq 0x4620
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x3ed7
movq -0x38(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
callq 0x4770
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x3ed7
movq -0x38(%rbp), %rdi
movq -0x20(%rbp), %rsi
movl -0x24(%rbp), %edx
callq 0x48a0
andb $0x1, %al
movb %al, -0x1(%rbp)
jmp 0x3ed7
jmp 0x3ed3
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::handlePing(MessageHdr*, int)
bool MP1Node::handlePing(MessageHdr *msg, int size) {
    if (isNullAddress(&msg->srcAddr) && isNullAddress(&msg->endAddr)) {
        return false;
    }

    Address end = msg->endAddr;
    Address dstAddr = msg->srcAddr;

    // create and send the ACK message
    msg = new MessageHdr;
    msg->msgType = ACK;
    msg->srcAddr = memberNode->addr;
    msg->endAddr = end;
    emulNet->ENsend(&memberNode->addr, &dstAddr, (char *)msg, size);

    free(msg);
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x40(%rbp)
movq -0x18(%rbp), %rsi
addq $0x20, %rsi
callq 0x4910
cmpl $0x0, %eax
je 0x453c
movq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq $0x26, %rsi
callq 0x4910
cmpl $0x0, %eax
je 0x453c
movb $0x0, -0x1(%rbp)
jmp 0x4601
movq -0x18(%rbp), %rsi
addq $0x26, %rsi
leaq -0x22(%rbp), %rdi
callq 0xae70
movq -0x18(%rbp), %rsi
addq $0x20, %rsi
leaq -0x28(%rbp), %rdi
callq 0xae70
movl $0x30, %edi
callq 0x3210
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x48(%rbp)
callq 0x4ef0
jmp 0x4579
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rcx, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movl $0x5, (%rcx)
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x18(%rbp), %rdi
addq $0x20, %rdi
callq 0xaea0
movq -0x18(%rbp), %rdi
addq $0x26, %rdi
leaq -0x22(%rbp), %rsi
callq 0xaea0
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x18(%rbp), %rcx
movl -0x1c(%rbp), %r8d
leaq -0x28(%rbp), %rdx
callq 0x8440
movq -0x18(%rbp), %rdi
callq 0x32b0
movb $0x1, -0x1(%rbp)
jmp 0x4601
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
movl $0x30, %esi
callq 0x3220
jmp 0x460c
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x50, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x33a0
nopw %cs:(%rax,%rax)
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::handleAck(MessageHdr*, int)
bool MP1Node::handleAck(MessageHdr *msg, int size) {
    if (isNullAddress(&msg->srcAddr) && isNullAddress(&msg->endAddr)) {
        return false;
    }

    if (0 == memcmp((char *)&(memberNode->addr.addr),
                    (char *)&(msg->endAddr.addr),
                    sizeof(memberNode->addr.addr))) {
        finishedPING = true;
    } else {
        // forward the message to the destination node
        Address end = msg->endAddr;
        msg = new MessageHdr;
        msg->msgType = ACK;
        msg->srcAddr = memberNode->addr;
        msg->endAddr = end;
        emulNet->ENsend(&memberNode->addr, &end, (char *)msg, size);
        free(msg);
    }
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x40(%rbp)
movq -0x18(%rbp), %rsi
addq $0x20, %rsi
callq 0x4910
cmpl $0x0, %eax
je 0x466c
movq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq $0x26, %rsi
callq 0x4910
cmpl $0x0, %eax
je 0x466c
movb $0x0, -0x1(%rbp)
jmp 0x4753
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rdi
addq $0x8, %rdi
movq -0x18(%rbp), %rsi
addq $0x26, %rsi
movl $0x6, %edx
callq 0x30c0
movl %eax, %ecx
xorl %eax, %eax
cmpl %ecx, %eax
jne 0x469f
movq -0x40(%rbp), %rax
movb $0x1, 0x28(%rax)
jmp 0x474f
movq -0x18(%rbp), %rsi
addq $0x26, %rsi
leaq -0x22(%rbp), %rdi
callq 0xae70
movl $0x30, %edi
callq 0x3210
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x48(%rbp)
callq 0x4ef0
jmp 0x46cb
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rcx, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movl $0x5, (%rcx)
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x18(%rbp), %rdi
addq $0x20, %rdi
callq 0xaea0
movq -0x18(%rbp), %rdi
addq $0x26, %rdi
leaq -0x22(%rbp), %rsi
callq 0xaea0
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x18(%rbp), %rcx
movl -0x1c(%rbp), %r8d
leaq -0x22(%rbp), %rdx
callq 0x8440
movq -0x18(%rbp), %rdi
callq 0x32b0
jmp 0x474f
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
movl $0x30, %esi
callq 0x3220
jmp 0x475e
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x50, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x33a0
nopw (%rax,%rax)
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::handlePingReq(MessageHdr*, int)
bool MP1Node::handlePingReq(MessageHdr *msg, int size) {
    if (isNullAddress(&msg->srcAddr) && isNullAddress(&msg->endAddr)) {
        return false;
    }

    Address end = msg->srcAddr;
    Address dstAddr = msg->endAddr;

    // create and send the PING message
    msg = new MessageHdr;
    msg->msgType = PING;
    msg->srcAddr = memberNode->addr;
    msg->endAddr = end;
    emulNet->ENsend(&memberNode->addr, &dstAddr, (char *)msg, size);

    free(msg);
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x40(%rbp)
movq -0x18(%rbp), %rsi
addq $0x20, %rsi
callq 0x4910
cmpl $0x0, %eax
je 0x47bc
movq -0x40(%rbp), %rdi
movq -0x18(%rbp), %rsi
addq $0x26, %rsi
callq 0x4910
cmpl $0x0, %eax
je 0x47bc
movb $0x0, -0x1(%rbp)
jmp 0x4881
movq -0x18(%rbp), %rsi
addq $0x20, %rsi
leaq -0x22(%rbp), %rdi
callq 0xae70
movq -0x18(%rbp), %rsi
addq $0x26, %rsi
leaq -0x28(%rbp), %rdi
callq 0xae70
movl $0x30, %edi
callq 0x3210
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x48(%rbp)
callq 0x4ef0
jmp 0x47f9
movq -0x40(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rcx, -0x18(%rbp)
movq -0x18(%rbp), %rcx
movl $0x3, (%rcx)
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x18(%rbp), %rdi
addq $0x20, %rdi
callq 0xaea0
movq -0x18(%rbp), %rdi
addq $0x26, %rdi
leaq -0x22(%rbp), %rsi
callq 0xaea0
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x18(%rbp), %rcx
movl -0x1c(%rbp), %r8d
leaq -0x28(%rbp), %rdx
callq 0x8440
movq -0x18(%rbp), %rdi
callq 0x32b0
movb $0x1, -0x1(%rbp)
jmp 0x4881
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
movl $0x30, %esi
callq 0x3220
jmp 0x488c
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x50, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
callq 0x33a0
nopw %cs:(%rax,%rax)
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::handleDelete(MessageHdr*, int)
bool MP1Node::handleDelete(MessageHdr *msg, int size) {
    if (isNullAddress(&msg->endAddr)) {
        return false;
    }

    Address *deleteNodeAddr = &msg->endAddr;
    deleteNode(deleteNodeAddr);

    free(msg);
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x30(%rbp)
movq -0x18(%rbp), %rsi
addq $0x26, %rsi
callq 0x4910
cmpl $0x0, %eax
je 0x48d3
movb $0x0, -0x1(%rbp)
jmp 0x48f9
movq -0x30(%rbp), %rdi
movq -0x18(%rbp), %rax
addq $0x26, %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rsi
callq 0x4950
movq -0x18(%rbp), %rdi
callq 0x32b0
movb $0x1, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::deleteNode(Address*)
bool MP1Node::deleteNode(Address *deleteNodeAddr) {
    for (size_t i = 0; i < memberNode->memberList.size(); i++) {
        if ((int)deleteNodeAddr->addr[0] == memberNode->memberList[i].getid()) {
            memberNode->memberList.erase(memberNode->memberList.begin() + i);
            log->logNodeRemove(&memberNode->addr, deleteNodeAddr);
            break;
        }
    }
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq $0x0, -0x18(%rbp)
movq -0x40(%rbp), %rax
movq -0x18(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq 0x20(%rax), %rdi
addq $0x28, %rdi
callq 0x5390
movq %rax, %rcx
movq -0x48(%rbp), %rax
cmpq %rcx, %rax
jae 0x4a4a
movq -0x40(%rbp), %rax
movq -0x10(%rbp), %rcx
movsbl (%rcx), %ecx
movl %ecx, -0x4c(%rbp)
movq 0x20(%rax), %rdi
addq $0x28, %rdi
movq -0x18(%rbp), %rsi
callq 0x53c0
movq %rax, %rdi
callq 0xb040
movl %eax, %ecx
movl -0x4c(%rbp), %eax
cmpl %ecx, %eax
jne 0x4a37
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rcx
addq $0x28, %rcx
movq %rcx, -0x58(%rbp)
movq 0x20(%rax), %rdi
addq $0x28, %rdi
callq 0x4fc0
movq %rax, -0x30(%rbp)
movq -0x18(%rbp), %rsi
leaq -0x30(%rbp), %rdi
callq 0x5450
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x5490
movq -0x58(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x53e0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq %rcx, -0x38(%rbp)
movq 0x10(%rax), %rdi
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x10(%rbp), %rdx
callq 0xa930
jmp 0x4a4a
jmp 0x4a39
movq -0x18(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x18(%rbp)
jmp 0x4970
movb $0x1, %al
andb $0x1, %al
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::sendFailedNode()
bool MP1Node::sendFailedNode() {
    for (auto localEntry : memberNode->memberList) {
        // create the dst address
        Address dstAddr;
        dstAddr.init();
        dstAddr.addr[0] = (char)localEntry.getid();
        dstAddr.addr[4] = (char)localEntry.getport();
        // create DELETE message
        MessageHdr *msg = new MessageHdr;
        size_t msgsize = sizeof(MessageHdr);
        msg->msgType = DELETE;
        msg->srcAddr = memberNode->addr;
        msg->endAddr = pingTarget;
        emulNet->ENsend(&memberNode->addr, &dstAddr, (char *)msg, msgsize);
        free(msg);
    }
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movq 0x20(%rax), %rax
addq $0x28, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4fc0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x4ff0
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x5020
testb $0x1, %al
jne 0x4ab3
jmp 0x4bb4
leaq -0x18(%rbp), %rdi
callq 0x5060
movq %rax, %rsi
leaq -0x38(%rbp), %rdi
movq %rdi, -0x78(%rbp)
callq 0xaf80
leaq -0x3e(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0x4e70
movq -0x80(%rbp), %rdi
callq 0x5360
movq -0x78(%rbp), %rdi
callq 0xb040
movq -0x78(%rbp), %rdi
movb %al, -0x3e(%rbp)
callq 0xb050
movb %al, -0x3a(%rbp)
movl $0x30, %edi
callq 0x3210
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x70(%rbp)
callq 0x4ef0
jmp 0x4b15
movq -0x68(%rbp), %rax
movq -0x70(%rbp), %rcx
movq %rcx, -0x48(%rbp)
movq $0x30, -0x60(%rbp)
movq -0x48(%rbp), %rcx
movl $0x2, (%rcx)
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x48(%rbp), %rdi
addq $0x20, %rdi
callq 0xaea0
movq -0x68(%rbp), %rsi
addq $0x29, %rsi
movq -0x48(%rbp), %rdi
addq $0x26, %rdi
callq 0xaea0
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x48(%rbp), %rcx
movq -0x60(%rbp), %rax
movl %eax, %r8d
leaq -0x3e(%rbp), %rdx
callq 0x8440
movq -0x48(%rbp), %rdi
callq 0x32b0
leaq -0x18(%rbp), %rdi
callq 0x5080
jmp 0x4a9d
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
movl $0x30, %esi
callq 0x3220
jmp 0x4bc1
movb $0x1, %al
andb $0x1, %al
addq $0x80, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x33a0
nopw (%rax,%rax)
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::startPing()
bool MP1Node::startPing() {
    // create pingTarget Address
    pingTarget.init();
    pingTarget.addr[0] = (char)memberNode->memberList[posInMemberList].getid();
    pingTarget.addr[4] =
        (char)memberNode->memberList[posInMemberList].getport();

    memberNode->pingCounter = TFAIL;
    finishedPING = false;
    // memberList and dst is not needed becasuse we just wanna an ACK from
    // the
    MessageHdr *msg = new MessageHdr;
    size_t msgsize = sizeof(MessageHdr);
    msg->msgType = PING;
    msg->srcAddr = memberNode->addr;
    msg->endAddr = memberNode->addr;
    emulNet->ENsend(&memberNode->addr, &pingTarget, (char *)msg, msgsize);
    free(msg);

    posInMemberList++;

    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x38(%rbp)
addq $0x29, %rdi
callq 0x5360
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x30(%rax), %rsi
addq $0x28, %rdi
callq 0x53c0
movq %rax, %rdi
callq 0xb040
movl %eax, %ecx
movq -0x38(%rbp), %rax
movb %cl, 0x29(%rax)
movq 0x20(%rax), %rdi
movq 0x30(%rax), %rsi
addq $0x28, %rdi
callq 0x53c0
movq %rax, %rdi
callq 0xb050
movw %ax, %cx
movq -0x38(%rbp), %rax
movb %cl, 0x2d(%rax)
movq 0x20(%rax), %rcx
movl $0x4, 0x20(%rcx)
movb $0x0, 0x28(%rax)
movl $0x30, %edi
callq 0x3210
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x30(%rbp)
callq 0x4ef0
jmp 0x4c60
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rcx
movq %rcx, -0x10(%rbp)
movq $0x30, -0x28(%rbp)
movq -0x10(%rbp), %rcx
movl $0x3, (%rcx)
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x10(%rbp), %rdi
addq $0x20, %rdi
callq 0xaea0
movq -0x38(%rbp), %rax
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x10(%rbp), %rdi
addq $0x26, %rdi
callq 0xaea0
movq -0x38(%rbp), %rdx
movq 0x8(%rdx), %rdi
movq 0x20(%rdx), %rsi
addq $0x8, %rsi
addq $0x29, %rdx
movq -0x10(%rbp), %rcx
movq -0x28(%rbp), %rax
movl %eax, %r8d
callq 0x8440
movq -0x10(%rbp), %rdi
callq 0x32b0
movq -0x38(%rbp), %rax
movq 0x30(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x30(%rax)
movb $0x1, %al
andb $0x1, %al
addq $0x40, %rsp
popq %rbp
retq
movq -0x30(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
movl $0x30, %esi
callq 0x3220
movq -0x18(%rbp), %rdi
callq 0x33a0
nopw %cs:(%rax,%rax)
// File: hunterlxt[P]swim-membership-protocol/MP1Node.cpp
// Function: MP1Node::startPingREQ()
bool MP1Node::startPingREQ() {
    // create pingREQtarget Address
    Address pingREQtarget;
    pingREQtarget.init();
    pingREQtarget.addr[0] =
        (char)memberNode->memberList[posInMemberList].getid();
    pingREQtarget.addr[4] =
        (char)memberNode->memberList[posInMemberList].getport();

    MessageHdr *msg = new MessageHdr;
    size_t msgsize = sizeof(MessageHdr);
    msg->msgType = PING;
    msg->srcAddr = memberNode->addr;
    msg->endAddr = pingTarget;
    emulNet->ENsend(&memberNode->addr, &pingREQtarget, (char *)msg, msgsize);
    free(msg);

    memberNode->pingCounter = TFAIL;
    posInMemberList++;
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
leaq -0xe(%rbp), %rdi
movq %rdi, -0x48(%rbp)
callq 0x4e70
movq -0x48(%rbp), %rdi
callq 0x5360
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rdi
movq 0x30(%rax), %rsi
addq $0x28, %rdi
callq 0x53c0
movq %rax, %rdi
callq 0xb040
movl %eax, %ecx
movq -0x40(%rbp), %rax
movb %cl, -0xe(%rbp)
movq 0x20(%rax), %rdi
movq 0x30(%rax), %rsi
addq $0x28, %rdi
callq 0x53c0
movq %rax, %rdi
callq 0xb050
movb %al, -0xa(%rbp)
movl $0x30, %edi
callq 0x3210
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x38(%rbp)
callq 0x4ef0
jmp 0x4da7
movq -0x40(%rbp), %rax
movq -0x38(%rbp), %rcx
movq %rcx, -0x18(%rbp)
movq $0x30, -0x30(%rbp)
movq -0x18(%rbp), %rcx
movl $0x3, (%rcx)
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x18(%rbp), %rdi
addq $0x20, %rdi
callq 0xaea0
movq -0x40(%rbp), %rsi
addq $0x29, %rsi
movq -0x18(%rbp), %rdi
addq $0x26, %rdi
callq 0xaea0
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rdi
movq 0x20(%rax), %rsi
addq $0x8, %rsi
movq -0x18(%rbp), %rcx
movq -0x30(%rbp), %rax
movl %eax, %r8d
leaq -0xe(%rbp), %rdx
callq 0x8440
movq -0x18(%rbp), %rdi
callq 0x32b0
movq -0x40(%rbp), %rax
movq 0x20(%rax), %rcx
movl $0x4, 0x20(%rcx)
movq 0x30(%rax), %rcx
addq $0x1, %rcx
movq %rcx, 0x30(%rax)
movb $0x1, %al
andb $0x1, %al
addq $0x50, %rsp
popq %rbp
retq
movq -0x38(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
movl $0x30, %esi
callq 0x3220
movq -0x20(%rbp), %rdi
callq 0x33a0
nopw %cs:(%rax,%rax)
nop
// File: hunterlxt[P]swim-membership-protocol/EmulNet.cpp
// Function: EmulNet::EmulNet(Params*)
EmulNet::EmulNet(Params *p)
{
	//trace.funcEntry("EmulNet::EmulNet");
	int i,j;
	par = p;
	emulnet.setNextId(1);
	emulnet.settCurrBuffSize(0);
	enInited=0;
	for ( i = 0; i < MAX_NODES; i++ ) {
		for ( j = 0; j < MAX_TIME; j++ ) {
			sent_msgs[i][j] = 0;
			recv_msgs[i][j] = 0;
		}
	}
	//trace.funcExit("EmulNet::EmulNet", SUCCESS);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x38(%rbp)
leaq 0xdca9(%rip), %rax      # 0x15cc8
movq %rax, (%rdi)
addq $0x1b7e498, %rdi        # imm = 0x1B7E498
movq %rdi, -0x30(%rbp)
callq 0x8b00
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rdi
movq -0x10(%rbp), %rcx
movq %rcx, 0x8(%rax)
movl $0x1, %esi
callq 0x8b20
jmp 0x804e
movq -0x38(%rbp), %rdi
addq $0x1b7e498, %rdi        # imm = 0x1B7E498
xorl %esi, %esi
callq 0x8b40
jmp 0x8062
movq -0x38(%rbp), %rax
movl $0x0, 0x1b7e490(%rax)
movl $0x0, -0x14(%rbp)
cmpl $0x3e8, -0x14(%rbp)     # imm = 0x3E8
jge 0x8109
movl $0x0, -0x18(%rbp)
cmpl $0xe10, -0x18(%rbp)     # imm = 0xE10
jge 0x80f9
movq -0x38(%rbp), %rax
movq %rax, %rcx
addq $0x10, %rcx
movslq -0x14(%rbp), %rdx
imulq $0x3840, %rdx, %rdx     # imm = 0x3840
addq %rdx, %rcx
movslq -0x18(%rbp), %rdx
movl $0x0, (%rcx,%rdx,4)
addq $0xdbf250, %rax         # imm = 0xDBF250
movslq -0x14(%rbp), %rcx
imulq $0x3840, %rcx, %rcx     # imm = 0x3840
addq %rcx, %rax
movslq -0x18(%rbp), %rcx
movl $0x0, (%rax,%rcx,4)
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x808b
movq -0x30(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x8b60
jmp 0x810f
jmp 0x80fb
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x8077
addq $0x40, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x33a0
nopl (%rax,%rax)