LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/macournoyer[P]peg/tree.c
// Function: Rule_fprint
static void Rule_fprint(FILE *stream, Node *node)
{
  assert(node);
  assert(Rule == node->type);
  fprintf(stream, "%s.%d =", node->rule.name, node->rule.id);
  if (node->rule.expression)
    Node_fprint(stream, node->rule.expression);
  else
    fprintf(stream, " UNDEFINED");
  fprintf(stream, " ;\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x5119
jmp 0x5138
leaq 0x229e(%rip), %rdi      # 0x73be
leaq 0x2279(%rip), %rsi      # 0x73a0
movl $0x156, %edx            # imm = 0x156
leaq 0x249a(%rip), %rcx      # 0x75cd
callq 0x1060
movq -0x10(%rbp), %rcx
movl $0x1, %eax
cmpl (%rcx), %eax
jne 0x5147
jmp 0x5166
leaq 0x229d(%rip), %rdi      # 0x73eb
leaq 0x224b(%rip), %rsi      # 0x73a0
movl $0x157, %edx            # imm = 0x157
leaq 0x246c(%rip), %rcx      # 0x75cd
callq 0x1060
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rdx
movq -0x10(%rbp), %rax
movl 0x28(%rax), %ecx
leaq 0x246e(%rip), %rsi      # 0x75ee
movb $0x0, %al
callq 0x10c0
movq -0x10(%rbp), %rax
cmpq $0x0, 0x20(%rax)
je 0x51a5
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x20(%rax), %rsi
callq 0x4db0
jmp 0x51b7
movq -0x8(%rbp), %rdi
leaq 0x2446(%rip), %rsi      # 0x75f6
movb $0x0, %al
callq 0x10c0
movq -0x8(%rbp), %rdi
leaq 0x243f(%rip), %rsi      # 0x7601
movb $0x0, %al
callq 0x10c0
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/macournoyer[P]peg/compile.c
// Function: Rule_compile_c_header
void Rule_compile_c_header(void)
{
  fprintf(output, "/* A recursive-descent parser generated by peg %d.%d.%d */\n", PEG_MAJOR, PEG_MINOR, PEG_LEVEL);
  fprintf(output, "\n");
  fprintf(output, "%s", header);
  fprintf(output, "#define YYRULECOUNT %d\n", ruleCount);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x6fe5(%rip), %rax      # 0xc1c0
movq (%rax), %rdi
leaq 0x24fb(%rip), %rsi      # 0x76e0
xorl %edx, %edx
movl $0x1, %ecx
movl $0x2, %r8d
movb $0x0, %al
callq 0x10c0
leaq 0x6fc0(%rip), %rax      # 0xc1c0
movq (%rax), %rdi
leaq 0x3861(%rip), %rsi      # 0x8a6b
movb $0x0, %al
callq 0x10c0
leaq 0x6fa8(%rip), %rax      # 0xc1c0
movq (%rax), %rdi
movq 0x6ece(%rip), %rdx      # 0xc0f0
leaq 0x1f4d(%rip), %rsi      # 0x7176
movb $0x0, %al
callq 0x10c0
leaq 0x6f89(%rip), %rax      # 0xc1c0
movq (%rax), %rdi
leaq 0x6f8b(%rip), %rax      # 0xc1cc
movl (%rax), %edx
leaq 0x24d2(%rip), %rsi      # 0x771c
movb $0x0, %al
callq 0x10c0
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/macournoyer[P]peg/compile.c
// Function: defineVariables
static void defineVariables(Node *node)
{
  int count= 0;
  while (node)
    {
      fprintf(output, "#define %s yyval[%d]\n", node->variable.name, --count);
      node->variable.offset= count;
      node= node->variable.next;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x569b
leaq 0x6b5f(%rip), %rax      # 0xc1c0
movq (%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdx
movl -0xc(%rbp), %ecx
addl $-0x1, %ecx
movl %ecx, -0xc(%rbp)
leaq 0x33f1(%rip), %rsi      # 0x8a6d
movb $0x0, %al
callq 0x10c0
movl -0xc(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x20(%rax)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x5653
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/macournoyer[P]peg/compile.c
// Function: countVariables
static int countVariables(Node *node)
{
  int count= 0;
  while (node)
    {
      ++count;
      node= node->variable.next;
    }
  return count;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
cmpq $0x0, -0x8(%rbp)
je 0x5a1d
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x59ff
movl -0xc(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chatziko-k08[P]lecture-code/tests/ADTVector_test.c
// Function: test_create
void test_create(void) {
	Vector vec = vector_create(0, NULL);
	Vector vec2 = vector_create(10, NULL);	// 10 αρχικά στοιχεία

	vector_set_destroy_value(vec, NULL);
	vector_set_destroy_value(vec2, NULL);

	TEST_ASSERT(vector_size(vec) == 0);
	TEST_ASSERT(vector_size(vec2) == 10);

	vector_destroy(vec);
	vector_destroy(vec2);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %esi
callq 0x5950
movq %rax, -0x8(%rbp)
movl $0xa, %edi
xorl %eax, %eax
movl %eax, %esi
callq 0x5950
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x5cd0
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x5cd0
movq -0x8(%rbp), %rdi
callq 0x59d0
cmpl $0x0, %eax
sete %al
andb $0x1, %al
movzbl %al, %edi
leaq 0x1ee3(%rip), %rsi      # 0x62e1
movl $0x14, %edx
leaq 0x21c7(%rip), %rcx      # 0x65d1
leaq 0x1ee1(%rip), %r8       # 0x62f2
movb $0x0, %al
callq 0x2370
cmpl $0x0, %eax
jne 0x4422
callq 0x2e50
jmp 0x4424
jmp 0x4426
movq -0x10(%rbp), %rdi
callq 0x59d0
cmpl $0xa, %eax
sete %al
andb $0x1, %al
movzbl %al, %edi
leaq 0x1ea0(%rip), %rsi      # 0x62e1
movl $0x15, %edx
leaq 0x2184(%rip), %rcx      # 0x65d1
leaq 0x1eb4(%rip), %r8       # 0x6308
movb $0x0, %al
callq 0x2370
cmpl $0x0, %eax
jne 0x4465
callq 0x2e50
jmp 0x4467
movq -0x8(%rbp), %rdi
callq 0x5d00
movq -0x10(%rbp), %rdi
callq 0x5d00
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/chatziko-k08[P]lecture-code/tests/ADTVector_test.c
// Function: test_insert_last
void test_insert_last(void) {
	Vector vec = vector_create(0, NULL);
	int N = 1000;
	int* array = malloc(N * sizeof(*array));		// Στο vector θα προσθέσουμε pointers προς τα στοιχεία αυτού του πίνακα

	// insert 1000 στοιχεία ώστε να συμβούν πολλαπλά resizes
	for (int i = 0; i < 1000; i++) {
		vector_insert_last(vec, &array[i]);
		TEST_ASSERT(vector_size(vec) == i+1);		// Το size ενημερώθηκε;
		TEST_ASSERT(vector_get_at(vec, i) == &array[i]);	// Μπορούμε να κάνουμε at το στοιχείο που μόλις βάλαμε;
	}

	// Δοκιμή ότι μετά τα resizes τα στοιχεία είναι ακόμα προσπελάσιμα
	for (int i = 0; i < 1000; i++)
		TEST_ASSERT(vector_get_at(vec, i) == &array[i]);

	vector_destroy(vec);
	free(array);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
xorl %edi, %edi
xorl %eax, %eax
movl %eax, %esi
callq 0x5950
movq %rax, -0x8(%rbp)
movl $0x3e8, -0xc(%rbp)      # imm = 0x3E8
movslq -0xc(%rbp), %rdi
shlq $0x2, %rdi
callq 0x2180
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
cmpl $0x3e8, -0x1c(%rbp)     # imm = 0x3E8
jge 0x4586
movq -0x8(%rbp), %rdi
movq -0x18(%rbp), %rsi
movslq -0x1c(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rsi
callq 0x5af0
movq -0x8(%rbp), %rdi
callq 0x59d0
movl -0x1c(%rbp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
sete %al
andb $0x1, %al
movzbl %al, %edi
leaq 0x1de6(%rip), %rsi      # 0x62e1
movl $0x23, %edx
leaq 0x20ca(%rip), %rcx      # 0x65d1
leaq 0x1e12(%rip), %r8       # 0x6320
movb $0x0, %al
callq 0x2370
cmpl $0x0, %eax
jne 0x451f
callq 0x2e50
jmp 0x4521
jmp 0x4523
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %esi
callq 0x59f0
movq -0x18(%rbp), %rcx
movslq -0x1c(%rbp), %rdx
shlq $0x2, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movzbl %al, %edi
leaq 0x1d91(%rip), %rsi      # 0x62e1
movl $0x24, %edx
leaq 0x2075(%rip), %rcx      # 0x65d1
leaq 0x1dd5(%rip), %r8       # 0x6338
movb $0x0, %al
callq 0x2370
cmpl $0x0, %eax
jne 0x4574
callq 0x2e50
jmp 0x4576
jmp 0x4578
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x44b6
movl $0x0, -0x20(%rbp)
cmpl $0x3e8, -0x20(%rbp)     # imm = 0x3E8
jge 0x45f8
jmp 0x4598
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %esi
callq 0x59f0
movq -0x18(%rbp), %rcx
movslq -0x20(%rbp), %rdx
shlq $0x2, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movzbl %al, %edi
leaq 0x1d1c(%rip), %rsi      # 0x62e1
movl $0x29, %edx
leaq 0x2000(%rip), %rcx      # 0x65d1
leaq 0x1d60(%rip), %r8       # 0x6338
movb $0x0, %al
callq 0x2370
cmpl $0x0, %eax
jne 0x45e9
callq 0x2e50
jmp 0x45eb
jmp 0x45ed
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x458d
movq -0x8(%rbp), %rdi
callq 0x5d00
movq -0x18(%rbp), %rdi
callq 0x2270
addq $0x20, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/chatziko-k08[P]lecture-code/tests/ADTVector_test.c
// Function: test_remove_last
void test_remove_last(void) {
	Vector vec = vector_create(1000, NULL);
	int N = 1000;
	int* array = malloc(N * sizeof(*array));

	// replace για προσθήκη δεδομένων, χωρίς ελέγχους (έχουμε ξεχωριστό test για το replace)
	for (int i = 0; i < 1000; i++)
		vector_set_at(vec, i, &array[i]);

	// Διαδοχικά remove ώστε να συμβούν και resizes
	for (int i = 999; i >= 0; i--) {
		TEST_ASSERT(vector_get_at(vec, i) == &array[i]);
		vector_remove_last(vec);
		TEST_ASSERT(vector_size(vec) == i);
	}

	vector_destroy(vec);
	free(array);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl $0x3e8, %edi            # imm = 0x3E8
xorl %eax, %eax
movl %eax, %esi
callq 0x5950
movq %rax, -0x8(%rbp)
movl $0x3e8, -0xc(%rbp)      # imm = 0x3E8
movslq -0xc(%rbp), %rdi
shlq $0x2, %rdi
callq 0x2180
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
cmpl $0x3e8, -0x1c(%rbp)     # imm = 0x3E8
jge 0x4678
movq -0x8(%rbp), %rdi
movl -0x1c(%rbp), %esi
movq -0x18(%rbp), %rdx
movslq -0x1c(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rdx
callq 0x5a50
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x4649
movl $0x3e7, -0x20(%rbp)     # imm = 0x3E7
cmpl $0x0, -0x20(%rbp)
jl 0x4738
jmp 0x468b
movq -0x8(%rbp), %rdi
movl -0x20(%rbp), %esi
callq 0x59f0
movq -0x18(%rbp), %rcx
movslq -0x20(%rbp), %rdx
shlq $0x2, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movzbl %al, %edi
leaq 0x1c29(%rip), %rsi      # 0x62e1
movl $0x3a, %edx
leaq 0x1f0d(%rip), %rcx      # 0x65d1
leaq 0x1c6d(%rip), %r8       # 0x6338
movb $0x0, %al
callq 0x2370
cmpl $0x0, %eax
jne 0x46dc
callq 0x2e50
jmp 0x46de
movq -0x8(%rbp), %rdi
callq 0x5b70
movq -0x8(%rbp), %rdi
callq 0x59d0
cmpl -0x20(%rbp), %eax
sete %al
andb $0x1, %al
movzbl %al, %edi
leaq 0x1bdf(%rip), %rsi      # 0x62e1
movl $0x3c, %edx
leaq 0x1ec3(%rip), %rcx      # 0x65d1
leaq 0x1c46(%rip), %r8       # 0x635b
movb $0x0, %al
callq 0x2370
cmpl $0x0, %eax
jne 0x4726
callq 0x2e50
jmp 0x4728
jmp 0x472a
movl -0x20(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x467f
movq -0x8(%rbp), %rdi
callq 0x5d00
movq -0x18(%rbp), %rdi
callq 0x2270
addq $0x20, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/chatziko-k08[P]lecture-code/tests/ADTVector_test.c
// Function: test_get_set_at
void test_get_set_at(void) {
	int N = 1000;
	Vector vec = vector_create(N/2, NULL);		// αρχικοποίηση με N/2 NULLs
	TEST_ASSERT(vector_size(vec) == N/2);

	// insert επιπλέον N/2 NULLs, θα τα αλλάξουμε μετά με replace
	for (int i = 0; i < N/2; i++)
		vector_insert_last(vec, NULL);

	int* array = malloc(N * sizeof(*array));
	for (int i = 0; i < N; i++) {
		TEST_ASSERT(vector_get_at(vec, i) == NULL);
		vector_set_at(vec, i, &array[i]);
		TEST_ASSERT(vector_get_at(vec, i) == &array[i]);
	}

	vector_destroy(vec);
	free(array);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl $0x3e8, -0x4(%rbp)      # imm = 0x3E8
movl -0x4(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %edi
xorl %eax, %eax
movl %eax, %esi
callq 0x5950
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x59d0
movl %eax, -0x28(%rbp)
movl -0x4(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x28(%rbp), %eax
cmpl %ecx, %eax
sete %al
andb $0x1, %al
movzbl %al, %edi
leaq 0x1b3b(%rip), %rsi      # 0x62e1
movl $0x46, %edx
leaq 0x1e1f(%rip), %rcx      # 0x65d1
leaq 0x1bb8(%rip), %r8       # 0x6371
movb $0x0, %al
callq 0x2370
cmpl $0x0, %eax
jne 0x47ca
callq 0x2e50
jmp 0x47cc
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movl %eax, -0x2c(%rbp)
movl -0x4(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movl -0x2c(%rbp), %eax
cmpl %ecx, %eax
jge 0x4805
movq -0x10(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x5af0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x47d3
movslq -0x4(%rbp), %rdi
shlq $0x2, %rdi
callq 0x2180
movq %rax, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movl -0x24(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0x48ee
jmp 0x482b
movq -0x10(%rbp), %rdi
movl -0x24(%rbp), %esi
callq 0x59f0
cmpq $0x0, %rax
sete %al
andb $0x1, %al
movzbl %al, %edi
leaq 0x1a97(%rip), %rsi      # 0x62e1
movl $0x4e, %edx
leaq 0x1d7b(%rip), %rcx      # 0x65d1
leaq 0x1b2c(%rip), %r8       # 0x6389
movb $0x0, %al
callq 0x2370
cmpl $0x0, %eax
jne 0x486e
callq 0x2e50
jmp 0x4870
movq -0x10(%rbp), %rdi
movl -0x24(%rbp), %esi
movq -0x20(%rbp), %rdx
movslq -0x24(%rbp), %rax
shlq $0x2, %rax
addq %rax, %rdx
callq 0x5a50
movq -0x10(%rbp), %rdi
movl -0x24(%rbp), %esi
callq 0x59f0
movq -0x20(%rbp), %rcx
movslq -0x24(%rbp), %rdx
shlq $0x2, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
sete %al
andb $0x1, %al
movzbl %al, %edi
leaq 0x1a29(%rip), %rsi      # 0x62e1
movl $0x50, %edx
leaq 0x1d0d(%rip), %rcx      # 0x65d1
leaq 0x1a6d(%rip), %r8       # 0x6338
movb $0x0, %al
callq 0x2370
cmpl $0x0, %eax
jne 0x48dc
callq 0x2e50
jmp 0x48de
jmp 0x48e0
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x24(%rbp)
jmp 0x481d
movq -0x10(%rbp), %rdi
callq 0x5d00
movq -0x20(%rbp), %rdi
callq 0x2270
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/chatziko-k08[P]lecture-code/tests/ADTVector_test.c
// Function: test_destroy
void test_destroy(void) {
	// Απλά εκτελούμε την destroy, για να ελέγξουμε αν όντως δουλεύει
	// σωστά τρέχουμε το test με valgrind.

	Vector vec = vector_create(1, free);

	vector_set_at(vec, 0, malloc(1));
	vector_insert_last(vec, malloc(1));
	vector_remove_last(vec);

	vector_destroy(vec);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl $0x1, %edi
movq 0x41dc(%rip), %rsi      # 0x8fc0
callq 0x5950
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl $0x1, %edi
callq 0x2180
movq -0x18(%rbp), %rdi
movq %rax, %rdx
xorl %esi, %esi
callq 0x5a50
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movl $0x1, %edi
callq 0x2180
movq -0x10(%rbp), %rdi
movq %rax, %rsi
callq 0x5af0
movq -0x8(%rbp), %rdi
callq 0x5b70
movq -0x8(%rbp), %rdi
callq 0x5d00
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/gap.c
// Function: writeOutputBWT
static void writeOutputBWT(g_data *g, char *path, bool hm)
{
  char filename[Filename_size];

  // write to output files
  if(g->verbose>1) puts("Writing output files");
  assert(!g->mmapBWT && !g->extMem);
  // open bwt output file 
  snprintf(filename,Filename_size,"%s.%s",path,hm?HM_BWT_EXT:BWT_EXT);
  FILE *f = fopen(filename,"wb");
  if(f==NULL) die(__func__);
  size_t w = fwrite(g->bws[0], sizeof(symbol), g->mergeLen, f);
  if(w!=g->mergeLen) die("Error writing final BWT");
  if(fclose(f)!=0) die(__func__);
}

// Assembly:
subq $0x1028, %rsp           # imm = 0x1028
movb %dl, %al
movq %rdi, 0x1020(%rsp)
movq %rsi, 0x1018(%rsp)
andb $0x1, %al
movb %al, 0x1017(%rsp)
movq 0x1020(%rsp), %rax
cmpl $0x1, 0x94(%rax)
jle 0x322f
leaq 0x118a0(%rip), %rdi     # 0x14aca
callq 0x2080
leaq 0x10(%rsp), %rdi
movq 0x1018(%rsp), %rcx
movb 0x1017(%rsp), %dl
leaq 0x118a1(%rip), %r8      # 0x14aeb
leaq 0x11894(%rip), %rax     # 0x14ae5
testb $0x1, %dl
cmovneq %rax, %r8
movl $0x1000, %esi           # imm = 0x1000
leaq 0x1187b(%rip), %rdx     # 0x14adf
movb $0x0, %al
callq 0x2130
leaq 0x10(%rsp), %rdi
leaq 0x11878(%rip), %rsi     # 0x14aef
callq 0x21d0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x3295
leaq 0x11862(%rip), %rdi     # 0x14af2
callq 0x3ce0
movq 0x1020(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rdi
movq 0x1020(%rsp), %rax
movq 0x28(%rax), %rdx
movq 0x8(%rsp), %rcx
movl $0x1, %esi
callq 0x2380
movq %rax, (%rsp)
movq (%rsp), %rax
movq 0x1020(%rsp), %rcx
cmpq 0x28(%rcx), %rax
je 0x32e0
leaq 0x11826(%rip), %rdi     # 0x14b01
callq 0x3ce0
movq 0x8(%rsp), %rdi
callq 0x20d0
cmpl $0x0, %eax
je 0x32fb
leaq 0x117fc(%rip), %rdi     # 0x14af2
callq 0x3ce0
addq $0x1028, %rsp           # imm = 0x1028
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: check_g_data
void check_g_data(g_data *g)
{
  for(int i=0;i<g->numBwt-1;i++) {
    assert(g->bws[i]+g->bwtLen[i]==g->bws[i+1]);
  }
  if(g->smallAlpha) 
    for(int i=0;i<g->numBwt;i++) {
      customInt tot=0;
      for(int j=0;j<g->sizeOfAlpha;j++) {
        tot += g->bwtOcc[i][j];
      }
      assert(tot==g->bwtLen[i]);
    }
  customInt mergeLen=0;
  for(int i=0;i<g->numBwt;i++) mergeLen += g->bwtLen[i];
  assert(mergeLen==g->mergeLen);
}

// Assembly:
movq %rdi, -0x8(%rsp)
movl $0x0, -0xc(%rsp)
movl -0xc(%rsp), %eax
movq -0x8(%rsp), %rcx
movl 0x20(%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x3dff
jmp 0x3df2
movl -0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rsp)
jmp 0x3ddd
movq -0x8(%rsp), %rax
testb $0x1, 0x68(%rax)
je 0x3e82
movl $0x0, -0x10(%rsp)
movl -0x10(%rsp), %eax
movq -0x8(%rsp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x3e80
movq $0x0, -0x18(%rsp)
movl $0x0, -0x1c(%rsp)
movl -0x1c(%rsp), %eax
movq -0x8(%rsp), %rcx
cmpl 0x38(%rcx), %eax
jge 0x3e71
movq -0x8(%rsp), %rax
movq 0x18(%rax), %rax
movslq -0x10(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movslq -0x1c(%rsp), %rcx
movq (%rax,%rcx,8), %rax
addq -0x18(%rsp), %rax
movq %rax, -0x18(%rsp)
movl -0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rsp)
jmp 0x3e31
jmp 0x3e73
movl -0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rsp)
jmp 0x3e12
jmp 0x3e82
movq $0x0, -0x28(%rsp)
movl $0x0, -0x2c(%rsp)
movl -0x2c(%rsp), %eax
movq -0x8(%rsp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x3eca
movq -0x8(%rsp), %rax
movq 0x8(%rax), %rax
movslq -0x2c(%rsp), %rcx
movq (%rax,%rcx,8), %rax
addq -0x28(%rsp), %rax
movq %rax, -0x28(%rsp)
movl -0x2c(%rsp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rsp)
jmp 0x3e93
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: open_unsortedLCP_files
void open_unsortedLCP_files(g_data *g)
{
  char filename[Filename_size];
  snprintf(filename,Filename_size,"%s.pair.lcp",g->outPath);
  g->unsortedLcp = fopen(filename,"wb");
  if(g->unsortedLcp==NULL) {perror(filename); die(__func__);}
  snprintf(filename,Filename_size,"%s.size.lcp",g->outPath);
  g->unsortedLcp_size = fopen(filename,"wb");
  if(g->unsortedLcp_size==NULL) {perror(filename); die(__func__);}
  // write total size of the LCP array to first position of .size.lcp file 
  size_t e = fwrite(&(g->mergeLen),sizeof(customInt),1,g->unsortedLcp_size);  
  if(e!=1) die(__func__);
}

// Assembly:
subq $0x1018, %rsp           # imm = 0x1018
movq %rdi, 0x1010(%rsp)
leaq 0x10(%rsp), %rdi
movq 0x1010(%rsp), %rax
movq 0x80(%rax), %rcx
movl $0x1000, %esi           # imm = 0x1000
leaq 0x10d18(%rip), %rdx     # 0x14c17
movb $0x0, %al
callq 0x2130
leaq 0x10(%rsp), %rdi
leaq 0x10bdd(%rip), %rsi     # 0x14aef
callq 0x21d0
movq %rax, %rcx
movq 0x1010(%rsp), %rax
movq %rcx, 0x58(%rax)
movq 0x1010(%rsp), %rax
cmpq $0x0, 0x58(%rax)
jne 0x3f4b
leaq 0x10(%rsp), %rdi
callq 0x2310
leaq 0x10cdd(%rip), %rdi     # 0x14c23
callq 0x3ce0
leaq 0x10(%rsp), %rdi
movq 0x1010(%rsp), %rax
movq 0x80(%rax), %rcx
movl $0x1000, %esi           # imm = 0x1000
leaq 0x10ccf(%rip), %rdx     # 0x14c3a
movb $0x0, %al
callq 0x2130
leaq 0x10(%rsp), %rdi
leaq 0x10b71(%rip), %rsi     # 0x14aef
callq 0x21d0
movq %rax, %rcx
movq 0x1010(%rsp), %rax
movq %rcx, 0x60(%rax)
movq 0x1010(%rsp), %rax
cmpq $0x0, 0x60(%rax)
jne 0x3fb7
leaq 0x10(%rsp), %rdi
callq 0x2310
leaq 0x10c71(%rip), %rdi     # 0x14c23
callq 0x3ce0
movq 0x1010(%rsp), %rdi
addq $0x28, %rdi
movq 0x1010(%rsp), %rax
movq 0x60(%rax), %rcx
movl $0x8, %esi
movl $0x1, %edx
callq 0x2380
movq %rax, 0x8(%rsp)
cmpq $0x1, 0x8(%rsp)
je 0x3ff7
leaq 0x10c31(%rip), %rdi     # 0x14c23
callq 0x3ce0
addq $0x1018, %rsp           # imm = 0x1018
retq
nop
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: writeLcp
void writeLcp(customInt k, uint32_t lcp, g_data *g)
{
  assert(g->unsortedLcp!=NULL);
  assert(lcp <= MAX_LCP_SIZE);
  if(k>=(1ULL<<(8*POS_SIZE))) { // at most pos_size bytes for the position
    fprintf(stderr,"%d bytes per position are not enough. Increase POS_SIZE and recompile\n",POS_SIZE); 
    exit(EXIT_FAILURE);
  } 
  size_t e = fwrite(&lcp,BSIZE,1,g->unsortedLcp);
  if(e!=1) die(__func__);
  e = fwrite(&k,POS_SIZE,1,g->unsortedLcp);
  if(e!=1) die(__func__);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movq %rdx, 0x10(%rsp)
movabsq $0x10000000000, %rax    # imm = 0x10000000000
cmpq %rax, 0x20(%rsp)
jb 0x404a
movq 0x14fce(%rip), %rax     # 0x18ff8
movq (%rax), %rdi
leaq 0x10c12(%rip), %rsi     # 0x14c46
movl $0x5, %edx
movb $0x0, %al
callq 0x21b0
movl $0x1, %edi
callq 0x2370
movq 0x10(%rsp), %rax
movq 0x58(%rax), %rcx
leaq 0x1c(%rsp), %rdi
movl $0x1, %edx
movq %rdx, %rsi
callq 0x2380
movq %rax, 0x8(%rsp)
cmpq $0x1, 0x8(%rsp)
je 0x407e
leaq 0x10c14(%rip), %rdi     # 0x14c8d
callq 0x3ce0
movq 0x10(%rsp), %rax
movq 0x58(%rax), %rcx
leaq 0x20(%rsp), %rdi
movl $0x5, %esi
movl $0x1, %edx
callq 0x2380
movq %rax, 0x8(%rsp)
cmpq $0x1, 0x8(%rsp)
je 0x40b4
leaq 0x10bde(%rip), %rdi     # 0x14c8d
callq 0x3ce0
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: writeLcp_EOF
void writeLcp_EOF(uint64_t size, g_data *g)
{
  assert(g->unsortedLcp!=NULL && g->unsortedLcp_size!=NULL);

  // write eof to .pair.lcp file
  uint64_t b = ~0ULL; // all 1's 
  size_t e = fwrite(&b,BSIZE,1,g->unsortedLcp);  
  if(e!=1) die(__func__);
  e = fwrite(&b,POS_SIZE,1,g->unsortedLcp);  
  if(e!=1) die(__func__);
  // write size of complete LCP segment to .size.lcp file 
  e = fwrite(&size,8,1,g->unsortedLcp_size);  
  if(e!=1) die(__func__);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq $-0x1, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq 0x58(%rax), %rcx
leaq 0x10(%rsp), %rdi
movl $0x1, %edx
movq %rdx, %rsi
callq 0x2380
movq %rax, 0x8(%rsp)
cmpq $0x1, 0x8(%rsp)
je 0x410b
leaq 0x10b90(%rip), %rdi     # 0x14c96
callq 0x3ce0
movq 0x18(%rsp), %rax
movq 0x58(%rax), %rcx
leaq 0x10(%rsp), %rdi
movl $0x5, %esi
movl $0x1, %edx
callq 0x2380
movq %rax, 0x8(%rsp)
cmpq $0x1, 0x8(%rsp)
je 0x4141
leaq 0x10b5a(%rip), %rdi     # 0x14c96
callq 0x3ce0
movq 0x18(%rsp), %rax
movq 0x60(%rax), %rcx
leaq 0x20(%rsp), %rdi
movl $0x8, %esi
movl $0x1, %edx
callq 0x2380
movq %rax, 0x8(%rsp)
cmpq $0x1, 0x8(%rsp)
je 0x4177
leaq 0x10b24(%rip), %rdi     # 0x14c96
callq 0x3ce0
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: initLCPmem
void initLCPmem(g_data *g)
{
  char filename[Filename_size];
  
  assert(g->lcpMerge);
  // allocate g->lcps and g->lcp[0..]
  g->lcps = (lcpInt **) malloc(g->numBwt*sizeof(lcpInt *));
  if(!g->lcps) die(__func__);
  
  snprintf(filename,Filename_size,"%s.%s",g->lcpinPath,LCP_EXT);
  int fd = open(filename,O_RDWR);
  if(fd == -1) die(__func__);
  // mmap lcp values, init lcps[] with a copy of the LCP values  
  g->lcps[0] = mmap(NULL,g->mergeLen*sizeof(lcpInt),PROT_READ|PROT_WRITE,MAP_SHARED,fd,0);
  if(g->lcps[0] == MAP_FAILED) die(__func__);
  #ifdef USE_MMAP_ADVISE
  madvise(g->lcps[0], g->mergeLen*sizeof(lcpInt), MADV_DONTNEED);// lcp values are not need untill the end of the bwt-merge phase 
  #endif
  if(close(fd)!=0) die(__func__);

  // init lcps[1..]
  for(int i=0;i<g->numBwt-1;i++)
    g->lcps[i+1] = g->lcps[i] + g->bwtLen[i];
}

// Assembly:
subq $0x1018, %rsp           # imm = 0x1018
movq %rdi, 0x1010(%rsp)
movq 0x1010(%rsp), %rax
movslq 0x20(%rax), %rdi
shlq $0x3, %rdi
callq 0x127b0
movq %rax, %rcx
movq 0x1010(%rsp), %rax
movq %rcx, 0x88(%rax)
movq 0x1010(%rsp), %rax
cmpq $0x0, 0x88(%rax)
jne 0x4204
leaq 0x10aa4(%rip), %rdi     # 0x14ca3
callq 0x3ce0
leaq 0x10(%rsp), %rdi
movq 0x1010(%rsp), %rax
movq 0x78(%rax), %rcx
movl $0x1000, %esi           # imm = 0x1000
leaq 0x108be(%rip), %rdx     # 0x14adf
leaq 0x10a86(%rip), %r8      # 0x14cae
movb $0x0, %al
callq 0x2130
leaq 0x10(%rsp), %rdi
movl $0x2, %esi
movb $0x0, %al
callq 0x22e0
movl %eax, 0xc(%rsp)
cmpl $-0x1, 0xc(%rsp)
jne 0x4257
leaq 0x10a51(%rip), %rdi     # 0x14ca3
callq 0x3ce0
movq 0x1010(%rsp), %rax
movq 0x28(%rax), %rsi
shlq $0x0, %rsi
movl 0xc(%rsp), %r8d
xorl %eax, %eax
movl %eax, %r9d
movl $0x3, %edx
movl $0x1, %ecx
movq %r9, %rdi
callq 0x2220
movq %rax, %rcx
movq 0x1010(%rsp), %rax
movq 0x88(%rax), %rax
movq %rcx, (%rax)
movq 0x1010(%rsp), %rax
movq 0x88(%rax), %rax
movq $-0x1, %rcx
cmpq %rcx, (%rax)
jne 0x42bf
leaq 0x109e9(%rip), %rdi     # 0x14ca3
callq 0x3ce0
movq 0x1010(%rsp), %rax
movq 0x88(%rax), %rax
movq (%rax), %rdi
movq 0x1010(%rsp), %rax
movq 0x28(%rax), %rsi
shlq $0x0, %rsi
movl $0x4, %edx
callq 0x22d0
movl 0xc(%rsp), %edi
callq 0x2150
cmpl $0x0, %eax
je 0x4305
leaq 0x109a3(%rip), %rdi     # 0x14ca3
callq 0x3ce0
movl $0x0, 0x8(%rsp)
movl 0x8(%rsp), %eax
movq 0x1010(%rsp), %rcx
movl 0x20(%rcx), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jge 0x437a
movq 0x1010(%rsp), %rax
movq 0x88(%rax), %rax
movslq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rdx
movq 0x1010(%rsp), %rax
movq 0x8(%rax), %rax
movslq 0x8(%rsp), %rcx
addq (%rax,%rcx,8), %rdx
movq 0x1010(%rsp), %rax
movq 0x88(%rax), %rax
movl 0x8(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq %rdx, (%rax,%rcx,8)
movl 0x8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8(%rsp)
jmp 0x430d
addq $0x1018, %rsp           # imm = 0x1018
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: openDAFile
static FILE *openDAFile(g_data *g)
{
  char filename[Filename_size];

  if(g->verbose>1) puts("Writing Document Array");
  assert(g->outputDA);
  snprintf(filename,Filename_size,"%s.%d.%s",g->outPath,g->outputDA,DA_EXT);
  FILE *f = fopen(filename,"wb");
  if(f==NULL) die("Error opening Document array file");
  return f;
}

// Assembly:
subq $0x1018, %rsp           # imm = 0x1018
movq %rdi, 0x1010(%rsp)
movq 0x1010(%rsp), %rax
cmpl $0x1, 0x94(%rax)
jle 0x489c
leaq 0x10b35(%rip), %rdi     # 0x153cc
callq 0x2080
leaq 0x10(%rsp), %rdi
movq 0x1010(%rsp), %rax
movq 0x80(%rax), %rcx
movq 0x1010(%rsp), %rax
movl 0x44(%rax), %r8d
movl $0x1000, %esi           # imm = 0x1000
leaq 0x10295(%rip), %rdx     # 0x14b5d
leaq 0xfa46(%rip), %r9       # 0x14315
movb $0x0, %al
callq 0x2130
leaq 0x10(%rsp), %rdi
leaq 0x1020d(%rip), %rsi     # 0x14aef
callq 0x21d0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x4900
leaq 0x10ae8(%rip), %rdi     # 0x153e3
callq 0x3ce0
movq 0x8(%rsp), %rax
addq $0x1018, %rsp           # imm = 0x1018
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: openSAFile
static FILE *openSAFile(g_data *g)
{
  char filename[Filename_size];

  if(g->verbose>1) puts("Writing Suffix Array");
  assert(g->outputSA);
  snprintf(filename,Filename_size,"%s.%d.%s",g->outPath,g->outputSA,SA_EXT);
  FILE *f = fopen(filename,"wb");
  if(f==NULL) die("Error opening Suffix array file");
  return f;
}

// Assembly:
subq $0x1018, %rsp           # imm = 0x1018
movq %rdi, 0x1010(%rsp)
movq 0x1010(%rsp), %rax
cmpl $0x1, 0x94(%rax)
jle 0x53cc
leaq 0x1003e(%rip), %rdi     # 0x15405
callq 0x2080
leaq 0x10(%rsp), %rdi
movq 0x1010(%rsp), %rax
movq 0x80(%rax), %rcx
movq 0x1010(%rsp), %rax
movl 0x4c(%rax), %r8d
movl $0x1000, %esi           # imm = 0x1000
leaq 0xf765(%rip), %rdx      # 0x14b5d
leaq 0xef53(%rip), %r9       # 0x14352
movb $0x0, %al
callq 0x2130
leaq 0x10(%rsp), %rdi
leaq 0xf6dd(%rip), %rsi      # 0x14aef
callq 0x21d0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x5430
leaq 0xffef(%rip), %rdi      # 0x1541a
callq 0x3ce0
movq 0x8(%rsp), %rax
addq $0x1018, %rsp           # imm = 0x1018
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: openSLFile
static FILE *openSLFile(g_data *g)
{
  char filename[Filename_size];

  if(g->verbose>1) puts("Writing Suffix Array");
  assert(g->outputSL);
  snprintf(filename,Filename_size,"%s.%d.%s",g->outPath,g->outputSL,SL_EXT);
  FILE *f = fopen(filename,"wb");
  if(f==NULL) die("Error opening Suffixes' lengths file");
  return f;
}

// Assembly:
subq $0x1018, %rsp           # imm = 0x1018
movq %rdi, 0x1010(%rsp)
movq 0x1010(%rsp), %rax
cmpl $0x1, 0x94(%rax)
jle 0x546c
leaq 0xff9e(%rip), %rdi      # 0x15405
callq 0x2080
leaq 0x10(%rsp), %rdi
movq 0x1010(%rsp), %rax
movq 0x80(%rax), %rcx
movq 0x1010(%rsp), %rax
movl 0x50(%rax), %r8d
movl $0x1000, %esi           # imm = 0x1000
leaq 0xf6c5(%rip), %rdx      # 0x14b5d
leaq 0xf725(%rip), %r9       # 0x14bc4
movb $0x0, %al
callq 0x2130
leaq 0x10(%rsp), %rdi
leaq 0xf63d(%rip), %rsi      # 0x14aef
callq 0x21d0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x54d0
leaq 0xff6f(%rip), %rdi      # 0x1543a
callq 0x3ce0
movq 0x8(%rsp), %rax
addq $0x1018, %rsp           # imm = 0x1018
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: openColorFile
static FILE *openColorFile(g_data *g)
{
  char filename[Filename_size];

  if(g->verbose>1) puts("Writing Document Array (Colors)");
  assert(g->outputColors);
  snprintf(filename,Filename_size,"%s.%d.%s",g->outPath,g->outputColors,COLORS_EXT);
  FILE *f = fopen(filename,"wb");
  if(f==NULL) die("Error opening Document array (colores) file");
  return f;
}

// Assembly:
subq $0x1018, %rsp           # imm = 0x1018
movq %rdi, 0x1010(%rsp)
movq 0x1010(%rsp), %rax
cmpl $0x1, 0x94(%rax)
jle 0x550c
leaq 0xff58(%rip), %rdi      # 0x1545f
callq 0x2080
leaq 0x10(%rsp), %rdi
movq 0x1010(%rsp), %rax
movq 0x80(%rax), %rcx
movq 0x1010(%rsp), %rax
movl 0x48(%rax), %r8d
movl $0x1000, %esi           # imm = 0x1000
leaq 0xf625(%rip), %rdx      # 0x14b5d
leaq 0xff40(%rip), %r9       # 0x1547f
movb $0x0, %al
callq 0x2130
leaq 0x10(%rsp), %rdi
leaq 0xf59d(%rip), %rsi      # 0x14aef
callq 0x21d0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x5570
leaq 0xff18(%rip), %rdi      # 0x15483
callq 0x3ce0
movq 0x8(%rsp), %rax
addq $0x1018, %rsp           # imm = 0x1018
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: openQSFile
static FILE *openQSFile(g_data *g)
{
  char filename[Filename_size];

  if(g->verbose>1) puts("Writing QS");
  assert(g->outputQS);
  snprintf(filename,Filename_size,"%s.%s",g->outPath,QS_EXT);
  FILE *f = fopen(filename,"wb");
  if(f==NULL) die("Error opening QS file");
  return f;
}

// Assembly:
subq $0x1018, %rsp           # imm = 0x1018
movq %rdi, 0x1010(%rsp)
movq 0x1010(%rsp), %rax
cmpl $0x1, 0x94(%rax)
jle 0x55ac
leaq 0xff08(%rip), %rdi      # 0x154af
callq 0x2080
leaq 0x10(%rsp), %rdi
movq 0x1010(%rsp), %rax
movq 0x80(%rax), %rcx
movl $0x1000, %esi           # imm = 0x1000
leaq 0xf513(%rip), %rdx      # 0x14adf
leaq 0xedc9(%rip), %r8       # 0x1439c
movb $0x0, %al
callq 0x2130
leaq 0x10(%rsp), %rdi
leaq 0xf509(%rip), %rsi      # 0x14aef
callq 0x21d0
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jne 0x5604
leaq 0xfebb(%rip), %rdi      # 0x154ba
callq 0x3ce0
movq 0x8(%rsp), %rax
addq $0x1018, %rsp           # imm = 0x1018
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: free_merge_arrays
void free_merge_arrays(g_data *g) {
  if(g->extMem) {
    int e = unlink(g->merge_fname);
    if(e!=0) perror("Error deleting temporary merge file (1)");
    e = unlink(g->newmerge_fname);
    if(e!=0) perror("Error deleting temporary merge file (2)");
    free(g->merge_fname); // deallocate file names 
    free(g->newmerge_fname);
  }
  else if(g->mmapZ) {
    int e = munmap(g->mergeColor,g->mergeLen*sizeof(palette));
    if(e!=0) die("gap (unmap mergeColor)");
    e = munmap(g->newMergeColor,g->mergeLen*sizeof(palette));
    if(e!=0) die("gap (unmap newMergeColor)");  }
  else {
    free(g->newMergeColor);
    free(g->mergeColor);
  }
  g->newMergeColor = NULL;
  g->mergeColor = NULL;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
testb $0x1, 0x69(%rax)
je 0x676b
movq 0x10(%rsp), %rax
movq 0x50d8(%rax), %rdi
callq 0x2050
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0x671c
leaq 0xeb97(%rip), %rdi      # 0x152ae
callq 0x2310
movq 0x10(%rsp), %rax
movq 0x50e0(%rax), %rdi
callq 0x2050
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0x6744
leaq 0xeb97(%rip), %rdi      # 0x152d6
callq 0x2310
movq 0x10(%rsp), %rax
movq 0x50d8(%rax), %rdi
callq 0x12940
movq 0x10(%rsp), %rax
movq 0x50e0(%rax), %rdi
callq 0x12940
jmp 0x6806
movq 0x10(%rsp), %rax
testb $0x1, 0x70(%rax)
je 0x67e2
movq 0x10(%rsp), %rax
movq 0x50e8(%rax), %rdi
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rsi
shlq $0x0, %rsi
callq 0x2280
movl %eax, 0x8(%rsp)
cmpl $0x0, 0x8(%rsp)
je 0x67ab
leaq 0xeb58(%rip), %rdi      # 0x152fe
callq 0x3ce0
movq 0x10(%rsp), %rax
movq 0x50f0(%rax), %rdi
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rsi
shlq $0x0, %rsi
callq 0x2280
movl %eax, 0x8(%rsp)
cmpl $0x0, 0x8(%rsp)
je 0x67e0
leaq 0xeb3a(%rip), %rdi      # 0x15315
callq 0x3ce0
jmp 0x6804
movq 0x10(%rsp), %rax
movq 0x50f0(%rax), %rdi
callq 0x12940
movq 0x10(%rsp), %rax
movq 0x50e8(%rax), %rdi
callq 0x12940
jmp 0x6806
movq 0x10(%rsp), %rax
movq $0x0, 0x50f0(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0x50e8(%rax)
addq $0x18, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: alloc_merge_array
void alloc_merge_array(g_data *g) {
  if(g->mmapZ) {
    g->mergeColor = mmap(NULL,g->mergeLen*sizeof(palette),PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0);
    if(g->mergeColor== MAP_FAILED) die(__func__);
  }
  else {
    g->mergeColor =  calloc(g->mergeLen,sizeof(palette)); 
     if(!g->mergeColor) die(__func__);
  }
  // make sure these are not used 
  g->newMergeColor = NULL;
  g->mergeColor16=NULL;
  g->array32 = NULL;
  g->fmergeColor = NULL;
  g->fnewMergeColor = NULL;
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
movq (%rsp), %rax
testb $0x1, 0x70(%rax)
je 0x6898
movq (%rsp), %rax
movq 0x28(%rax), %rsi
shlq $0x0, %rsi
xorl %eax, %eax
movl %eax, %r9d
movl $0x3, %edx
movl $0x22, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movq %r9, %rdi
callq 0x2220
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x50e8(%rax)
movq (%rsp), %rax
movq $-0x1, %rcx
cmpq %rcx, 0x50e8(%rax)
jne 0x6896
leaq 0xea9e(%rip), %rdi      # 0x1532f
callq 0x3ce0
jmp 0x68d4
movq (%rsp), %rax
movq 0x28(%rax), %rdi
movl $0x1, %esi
callq 0x12a60
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x50e8(%rax)
movq (%rsp), %rax
cmpq $0x0, 0x50e8(%rax)
jne 0x68d2
leaq 0xea62(%rip), %rdi      # 0x1532f
callq 0x3ce0
jmp 0x68d4
movq (%rsp), %rax
movq $0x0, 0x50f0(%rax)
movq (%rsp), %rax
movq $0x0, 0x50f8(%rax)
movq (%rsp), %rax
movq $0x0, 0x5100(%rax)
movq (%rsp), %rax
movq $0x0, 0x50c8(%rax)
movq (%rsp), %rax
movq $0x0, 0x50d0(%rax)
popq %rax
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: free_merge_array
void free_merge_array(g_data *g) {
  assert(g->newMergeColor==NULL);
  if(g->mmapZ) {
    int e = munmap(g->mergeColor,g->mergeLen*sizeof(palette));
    if(e!=0) die("gap (unmap mergeColor)");
  }
  else {
    free(g->mergeColor);
  }
  g->mergeColor = NULL;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
testb $0x1, 0x70(%rax)
je 0x697b
movq 0x10(%rsp), %rax
movq 0x50e8(%rax), %rdi
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rsi
shlq $0x0, %rsi
callq 0x2280
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0x6979
leaq 0xe98a(%rip), %rdi      # 0x152fe
callq 0x3ce0
jmp 0x698c
movq 0x10(%rsp), %rax
movq 0x50e8(%rax), %rdi
callq 0x12940
movq 0x10(%rsp), %rax
movq $0x0, 0x50e8(%rax)
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: alloc0_B_array
void alloc0_B_array(g_data *g) {
  if(g->mmapB) {
    // zero intialized 
    g->blockBeginsAt = mmap(NULL,g->mergeLen*sizeof(lcpInt),PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0);
    if(g->blockBeginsAt== MAP_FAILED) die(__func__);
  }
  else {
    g->blockBeginsAt = (lcpInt *) calloc(g->mergeLen,sizeof(lcpInt));
    if(!g->blockBeginsAt) die(__func__);
  }
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
movq (%rsp), %rax
testb $0x1, 0x71(%rax)
je 0x6a18
movq (%rsp), %rax
movq 0x28(%rax), %rsi
shlq $0x0, %rsi
xorl %eax, %eax
movl %eax, %r9d
movl $0x3, %edx
movl $0x22, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movq %r9, %rdi
callq 0x2220
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x98(%rax)
movq (%rsp), %rax
movq $-0x1, %rcx
cmpq %rcx, 0x98(%rax)
jne 0x6a16
leaq 0xe930(%rip), %rdi      # 0x15341
callq 0x3ce0
jmp 0x6a54
movq (%rsp), %rax
movq 0x28(%rax), %rdi
movl $0x1, %esi
callq 0x12a60
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x98(%rax)
movq (%rsp), %rax
cmpq $0x0, 0x98(%rax)
jne 0x6a52
leaq 0xe8f4(%rip), %rdi      # 0x15341
callq 0x3ce0
jmp 0x6a54
popq %rax
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: free_B_array
void free_B_array(g_data *g) {
  if(g->mmapB) {
    int e = munmap(g->blockBeginsAt,g->mergeLen*sizeof(lcpInt));
    if(e) die(__func__);
  }
  else free(g->blockBeginsAt); // if used free storage for lcp values
  g->blockBeginsAt = NULL;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
testb $0x1, 0x71(%rax)
je 0x6aab
movq 0x10(%rsp), %rax
movq 0x98(%rax), %rdi
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rsi
shlq $0x0, %rsi
callq 0x2280
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0x6aa9
leaq 0xe8ac(%rip), %rdi      # 0x15350
callq 0x3ce0
jmp 0x6abc
movq 0x10(%rsp), %rax
movq 0x98(%rax), %rdi
callq 0x12940
movq 0x10(%rsp), %rax
movq $0x0, 0x98(%rax)
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: alloc_merge_array16
void alloc_merge_array16(g_data *g) {
  if(g->mmapZ) {
    g->mergeColor16 = mmap(NULL,g->mergeLen*sizeof(uint16_t),PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0);
    if(g->mergeColor16 == MAP_FAILED) die(__func__);
  }
  else {
    g->mergeColor16 =  calloc(g->mergeLen,sizeof(uint16_t)); 
     if(!g->mergeColor16) die(__func__);
  }
  g->mergeColor = g->newMergeColor = NULL;
  g->array32 = NULL;
  g->fmergeColor = NULL;
  g->fnewMergeColor = NULL;
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
movq (%rsp), %rax
testb $0x1, 0x70(%rax)
je 0x6b47
movq (%rsp), %rax
movq 0x28(%rax), %rsi
shlq %rsi
xorl %eax, %eax
movl %eax, %r9d
movl $0x3, %edx
movl $0x22, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movq %r9, %rdi
callq 0x2220
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x50f8(%rax)
movq (%rsp), %rax
movq $-0x1, %rcx
cmpq %rcx, 0x50f8(%rax)
jne 0x6b45
leaq 0xe81d(%rip), %rdi      # 0x1535d
callq 0x3ce0
jmp 0x6b83
movq (%rsp), %rax
movq 0x28(%rax), %rdi
movl $0x2, %esi
callq 0x12a60
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x50f8(%rax)
movq (%rsp), %rax
cmpq $0x0, 0x50f8(%rax)
jne 0x6b81
leaq 0xe7e1(%rip), %rdi      # 0x1535d
callq 0x3ce0
jmp 0x6b83
movq (%rsp), %rax
movq $0x0, 0x50f0(%rax)
movq (%rsp), %rax
movq $0x0, 0x50e8(%rax)
movq (%rsp), %rax
movq $0x0, 0x5100(%rax)
movq (%rsp), %rax
movq $0x0, 0x50c8(%rax)
movq (%rsp), %rax
movq $0x0, 0x50d0(%rax)
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: free_merge_array16
void free_merge_array16(g_data *g) {
  assert(g->mergeColor==NULL && g->newMergeColor==NULL && g->array32==NULL);
  if(g->mmapZ) {
    int e = munmap(g->mergeColor16,g->mergeLen*sizeof(uint16_t));
    if(e!=0) die("gap (unmap mergeColor16)");
  }
  else {
    free(g->mergeColor16);
  }
  g->mergeColor16 = NULL; // make sure it is no longer used
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
testb $0x1, 0x70(%rax)
je 0x6c1a
movq 0x10(%rsp), %rax
movq 0x50f8(%rax), %rdi
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rsi
shlq %rsi
callq 0x2280
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0x6c18
leaq 0xe75e(%rip), %rdi      # 0x15371
callq 0x3ce0
jmp 0x6c2b
movq 0x10(%rsp), %rax
movq 0x50f8(%rax), %rdi
callq 0x12940
movq 0x10(%rsp), %rax
movq $0x0, 0x50f8(%rax)
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: alloc_array32
void alloc_array32(g_data *g) {
  if(g->mmapZ) {
    g->array32 = mmap(NULL,g->mergeLen*sizeof(uint32_t),PROT_READ|PROT_WRITE,MAP_PRIVATE|MAP_ANONYMOUS,-1,0);
    if(g->array32 == MAP_FAILED) die(__func__);
  }
  else {
    g->array32 =  calloc(g->mergeLen,sizeof(uint32_t)); 
    if(!g->array32) die(__func__);
  }
  g->mergeColor = g->newMergeColor = NULL;
  g->mergeColor16 = NULL; // make sure it is not used
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
movq (%rsp), %rax
testb $0x1, 0x70(%rax)
je 0x6ca8
movq (%rsp), %rax
movq 0x28(%rax), %rsi
shlq $0x2, %rsi
xorl %eax, %eax
movl %eax, %r9d
movl $0x3, %edx
movl $0x22, %ecx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movq %r9, %rdi
callq 0x2220
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x5100(%rax)
movq (%rsp), %rax
movq $-0x1, %rcx
cmpq %rcx, 0x5100(%rax)
jne 0x6ca6
leaq 0xe6e9(%rip), %rdi      # 0x1538a
callq 0x3ce0
jmp 0x6ce4
movq (%rsp), %rax
movq 0x28(%rax), %rdi
movl $0x4, %esi
callq 0x12a60
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, 0x5100(%rax)
movq (%rsp), %rax
cmpq $0x0, 0x5100(%rax)
jne 0x6ce2
leaq 0xe6ad(%rip), %rdi      # 0x1538a
callq 0x3ce0
jmp 0x6ce4
movq (%rsp), %rax
movq $0x0, 0x50f0(%rax)
movq (%rsp), %rax
movq $0x0, 0x50e8(%rax)
movq (%rsp), %rax
movq $0x0, 0x50f8(%rax)
popq %rax
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/util.c
// Function: free_array32
void free_array32(g_data *g) {
  assert(g->mergeColor==NULL && g->newMergeColor==NULL && g->mergeColor16 == NULL);
  if(g->mmapZ) {
    int e = munmap(g->array32,g->mergeLen*sizeof(uint32_t));
    if(e!=0) die("gap (unmap array32)");
  }
  else {
    free(g->array32);
  }
  g->array32 = NULL; // make sure it is no longer used
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
testb $0x1, 0x70(%rax)
je 0x6d6b
movq 0x10(%rsp), %rax
movq 0x5100(%rax), %rdi
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rsi
shlq $0x2, %rsi
callq 0x2280
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
je 0x6d69
leaq 0xe634(%rip), %rdi      # 0x15398
callq 0x3ce0
jmp 0x6d7c
movq 0x10(%rsp), %rax
movq 0x5100(%rax), %rdi
callq 0x12940
movq 0x10(%rsp), %rax
movq $0x0, 0x5100(%rax)
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/io.c
// Function: open_bw_files
void open_bw_files(g_data *g) {
  assert(g->extMem);
  g->bwf = malloc(g->numBwt*sizeof(FILE *));
  if(g->bwf==NULL) die(__func__);
  for(int i=0; i< g->numBwt; i++) {
    g->bwf[i] = fopen(g->bwfname,"r");
    if(!g->bwf[i]) die(__func__);
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movslq 0x20(%rax), %rdi
shlq $0x3, %rdi
callq 0x127b0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x50a0(%rax)
movq 0x10(%rsp), %rax
cmpq $0x0, 0x50a0(%rax)
jne 0x6de5
leaq 0xe6f0(%rip), %rdi      # 0x154d0
callq 0x3ce0
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
movq 0x10(%rsp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x6e5e
movq 0x10(%rsp), %rdi
addq $0xa0, %rdi
leaq 0xf46b(%rip), %rsi      # 0x16279
callq 0x21d0
movq %rax, %rdx
movq 0x10(%rsp), %rax
movq 0x50a0(%rax), %rax
movslq 0xc(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x10(%rsp), %rax
movq 0x50a0(%rax), %rax
movslq 0xc(%rsp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x6e4f
leaq 0xe686(%rip), %rdi      # 0x154d0
callq 0x3ce0
jmp 0x6e51
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x6ded
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/io.c
// Function: rewind_bw_files
void rewind_bw_files(g_data *g) {
  assert(g->extMem);
  for(int i=0; i< g->numBwt; i++) {
    int e = fseek(g->bwf[i],sizeof(symbol)*(g->bws[i]-g->bws[0]+g->symb_offset),SEEK_SET);
    if(e!=0) die(__func__);
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
movq 0x10(%rsp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x6efd
movq 0x10(%rsp), %rax
movq 0x50a0(%rax), %rax
movslq 0xc(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rax
movslq 0xc(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rax
subq %rax, %rsi
movq 0x10(%rsp), %rax
addq 0x30(%rax), %rsi
shlq $0x0, %rsi
xorl %edx, %edx
callq 0x2250
movl %eax, 0x8(%rsp)
cmpl $0x0, 0x8(%rsp)
je 0x6eee
leaq 0xe5f5(%rip), %rdi      # 0x154de
callq 0x3ce0
jmp 0x6ef0
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x6e81
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/io.c
// Function: close_bw_files
void close_bw_files(g_data *g) {
  assert(g->extMem);
  for(int i=0; i< g->numBwt; i++) {
    int e = fclose(g->bwf[i]);
    if(e!=0) die(__func__);
  }
  free(g->bwf);
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
movq 0x10(%rsp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x6f6f
movq 0x10(%rsp), %rax
movq 0x50a0(%rax), %rax
movslq 0xc(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x20d0
movl %eax, 0x8(%rsp)
cmpl $0x0, 0x8(%rsp)
je 0x6f60
leaq 0xe593(%rip), %rdi      # 0x154ee
callq 0x3ce0
jmp 0x6f62
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x6f21
movq 0x10(%rsp), %rax
movq 0x50a0(%rax), %rdi
callq 0x12940
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/io.c
// Function: open_sa_files
void open_sa_files(g_data *g) {
  assert(g->extMem);
  g->saf = malloc(g->numBwt*sizeof(FILE *));
  if(g->saf==NULL) die(__func__);
  for(int i=0; i< g->numBwt; i++) {
    g->saf[i] = fopen(g->safname,"r");
    if(!g->saf[i]) die(__func__);
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movslq 0x20(%rax), %rdi
shlq $0x3, %rdi
callq 0x127b0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x50b0(%rax)
movq 0x10(%rsp), %rax
cmpq $0x0, 0x50b0(%rax)
jne 0x6fd5
leaq 0xe52d(%rip), %rdi      # 0x154fd
callq 0x3ce0
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
movq 0x10(%rsp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x704e
movq 0x10(%rsp), %rdi
addq $0x20a0, %rdi           # imm = 0x20A0
leaq 0xf27b(%rip), %rsi      # 0x16279
callq 0x21d0
movq %rax, %rdx
movq 0x10(%rsp), %rax
movq 0x50b0(%rax), %rax
movslq 0xc(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x10(%rsp), %rax
movq 0x50b0(%rax), %rax
movslq 0xc(%rsp), %rcx
cmpq $0x0, (%rax,%rcx,8)
jne 0x703f
leaq 0xe4c3(%rip), %rdi      # 0x154fd
callq 0x3ce0
jmp 0x7041
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x6fdd
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/io.c
// Function: rewind_sa_files
void rewind_sa_files(g_data *g) {
  assert(g->extMem);
  for(int i=0; i< g->numBwt; i++) {
    int e = fseek(g->saf[i],(g->outputSA)*(g->bws[i]-g->bws[0]+g->symb_offset),SEEK_SET);
    if(e!=0) die(__func__);
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
movq 0x10(%rsp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x70f9
movq 0x10(%rsp), %rax
movq 0x50b0(%rax), %rax
movslq 0xc(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
movq 0x10(%rsp), %rax
movslq 0x4c(%rax), %rsi
movq 0x10(%rsp), %rax
movq (%rax), %rax
movslq 0xc(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x10(%rsp), %rcx
movq (%rcx), %rcx
movq (%rcx), %rcx
subq %rcx, %rax
movq 0x10(%rsp), %rcx
addq 0x30(%rcx), %rax
imulq %rax, %rsi
xorl %edx, %edx
callq 0x2250
movl %eax, 0x8(%rsp)
cmpl $0x0, 0x8(%rsp)
je 0x70e7
leaq 0xe429(%rip), %rdi      # 0x1550b
callq 0x3ce0
jmp 0x70e9
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x7071
addq $0x18, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/felipelouza[P]egap/io.c
// Function: close_sa_files
void close_sa_files(g_data *g) {
  assert(g->extMem);
  for(int i=0; i< g->numBwt; i++) {
    int e = fclose(g->saf[i]);
    if(e!=0) die(__func__);
  }
  free(g->saf);
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
movq 0x10(%rsp), %rcx
cmpl 0x20(%rcx), %eax
jge 0x715f
movq 0x10(%rsp), %rax
movq 0x50b0(%rax), %rax
movslq 0xc(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x20d0
movl %eax, 0x8(%rsp)
cmpl $0x0, 0x8(%rsp)
je 0x7150
leaq 0xe3d0(%rip), %rdi      # 0x1551b
callq 0x3ce0
jmp 0x7152
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x7111
movq 0x10(%rsp), %rax
movq 0x50b0(%rax), %rdi
callq 0x12940
addq $0x18, %rsp
retq
nopw %cs:(%rax,%rax)