// File: /workspace/github_c_makefile_star2_O3/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 0x122e(%rip), %rdi      # 0x33bd
xorl %eax, %eax
callq 0x10a0
cmpb $0x0, (%rbx)
je 0x2380
callq 0x1170
movq %rax, -0x30(%rbp)
leaq 0xf93(%rip), %r12       # 0x3142
leaq 0xf8d(%rip), %r13       # 0x3143
leaq 0x122d(%rip), %r15      # 0x33ea
movq -0x30(%rbp), %rax
movq (%rax), %rax
movslq 0x8(%rbx), %rcx
movzwl (%rax,%rcx,2), %r14d
movq %r12, %rdi
xorl %eax, %eax
callq 0x10a0
btl $0xe, %r14d
jb 0x21f9
movq %r12, %rdi
xorl %eax, %eax
callq 0x10a0
cmpq $0x0, (%rbx)
movq %r12, %rdi
jne 0x2217
movl $0x6, %r14d
jmp 0x2267
movl 0x8(%rbx), %esi
leaq 0x11d1(%rip), %rdi      # 0x33d4
xorl %eax, %eax
callq 0x10a0
cmpq $0x0, (%rbx)
leaq 0x11c3(%rip), %rdi      # 0x33d8
je 0x21f1
xorl %eax, %eax
callq 0x10a0
movq (%rbx), %rsi
leaq 0x11b3(%rip), %rdi      # 0x33db
xorl %eax, %eax
callq 0x10a0
movq (%rbx), %rdi
callq 0x1090
movq %rax, %r14
movq 0x10(%rbx), %rsi
testq %rsi, %rsi
je 0x2263
leaq 0x1196(%rip), %rdi      # 0x33e0
xorl %eax, %eax
callq 0x10a0
movq 0x10(%rbx), %rdi
callq 0x1090
addl %eax, %r14d
addl $0x9, %r14d
jmp 0x2267
addl $0x8, %r14d
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x2368
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, %r14d
jl 0x22b1
movl $0xa, %edi
callq 0x1040
movl $0x1e, %esi
jmp 0x22c3
leal -0x1e(%r14), %esi
negl %esi
cmpl $0x1e, %r14d
movl $0x2, %eax
cmovel %eax, %esi
leaq 0x111a(%rip), %rdi      # 0x33e4
movq %r13, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x10a0
movq %r12, %rdi
movq %r13, %rsi
callq 0x1130
testq %rax, %rax
je 0x235d
movq %rax, %r14
movl $0x1e, %r12d
movq %r14, %rdi
callq 0x1090
addl %eax, %r12d
incl %r12d
cmpl $0x50, %r12d
jl 0x2316
movl $0xa, %edi
callq 0x1040
movl $0xfffffffe, %r12d      # imm = 0xFFFFFFFE
jmp 0x231c
cmpl $0x1d, %r12d
jg 0x233e
movl $0x1e, %esi
subl %r12d, %esi
leaq 0x10b9(%rip), %rdi      # 0x33e4
movq %r13, %rdx
movq %r13, %rcx
xorl %eax, %eax
callq 0x10a0
movl $0x1e, %r12d
movq %r15, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x10a0
xorl %edi, %edi
movq %r13, %rsi
callq 0x1130
movq %rax, %r14
testq %rax, %rax
jne 0x22f0
movq -0x38(%rbp), %rsp
leaq 0xdda(%rip), %r12       # 0x3142
movl $0xa, %edi
callq 0x1040
cmpb $0x0, 0x30(%rbx)
leaq 0x30(%rbx), %rbx
jne 0x21bd
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq