// File: /workspace/github_cpp_makefile_star2_O1/jansucan[P]diff-dd/src/options.cpp
// Function: Options::Parser::parseCreate(int, char**)
Create
Parser::parseCreate(int argc, char **argv)
{
    Create opts;

    // Skip the executable name. Do not skip the operation name. getopt expects
    // to start at an argument immediately preceding the possible options.
    argc -= 1;
    argv += 1;

    int ch;
    const char *arg_buffer_size = NULL;
    const char *arg_input_file = NULL;
    const char *arg_base_file = NULL;
    const char *arg_output_file = NULL;

    while ((ch = getopt(argc, argv, ":B:i:b:o:")) != -1) {
        switch (ch) {
        case 'B':
            arg_buffer_size = optarg;
            break;

        case 'i':
            arg_input_file = optarg;
            break;

        case 'b':
            arg_base_file = optarg;
            break;

        case 'o':
            arg_output_file = optarg;
            break;

        case ':':
            throw Error("missing argument for option '-" +
                        std::string(1, optopt) + "'");
        default:
            throw Error("unknown option '-" + std::string(1, optopt) + "'");
        }
    }

    argc -= optind;

    /* Convert numbers in the arguments */
    if ((arg_buffer_size != NULL) &&
        parseUnsigned(arg_buffer_size, &(opts.m_buffer_size))) {
        throw Error("incorrect buffer size");
    } else if (opts.m_buffer_size == 0) {
        throw Error("buffer size cannot be 0");
    }

    if (arg_input_file == NULL) {
        throw Error("missing input file");
    } else if (arg_base_file == NULL) {
        throw Error("missing base file");
    } else if (arg_output_file == NULL) {
        throw Error("missing output file");
    } else if (argc != 0) {
        throw Error("too many arguments");
    }

    opts.m_in_file_path = arg_input_file;
    opts.m_base_file_path = arg_base_file;
    opts.m_out_file_path = arg_output_file;

    return opts;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
callq 0x61ae
decl %ebp
addq $0x8, %r14
xorl %r15d, %r15d
movq %r15, 0x30(%rsp)
movq %r15, 0x28(%rsp)
movq %r15, 0x20(%rsp)
leaq 0x24d0(%rip), %r12      # 0x8828
movq 0x5c39(%rip), %r13      # 0xbf98
movl %ebp, %edi
movq %r14, %rsi
movq %r12, %rdx
callq 0x3070
cmpl $0x61, %eax
jle 0x638f
cmpl $0x62, %eax
je 0x63a3
cmpl $0x69, %eax
je 0x63ae
cmpl $0x6f, %eax
jne 0x64d6
movq (%r13), %rax
movq %rax, 0x20(%rsp)
jmp 0x635f
cmpl $-0x1, %eax
je 0x63b9
cmpl $0x42, %eax
jne 0x644d
movq (%r13), %r15
jmp 0x635f
movq (%r13), %rax
movq %rax, 0x28(%rsp)
jmp 0x635f
movq (%r13), %rax
movq %rax, 0x30(%rsp)
jmp 0x635f
movq 0x5c10(%rip), %rax      # 0xbfd0
movl (%rax), %r14d
testq %r15, %r15
je 0x63db
movq %r15, %rdi
movq %rbx, %rsi
callq 0x6906
testl %eax, %eax
jne 0x67e6
cmpl $0x0, (%rbx)
je 0x65ff
cmpq $0x0, 0x30(%rsp)
je 0x6661
cmpq $0x0, 0x28(%rsp)
je 0x66c3
cmpq $0x0, 0x20(%rsp)
je 0x6725
cmpl %r14d, %ebp
jne 0x6787
leaq 0x8(%rbx), %rdi
leaq 0x30(%rsp), %rsi
callq 0x33fe
leaq 0x30(%rbx), %rdi
leaq 0x28(%rsp), %rsi
callq 0x33fe
leaq 0x58(%rbx), %rdi
leaq 0x20(%rsp), %rsi
callq 0x33fe
movq %rbx, %rax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x3a, %eax
jne 0x64d6
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
movq 0x5b4e(%rip), %rax      # 0xbfb8
movsbl (%rax), %edx
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x38(%rsp), %rdi
movl $0x1, %esi
callq 0x3290
leaq 0x23a5(%rip), %rsi      # 0x8832
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x6f79
leaq 0x23ae(%rip), %rsi      # 0x8851
leaq 0x58(%rsp), %rdi
callq 0x33a0
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x654f
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x655b
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
movq 0x5ace(%rip), %rax      # 0xbfb8
movsbl (%rax), %edx
leaq 0x48(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x38(%rsp), %rdi
movl $0x1, %esi
callq 0x3290
leaq 0x2346(%rip), %rsi      # 0x8853
leaq 0x58(%rsp), %rdi
leaq 0x38(%rsp), %rdx
callq 0x6f79
leaq 0x232e(%rip), %rsi      # 0x8851
leaq 0x58(%rsp), %rdi
callq 0x33a0
leaq 0x10(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x65a7
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x65b3
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rsp, %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bpl
movq %r15, %rdi
callq 0x32d0
leaq 0x5739(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x5705(%rip), %rsi      # 0xbc98
movq 0x5a16(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6843
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
movq 0x8(%rax), %rdx
movq %rsp, %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bpl
movq %r15, %rdi
callq 0x32d0
leaq 0x56e1(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x56ad(%rip), %rsi      # 0xbc98
movq 0x59be(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6843
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x225e(%rip), %rsi      # 0x887b
leaq 0x226e(%rip), %rdx      # 0x8892
movq %rsp, %rdi
callq 0x41c2
movb $0x1, %bpl
movq %rsp, %rsi
movq %r15, %rdi
callq 0x32d0
leaq 0x567f(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x564b(%rip), %rsi      # 0xbc98
movq 0x595c(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6843
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2214(%rip), %rsi      # 0x8893
leaq 0x221f(%rip), %rdx      # 0x88a5
movq %rsp, %rdi
callq 0x41c2
movb $0x1, %bpl
movq %rsp, %rsi
movq %r15, %rdi
callq 0x32d0
leaq 0x561d(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x55e9(%rip), %rsi      # 0xbc98
movq 0x58fa(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6843
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x21c5(%rip), %rsi      # 0x88a6
leaq 0x21cf(%rip), %rdx      # 0x88b7
movq %rsp, %rdi
callq 0x41c2
movb $0x1, %bpl
movq %rsp, %rsi
movq %r15, %rdi
callq 0x32d0
leaq 0x55bb(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x5587(%rip), %rsi      # 0xbc98
movq 0x5898(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6843
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2175(%rip), %rsi      # 0x88b8
leaq 0x2181(%rip), %rdx      # 0x88cb
movq %rsp, %rdi
callq 0x41c2
movb $0x1, %bpl
movq %rsp, %rsi
movq %r15, %rdi
callq 0x32d0
leaq 0x5559(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x5525(%rip), %rsi      # 0xbc98
movq 0x5836(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6843
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2127(%rip), %rsi      # 0x88cc
leaq 0x2132(%rip), %rdx      # 0x88de
movq %rsp, %rdi
callq 0x41c2
movb $0x1, %bpl
movq %rsp, %rsi
movq %r15, %rdi
callq 0x32d0
leaq 0x54f7(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x54c3(%rip), %rsi      # 0xbc98
movq 0x57d4(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6843
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x2061(%rip), %rsi      # 0x8865
leaq 0x206f(%rip), %rdx      # 0x887a
movq %rsp, %rdi
callq 0x41c2
movb $0x1, %bpl
movq %rsp, %rsi
movq %r15, %rdi
callq 0x32d0
leaq 0x5498(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x5464(%rip), %rsi      # 0xbc98
movq 0x5775(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6863
jmp 0x68e2
jmp 0x6863
jmp 0x68e2
jmp 0x6863
jmp 0x68e2
jmp 0x6863
jmp 0x68e2
jmp 0x6863
jmp 0x68e2
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x68e8
movq 0x10(%rsp), %rsi
jmp 0x68d6
jmp 0x68e2
jmp 0x6881
jmp 0x689c
movq %rax, %r14
jmp 0x68f5
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r13, %rdi
je 0x68a2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x68a2
movq %rax, %r14
movb $0x1, %bpl
leaq 0x68(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x68c7
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x68c7
jmp 0x68c1
movq %rax, %r14
movb $0x1, %bpl
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0x68e8
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x68e8
jmp 0x68e2
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0x68f5
movq %r15, %rdi
callq 0x3190
movq %rbx, %rdi
callq 0x5fbc
movq %r14, %rdi
callq 0x3370
nop