// File: /workspace/github_cpp_makefile_star2_O3/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 $0x98, %rsp
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, 0x70(%rsp)
callq 0x617a
decl %ebp
addq $0x8, %r14
movq $0x0, 0x30(%rsp)
leaq 0x2508(%rip), %r12      # 0x8828
movq 0x5c71(%rip), %rbx      # 0xbf98
xorl %r13d, %r13d
movq $0x0, 0x28(%rsp)
xorl %r15d, %r15d
movl %ebp, %edi
movq %r14, %rsi
movq %r12, %rdx
callq 0x3070
cmpl $0x42, %eax
jne 0x634d
movq (%rbx), %r15
jmp 0x6336
cmpl $0x68, %eax
jg 0x6365
cmpl $-0x1, %eax
je 0x6387
cmpl $0x62, %eax
jne 0x6435
movq (%rbx), %r13
jmp 0x6336
cmpl $0x69, %eax
je 0x637d
cmpl $0x6f, %eax
jne 0x64d7
movq (%rbx), %rax
movq %rax, 0x28(%rsp)
jmp 0x6336
movq (%rbx), %rax
movq %rax, 0x30(%rsp)
jmp 0x6336
movq 0x28(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %r13, 0x40(%rsp)
movq 0x30(%rsp), %r12
movq %r12, 0x48(%rsp)
movq 0x5c29(%rip), %rax      # 0xbfd0
movl (%rax), %ebx
testq %r15, %r15
movq 0x70(%rsp), %r14
je 0x63c6
movq %r15, %rdi
movq %r14, %rsi
callq 0x696c
testl %eax, %eax
jne 0x6813
cmpl $0x0, (%r14)
je 0x661d
testq %r12, %r12
je 0x6682
testq %r13, %r13
je 0x66e7
cmpq $0x0, 0x28(%rsp)
je 0x674c
cmpl %ebx, %ebp
jne 0x67b1
leaq 0x8(%r14), %rdi
leaq 0x48(%rsp), %rsi
callq 0x33fc
leaq 0x30(%r14), %rdi
leaq 0x40(%rsp), %rsi
callq 0x33fc
leaq 0x58(%r14), %rdi
leaq 0x38(%rsp), %rsi
callq 0x33fc
movq %r14, %rax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl $0x3a, %eax
jne 0x64d7
movq 0x28(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %r13, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x48(%rsp)
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
movq 0x5b4d(%rip), %rax      # 0xbfb8
movsbl (%rax), %edx
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x50(%rsp), %rdi
movl $0x1, %esi
callq 0x3290
leaq 0x23a4(%rip), %rsi      # 0x8832
leaq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x7035
leaq 0x23ad(%rip), %rsi      # 0x8851
leaq 0x78(%rsp), %rdi
callq 0x33a0
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x6569
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x6576
movq 0x28(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %r13, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x48(%rsp)
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
movq 0x5ab4(%rip), %rax      # 0xbfb8
movsbl (%rax), %edx
leaq 0x60(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x50(%rsp), %rdi
movl $0x1, %esi
callq 0x3290
leaq 0x232c(%rip), %rsi      # 0x8853
leaq 0x78(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x7035
leaq 0x2314(%rip), %rsi      # 0x8851
leaq 0x78(%rsp), %rdi
callq 0x33a0
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x65c3
movups (%rcx), %xmm0
movups %xmm0, (%r13)
jmp 0x65d0
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bl
movq %r15, %rdi
callq 0x32d0
leaq 0x571d(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebx, %ebx
leaq 0x56e9(%rip), %rsi      # 0xbc98
movq 0x59fa(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6873
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bl
movq %r15, %rdi
callq 0x32d0
leaq 0x56c3(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebx, %ebx
leaq 0x568f(%rip), %rsi      # 0xbc98
movq 0x59a0(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6873
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
leaq 0x18(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x2241(%rip), %rsi      # 0x887b
leaq 0x2251(%rip), %rdx      # 0x8892
leaq 0x8(%rsp), %rdi
callq 0x41b8
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x32d0
leaq 0x565e(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x562a(%rip), %rsi      # 0xbc98
movq 0x593b(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6873
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
leaq 0x18(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x21f4(%rip), %rsi      # 0x8893
leaq 0x21ff(%rip), %rdx      # 0x88a5
leaq 0x8(%rsp), %rdi
callq 0x41b8
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x32d0
leaq 0x55f9(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x55c5(%rip), %rsi      # 0xbc98
movq 0x58d6(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6873
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
leaq 0x18(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x21a2(%rip), %rsi      # 0x88a6
leaq 0x21ac(%rip), %rdx      # 0x88b7
leaq 0x8(%rsp), %rdi
callq 0x41b8
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x32d0
leaq 0x5594(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x5560(%rip), %rsi      # 0xbc98
movq 0x5871(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6873
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
leaq 0x18(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x214f(%rip), %rsi      # 0x88b8
leaq 0x215b(%rip), %rdx      # 0x88cb
leaq 0x8(%rsp), %rdi
callq 0x41b8
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x32d0
leaq 0x552f(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x54fb(%rip), %rsi      # 0xbc98
movq 0x580c(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6873
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
leaq 0x18(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x20fe(%rip), %rsi      # 0x88cc
leaq 0x2109(%rip), %rdx      # 0x88de
leaq 0x8(%rsp), %rdi
callq 0x41b8
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x32d0
leaq 0x54ca(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x5496(%rip), %rsi      # 0xbc98
movq 0x57a7(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6873
movl $0x10, %edi
callq 0x3130
movq %rax, %r15
leaq 0x18(%rsp), %rbx
movq %rbx, -0x10(%rbx)
leaq 0x2035(%rip), %rsi      # 0x8865
leaq 0x2043(%rip), %rdx      # 0x887a
leaq 0x8(%rsp), %rdi
callq 0x41b8
movb $0x1, %bpl
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x32d0
leaq 0x5468(%rip), %rax      # 0xbcc0
movq %rax, (%r15)
xorl %ebp, %ebp
leaq 0x5434(%rip), %rsi      # 0xbc98
movq 0x5745(%rip), %rdx      # 0xbfb0
movq %r15, %rdi
callq 0x3360
jmp 0x6896
jmp 0x694e
jmp 0x6896
jmp 0x694e
jmp 0x6896
jmp 0x694e
jmp 0x6896
jmp 0x694e
jmp 0x6896
jmp 0x694e
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %rbx, %rdi
je 0x68b0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
testb %bpl, %bpl
jne 0x6951
jmp 0x6959
jmp 0x694e
movq %rax, %r14
jmp 0x6959
jmp 0x68cf
jmp 0x68eb
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x68f0
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x68f0
movq %rax, %r14
movb $0x1, %bl
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6911
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x3240
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x6928
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3240
testb %bl, %bl
jne 0x6951
jmp 0x6959
jmp 0x6930
movq %rax, %r14
movq 0x50(%rsp), %rdi
cmpq %r12, %rdi
je 0x6951
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x3240
jmp 0x6951
jmp 0x694e
movq %rax, %r14
movq %r15, %rdi
callq 0x3190
movq 0x70(%rsp), %rdi
callq 0x5f88
movq %r14, %rdi
callq 0x3370
nop