// File: /workspace/github_c_makefile_star2_O1/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 %r12d, %r12d
movb $0x1, %al
movl %eax, 0x4(%rsp)
leaq 0x484b(%rip), %r15      # 0x704a
movq 0x97d2(%rip), %r14      # 0xbfd8
xorl %r13d, %r13d
movl %ebp, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x2220
cmpl $0x6f, %eax
jne 0x2820
movq (%r14), %r13
jmp 0x2809
cmpl $0x44, %eax
jle 0x286c
cmpl $0x45, %eax
je 0x2855
cmpl $0x63, %eax
jne 0x2c78
movl $0x1, %r12d
testb $0x1, 0x4(%rsp)
jne 0x2809
callq 0x22dc
movl $0x1, %r12d
movl $0x0, 0x4(%rsp)
jmp 0x2809
movl $0x0, 0x4(%rsp)
testl %r12d, %r12d
je 0x2809
callq 0x22f2
xorl %r12d, %r12d
jmp 0x2809
cmpl $-0x1, %eax
jne 0x2c87
movq 0x9754(%rip), %rax      # 0xbfd0
movl (%rax), %eax
cmpl %ebp, %eax
je 0x2c96
testq %r13, %r13
setne %cl
incl %eax
cmpl %ebp, %eax
setl %al
andb %cl, %al
cmpb $0x1, %al
je 0x2ca3
leaq 0x28(%rsp), %rdi
callq 0x3534
testl %eax, %eax
je 0x28bf
leaq 0x28(%rsp), %rdi
callq 0x3a74
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x2c69
movq %r12, 0x20(%rsp)
movq 0x9705(%rip), %r15      # 0xbfd0
movl (%r15), %eax
cmpl %ebp, %eax
jge 0x2c5d
movl %ebp, 0x10(%rsp)
movq %r13, 0x8(%rsp)
cltq
movq (%rbx,%rax,8), %rsi
leaq 0x4718(%rip), %rdi      # 0x7004
movq %r13, %rdx
xorl %eax, %eax
callq 0x2100
movslq (%r15), %rax
movq (%rbx,%rax,8), %r13
movq %r13, %rdi
callq 0x55a4
testq %rax, %rax
je 0x29b2
movq %rax, %r12
movq 0x10(%rax), %r14
testq %r14, %r14
je 0x29aa
movq %r13, %rdi
leaq 0x481d(%rip), %rsi      # 0x7145
callq 0x2280
movq %rax, %rbp
movq %rax, 0xa899(%rip)      # 0xd1d0
leaq 0x9892(%rip), %rdi      # 0xc1d0
movl $0x2e, %esi
callq 0x2110
movq %rax, %r15
movq %rax, 0xa886(%rip)      # 0xd1d8
movb $0x1, %al
testq %rbp, %rbp
je 0x29f3
addq $0x5, %rbp
testq %r15, %r15
je 0x296f
cmpq %rbp, %r15
jbe 0x29f3
leaq 0x985a(%rip), %rdi      # 0xc1d0
movq %rbp, %rsi
callq 0x2090
testq %r15, %r15
je 0x29bf
movq 0x40(%rsp), %rsi
movq %r15, %rdi
callq 0x2180
testl %eax, %eax
leaq 0x9817(%rip), %rbp      # 0xc1b0
jne 0x29d7
movq 0x38(%rsp), %rsi
movq %r15, %rdi
callq 0x2090
jmp 0x29d7
movq %r12, %rdi
callq 0x54f4
xorl %r12d, %r12d
movq 0x8(%rsp), %r13
jmp 0x2afd
movq 0x38(%rsp), %rsi
leaq 0x9805(%rip), %rdi      # 0xc1d0
callq 0x2230
leaq 0x97d9(%rip), %rbp      # 0xc1b0
movq (%r14), %rcx
movq 0x8(%r14), %rax
movq %rbp, 0x8(%r14)
movq %rcx, %r14
testq %rcx, %rcx
jne 0x29d7
movq %rax, 0x97bf(%rip)      # 0xc1b0
xorl %eax, %eax
movl %eax, 0x14(%rsp)
movq 0x8(%rsp), %rax
movq %rax, %r15
testq %rax, %rax
movl 0x10(%rsp), %ebp
jne 0x2ab1
movq %r13, %rdi
callq 0x20d0
movq %rax, %r15
movq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0x20d0
movl $0x1000, %ecx           # imm = 0x1000
subq %rax, %rcx
cmpq %rcx, %r15
ja 0x2cb7
movq %r13, %rdi
movl $0x2e, %esi
callq 0x2110
movq %rax, 0xb79f(%rip)      # 0xe1e8
testq %rax, %rax
je 0x2a62
movq %rax, %r15
movq 0x40(%rsp), %rsi
movq %rax, %rdi
callq 0x2180
testl %eax, %eax
je 0x2a81
leaq 0xa777(%rip), %r15      # 0xd1e0
movq %r15, %rdi
movq %r13, %rsi
callq 0x2090
movq %r15, %rdi
movq %r14, %rsi
callq 0x2230
jmp 0x2ab1
subq %r13, %r15
movq %r14, 0x18(%rsp)
leaq 0xa750(%rip), %r14      # 0xd1e0
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x2070
addq %r14, %r15
movq %r15, %rdi
movq 0x18(%rsp), %rsi
callq 0x2090
movq %r14, %r15
movq %r15, 0x8(%r12)
movq %r15, %rdi
leaq 0x4644(%rip), %rsi      # 0x7104
callq 0x2210
testq %rax, %rax
je 0x2bfd
movq %rax, %r13
movq 0x10(%r12), %rdi
movq %rax, %rsi
callq 0x3b90
testl %eax, %eax
je 0x2bb1
movq %r12, %rdi
callq 0x54f4
xorl %r12d, %r12d
movq 0x8(%rsp), %r13
movq 0x94d3(%rip), %r15      # 0xbfd0
testq %r12, %r12
je 0x2b9c
testb $0x1, 0x4(%rsp)
je 0x2b94
leaq 0x450b(%rip), %rdi      # 0x7023
movq %r13, %rsi
xorl %eax, %eax
callq 0x2100
movl $0x80, %esi
leaq 0x60(%rsp), %r14
movq %r14, %rdi
callq 0x6d49
movq %r14, %rdi
movq %r12, %rsi
leaq 0x28(%rsp), %rdx
callq 0x3079
movq 0x60(%rsp), %rdi
callq 0x2cbf
movq %r14, %rdi
callq 0x6d72
cmpl $0x0, 0x20(%rsp)
jne 0x2b94
movq 0x8(%r12), %rsi
leaq 0x44d0(%rip), %rdi      # 0x7039
xorl %eax, %eax
callq 0x2100
movq 0x8(%r12), %r15
movq %r15, %rdi
callq 0x6c17
testl %eax, %eax
je 0x2c3d
movq %r15, %rdi
callq 0x2cbf
movq 0x943c(%rip), %r15      # 0xbfd0
movq %r12, %rdi
callq 0x54f4
movl (%r15), %eax
incl %eax
movl %eax, (%r15)
cmpl %ebp, %eax
jl 0x28df
jmp 0x2c5d
movq %r13, %rdi
callq 0x20c0
testl %eax, %eax
jne 0x2c1d
cmpb $0x0, 0x14(%rsp)
movq 0x8(%rsp), %r13
jne 0x2af6
movq 0x10(%r12), %rax
testq %rax, %rax
movq 0x93f4(%rip), %r15      # 0xbfd0
je 0x2afd
movq (%rax), %rcx
movq 0x8(%rax), %rdx
movq (%rdx), %rdx
movq %rdx, 0x8(%rax)
movq %rcx, %rax
testq %rcx, %rcx
jne 0x2be2
jmp 0x2afd
movq 0x93f4(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x44f8(%rip), %rsi      # 0x7106
movq %r15, %rdx
xorl %eax, %eax
callq 0x2190
jmp 0x2aee
movq 0x93d4(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x44fe(%rip), %rsi      # 0x712c
movq %r15, %rdx
xorl %eax, %eax
callq 0x2190
jmp 0x2ae6
movq 0x93b4(%rip), %rax      # 0xbff8
movq (%rax), %rdi
leaq 0x454a(%rip), %rsi      # 0x7198
movq %r15, %rdx
xorl %eax, %eax
callq 0x2190
jmp 0x2b8d
leaq 0x28(%rsp), %rdi
callq 0x3a74
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x68, %eax
jne 0x2cb0
callq 0x22c6
jmp 0x289d
cmpl $0x3f, %eax
jne 0x2cb0
callq 0x22b0
jmp 0x28b5
movq %rbx, %rdi
callq 0x2347
jmp 0x28b5
movq %rbx, %rdi
callq 0x2329
jmp 0x28b5
movl %eax, %edi
callq 0x2376
movq %r13, %rdi
callq 0x2308