// File: /workspace/github_c_makefile_star2_O3/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 0x203dc(%rip), %rsi     # 0x23190
callq 0x2220
testq %rax, %rax
je 0x307c
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x21e0
movq %r14, %rdi
callq 0x2160
movq %rax, %r12
movq %r14, %rdi
callq 0x20f0
leal 0x1(%r12), %edi
movl $0x1, %esi
callq 0x2130
movq %rax, %r13
movl %r12d, %r15d
movl $0x1, %esi
movq %rax, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x2070
cmpl %r12d, %eax
jne 0x3085
movb $0x0, (%r13,%r15)
movq %r14, %rdi
callq 0x20a0
movb (%r13), %bl
testb %bl, %bl
je 0x2ebe
xorl %eax, %eax
movl %ebx, %r8d
movq %r13, %rdx
xorl %ecx, %ecx
movl %ebx, %esi
xorl %r9d, %r9d
cmpb $0xa, %sil
movb 0x1(%rdx,%r9), %sil
je 0x2e56
incq %r9
testb %sil, %sil
jne 0x2e41
jmp 0x2e75
leaq 0x1(%r9), %rdi
cmpb $0x63, %r8b
cmovel %eax, %edi
addl %ecx, %edi
addq %r9, %rdx
incq %rdx
movl %esi, %r8d
movl %edi, %ecx
testb %sil, %sil
jne 0x2e3e
jmp 0x2e85
xorl %eax, %eax
cmpb $0x63, %r8b
cmovel %eax, %r9d
addl %ecx, %r9d
movl %r9d, %edi
incl %edi
movl $0x1, %esi
callq 0x2130
movq %rax, %r14
movq %r13, %rcx
movl %ebx, %edx
incq %rcx
cmpb $0x63, %bl
je 0x2ea6
movb %dl, (%rax)
incq %rax
cmpb $0xa, %dl
movb (%rcx), %dl
je 0x2eb6
incq %rcx
testb %dl, %dl
jne 0x2e9c
jmp 0x2ed0
movl %edx, %ebx
testb %dl, %dl
jne 0x2e99
jmp 0x2ed0
movl $0x1, %edi
movl $0x1, %esi
callq 0x2130
movq %rax, %r14
movq %r13, 0x18(%rsp)
movb $0x0, (%rax)
movl $0x20, %edi
callq 0x21b0
movq %rax, %r15
leaq 0x202df(%rip), %rsi     # 0x231cb
movq %r14, %rdi
callq 0x2230
movl $0x1, %ebx
movl $0x1, %edi
testq %rax, %rax
je 0x2f12
cmpb $0x70, (%rax)
jne 0x2f12
xorl %edi, %edi
cmpb $0x0, 0x1(%rax)
setne %dil
movq %r14, 0x10(%rsp)
leaq 0x202b4(%rip), %rsi     # 0x231d2
callq 0x3666
leaq 0x202a1(%rip), %rsi     # 0x231cb
xorl %edi, %edi
callq 0x2230
testq %rax, %rax
je 0x2f4c
leaq 0x20206(%rip), %rsi     # 0x23143
movq %rax, %rdi
callq 0x2140
xorl %ebx, %ebx
testl %eax, %eax
setne %bl
leaq 0x2027f(%rip), %rsi     # 0x231d2
movl %ebx, %edi
callq 0x3666
callq 0x3674
movslq %eax, %r12
movq %r12, (%r15)
callq 0x3674
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 0x304c
xorl %r13d, %r13d
leaq 0x20235(%rip), %rbx     # 0x231eb
callq 0x3674
xorl %r15d, %r15d
testl %eax, %eax
je 0x2fe4
movslq %eax, %rbp
xorl %edi, %edi
cmpq %r12, %r15
setge %dil
movq %rbx, %rsi
callq 0x3666
movq %rbp, (%r14,%r15,8)
incq %r15
callq 0x3674
jmp 0x2fbe
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 0x3039
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 0x2fb6
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 0x20110(%rip), %rdi     # 0x23193
jmp 0x308c
leaq 0x20123(%rip), %rdi     # 0x231af
movq %rbx, %rsi
xorl %eax, %eax
callq 0x20e0
movl $0x1, %edi
callq 0x2280