// File: /workspace/github_c_makefile_star2_O1/UCLA-StarAI[P]TrimBN/src/fnf/io.c
// Function: read_fnf
Fnf* read_fnf(const char* filename) {
  char* buffer = read_file(filename);
  char* filtered = filter_comments(buffer);
  Fnf* fnf = parse_fnf_file(filtered);
  //cleanup
  free(buffer);
  free(filtered);
  return fnf;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x203d8(%rip), %rsi     # 0x23190
callq 0x2220
testq %rax, %rax
je 0x3063
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x21e0
movq %r15, %rdi
callq 0x2160
movq %rax, %r13
movq %r15, %rdi
callq 0x20f0
leal 0x1(%r13), %edi
movl $0x1, %r14d
movl $0x1, %esi
callq 0x2130
movq %rax, %rbp
movl %r13d, %r12d
movl $0x1, %esi
movq %rax, %rdi
movq %r12, %rdx
movq %r15, %rcx
callq 0x2070
cmpl %r13d, %eax
jne 0x306c
movb $0x0, (%rbp,%r12)
movq %r15, %rdi
callq 0x20a0
movb (%rbp), %bl
testb %bl, %bl
je 0x2e69
xorl %eax, %eax
movl %ebx, %edx
movq %rbp, %rcx
xorl %r14d, %r14d
xorl %esi, %esi
movb (%rcx,%rsi), %dil
testb %dil, %dil
je 0x2e54
incq %rsi
cmpb $0xa, %dil
jne 0x2e42
addq %rsi, %rcx
cmpb $0x63, %dl
cmovel %eax, %esi
addl %esi, %r14d
movb (%rcx), %dl
testb %dl, %dl
jne 0x2e40
incl %r14d
movl $0x1, %esi
movq %r14, %rdi
callq 0x2130
movq %rax, %r14
testb %bl, %bl
je 0x2ea1
movq %r14, %rax
movq %rbp, %rcx
movb (%rcx), %dl
testb %dl, %dl
je 0x2e9b
cmpb $0x63, %bl
je 0x2e93
movb %dl, (%rax)
incq %rax
incq %rcx
cmpb $0xa, %dl
jne 0x2e83
movb (%rcx), %bl
testb %bl, %bl
jne 0x2e83
movb $0x0, (%rax)
movl $0x20, %edi
callq 0x21b0
movq %rax, %r15
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x20305(%rip), %rsi     # 0x231cb
movq %r14, %rdi
callq 0x2230
movl $0x1, %ebx
movl $0x1, %edi
testq %rax, %rax
je 0x2ef4
leaq 0x214b6(%rip), %rsi     # 0x2439a
movq %rax, %rdi
callq 0x2140
xorl %edi, %edi
testl %eax, %eax
setne %dil
movq %r14, 0x10(%rsp)
movq %rbp, 0x18(%rsp)
leaq 0x202cd(%rip), %rsi     # 0x231d2
callq 0x364d
leaq 0x202ba(%rip), %rsi     # 0x231cb
xorl %edi, %edi
callq 0x2230
testq %rax, %rax
je 0x2f33
leaq 0x2021f(%rip), %rsi     # 0x23143
movq %rax, %rdi
callq 0x2140
xorl %ebx, %ebx
testl %eax, %eax
setne %bl
leaq 0x20298(%rip), %rsi     # 0x231d2
movl %ebx, %edi
callq 0x364d
callq 0x365b
movslq %eax, %r12
movq %r12, (%r15)
callq 0x365b
movslq %eax, %rbx
movq %rbx, 0x8(%r15)
movl $0x30, %esi
movq %rbx, %rdi
callq 0x2130
movq %r15, 0x8(%rsp)
movq %rax, 0x20(%rsp)
movq %rax, 0x10(%r15)
addq %r12, %r12
movl $0x8, %esi
movq %r12, %rdi
callq 0x2130
movq %rax, %r14
movq %rbx, 0x28(%rsp)
testl %ebx, %ebx
je 0x3033
xorl %r13d, %r13d
leaq 0x2024e(%rip), %rbx     # 0x231eb
callq 0x365b
xorl %r15d, %r15d
testl %eax, %eax
je 0x2fcb
movslq %eax, %rbp
xorl %edi, %edi
cmpq %r12, %r15
setge %dil
movq %rbx, %rsi
callq 0x364d
movq %rbp, (%r14,%r15,8)
incq %r15
callq 0x365b
jmp 0x2fa5
leaq (,%r13,2), %rbp
addq %r13, %rbp
shlq $0x4, %rbp
movq %r13, %rax
movq 0x20(%rsp), %r13
movq %rax, 0x30(%rsp)
movq %rax, (%r13,%rbp)
andb $-0x2, 0x28(%r13,%rbp)
movq %r15, 0x8(%r13,%rbp)
movl $0x8, %esi
movq %r15, %rdi
callq 0x2130
movq %rax, 0x10(%r13,%rbp)
testq %r15, %r15
jle 0x3020
shlq $0x3, %r15
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x2180
movq 0x30(%rsp), %r13
incq %r13
cmpq 0x28(%rsp), %r13
jne 0x2f9d
movq %r14, %rdi
callq 0x2030
movq 0x18(%rsp), %rdi
callq 0x2030
movq 0x10(%rsp), %rdi
callq 0x2030
movq 0x8(%rsp), %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20129(%rip), %rdi     # 0x23193
jmp 0x3073
leaq 0x2013c(%rip), %rdi     # 0x231af
movq %rbx, %rsi
xorl %eax, %eax
callq 0x20e0
movl $0x1, %edi
callq 0x2280