// File: /workspace/github_c_makefile_star2_O0/skeeto[P]hash-prospector/hp16.c
// Function: xgetopt
static int
xgetopt(int argc, char **argv, const char *optstring)
{
    static int optpos = 1;
    const char *arg;
    (void)argc;

    /* Reset? */
    if (xoptind == 0) {
        xoptind = 1;
        optpos = 1;
    }

    arg = argv[xoptind];
    if (arg && strcmp(arg, "--") == 0) {
        xoptind++;
        return -1;
    } else if (!arg || arg[0] != '-' || !isalnum(arg[1])) {
        return -1;
    } else {
        const char *opt = strchr(optstring, arg[optpos]);
        xoptopt = arg[optpos];
        if (!opt) {
            if (xopterr && *optstring != ':')
                fprintf(stderr, "%s: illegal option: %c\n", argv[0], xoptopt);
            return '?';
        } else if (opt[1] == ':') {
            if (arg[optpos + 1]) {
                xoptarg = (char *)arg + optpos + 1;
                xoptind++;
                optpos = 1;
                return xoptopt;
            } else if (argv[xoptind + 1]) {
                xoptarg = (char *)argv[xoptind + 1];
                xoptind += 2;
                optpos = 1;
                return xoptopt;
            } else {
                if (xopterr && *optstring != ':')
                    fprintf(stderr,
                            "%s: option requires an argument: %c\n",
                            argv[0], xoptopt);
                return *optstring == ':' ? ':' : '?';
            }
        } else {
            if (!arg[++optpos]) {
                xoptind++;
                optpos = 1;
            }
            return xoptopt;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
cmpl $0x0, 0x38c2(%rip)      # 0x509c
jne 0x17f0
movl $0x1, 0x38b6(%rip)      # 0x509c
movl $0x1, 0x38a8(%rip)      # 0x5098
movq -0x10(%rbp), %rax
movslq 0x38a1(%rip), %rcx      # 0x509c
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x183a
movq -0x20(%rbp), %rdi
leaq 0x19d5(%rip), %rsi      # 0x31ea
callq 0x10a0
cmpl $0x0, %eax
jne 0x183a
movl 0x3877(%rip), %eax      # 0x509c
addl $0x1, %eax
movl %eax, 0x386e(%rip)      # 0x509c
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x1a4a
cmpq $0x0, -0x20(%rbp)
je 0x186c
movq -0x20(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x186c
callq 0x1100
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 0x1878
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x1a4a
movq -0x18(%rbp), %rdi
movq -0x20(%rbp), %rax
movslq 0x3811(%rip), %rcx      # 0x5098
movsbl (%rax,%rcx), %esi
callq 0x1050
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rax
movslq 0x37f9(%rip), %rcx      # 0x5098
movsbl (%rax,%rcx), %eax
movl %eax, 0x381f(%rip)      # 0x50c8
cmpq $0x0, -0x28(%rbp)
jne 0x18f6
cmpl $0x0, 0x37e9(%rip)      # 0x50a0
je 0x18ea
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
je 0x18ea
movq 0x372c(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movl 0x37ec(%rip), %ecx      # 0x50c8
leaq 0x190a(%rip), %rsi      # 0x31ed
movb $0x0, %al
callq 0x10b0
movl $0x3f, -0x4(%rbp)
jmp 0x1a4a
movq -0x28(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x3a, %eax
jne 0x1a0c
movq -0x20(%rbp), %rax
movl 0x3787(%rip), %ecx      # 0x5098
addl $0x1, %ecx
movslq %ecx, %rcx
cmpb $0x0, (%rax,%rcx)
je 0x195d
movq -0x20(%rbp), %rax
movslq 0x3770(%rip), %rcx      # 0x5098
addq %rcx, %rax
addq $0x1, %rax
movq %rax, 0x378a(%rip)      # 0x50c0
movl 0x3760(%rip), %eax      # 0x509c
addl $0x1, %eax
movl %eax, 0x3757(%rip)      # 0x509c
movl $0x1, 0x3749(%rip)      # 0x5098
movl 0x3773(%rip), %eax      # 0x50c8
movl %eax, -0x4(%rbp)
jmp 0x1a4a
movq -0x10(%rbp), %rax
movl 0x3735(%rip), %ecx      # 0x509c
addl $0x1, %ecx
movslq %ecx, %rcx
cmpq $0x0, (%rax,%rcx,8)
je 0x19b6
movq -0x10(%rbp), %rax
movl 0x371e(%rip), %ecx      # 0x509c
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x3731(%rip)      # 0x50c0
movl 0x3707(%rip), %eax      # 0x509c
addl $0x2, %eax
movl %eax, 0x36fe(%rip)      # 0x509c
movl $0x1, 0x36f0(%rip)      # 0x5098
movl 0x371a(%rip), %eax      # 0x50c8
movl %eax, -0x4(%rbp)
jmp 0x1a4a
cmpl $0x0, 0x36e3(%rip)      # 0x50a0
je 0x19f0
movq -0x18(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x3a, %eax
je 0x19f0
movq 0x3626(%rip), %rax      # 0x4ff8
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movq (%rax), %rdx
movl 0x36e6(%rip), %ecx      # 0x50c8
leaq 0x181c(%rip), %rsi      # 0x3205
movb $0x0, %al
callq 0x10b0
movq -0x18(%rbp), %rax
movsbl (%rax), %edx
movl $0x3f, %eax
movl $0x3a, %ecx
cmpl $0x3a, %edx
cmovel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x1a4a
movq -0x20(%rbp), %rax
movl 0x3682(%rip), %ecx      # 0x5098
addl $0x1, %ecx
movl %ecx, 0x3679(%rip)      # 0x5098
movslq %ecx, %rcx
cmpb $0x0, (%rax,%rcx)
jne 0x1a41
movl 0x366e(%rip), %eax      # 0x509c
addl $0x1, %eax
movl %eax, 0x3665(%rip)      # 0x509c
movl $0x1, 0x3657(%rip)      # 0x5098
movl 0x3681(%rip), %eax      # 0x50c8
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)