// File: /workspace/github_c_makefile_star2_O3/ieyasu[P]funit/funit.c
// Function: main
int main(int argc, char **argv)
{
    struct Config conf;
    struct Options opts;

    if (parse_args(argc, argv, &opts)) {
        return -1;
    }

    if (read_config(&conf)) {
        free_config(&conf);
        return -1;
    }

    while (optind < argc) {
printf("generating code from %s to %s\n", argv[optind], opts.outfile);

        struct TestFile *tf = generate_code(argv[optind], opts.outfile, &conf);
        if (tf) {
            if (opts.just_output_fortran) goto pass;
printf("building test for %s\n", opts.outfile);
            build_test(tf, &conf);

            if (opts.stop_after_build) goto pass;
printf("running test %s\n", tf->exe);
            run_test(tf->exe);

 pass:
            close_testfile(tf);
        } // XXX what does it mean if tf == NULL?

        optind++;
    }

    free_config(&conf);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rsi, %rbx
movl %edi, %ebp
xorl %r13d, %r13d
leaq 0x4901(%rip), %r15      # 0x704a
movq 0x9888(%rip), %r12      # 0xbfd8
movl $0x0, 0x4(%rsp)
xorl %r14d, %r14d
movl %ebp, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2220
cmpl $0x6f, %eax
jne 0x2773
movq (%r12), %r14
jmp 0x275b
cmpl $0x44, %eax
jle 0x27d2
cmpl $0x45, %eax
je 0x27ae
cmpl $0x63, %eax
jne 0x2be6
movl $0x1, 0x4(%rsp)
testl %r13d, %r13d
movl $0x0, %r13d
je 0x275b
callq 0x22dc
movl $0x1, %r13d
movl $0x1, 0x4(%rsp)
jmp 0x275b
movl $0x1, %r13d
cmpl $0x0, 0x4(%rsp)
movl $0x0, 0x4(%rsp)
je 0x275b
callq 0x22f2
movl $0x0, 0x4(%rsp)
jmp 0x275b
cmpl $-0x1, %eax
jne 0x2bf5
movq 0x97ee(%rip), %rax      # 0xbfd0
movl (%rax), %eax
cmpl %ebp, %eax
je 0x2c04
testq %r14, %r14
setne %cl
incl %eax
cmpl %ebp, %eax
setl %al
andb %cl, %al
cmpb $0x1, %al
je 0x2c11
leaq 0x28(%rsp), %rdi
callq 0x3458
testl %eax, %eax
je 0x2825
leaq 0x28(%rsp), %rdi
callq 0x39af
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x2bd7
movq %r13, 0x20(%rsp)
movq 0x979f(%rip), %r12      # 0xbfd0
movl (%r12), %eax
cmpl %ebp, %eax
jge 0x2bcb
leaq 0x47c0(%rip), %r15      # 0x7004
movl %ebp, 0x10(%rsp)
cltq
movq (%rbx,%rax,8), %rsi
movq %r15, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x2100
movslq (%r12), %rax
movq (%rbx,%rax,8), %r13
movq %r13, %rdi
callq 0x54c4
testq %rax, %rax
je 0x2b52
movq 0x10(%rax), %rbp
testq %rbp, %rbp
je 0x2917
movq %rax, 0x8(%rsp)
movq %r13, %rdi
leaq 0x48b5(%rip), %rsi      # 0x7145
callq 0x2280
movq %rax, %r12
movq %rax, 0xa931(%rip)      # 0xd1d0
leaq 0x992a(%rip), %rdi      # 0xc1d0
movl $0x2e, %esi
callq 0x2110
movq %rax, 0xa921(%rip)      # 0xd1d8
movb $0x1, %cl
testq %r12, %r12
je 0x295d
movq %rax, %r15
addq $0x5, %r12
testq %rax, %rax
movq 0x8(%rsp), %rax
je 0x28dc
cmpq %r12, %r15
jbe 0x2962
leaq 0x98ed(%rip), %rdi      # 0xc1d0
movq %r12, %rsi
callq 0x2090
testq %r15, %r15
je 0x2928
movq 0x40(%rsp), %rsi
movq %r15, %rdi
callq 0x2180
testl %eax, %eax
leaq 0x98aa(%rip), %r12      # 0xc1b0
jne 0x2940
movq 0x38(%rsp), %rsi
movq %r15, %rdi
callq 0x2090
jmp 0x2940
movq %rax, %rdi
callq 0x5414
movl 0x10(%rsp), %ebp
jmp 0x2b52
movq 0x38(%rsp), %rsi
leaq 0x989c(%rip), %rdi      # 0xc1d0
callq 0x2230
leaq 0x9870(%rip), %r12      # 0xc1b0
movq (%rbp), %rcx
movq 0x8(%rbp), %rax
movq %r12, 0x8(%rbp)
movq %rcx, %rbp
testq %rcx, %rcx
jne 0x2940
movq %rax, 0x9855(%rip)      # 0xc1b0
xorl %ecx, %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x14(%rsp)
movq %r14, %r15
testq %r14, %r14
movl 0x10(%rsp), %ebp
jne 0x2a20
movq %r13, %rdi
callq 0x20d0
movq %rax, %r15
movq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0x20d0
movl $0x1000, %ecx           # imm = 0x1000
subq %rax, %rcx
cmpq %rcx, %r15
ja 0x2c25
movq %r13, %rdi
movl $0x2e, %esi
callq 0x2110
movq %rax, 0xb835(%rip)      # 0xe1e8
testq %rax, %rax
je 0x29cc
movq %rax, %r15
movq 0x40(%rsp), %rsi
movq %rax, %rdi
callq 0x2180
testl %eax, %eax
je 0x29eb
leaq 0xa80d(%rip), %r15      # 0xd1e0
movq %r15, %rdi
movq %r13, %rsi
callq 0x2090
movq %r15, %rdi
movq %r12, %rsi
callq 0x2230
jmp 0x2a1b
subq %r13, %r15
movq %r12, 0x18(%rsp)
leaq 0xa7e6(%rip), %r12      # 0xd1e0
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x2070
addq %r12, %r15
movq %r15, %rdi
movq 0x18(%rsp), %rsi
callq 0x2090
movq %r12, %r15
movq 0x8(%rsp), %rax
movq %r15, 0x8(%rax)
movq %rax, %r13
movq %r15, %rdi
leaq 0x46d3(%rip), %rsi      # 0x7104
callq 0x2210
testq %rax, %rax
je 0x2b66
movq %rax, %r12
movq 0x10(%r13), %rdi
movq %rax, %rsi
callq 0x3acc
testl %eax, %eax
je 0x2a6d
movq %r13, %rdi
callq 0x5414
movq 0x956f(%rip), %r12      # 0xbfd0
leaq 0x459c(%rip), %r15      # 0x7004
jmp 0x2b52
movq %r12, %rdi
callq 0x20c0
testl %eax, %eax
jne 0x2b86
cmpb $0x0, 0x14(%rsp)
movq 0x9547(%rip), %r12      # 0xbfd0
movq 0x8(%rsp), %rdi
jne 0x2aaf
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x2aaf
movq (%rax), %rcx
movq 0x8(%rax), %rdx
movq (%rdx), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, %rax
testq %rcx, %rcx
jne 0x2a99
cmpl $0x0, 0x20(%rsp)
leaq 0x4549(%rip), %r15      # 0x7004
jne 0x2b4d
leaq 0x455b(%rip), %rdi      # 0x7023
movq %r14, %rsi
xorl %eax, %eax
callq 0x2100
movl $0x80, %esi
leaq 0x60(%rsp), %r13
movq %r13, %rdi
callq 0x6a9d
movq %r13, %rdi
movq 0x8(%rsp), %rsi
leaq 0x28(%rsp), %rdx
callq 0x2f95
movq 0x60(%rsp), %rdi
callq 0x2c2d
movq %r13, %rdi
callq 0x6ac6
movq 0x8(%rsp), %rdi
cmpl $0x0, 0x4(%rsp)
jne 0x2b4d
movq 0x8(%rdi), %rsi
movq %rdi, %r15
leaq 0x4517(%rip), %rdi      # 0x7039
xorl %eax, %eax
callq 0x2100
movq 0x8(%r15), %r15
movq %r15, %rdi
callq 0x696b
testl %eax, %eax
je 0x2bab
movq %r15, %rdi
callq 0x2c2d
leaq 0x44bc(%rip), %r15      # 0x7004
movq 0x8(%rsp), %rdi
callq 0x5414
movl (%r12), %eax
incl %eax
movl %eax, (%r12)
cmpl %ebp, %eax
jl 0x2848
jmp 0x2bcb
movq 0x948b(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x458f(%rip), %rsi      # 0x7106
movq %r15, %rdx
xorl %eax, %eax
callq 0x2190
jmp 0x2a5a
movq 0x946b(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x4595(%rip), %rsi      # 0x712c
movq %r15, %rdx
xorl %eax, %eax
callq 0x2190
movq 0x8(%rsp), %rdi
jmp 0x2a55
movq 0x9446(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x45dc(%rip), %rsi      # 0x7198
movq %r15, %rdx
xorl %eax, %eax
callq 0x2190
jmp 0x2b41
leaq 0x28(%rsp), %rdi
callq 0x39af
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x68, %eax
jne 0x2c1e
callq 0x22c6
jmp 0x2803
cmpl $0x3f, %eax
jne 0x2c1e
callq 0x22b0
jmp 0x281b
movq %rbx, %rdi
callq 0x2347
jmp 0x281b
movq %rbx, %rdi
callq 0x2329
jmp 0x281b
movl %eax, %edi
callq 0x2376
movq %r13, %rdi
callq 0x2308