// File: /workspace/github_c_makefile_star2_O3/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 0x176d
movq %rsi, %rbx
callq 0x1120
testq %rax, %rax
je 0x17a9
movq %rax, %r12
movq 0x8(%rbx), %rdi
leaq 0xe83(%rip), %rsi       # 0x2148
movq %rdi, 0x10(%rsp)
callq 0x10f0
testq %rax, %rax
je 0x1791
movq %rax, %r14
movq 0x10(%rbx), %rdi
leaq 0xd35(%rip), %rsi       # 0x201b
callq 0x10f0
testq %rax, %rax
je 0x1791
movq %rax, %r15
leaq 0xd55(%rip), %rsi       # 0x2053
leaq 0x70(%rsp), %rdi
callq 0x17fe
movl $0x0, 0x2dce(%rip)      # 0x40e0
movq %r14, %rdi
callq 0x181b
movl %eax, %ebx
movl $0x20, %edi
callq 0x1030
movl $0x0, (%rsp)
testb %bl, %bl
movq %r12, 0x20(%rsp)
movq %r14, 0x18(%rsp)
je 0x14a7
movq %rax, %r13
leaq 0x2da7(%rip), %rbx      # 0x40f0
leaq 0x70(%rsp), %rbp
movl $0x0, (%rsp)
movq %rax, 0x28(%rsp)
movl $0x4, %edx
movq %rbp, %rdi
movq %rbx, %rsi
movq %r13, %rcx
xorl %r8d, %r8d
callq 0x1110
testl %eax, %eax
jne 0x147f
movslq 0x8(%r13), %rbx
movslq 0xc(%r13), %rbp
subq %rbx, %rbp
leaq 0x1(%rbp), %rdi
callq 0x1030
movq %r13, %r14
movq %rax, %r12
leaq 0x2d57(%rip), %r13      # 0x40f0
addq %r13, %rbx
movq %rax, %rdi
movq %rbx, %rsi
movq %rbp, %rdx
callq 0x1090
xorl %eax, %eax
movq %r12, 0x8(%rsp)
movb %al, (%r12,%rbp)
movslq 0x10(%r14), %rbp
movslq 0x14(%r14), %r12
subq %rbp, %r12
leaq 0x1(%r12), %rdi
callq 0x1030
movq %rax, %rbx
addq %r13, %rbp
movq %rax, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x1090
xorl %eax, %eax
movb %al, (%rbx,%r12)
movslq 0x18(%r14), %r12
movslq 0x1c(%r14), %r14
subq %r12, %r14
leaq 0x1(%r14), %rdi
callq 0x1030
movq %rax, %rbp
addq %r13, %r12
movq %rax, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x1090
xorl %eax, %eax
movb %al, (%rbp,%r14)
movl (%rsp), %ecx
cmpl $0x64, %ecx
jge 0x1785
movslq %ecx, %rax
incl %ecx
leaq 0x2dd5(%rip), %rdx      # 0x4200
movq %rbx, (%rdx,%rax,8)
movq %r13, %rbx
movq %r13, %rdi
leaq 0xc4c(%rip), %rsi       # 0x2088
movq 0x8(%rsp), %r14
movq %r14, %rdx
movl %ecx, (%rsp)
movq %rbp, %r8
xorl %eax, %eax
callq 0x1050
movl $0x1, %esi
movq %r14, %rdi
callq 0x10c0
movl $0x1, %esi
movq %rbp, %rdi
callq 0x10c0
movq 0x20(%rsp), %r12
movq 0x18(%rsp), %r14
movq 0x28(%rsp), %r13
leaq 0x70(%rsp), %rbp
movq %rbx, %rdi
movq %r12, %rsi
callq 0x10d0
movl $0xa, %edi
movq %r12, %rsi
callq 0x1150
movq %r14, %rdi
callq 0x181b
testb %al, %al
jne 0x135a
leaq 0x70(%rsp), %rdi
callq 0x10b0
movq %r12, %rdi
callq 0x1040
leaq 0xbfe(%rip), %rsi       # 0x20be
leaq 0x30(%rsp), %rdi
callq 0x17fe
movl $0x0, 0x2c0c(%rip)      # 0x40e0
movq %r12, %rdi
callq 0x181b
movl %eax, %ebx
movl 0x2bfc(%rip), %edx      # 0x40e0
leaq 0xc3d(%rip), %rsi       # 0x2128
movq %r15, %rdi
movq 0x10(%rsp), %rcx
xorl %eax, %eax
callq 0x1140
testb %bl, %bl
je 0x179d
leaq 0x2be7(%rip), %rbx      # 0x40f0
leaq 0x30(%rsp), %r14
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10d0
movl $0xa, %edi
movq %r15, %rsi
callq 0x1150
movq %r14, %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x1110
movl %eax, %ebp
movq %r12, %rdi
callq 0x181b
testb %al, %al
je 0x154a
testl %ebp, %ebp
jne 0x150e
movb %al, 0x8(%rsp)
testl %ebp, %ebp
jne 0x179d
leaq 0xbcb(%rip), %rsi       # 0x2128
leaq 0xbaf(%rip), %rcx       # 0x2113
movq %r15, %rdi
movl $0x1, %edx
xorl %eax, %eax
callq 0x1140
movl $0xa, %edi
movq %r15, %rsi
callq 0x1150
movl (%rsp), %eax
testl %eax, %eax
jle 0x16e0
movl %eax, %eax
movq %rax, (%rsp)
leaq 0xba9(%rip), %r12       # 0x2141
leaq 0xbe5(%rip), %rbp       # 0x2184
movabsq $0x100000000, %r14      # imm = 0x100000000
xorl %r13d, %r13d
leaq 0x2c4d(%rip), %rax      # 0x4200
movq (%rax,%r13,8), %rbx
movq %rbx, %rdi
callq 0x1080
movq %r12, %rcx
cmpl $0x3, %eax
jl 0x15ea
cmpb $0x2d, (%rbx)
movq %r12, %rcx
jne 0x15ea
cmpb $0x41, 0x1(%rbx)
movq %r12, %rcx
jne 0x15ea
cmpb $0x76, 0x2(%rbx)
movq %r12, %rcx
leaq 0xb51(%rip), %rax       # 0x2137
cmoveq %rax, %rcx
leaq 0x70(%rsp), %rdi
leaq 0xb54(%rip), %rsi       # 0x214a
leaq 0xb5c(%rip), %rdx       # 0x2159
movq %rbx, %r8
xorl %eax, %eax
callq 0x1050
cmpb $0x0, 0x70(%rsp)
je 0x1627
leaq 0x71(%rsp), %rcx
xorl %eax, %eax
addq %r14, %rax
cmpb $0x0, (%rcx)
leaq 0x1(%rcx), %rcx
jne 0x1615
sarq $0x20, %rax
jmp 0x1629
xorl %eax, %eax
leaq (%rsp,%rax), %rdi
addq $0x70, %rdi
leaq 0xb2b(%rip), %rsi       # 0x2163
leaq 0xb1a(%rip), %rdx       # 0x2159
xorl %eax, %eax
callq 0x1050
leaq 0x70(%rsp), %rdi
leaq 0xaf6(%rip), %rsi       # 0x2148
callq 0x1070
testq %rax, %rax
je 0x1779
movq %rax, %r12
movq %rax, %rdi
callq 0x1060
testl %eax, %eax
js 0x169f
leal 0x1(%r13), %ebx
cmpl $0x24, %eax
jne 0x1689
movq %r15, %rdi
movq %rbp, %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x1140
jmp 0x1693
movl %eax, %edi
movq %r15, %rsi
callq 0x1150
movq %r12, %rdi
callq 0x1060
testl %eax, %eax
jns 0x1673
movq %r12, %rdi
callq 0x1130
testl %eax, %eax
jne 0x16c1
incq %r13
cmpq (%rsp), %r13
leaq 0xa88(%rip), %r12       # 0x2141
jb 0x15ac
jmp 0x16e0
movq 0x2918(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
leaq 0xab5(%rip), %rsi       # 0x2187
leaq 0x70(%rsp), %rdx
xorl %eax, %eax
callq 0x1140
jmp 0x16ab
movl 0x29fa(%rip), %edx      # 0x40e0
leaq 0xa3b(%rip), %rsi       # 0x2128
xorl %ebp, %ebp
movq %r15, %rdi
movq 0x10(%rsp), %rcx
xorl %eax, %eax
callq 0x1140
cmpb $0x0, 0x8(%rsp)
movq 0x20(%rsp), %r14
je 0x1735
leaq 0x29df(%rip), %rbx      # 0x40f0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x10d0
movl $0xa, %edi
movq %r15, %rsi
callq 0x1150
movq %r14, %rdi
callq 0x181b
testb %al, %al
jne 0x1711
leaq 0x30(%rsp), %rdi
callq 0x10b0
movq %r14, %rdi
callq 0x10a0
movq 0x18(%rsp), %rdi
callq 0x10a0
movq %r15, %rdi
callq 0x10a0
movl %ebp, %eax
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1180
movl $0x2, %ebp
jmp 0x1759
leaq 0x9f1(%rip), %rdi       # 0x2171
callq 0x17b5
leaq 0x8e5(%rip), %rdi       # 0x2071
callq 0x17b5
leaq 0x8a1(%rip), %rdi       # 0x2039
callq 0x17b5
leaq 0x93b(%rip), %rdi       # 0x20df
callq 0x17b5
leaq 0x854(%rip), %rdi       # 0x2004
callq 0x17b5