// File: /workspace/github_c_makefile_star2_O3/jaroslov[P]docoptc/./docopt.h
// Function: docopt_parse_usage
static int docopt_parse_usage(struct docopt_parse_state* dS)
{
    if (dS->entries->error) return 0;
    char pname[512]             = { 0 };
    char re_pname[512]          = { 0 };
    struct docopt_str   usestmt = { 0, 0 };
    int usage_section_s         = 0;
    for (int i = 0, e = docopt_str_len(&dS->pname); i < e; ++i)
    {
        pname[2*i+0] = '\\';
        pname[2*i+1] = dS->pname.fst[i];
    }
    sprintf(&re_pname[0], DOCOPT_RE_USAGE_STATEMENT_START, pname);
    if (regcomp(&dS->re_usage_statement_start, re_pname, REG_EXTENDED))
    {
        dS->entries->error  = DOCOPT_BAD_USAGE_NAME;
        return 1;
    }

    dS->usage_term  = docopt_new_term(dS, DOCOPT_TYPE_USAGE_SECTION);
    usestmt.fst     = dS->usage_section.fst;
    while (!docopt_get_section(dS, &dS->re_usage_statement_start, &dS->re_usage_statement_start, usestmt.fst, &usestmt, 3, 0))
    {
        if (usestmt.fst >= dS->usage_section.lst) break;
        usestmt.lst     = usestmt.lst > dS->usage_section.lst ? dS->usage_section.lst : usestmt.lst;
        fprintf(dS->log, "USAGE SECTION(%.*s)\n", DOCOPT_PR(&usestmt));
        usage_section_s = docopt_new_term(dS, DOCOPT_TYPE_USAGE_STATEMENT);
        if (!docopt_parse_expr(dS, &usestmt))
        {
            dS->entries->error   = DOCOPT_BAD_USAGE_STATEMENT;
            return 1;
        }
        fprintf(dS->log, "...RETRIEVED(%d)\n", dS->curterm - usage_section_s);
        DO_TM(usage_section_s)->length  = dS->curterm - usage_section_s;
    }
    DO_TM(dS->usage_term)->length       = dS->curterm - dS->usage_term;

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x418, %rsp            # imm = 0x418
movq 0x8(%rdi), %rax
xorl %r15d, %r15d
cmpl $0x0, (%rax)
jne 0x80fd
movq %rdi, %rbx
leaq -0x240(%rbp), %rdi
movl $0x200, %edx            # imm = 0x200
xorl %esi, %esi
callq 0x70a0
leaq -0x440(%rbp), %rdi
movl $0x200, %edx            # imm = 0x200
xorl %esi, %esi
callq 0x70a0
movq $0x0, -0x30(%rbp)
movq 0x48(%rbx), %rax
movq 0x50(%rbx), %rcx
subq %rax, %rcx
testl %ecx, %ecx
jle 0x8051
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
xorl %edx, %edx
movb $0x5c, -0x240(%rbp,%rdx,2)
movb (%rax,%rdx), %sil
movb %sil, -0x23f(%rbp,%rdx,2)
incq %rdx
cmpq %rdx, %rcx
jne 0x8035
leaq 0x419c(%rip), %rsi      # 0xc1f4
leaq -0x440(%rbp), %r12
leaq -0x240(%rbp), %rdx
movq %r12, %rdi
xorl %eax, %eax
callq 0x7120
leaq 0x440(%rbx), %r14
movl $0x1, %r15d
movq %r14, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x70b0
testl %eax, %eax
je 0x809d
movq 0x8(%rbx), %rax
movl $0x2, (%rax)
jmp 0x80fd
movq %rbx, %rdi
movl $0x1, %esi
callq 0x8b4e
movl %eax, 0x158(%rbx)
movq 0x28(%rbx), %rcx
leaq -0x38(%rbp), %r8
movq %rcx, (%r8)
movq %rbx, %rdi
movq %r14, %rsi
movq %r14, %rdx
movl $0x3, %r9d
callq 0x7937
testl %eax, %eax
je 0x8112
movl 0x1c(%rbx), %eax
movslq 0x158(%rbx), %rcx
subl %ecx, %eax
movq 0x20(%rbx), %rdx
shll $0x7, %eax
movl $0xf800007f, %esi       # imm = 0xF800007F
andl 0x4(%rdx,%rcx,8), %esi
andl $0x7ffff80, %eax        # imm = 0x7FFFF80
orl %eax, %esi
movl %esi, 0x4(%rdx,%rcx,8)
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x418, %rsp            # imm = 0x418
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq -0x38(%rbp), %r12
leaq 0x4105(%rip), %r13      # 0xc222
movq -0x38(%rbp), %rcx
movq 0x30(%rbx), %rax
cmpq %rax, %rcx
jae 0x80d3
movq -0x30(%rbp), %rdx
cmpq %rax, %rdx
cmovaq %rax, %rdx
movq %rdx, -0x30(%rbp)
movq (%rbx), %rdi
subl %ecx, %edx
leaq 0x40c8(%rip), %rsi      # 0xc20d
xorl %eax, %eax
callq 0x70e0
movq %rbx, %rdi
movl $0x2, %esi
callq 0x8b4e
movl %eax, %r15d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8d64
testl %eax, %eax
je 0x81cc
movq (%rbx), %rdi
movl 0x1c(%rbx), %edx
subl %r15d, %edx
movq %r13, %rsi
xorl %eax, %eax
callq 0x70e0
movl 0x1c(%rbx), %eax
subl %r15d, %eax
movq 0x20(%rbx), %rcx
movslq %r15d, %rdx
shll $0x7, %eax
andl $0x7ffff80, %eax        # imm = 0x7FFFF80
movl 0x4(%rcx,%rdx,8), %esi
movl $0xf800007f, %edi       # imm = 0xF800007F
andl %edi, %esi
orl %eax, %esi
movl %esi, 0x4(%rcx,%rdx,8)
movq -0x38(%rbp), %rcx
movq %rbx, %rdi
movq %r14, %rsi
movq %r14, %rdx
movq %r12, %r8
movl $0x3, %r9d
callq 0x7937
testl %eax, %eax
je 0x811d
jmp 0x80d3
movq 0x8(%rbx), %rax
movl $0x3, (%rax)
movl $0x1, %r15d
jmp 0x80fd