// File: /workspace/github_cpp_makefile_star2_O3/timothyqiu[P]ssoaag/main.cc
// Function: main
int main(int argc, char *argv[])
{
    char const *filename = nullptr;

    if (argc < 2) {
        printf("Some Sort Of Ascii Art Generator\n");
        printf("usage: %s <bitmap filename>\n", argv[0]);
        printf("using default image: %s\n", DEFAULT_IMAGE);

        filename = DEFAULT_IMAGE;
    } else {
        filename = argv[1];
    }

    ImageWriter    image_writer(filename);
    image_writer.WriteFile(MOSAIC_OUTPUT);

    AsciiArtWriter ascii_writer(filename);
    ascii_writer.WriteFile(ASCII_OUTPUT);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xe8, %rsp
movq %rsi, %rbx
cmpl $0x1, %edi
jg 0x23f5
leaq 0x1ccc(%rip), %rdi      # 0x4091
callq 0x21e0
movq (%rbx), %rsi
leaq 0x1c30(%rip), %rdi      # 0x4004
xorl %eax, %eax
callq 0x2060
leaq 0x1c3f(%rip), %rdi      # 0x4021
leaq 0x1c51(%rip), %rbx      # 0x403a
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2060
jmp 0x23f9
movq 0x8(%rbx), %rbx
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rdx
movq %rbx, %rsi
callq 0x2642
leaq 0x98(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2a24
leaq 0x38(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x2438
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2150
leaq 0x28(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x1c09(%rip), %rsi      # 0x4050
leaq 0x1c0d(%rip), %rdx      # 0x405b
callq 0x270e
leaq 0x98(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x2830
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x247c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2150
leaq 0x8(%rsp), %rdi
leaq 0x7(%rsp), %rdx
movq %rbx, %rsi
callq 0x2642
leaq 0x4cbb(%rip), %rdx      # 0x7150
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2ce2
leaq 0x18(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x24bf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2150
leaq 0x8(%rsp), %rdi
movq %r14, (%rdi)
leaq 0x1b8e(%rip), %rsi      # 0x405c
leaq 0x1b91(%rip), %rdx      # 0x4066
callq 0x270e
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x2830
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x2500
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2150
leaq 0x4839(%rip), %rax      # 0x6d40
addq $0x10, %rax
leaq 0x88(%rsp), %rcx
movq %rax, -0x60(%rcx)
movq -0x10(%rcx), %rdi
cmpq %rcx, %rdi
je 0x2530
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x2150
leaq 0x47c9(%rip), %rbx      # 0x6d00
addq $0x10, %rbx
leaq 0x68(%rsp), %rax
movq %rbx, -0x40(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x255a
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x2150
leaq 0x28(%rsp), %rdi
callq 0x27d8
leaq 0xd8(%rsp), %rax
movq %rbx, -0x40(%rax)
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2589
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x2150
leaq 0x98(%rsp), %rdi
callq 0x27d8
xorl %eax, %eax
addq $0xe8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r14, %rdi
je 0x25c2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2150
jmp 0x25c2
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x2680
jmp 0x2607
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2607
movq 0x18(%rsp), %rsi
jmp 0x25fa
jmp 0x2604
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x2607
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2150
jmp 0x2607
movq %rax, %rbx
leaq 0x98(%rsp), %rdi
callq 0x26da
movq %rbx, %rdi
callq 0x2220
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2614
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2150
jmp 0x2614
movq %rax, %rbx
jmp 0x2614
nop