// File: /workspace/github_c_makefile_star2_O0/skeeto[P]hash-prospector/hillclimb.c
// Function: getopt
static int
getopt(int argc, char * const argv[], const char *optstring)
{
    static int optpos = 1;
    const char *arg;
    (void)argc;
    /* Reset? */
    if (optind == 0) {
        optind = 1;
        optpos = 1;
    }
    arg = argv[optind];
    if (arg && strcmp(arg, "--") == 0) {
        optind++;
        return -1;
    } else if (!arg || arg[0] != '-' || !isalnum(arg[1])) {
        return -1;
    } else {
        const char *opt = strchr(optstring, arg[optpos]);
        optopt = arg[optpos];
        if (!opt) {
            if (opterr && *optstring != ':')
                fprintf(stderr, "%s: illegal option: %c\n", argv[0], optopt);
            return '?';
        } else if (opt[1] == ':') {
            if (arg[optpos + 1]) {
                optarg = (char *)arg + optpos + 1;
                optind++;
                optpos = 1;
                return optopt;
            } else if (argv[optind + 1]) {
                optarg = (char *)argv[optind + 1];
                optind += 2;
                optpos = 1;
                return optopt;
            } else {
                if (opterr && *optstring != ':')
                    fprintf(stderr,
                            "%s: option requires an argument: %c\n",
                            argv[0], optopt);
                return *optstring == ':' ? ':' : '?';
            }
        } else {
            if (!arg[++optpos]) {
                optind++;
                optpos = 1;
            }
            return optopt;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
cmpl $0x0, 0x35da(%rip)      # 0x50c4
jne 0x1b00
movl $0x1, 0x35ce(%rip)      # 0x50c4
movl $0x1, 0x35c0(%rip)      # 0x50c0
movq -0x10(%rbp), %rax
movslq 0x35b9(%rip), %rcx      # 0x50c4
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x1b4a
movq -0x20(%rbp), %rdi
leaq 0x16ea(%rip), %rsi      # 0x320f
callq 0x10b0
cmpl $0x0, %eax
jne 0x1b4a
movl 0x358f(%rip), %eax      # 0x50c4
addl $0x1, %eax
movl %eax, 0x3586(%rip)      # 0x50c4
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x1d5a
cmpq $0x0, -0x20(%rbp)
je 0x1b7c
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x1b7c
callq 0x1150
movq (%rax), %rax
movq -0x20(%rbp), %rcx
movsbl 0x1(%rcx), %ecx
movslq %ecx, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x8, %eax
cmpl $0x0, %eax
jne 0x1b88
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x1d5a
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rax
movslq 0x3529(%rip), %rcx      # 0x50c0
movsbl (%rax,%rcx), %esi
callq 0x1070
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movslq 0x3511(%rip), %rcx      # 0x50c0
movsbl (%rax,%rcx), %eax
movl %eax, 0x3527(%rip)      # 0x50e0
cmpq $0x0, -0x28(%rbp)
jne 0x1c06
cmpl $0x0, 0x3501(%rip)      # 0x50c8
je 0x1bfa
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
je 0x1bfa
movq 0x341c(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movl 0x34f4(%rip), %ecx      # 0x50e0
leaq 0x161f(%rip), %rsi      # 0x3212
movb $0x0, %al
callq 0x10c0
movl $0x3f, -0x4(%rbp)
jmp 0x1d5a
movq -0x28(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x3a, %eax
jne 0x1d1c
movq -0x20(%rbp), %rax
movl 0x349f(%rip), %ecx      # 0x50c0
addl $0x1, %ecx
movslq %ecx, %rcx
cmpb $0x0, (%rax,%rcx)
je 0x1c6d
movq -0x20(%rbp), %rax
movslq 0x3488(%rip), %rcx      # 0x50c0
addq %rcx, %rax
addq $0x1, %rax
movq %rax, 0x3492(%rip)      # 0x50d8
movl 0x3478(%rip), %eax      # 0x50c4
addl $0x1, %eax
movl %eax, 0x346f(%rip)      # 0x50c4
movl $0x1, 0x3461(%rip)      # 0x50c0
movl 0x347b(%rip), %eax      # 0x50e0
movl %eax, -0x4(%rbp)
jmp 0x1d5a
movq -0x10(%rbp), %rax
movl 0x344d(%rip), %ecx      # 0x50c4
addl $0x1, %ecx
movslq %ecx, %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x1cc6
movq -0x10(%rbp), %rax
movl 0x3436(%rip), %ecx      # 0x50c4
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x3439(%rip)      # 0x50d8
movl 0x341f(%rip), %eax      # 0x50c4
addl $0x2, %eax
movl %eax, 0x3416(%rip)      # 0x50c4
movl $0x1, 0x3408(%rip)      # 0x50c0
movl 0x3422(%rip), %eax      # 0x50e0
movl %eax, -0x4(%rbp)
jmp 0x1d5a
cmpl $0x0, 0x33fb(%rip)      # 0x50c8
je 0x1d00
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
je 0x1d00
movq 0x3316(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movl 0x33ee(%rip), %ecx      # 0x50e0
leaq 0x1531(%rip), %rsi      # 0x322a
movb $0x0, %al
callq 0x10c0
movq -0x18(%rbp), %rax
movsbl (%rax), %edx
movl $0x3f, %eax
movl $0x3a, %ecx
cmpl $0x3a, %edx
cmovel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x1d5a
movq -0x20(%rbp), %rax
movl 0x339a(%rip), %ecx      # 0x50c0
addl $0x1, %ecx
movl %ecx, 0x3391(%rip)      # 0x50c0
movslq %ecx, %rcx
cmpb $0x0, (%rax,%rcx)
jne 0x1d51
movl 0x3386(%rip), %eax      # 0x50c4
addl $0x1, %eax
movl %eax, 0x337d(%rip)      # 0x50c4
movl $0x1, 0x336f(%rip)      # 0x50c0
movl 0x3389(%rip), %eax      # 0x50e0
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)