// File: /workspace/github_c_makefile_star2_O2/randyrossi[P]fisher-modem/fifi/src/fifi.C
// Function: main
global int main(int argc, char** argv) {
  // set_new_handler(newhandler);
  unless(argc == 3) {
    usage();
    return 2;
  }
  tempfile = tmpfile();
  if (tempfile == NULL)
    giveup("can't create temp file");
  sourcefn = argv[1];
  infile = openfile(sourcefn, "r");
  outfile = openfile(argv[2], "w");
  pass1();
  rewind(tempfile);
  pass2();
  fclose(tempfile);
  fclose(infile);
  fclose(outfile);
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x178, %rsp            # imm = 0x178
cmpl $0x3, %edi
jne 0x1650
movq %rsi, %r14
callq 0x1120
testq %rax, %rax
je 0x1689
movq %rax, %r13
movq 0x8(%r14), %rdi
leaq 0xea3(%rip), %rsi       # 0x2148
movq %rdi, 0x10(%rsp)
callq 0x16e2
movq %rax, %r12
movq 0x10(%r14), %rdi
leaq 0xd5e(%rip), %rsi       # 0x201b
callq 0x16e2
movq %rax, 0x2e17(%rip)      # 0x40e0
leaq 0xd83(%rip), %rsi       # 0x2053
leaq 0x70(%rsp), %rdi
callq 0x16fb
andl $0x0, 0x2e07(%rip)      # 0x40e8
movq %r12, %rdi
callq 0x1716
movl %eax, %r14d
pushq $0x20
popq %rdi
callq 0x1030
movq %rax, %r15
xorl %ebp, %ebp
movq %r13, 0x20(%rsp)
movq %r12, 0x18(%rsp)
movslq %ebp, %rbx
leaq 0x70(%rsp), %rdi
testb $0x1, %r14b
je 0x13d0
leaq 0x2dd4(%rip), %rsi      # 0x40f0
pushq $0x4
popq %rdx
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x1110
testl %eax, %eax
jne 0x13b8
movl 0x8(%r15), %edi
movl 0xc(%r15), %esi
callq 0x1784
movq %rax, %r14
movl 0x10(%r15), %edi
movl 0x14(%r15), %esi
callq 0x1784
movq %rax, %r12
movl 0x18(%r15), %edi
movl 0x1c(%r15), %esi
callq 0x1784
cmpl $0x64, %ebp
jge 0x167d
movq %rax, %r13
incl %ebp
leaq 0x2e8c(%rip), %rax      # 0x4200
movq %r12, (%rax,%rbx,8)
leaq 0x2d71(%rip), %rdi      # 0x40f0
leaq 0xd02(%rip), %rsi       # 0x2088
movq %r14, %rdx
movl %ebp, %ecx
movq %r13, %r8
xorl %eax, %eax
callq 0x1050
movq %r14, %rdi
pushq $0x1
popq %rbx
movq %rbx, %rsi
callq 0x10c0
movq %r13, %rdi
movq %rbx, %rsi
callq 0x10c0
movq 0x20(%rsp), %r13
movq 0x18(%rsp), %r12
movq %r13, %rdi
callq 0x17c4
movq %r12, %rdi
callq 0x1716
movl %eax, %r14d
jmp 0x1303
callq 0x10b0
movq %r13, %rdi
callq 0x1040
leaq 0xcda(%rip), %rsi       # 0x20be
leaq 0x30(%rsp), %r14
movq %r14, %rdi
callq 0x16fb
andl $0x0, 0x2cf0(%rip)      # 0x40e8
movq %r13, %rdi
callq 0x1716
movl %eax, %ebp
movl 0x2ce0(%rip), %edi      # 0x40e8
movq 0x10(%rsp), %rsi
callq 0x17e3
movl %ebp, %eax
xorl %r12d, %r12d
leaq 0x2cd2(%rip), %r15      # 0x40f0
testb $0x1, %al
je 0x1456
testb $0x1, %r12b
jne 0x1456
movq 0x2cb1(%rip), %rdi      # 0x40e0
callq 0x17c4
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x1110
testl %eax, %eax
sete %r12b
movq %r13, %rdi
callq 0x1716
jmp 0x141e
movb %al, 0xf(%rsp)
testb $0x1, %r12b
je 0x1695
leaq 0xca8(%rip), %rsi       # 0x2113
pushq $0x1
popq %rdi
callq 0x17e3
movq 0x2c66(%rip), %rsi      # 0x40e0
pushq $0xa
popq %rdi
callq 0x1150
leaq 0xcb8(%rip), %rbp       # 0x2141
movabsq $0x100000000, %r12      # imm = 0x100000000
leaq 0xcea(%rip), %r14       # 0x2184
xorl %r13d, %r13d
movq %rbx, 0x28(%rsp)
cmpq %rbx, %r13
jge 0x15de
leaq 0x2d4e(%rip), %rax      # 0x4200
movq (%rax,%r13,8), %r15
movq %r15, %rdi
callq 0x1080
movq %rbp, %rcx
cmpl $0x3, %eax
jl 0x14ec
cmpb $0x2d, (%r15)
movq %rbp, %rcx
jne 0x14ec
cmpb $0x41, 0x1(%r15)
movq %rbp, %rcx
jne 0x14ec
cmpb $0x76, 0x2(%r15)
movq %rbp, %rcx
leaq 0xc4f(%rip), %rax       # 0x2137
cmoveq %rax, %rcx
movq %rbp, %rbx
leaq 0x70(%rsp), %rbp
movq %rbp, %rdi
leaq 0xc4c(%rip), %rsi       # 0x214a
leaq 0xc54(%rip), %rdx       # 0x2159
movq %r15, %r8
xorl %eax, %eax
callq 0x1050
movq %rbp, %rcx
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
addq %r12, %rax
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0x151c
sarq $0x20, %rax
leaq (%rsp,%rax), %rdi
addq $0x70, %rdi
leaq 0xc28(%rip), %rsi       # 0x2163
leaq 0xc17(%rip), %rdx       # 0x2159
xorl %eax, %eax
callq 0x1050
leaq 0x70(%rsp), %rdi
leaq 0xbf3(%rip), %rsi       # 0x2148
callq 0x1070
testq %rax, %rax
je 0x1671
movq %rax, %r15
movq %rax, %rdi
callq 0x1060
incq %r13
movq %rbx, %rbp
movq 0x28(%rsp), %rbx
testl %eax, %eax
js 0x15ac
movq 0x2b5c(%rip), %rsi      # 0x40e0
cmpl $0x24, %eax
jne 0x159b
movq %rsi, %rdi
movq %r14, %rsi
movl %r13d, %edx
xorl %eax, %eax
callq 0x1140
jmp 0x15a2
movl %eax, %edi
callq 0x1150
movq %r15, %rdi
callq 0x1060
jmp 0x1579
movq %r15, %rdi
callq 0x1130
testl %eax, %eax
je 0x14a2
movq 0x2a1d(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
leaq 0xbba(%rip), %rsi       # 0x2187
leaq 0x70(%rsp), %rdx
xorl %eax, %eax
callq 0x1140
jmp 0x14a2
movl 0x2b04(%rip), %edi      # 0x40e8
movq 0x10(%rsp), %rsi
callq 0x17e3
movq 0x20(%rsp), %rbx
movq 0x18(%rsp), %r14
movb 0xf(%rsp), %al
testb $0x1, %al
je 0x1616
movq 0x2ad9(%rip), %rdi      # 0x40e0
callq 0x17c4
movq %rbx, %rdi
callq 0x1716
jmp 0x15fc
leaq 0x30(%rsp), %rdi
callq 0x10b0
movq %rbx, %rdi
callq 0x10a0
movq %r14, %rdi
callq 0x10a0
movq 0x2aa9(%rip), %rdi      # 0x40e0
callq 0x10a0
xorl %eax, %eax
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2989(%rip), %rax      # 0x3fe0
movq (%rax), %rcx
leaq 0x9bc(%rip), %rdi       # 0x201d
pushq $0x1b
popq %rsi
pushq $0x1
popq %rdx
callq 0x1160
pushq $0x2
popq %rax
jmp 0x163e
leaq 0xaf9(%rip), %rdi       # 0x2171
callq 0x16a1
leaq 0x9ed(%rip), %rdi       # 0x2071
callq 0x16a1
leaq 0x974(%rip), %rdi       # 0x2004
callq 0x16a1
leaq 0xa43(%rip), %rdi       # 0x20df
callq 0x16a1