// File: /workspace/github_c_makefile_star2_O1/DrYerzinia[P]C_DigiMode/src/util/argp.c
// Function: argp_print_help
static void argp_print_help(const char *cmd, struct argp_option *ops){

	printf("Usage: %s [OPTION]...\n", cmd);

	while(*(uint8_t*)ops != 0){

		int llen = 6;
		int has_short = isprint(ops->key);

		char *pch;

		printf("  ");

		// Single char option
		if(has_short)
			printf("-%c", ops->key);
		else
			printf("  ");

		// string option
		if(ops->name != NULL){

			if(has_short)
				printf(", ");
			else
				printf("  ");

			printf("--%s", ops->name);
			llen += strlen(ops->name) + 2;

			if(ops->arg != NULL){
				printf("=%s", ops->arg);
				llen += strlen(ops->arg) + 1;
			}
		}

		// Print description
		if(ops->doc != NULL){

			char doc[strlen(ops->doc)];
			strcpy(doc, ops->doc);

			if(llen > 30){
				printf("\n");
				llen = 0;
			} else if(llen == 30){
				llen -= 2;
			}

			if(llen < 30){
				printf("%*s" "%s", (30-llen), " ", " ");
				llen += (30-llen);
			}

			pch = strtok(doc, " ");

			while(pch != NULL){

				llen += strlen(pch) + 1;
				if(llen >= 80){
					printf("\n");
					llen = -2;
				}

				if(llen < 30){
					printf("%*s" "%s", (30-llen), " ", " ");
					llen += (30-llen);
				}

				printf("%s ", pch);

				pch = strtok(NULL, " ");

			};

		}

		printf("\n");

		ops++;

	};

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %rsi
leaq 0x11aa(%rip), %rdi      # 0x33a5
xorl %eax, %eax
callq 0x10a0
cmpb $0x0, (%rbx)
je 0x23ec
callq 0x1170
movq %rax, -0x30(%rbp)
leaq 0xf0f(%rip), %r12       # 0x312a
leaq 0xf09(%rip), %r13       # 0x312b
leaq 0x11a9(%rip), %r14      # 0x33d2
movq -0x30(%rbp), %rax
movq (%rax), %rax
movslq 0x8(%rbx), %rcx
movzwl (%rax,%rcx,2), %r15d
movq %r12, %rdi
xorl %eax, %eax
callq 0x10a0
btl $0xe, %r15d
jb 0x2256
movq %r12, %rdi
xorl %eax, %eax
callq 0x10a0
jmp 0x2267
movl 0x8(%rbx), %esi
leaq 0x115c(%rip), %rdi      # 0x33bc
xorl %eax, %eax
callq 0x10a0
cmpq $0x0, (%rbx)
je 0x22c9
btl $0xe, %r15d
leaq 0x1147(%rip), %rdi      # 0x33c0
cmovaeq %r12, %rdi
xorl %eax, %eax
callq 0x10a0
movq (%rbx), %rsi
leaq 0x1135(%rip), %rdi      # 0x33c3
xorl %eax, %eax
callq 0x10a0
movq (%rbx), %rdi
callq 0x1090
movq %rax, %r15
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x22d1
leaq 0x1118(%rip), %rdi      # 0x33c8
xorl %eax, %eax
callq 0x10a0
movq 0x10(%rbx), %rdi
callq 0x1090
addl %eax, %r15d
addl $0x9, %r15d
jmp 0x22d5
movl $0x6, %r15d
jmp 0x22d5
addl $0x8, %r15d
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x23d4
callq 0x1090
movq %rsp, -0x38(%rbp)
movq %rsp, %r12
addq $0xf, %rax
andq $-0x10, %rax
subq %rax, %r12
movq %r12, %rsp
movq 0x20(%rbx), %rsi
movq %r12, %rdi
callq 0x1050
cmpl $0x1f, %r15d
jl 0x231f
movl $0xa, %edi
callq 0x1040
movl $0x1e, %esi
jmp 0x2331
leal -0x1e(%r15), %esi
negl %esi
cmpl $0x1e, %r15d
movl $0x2, %eax
cmovel %eax, %esi
leaq 0x1094(%rip), %rdi      # 0x33cc
movq %r13, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x10a0
movq %r12, %rdi
movq %r13, %rsi
callq 0x1130
testq %rax, %rax
je 0x23c9
movq %rax, %r15
movl $0x1e, %r12d
movq %r15, %rdi
callq 0x1090
addl %eax, %r12d
incl %r12d
cmpl $0x50, %r12d
jl 0x2382
movl $0xa, %edi
callq 0x1040
movl $0xfffffffe, %r12d      # imm = 0xFFFFFFFE
cmpl $0x1d, %r12d
jg 0x23aa
movl $0x1e, %esi
subl %r12d, %esi
leaq 0x1035(%rip), %rdi      # 0x33cc
movq %r13, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x10a0
movl $0x1e, %r12d
movq %r14, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x10a0
xorl %edi, %edi
movq %r13, %rsi
callq 0x1130
movq %rax, %r15
testq %rax, %rax
jne 0x235e
movq -0x38(%rbp), %rsp
leaq 0xd56(%rip), %r12       # 0x312a
movl $0xa, %edi
callq 0x1040
cmpb $0x0, 0x30(%rbx)
leaq 0x30(%rbx), %rbx
jne 0x2229
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq