// File: /workspace/github_cpp_makefile_star2_O2/exrok[P]evdoublebind/./src/make_config.cc
// Function: parse_arguments(Settings&&, int, char**)
Settings parse_arguments(Settings &&setting, int argc, char **argv){
    opterr = 0;
    optind = 0;
    char *cvalue = NULL;
    int c;
    bool suppress_no_input_error = false;
    while ((c = getopt (argc, argv, "gahr:m:l:v:o:x:c:")) != -1)
        switch(c){
            case 'g':
                install_xkb_rule();
                suppress_no_input_error = true;
                continue;
            case 'a':
                setting.only_arguments = true;
                continue;
            case 'h':
                print_usage();
                exit(0);
            case 'l':
                setting.xkb_names.layout = optarg;
                continue;
            case 'm':
                setting.xkb_names.model = optarg;
                continue;
            case 'r':
                setting.xkb_names.rules = optarg;
                continue;
            case 'o':
                setting.xkb_names.options = optarg;
                continue;
            case 'v':
                setting.xkb_names.variant = optarg;
                continue;
            case 'x':
                setting.xkb_conf_output = optarg;
                continue;
            case 'c':
                setting.evdoublebind_conf_output = optarg;
                continue;
        }
    if (argc - optind < 1) {
        if (suppress_no_input_error) {
            exit(0);
        } else {
            fprintf(stderr, "No config specfied\n");
            print_usage();
            exit(1);
        }
    }
    setting.input_conf = argv[optind];
    return setting;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, 0x10(%rsp)
movq 0x4f15(%rip), %rax      # 0x8ff0
andl $0x0, (%rax)
movq 0x4ee3(%rip), %rax      # 0x8fc8
andl $0x0, (%rax)
movl $0x0, 0xc(%rsp)
leaq 0x264b(%rip), %r12      # 0x6742
leaq 0xf06(%rip), %rbx       # 0x5004
movq 0x4ecb(%rip), %r13      # 0x8fd0
movl %ebp, %edi
movq %r15, %rsi
movq %r12, %rdx
callq 0x31f0
leal -0x61(%rax), %ecx
cmpl $0x17, %ecx
ja 0x417c
movslq (%rbx,%rcx,4), %rax
addq %rbx, %rax
jmpq *%rax
movb $0x1, 0x28(%r14)
jmp 0x4105
movq (%r13), %rax
movq %rax, 0x8(%r14)
jmp 0x4105
movq (%r13), %rax
movq %rax, 0x10(%r14)
jmp 0x4105
movq (%r13), %rax
movq %rax, 0x38(%r14)
jmp 0x4105
callq 0x386a
movb $0x1, %al
movl %eax, 0xc(%rsp)
jmp 0x4105
movq (%r13), %rax
movq %rax, 0x18(%r14)
jmp 0x4105
movq (%r13), %rax
movq %rax, 0x40(%r14)
jmp 0x4105
movq (%r13), %rax
movq %rax, 0x20(%r14)
jmp 0x4105
movq (%r13), %rax
movq %rax, (%r14)
jmp 0x4105
cmpl $-0x1, %eax
jne 0x4105
movq 0x4e40(%rip), %rax      # 0x8fc8
movslq (%rax), %rax
cmpl %ebp, %eax
jge 0x41c3
movq (%r15,%rax,8), %rax
movq %rax, 0x30(%r14)
pushq $0x9
popq %rcx
movq 0x10(%rsp), %rax
movq %rax, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x40ad
xorl %edi, %edi
callq 0x3220
testb $0x1, 0xc(%rsp)
jne 0x41bc
movq 0x4e27(%rip), %rax      # 0x8ff8
movq (%rax), %rcx
leaq 0x2579(%rip), %rdi      # 0x6754
pushq $0x13
popq %rsi
pushq $0x1
popq %rdx
callq 0x3230
callq 0x40ad
pushq $0x1
popq %rdi
callq 0x3220