// File: /workspace/github_c_makefile_star2_O1/j-hoppe[P]tu58fs/getopt2.c
// Function: getopt_help_option_intern
static void getopt_help_option_intern(getopt_option_descr_t *odesc, FILE *stream, unsigned linelen, unsigned indent)
{
	char linebuff[2 * GETOPT_MAX_LINELEN];
	char phrase[2 * GETOPT_MAX_LINELEN];
	linebuff[0] = 0;

	// print syntax
	strncpy(phrase, getopt_getoptionsyntax(odesc, 1), sizeof(phrase));
	output_append(stream, linebuff, sizeof(linebuff), phrase, /*linebreak*/0, linelen, indent);
	output_append(stream, linebuff, sizeof(linebuff), "", /*linebreak*/1, linelen, indent); // newline
	if (odesc->info)
		getopt_print_multilinestring(stream, linebuff, sizeof(linebuff), odesc->info, linelen, indent);
	if (odesc->default_args) {
		snprintf(phrase, sizeof(phrase), " Default: \"%s\"", odesc->default_args);
		output_append(stream, linebuff, sizeof(linebuff), phrase, /*linebreak*/0, linelen, indent);
	}

	// print examples:
	if (odesc->example_simple_cline_args) {
		output_append(stream, linebuff, sizeof(linebuff), "Simple example:  ", 1, linelen, indent);
		if (odesc->short_name) {
			output_append(stream, linebuff, sizeof(linebuff), "-", 0, linelen, indent);
			output_append(stream, linebuff, sizeof(linebuff), odesc->short_name, 0, linelen, indent);
			output_append(stream, linebuff, sizeof(linebuff), " ", 0, linelen, indent);
		}
		getopt_print_multilinestring(stream, linebuff, sizeof(linebuff), odesc->example_simple_cline_args, linelen, indent + 4);
		output_append(stream, linebuff, sizeof(linebuff), "    ", /*linebreak*/1, linelen, indent); // newline + extra indent
//		output_append(stream, linebuff, sizeof(linebuff), "", /*linebreak*/1, linelen, indent); // newline + extra indent
		getopt_print_multilinestring(stream, linebuff, sizeof(linebuff), odesc->example_simple_info, linelen, indent + 4);
	}
	if (odesc->example_complex_cline_args) {
		output_append(stream, linebuff, sizeof(linebuff), "Complex example:  ", 1, linelen, indent);
		if (odesc->long_name) {
			output_append(stream, linebuff, sizeof(linebuff), "--", 0, linelen, indent);
			output_append(stream, linebuff, sizeof(linebuff), odesc->long_name, 0, linelen, indent);
			output_append(stream, linebuff, sizeof(linebuff), " ", 0, linelen, indent);
		}
		getopt_print_multilinestring(stream, linebuff, sizeof(linebuff), odesc->example_complex_cline_args, linelen, indent + 4);
		//		output_append(stream, linebuff, sizeof(linebuff), "", /*linebreak*/1, linelen, indent); // newline + extra indent
		output_append(stream, linebuff, sizeof(linebuff), "    ", /*linebreak*/1, linelen, indent); // newline + extra indent
		getopt_print_multilinestring(stream, linebuff, sizeof(linebuff), odesc->example_complex_info, linelen, indent + 4);
	}
	// flush
	fprintf(stream, "%s\n", linebuff);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x408, %rsp            # imm = 0x408
movl %ecx, %r15d
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %r12
movb $0x0, (%r12)
movl $0x1, %esi
callq 0x6074
leaq 0x1793c(%rip), %rsi     # 0x1dc80
leaq 0x200(%rsp), %r13
movl $0x200, %edx            # imm = 0x200
movq %r13, %rdi
callq 0x30a0
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x6271
leaq 0xf429(%rip), %rdx      # 0x1579f
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x6271
movq 0x688(%r14), %rdx
testq %rdx, %rdx
je 0x63a8
movq %rsp, %rsi
movq %rbx, %rdi
movl %ebp, %ecx
movl %r15d, %r8d
callq 0x668c
movq 0x680(%r14), %rcx
testq %rcx, %rcx
je 0x63e8
leaq 0xe317(%rip), %rdx      # 0x146d2
leaq 0x200(%rsp), %r12
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
xorl %eax, %eax
callq 0x31e0
movq %rsp, %rsi
movq %rbx, %rdi
movq %r12, %rdx
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x6271
cmpq $0x0, 0x690(%r14)
je 0x64ba
leaq 0xe2e4(%rip), %rdx      # 0x146e1
movq %rsp, %rsi
movq %rbx, %rdi
movl $0x1, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x6271
cmpq $0x0, 0x8(%r14)
je 0x6468
leaq 0xe002(%rip), %rdx      # 0x14423
movq %rsp, %r12
movq %rbx, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x6271
movq 0x8(%r14), %rdx
movq %rbx, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x6271
leaq 0x10373(%rip), %rdx     # 0x167c8
movq %rbx, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x6271
movq 0x690(%r14), %rdx
leal 0x4(%r15), %r12d
movq %rsp, %r13
movq %rbx, %rdi
movq %r13, %rsi
movl %ebp, %ecx
movl %r12d, %r8d
callq 0x668c
leaq 0x10338(%rip), %rdx     # 0x167c5
movq %rbx, %rdi
movq %r13, %rsi
movl $0x1, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x6271
movq 0x698(%r14), %rdx
movq %rbx, %rdi
movq %r13, %rsi
movl %ebp, %ecx
movl %r12d, %r8d
callq 0x668c
cmpq $0x0, 0x6a0(%r14)
je 0x658c
leaq 0xe224(%rip), %rdx      # 0x146f3
movq %rsp, %rsi
movq %rbx, %rdi
movl $0x1, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x6271
cmpq $0x0, 0x10(%r14)
je 0x653a
leaq 0xdf2f(%rip), %rdx      # 0x14422
movq %rsp, %r12
movq %rbx, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x6271
movq 0x10(%r14), %rdx
movq %rbx, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x6271
leaq 0x102a1(%rip), %rdx     # 0x167c8
movq %rbx, %rdi
movq %r12, %rsi
xorl %ecx, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x6271
movq 0x6a0(%r14), %rdx
leal 0x4(%r15), %r12d
movq %rsp, %r13
movq %rbx, %rdi
movq %r13, %rsi
movl %ebp, %ecx
movl %r12d, %r8d
callq 0x668c
leaq 0x10266(%rip), %rdx     # 0x167c5
movq %rbx, %rdi
movq %r13, %rsi
movl $0x1, %ecx
movl %ebp, %r8d
movl %r15d, %r9d
callq 0x6271
movq 0x6a8(%r14), %rdx
movq %rbx, %rdi
movq %r13, %rsi
movl %ebp, %ecx
movl %r12d, %r8d
callq 0x668c
leaq 0xf7b3(%rip), %rsi      # 0x15d46
movq %rsp, %rdx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x3320
addq $0x408, %rsp            # imm = 0x408
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq