// File: /workspace/github_c_makefile_star2_O0/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
subq $0x450, %rsp            # imm = 0x450
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
cmpl $0x0, (%rax)
je 0x8478
movl $0x0, -0x4(%rbp)
jmp 0x8782
leaq -0x210(%rbp), %rdi
xorl %esi, %esi
movl $0x200, %edx            # imm = 0x200
callq 0x70a0
leaq -0x410(%rbp), %rdi
xorl %esi, %esi
movl $0x200, %edx            # imm = 0x200
callq 0x70a0
leaq -0x420(%rbp), %rdi
xorl %esi, %esi
movl $0x10, %edx
callq 0x70a0
movl $0x0, -0x424(%rbp)
movl $0x0, -0x428(%rbp)
movq -0x10(%rbp), %rdi
addq $0x48, %rdi
callq 0x7420
movl %eax, -0x42c(%rbp)
movl -0x428(%rbp), %eax
cmpl -0x42c(%rbp), %eax
jge 0x8532
movl -0x428(%rbp), %eax
shll %eax
addl $0x0, %eax
cltq
movb $0x5c, -0x210(%rbp,%rax)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x428(%rbp), %rcx
movb (%rax,%rcx), %cl
movl -0x428(%rbp), %eax
shll %eax
addl $0x1, %eax
cltq
movb %cl, -0x210(%rbp,%rax)
movl -0x428(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x428(%rbp)
jmp 0x84d8
leaq -0x410(%rbp), %rdi
leaq -0x210(%rbp), %rdx
leaq 0x5c8a(%rip), %rsi      # 0xe1d1
movb $0x0, %al
callq 0x7130
movq -0x10(%rbp), %rdi
addq $0x440, %rdi            # imm = 0x440
leaq -0x410(%rbp), %rsi
movl $0x1, %edx
callq 0x70b0
cmpl $0x0, %eax
je 0x8589
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl $0x2, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x8782
movq -0x10(%rbp), %rdi
movl $0x1, %esi
callq 0x9940
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x158(%rax)
movq -0x10(%rbp), %rax
movq 0x28(%rax), %rax
movq %rax, -0x420(%rbp)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x440, %rsi            # imm = 0x440
movq -0x10(%rbp), %rdx
addq $0x440, %rdx            # imm = 0x440
movq -0x420(%rbp), %rcx
leaq -0x420(%rbp), %r8
movl $0x3, %r9d
xorl %eax, %eax
movl $0x0, (%rsp)
callq 0x7b80
cmpl $0x0, %eax
setne %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x85ff
jmp 0x8734
movq -0x420(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x30(%rcx), %rax
jb 0x8615
jmp 0x8734
movq -0x418(%rbp), %rax
movq -0x10(%rbp), %rcx
cmpq 0x30(%rcx), %rax
jbe 0x8637
movq -0x10(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x438(%rbp)
jmp 0x8645
movq -0x418(%rbp), %rax
movq %rax, -0x438(%rbp)
movq -0x438(%rbp), %rax
movq %rax, -0x418(%rbp)
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x440(%rbp)
leaq -0x420(%rbp), %rdi
callq 0x7420
movq -0x440(%rbp), %rdi
movl %eax, %edx
movq -0x420(%rbp), %rcx
leaq 0x5b66(%rip), %rsi      # 0xe1ea
movb $0x0, %al
callq 0x70e0
movq -0x10(%rbp), %rdi
movl $0x2, %esi
callq 0x9940
movl %eax, -0x424(%rbp)
movq -0x10(%rbp), %rdi
leaq -0x420(%rbp), %rsi
callq 0x9ce0
cmpl $0x0, %eax
jne 0x86ce
movq -0x10(%rbp), %rax
movq 0x8(%rax), %rax
movl $0x3, (%rax)
movl $0x1, -0x4(%rbp)
jmp 0x8782
movq -0x10(%rbp), %rax
movq (%rax), %rdi
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %edx
subl -0x424(%rbp), %edx
leaq 0x5b16(%rip), %rsi      # 0xe1ff
movb $0x0, %al
callq 0x70e0
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
subl -0x424(%rbp), %eax
movl %eax, -0x444(%rbp)
movq -0x10(%rbp), %rdi
movl -0x424(%rbp), %esi
callq 0x99f0
movl -0x444(%rbp), %edx
movl 0x4(%rax), %ecx
andl $0xfffff, %edx          # imm = 0xFFFFF
shll $0x7, %edx
andl $0xf800007f, %ecx       # imm = 0xF800007F
orl %edx, %ecx
movl %ecx, 0x4(%rax)
jmp 0x85b2
movq -0x10(%rbp), %rax
movl 0x1c(%rax), %eax
movq -0x10(%rbp), %rcx
subl 0x158(%rcx), %eax
movl %eax, -0x448(%rbp)
movq -0x10(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x158(%rax), %esi
callq 0x99f0
movl -0x448(%rbp), %edx
movl 0x4(%rax), %ecx
andl $0xfffff, %edx          # imm = 0xFFFFF
shll $0x7, %edx
andl $0xf800007f, %ecx       # imm = 0xF800007F
orl %edx, %ecx
movl %ecx, 0x4(%rax)
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x450, %rsp            # imm = 0x450
popq %rbp
retq
nop