// File: /workspace/github_c_makefile_star2_O3/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 %eax, %eax
cmpl $0x0, (%r15)
jne 0x8575
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, -0xd0(%rbp)
movaps %xmm0, -0xe0(%rbp)
movaps %xmm0, -0xf0(%rbp)
movq $0x0, -0xc0(%rbp)
movslq 0x16c(%rdi), %r14
leaq 0x1(%r14), %rsi
movl %esi, -0x94(%rbp)
movl $0x0, -0x90(%rbp)
movl $0x38, %edi
callq 0x70d0
movq %rax, -0x88(%rbp)
movb $0x1, %r12b
testq %rax, %rax
je 0x8571
leaq -0xb0(%rbp), %rcx
movq %rcx, 0x8(%rbx)
movl 0x1c(%rbx), %eax
movl %eax, 0x15c(%rbx)
movl %eax, %edx
testl %r14d, %r14d
jle 0x84f4
movq %r15, -0x40(%rbp)
leaq 0x3f81(%rip), %r13      # 0xc23a
xorl %r12d, %r12d
movq 0x178(%rbx), %rax
movq (%rax,%r12,8), %r14
movq %r14, -0x68(%rbp)
movq %r14, %rdi
callq 0x7070
addq %r14, %rax
movq %rax, -0x60(%rbp)
cmpb $0x2d, (%r14)
jne 0x8454
cmpb $0x2d, 0x1(%r14)
jne 0x82f6
cmpb $0x0, 0x2(%r14)
je 0x844a
cmpb $0x0, 0x1(%r14)
je 0x8454
cmpl $0x0, 0x164(%rbx)
jne 0x8454
movq (%rbx), %rdi
leaq 0x3f31(%rip), %rsi      # 0xc249
movq %r14, %rdx
xorl %eax, %eax
callq 0x70e0
movq %rbx, %rdi
leaq -0x68(%rbp), %rsi
callq 0x8f8e
movq 0x20(%rbx), %rcx
movslq %eax, %rdx
movl 0x4(%rcx,%rdx,8), %r13d
movl %r13d, %eax
andl $0x1f, %eax
cmpl $0x5, %eax
movq %rcx, -0x30(%rbp)
movq %rdx, -0x38(%rbp)
jne 0x83c6
movslq (%rcx,%rdx,8), %rax
testq %rax, %rax
js 0x8587
movq 0x8(%rbx), %rcx
movq 0x178(%rbx), %rdx
movq 0x28(%rcx), %r15
imulq $0x38, %rax, %rax
movl 0x8(%r15,%rax), %r14d
movq %rax, -0x50(%rbp)
subl (%r15,%rax), %r14d
movq %rdx, -0x58(%rbp)
movq (%rdx,%r12,8), %rdi
movq %rdi, -0x48(%rbp)
callq 0x7070
cmpq %r14, %rax
jbe 0x83c6
addq -0x50(%rbp), %r15
movq -0x48(%rbp), %rax
addq %r14, %rax
incq %rax
movq %rax, 0x18(%r15)
movq -0x58(%rbp), %rax
movq (%rax,%r12,8), %r14
movq %r14, %rdi
callq 0x7070
addq %r14, %rax
movq %rax, 0x20(%r15)
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
movl 0x4(%rax,%rcx,8), %r13d
andl $0x1f, %r13d
cmpl $0x6, %r13d
leaq 0x3e65(%rip), %r13      # 0xc23a
jne 0x84ca
movq 0x178(%rbx), %r15
movq (%r15,%r12,8), %r14
movq %r14, %rdi
callq 0x7070
cmpq $0x3, %rax
jb 0x84ca
movq -0x30(%rbp), %rax
movq -0x38(%rbp), %rcx
movslq (%rax,%rcx,8), %rax
testq %rax, %rax
js 0x8587
movq 0x8(%rbx), %rcx
movq 0x28(%rcx), %rcx
movq %rcx, -0x30(%rbp)
imulq $0x38, %rax, %r13
addq $0x2, %r14
movq %r14, 0x18(%rcx,%r13)
movq (%r15,%r12,8), %r14
movq %r14, %rdi
callq 0x7070
addq %r14, %rax
movq -0x30(%rbp), %rcx
movq %rax, 0x20(%rcx,%r13)
leaq 0x3df5(%rip), %r13      # 0xc23a
jmp 0x84ca
movl $0x1, 0x164(%rbx)
movq (%rbx), %rdi
movq %r13, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x70e0
movq %rbx, %rdi
movl $0xa, %esi
callq 0x8b4e
movq 0x20(%rbx), %rcx
movslq %eax, %r15
movl 0x4(%rcx,%r15,8), %eax
movl $0xf800007f, %edx       # imm = 0xF800007F
andl %edx, %eax
orl $0x80, %eax
movl %eax, 0x4(%rcx,%r15,8)
movq 0x178(%rbx), %rax
movq (%rax,%r12,8), %r14
movq %r14, -0xf0(%rbp)
movq %r14, %rdi
callq 0x7070
addq %r14, %rax
movq %rax, -0xe8(%rbp)
movq 0x8(%rbx), %rdi
leaq -0xf0(%rbp), %rsi
callq 0x8bfe
movq 0x20(%rbx), %rcx
movl %eax, (%rcx,%r15,8)
incq %r12
movslq 0x16c(%rbx), %rax
cmpq %rax, %r12
jl 0x82bc
movl 0x1c(%rbx), %edx
movl 0x15c(%rbx), %eax
movq -0x40(%rbp), %r15
movb $0x1, %r12b
leaq -0xb0(%rbp), %rcx
subl %eax, %edx
movq $0x1, 0x160(%rbx)
movq %r15, 0x8(%rbx)
movq %rcx, 0x10(%rbx)
movl %edx, 0x170(%rbx)
movl %edx, 0x30(%r15)
movq (%rbx), %rdi
leaq 0x3d3d(%rip), %rsi      # 0xc25a
xorl %eax, %eax
callq 0x70e0
movq 0x8(%rbx), %r14
movslq 0x30(%r14), %rsi
movl $0x18, %edi
callq 0x70d0
movq %rax, 0x38(%r14)
testq %rax, %rax
je 0x856a
movl 0x158(%rbx), %esi
movq %rbx, %rdi
callq 0x9471
testl %eax, %eax
sete %r12b
movq -0x88(%rbp), %rdi
movq %r15, 0x8(%rbx)
testq %rdi, %rdi
je 0x8571
callq 0x7030
jmp 0x8571
movl $0x6, (%r14)
movzbl %r12b, %eax
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3dd6(%rip), %rdi      # 0xc364
leaq 0x1b9f(%rip), %rsi      # 0xa134
leaq 0x3dd4(%rip), %rcx      # 0xc370
movl $0xe7, %edx
callq 0x7080