// File: /workspace/github_c_makefile_star2_O1/jaroslov[P]docoptc/./docopt.h
// Function: docopt_parse_args
static int docopt_parse_args(struct docopt_parse_state* dS)
{
    if (dS->entries->error) return 0;
    // options* commands* -- arguments*
    struct docopt_entries argE  = *dS->entries;
    struct docopt_entries *docE = dS->entries;
    int result                  = 0;
    int hterm                   = 0;
    struct docopt_str arg       = { 0, 0 };
    struct docopt_entry entry   = { { 0 } };
    struct docopt_entry* terme  = 0;
    argE.nentries               = dS->argc+1;
    argE.curentry               = 0;
    if (!(argE.entries = (struct docopt_entry*)calloc(sizeof(struct docopt_entry), dS->argc+1)))
        goto docoptDone;
    dS->entries                 = &argE;

    dS->args_term               = dS->curterm;
    for (int i = 0; i < dS->argc; ++i)
    {
        arg.fst         = dS->argv[i];
        arg.lst         = dS->argv[i] + strlen(dS->argv[i]);
        if (!strcmp(dS->argv[i], "--") || !strcmp(dS->argv[i], "-") || (dS->argv[i][0] != '-') || dS->positional)
        {
            if (!strcmp(dS->argv[i], "--")) dS->positional = 1;
            fprintf(dS->log, "ARGUMENT (%s)\n", dS->argv[i]);
            hterm       = docopt_new_term(dS, DOCOPT_TYPE_ARGUMENT);
            DO_TM(hterm)->length = 1;
            entry.name.fst  = dS->argv[i];
            entry.name.lst  = dS->argv[i] + strlen(dS->argv[i]);
            DO_TM(hterm)->entry = docopt_entries_insert_entry(dS->entries, &entry);
        }
        else
        {
            fprintf(dS->log, "LONG/SHORT (%s)\n", dS->argv[i]);
            hterm           = docopt_parse_atom(dS, &arg);
            if (DO_TM(hterm)->type == DOCOPT_TYPE_LONG)
            {
                terme       = docopt_fetch_entry(dS->entries, DO_TM(hterm)->entry);
                if (docopt_str_len(&terme->name) < strlen(dS->argv[i]))
                {
                    terme->command.fst  = dS->argv[i] + 1 + docopt_str_len(&terme->name);
                    terme->command.lst  = dS->argv[i] + strlen(dS->argv[i]);
                }
            }
            if ((DO_TM(hterm)->type == DOCOPT_TYPE_SHORT) && (strlen(dS->argv[i]) > 2))
            {
                terme               = docopt_fetch_entry(dS->entries, DO_TM(hterm)->entry);
                terme->command.fst  = dS->argv[i] + 2;
                terme->command.lst  = dS->argv[i] + strlen(dS->argv[i]);
            }
        }
    }

    dS->optional    = 1;
    dS->positional  = 0;
    dS->entries     = docE;
    dS->args        = &argE;

    dS->nargterms       = dS->curterm - dS->args_term;
    dS->entries->nargs  = dS->nargterms;
    fprintf(dS->log, "Tokenized Args Length (%d)\n", dS->entries->nargs);
    if (!(dS->entries->args = (struct docopt_arg*)calloc(sizeof(struct docopt_arg), dS->entries->nargs)))
    {
        dS->entries->error = DOCOPT_BAD_ARG_ALLOC;
        return 1;
    }

    result          = docopt_unify_args(dS, dS->usage_term);

docoptDone:
    dS->entries                 = docE;
    if (argE.entries) free(argE.entries);
    return !result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq 0x8(%rdi), %r15
xorl %r14d, %r14d
cmpl $0x0, (%r15)
jne 0x85ca
movq %rdi, %rbx
movups (%r15), %xmm0
movups 0x10(%r15), %xmm1
movups 0x20(%r15), %xmm2
movups 0x30(%r15), %xmm3
movaps %xmm3, -0x80(%rbp)
movaps %xmm2, -0x90(%rbp)
movaps %xmm1, -0xa0(%rbp)
movaps %xmm0, -0xb0(%rbp)
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movaps %xmm0, -0xd0(%rbp)
movaps %xmm0, -0xe0(%rbp)
movaps %xmm0, -0xf0(%rbp)
movq $0x0, -0xc0(%rbp)
movslq 0x16c(%rdi), %rsi
incq %rsi
movl %esi, -0x94(%rbp)
movl $0x0, -0x90(%rbp)
movl $0x38, %edi
callq 0x70d0
movq %rax, -0x88(%rbp)
testq %rax, %rax
je 0x85a0
movq %r15, -0x68(%rbp)
leaq -0xb0(%rbp), %rax
movq %rax, 0x8(%rbx)
movl 0x1c(%rbx), %eax
movl %eax, 0x15c(%rbx)
cmpl $0x0, 0x16c(%rbx)
jle 0x852a
xorl %r14d, %r14d
movq 0x178(%rbx), %rax
movq (%rax,%r14,8), %r13
movq %r13, -0x50(%rbp)
movq %r13, %rdi
callq 0x7070
addq %r13, %rax
movq %rax, -0x48(%rbp)
movq %r13, %rdi
leaq 0x3ab8(%rip), %rsi      # 0xbde2
callq 0x70e0
testl %eax, %eax
je 0x8362
movl %eax, %r15d
movq %r13, %rdi
leaq 0x3aa3(%rip), %rsi      # 0xbde3
callq 0x70e0
testl %eax, %eax
je 0x835d
cmpb $0x2d, (%r13)
jne 0x835d
cmpl $0x0, 0x164(%rbx)
je 0x8402
testl %r15d, %r15d
jne 0x836c
movl $0x1, 0x164(%rbx)
movq (%rbx), %rdi
leaq 0x3eca(%rip), %rsi      # 0xc240
movq %r13, %rdx
xorl %eax, %eax
callq 0x70f0
movq %rbx, %rdi
movl $0xa, %esi
callq 0x8be7
movq 0x20(%rbx), %rcx
movslq %eax, %r12
movl 0x4(%rcx,%r12,8), %eax
movl $0xf800007f, %edx       # imm = 0xF800007F
andl %edx, %eax
orl $0x80, %eax
movl %eax, 0x4(%rcx,%r12,8)
movq 0x178(%rbx), %rax
movq (%rax,%r14,8), %rcx
movq %rcx, -0xf0(%rbp)
movq (%rax,%r14,8), %r15
movq %r15, %rdi
callq 0x7070
addq %r15, %rax
movq %rax, -0xe8(%rbp)
movq 0x8(%rbx), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x8c95
movq 0x20(%rbx), %rcx
movl %eax, (%rcx,%r12,8)
incq %r14
movslq 0x16c(%rbx), %rax
cmpq %rax, %r14
jl 0x8302
jmp 0x852a
movq (%rbx), %rdi
leaq 0x3e43(%rip), %rsi      # 0xc24f
movq %r13, %rdx
xorl %eax, %eax
callq 0x70f0
movq %rbx, %rdi
leaq -0x50(%rbp), %rsi
callq 0x9012
movq 0x20(%rbx), %rcx
movslq %eax, %rdx
movl 0x4(%rcx,%rdx,8), %eax
andl $0x1f, %eax
cmpl $0x5, %eax
jne 0x84b4
movq %rcx, -0x30(%rbp)
movq %rdx, -0x38(%rbp)
movslq (%rcx,%rdx,8), %rax
testq %rax, %rax
js 0x85df
movq 0x8(%rbx), %rcx
movq 0x178(%rbx), %rdx
movq 0x28(%rcx), %r15
imulq $0x38, %rax, %r12
movl 0x8(%r15,%r12), %r13d
subl (%r15,%r12), %r13d
movq %rdx, -0x60(%rbp)
movq (%rdx,%r14,8), %rdi
movq %rdi, -0x58(%rbp)
callq 0x7070
cmpq %r13, %rax
movq -0x30(%rbp), %rcx
movq -0x38(%rbp), %rdx
jbe 0x84b4
addq %r12, %r15
movq -0x58(%rbp), %rax
addq %r13, %rax
incq %rax
movq %rax, 0x18(%r15)
movq -0x60(%rbp), %rax
movq (%rax,%r14,8), %r12
movq %r12, %rdi
callq 0x7070
movq -0x38(%rbp), %rdx
movq -0x30(%rbp), %rcx
addq %r12, %rax
movq %rax, 0x20(%r15)
movl 0x4(%rcx,%rdx,8), %eax
andl $0x1f, %eax
cmpl $0x6, %eax
jne 0x83ea
movq 0x178(%rbx), %rax
movq %rax, -0x30(%rbp)
movq (%rax,%r14,8), %r15
movq %r15, %rdi
movq %rcx, %r12
movq %rdx, %r13
callq 0x7070
cmpq $0x3, %rax
jb 0x83ea
movslq (%r12,%r13,8), %rax
testq %rax, %rax
js 0x85df
movq 0x8(%rbx), %rcx
movq 0x28(%rcx), %r12
imulq $0x38, %rax, %r13
addq $0x2, %r15
movq %r15, 0x18(%r12,%r13)
movq -0x30(%rbp), %rax
movq (%rax,%r14,8), %r15
movq %r15, %rdi
callq 0x7070
addq %r15, %rax
movq %rax, 0x20(%r12,%r13)
jmp 0x83ea
movq $0x1, 0x160(%rbx)
movq -0x68(%rbp), %r15
movq %r15, 0x8(%rbx)
leaq -0xb0(%rbp), %rax
movq %rax, 0x10(%rbx)
movl 0x1c(%rbx), %edx
subl 0x15c(%rbx), %edx
movl %edx, 0x170(%rbx)
movl %edx, 0x30(%r15)
movq (%rbx), %rdi
leaq 0x3cfb(%rip), %rsi      # 0xc260
xorl %eax, %eax
callq 0x70f0
movq 0x8(%rbx), %r14
movslq 0x30(%r14), %rsi
movl $0x18, %edi
callq 0x70d0
movq %rax, 0x38(%r14)
testq %rax, %rax
je 0x85bd
movl 0x158(%rbx), %esi
movq %rbx, %rdi
callq 0x9526
xorl %r14d, %r14d
testl %eax, %eax
sete %r14b
jmp 0x85a6
movl $0x1, %r14d
movq %r15, 0x8(%rbx)
movq -0x88(%rbp), %rdi
testq %rdi, %rdi
je 0x85ca
callq 0x7030
jmp 0x85ca
movl $0x6, (%r14)
movl $0x1, %r14d
movl %r14d, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3d84(%rip), %rdi      # 0xc36a
leaq 0x1b4a(%rip), %rsi      # 0xa137
leaq 0x3d82(%rip), %rcx      # 0xc376
movl $0xe7, %edx
callq 0x7080