// File: 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:
subq $0x48, %rsp
movq %rdi, 0x10(%rsp)
movq %rdi, 0x18(%rsp)
movq %rsi, 0x40(%rsp)
movl %edx, 0x3c(%rsp)
movq %rcx, 0x30(%rsp)
movq 0x588d(%rip), %rax      # 0x9ff0
movl $0x0, (%rax)
movq 0x5858(%rip), %rax      # 0x9fc8
movl $0x0, (%rax)
movq $0x0, 0x28(%rsp)
movb $0x0, 0x23(%rsp)
movl 0x3c(%rsp), %edi
movq 0x30(%rsp), %rsi
leaq 0x30ee(%rip), %rdx      # 0x7882
callq 0x31f0
movl %eax, 0x24(%rsp)
cmpl $-0x1, %eax
je 0x48a1
movl 0x24(%rsp), %eax
addl $-0x61, %eax
movl %eax, %ecx
movq %rcx, 0x8(%rsp)
subl $0x17, %eax
ja 0x489c
movq 0x8(%rsp), %rax
leaq 0x1927(%rip), %rcx      # 0x60f0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
callq 0x3c30
movb $0x1, 0x23(%rsp)
jmp 0x4784
movq 0x40(%rsp), %rax
movb $0x1, 0x28(%rax)
jmp 0x4784
callq 0x4730
xorl %edi, %edi
callq 0x3220
movq 0x57d4(%rip), %rax      # 0x9fd0
movq (%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x4784
movq 0x57bc(%rip), %rax      # 0x9fd0
movq (%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x8(%rax)
jmp 0x4784
movq 0x57a4(%rip), %rax      # 0x9fd0
movq (%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
jmp 0x4784
movq 0x578d(%rip), %rax      # 0x9fd0
movq (%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x20(%rax)
jmp 0x4784
movq 0x5775(%rip), %rax      # 0x9fd0
movq (%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x18(%rax)
jmp 0x4784
movq 0x575d(%rip), %rax      # 0x9fd0
movq (%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x38(%rax)
jmp 0x4784
movq 0x5745(%rip), %rax      # 0x9fd0
movq (%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x40(%rax)
jmp 0x4784
jmp 0x4784
movl 0x3c(%rsp), %eax
movq 0x571c(%rip), %rcx      # 0x9fc8
subl (%rcx), %eax
cmpl $0x1, %eax
jge 0x48e8
testb $0x1, 0x23(%rsp)
je 0x48c1
xorl %edi, %edi
callq 0x3220
movq 0x5730(%rip), %rax      # 0x9ff8
movq (%rax), %rdi
leaq 0x2fc2(%rip), %rsi      # 0x7894
movb $0x0, %al
callq 0x3130
callq 0x4730
movl $0x1, %edi
callq 0x3220
movq 0x10(%rsp), %rdi
movq 0x30(%rsp), %rax
movq 0x56cf(%rip), %rcx      # 0x9fc8
movslq (%rcx), %rcx
movq (%rax,%rcx,8), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x40(%rsp), %rsi
movl $0x48, %edx
callq 0x3150
movq 0x18(%rsp), %rax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)