// File: /workspace/github_c_makefile_star2_O0/j-hoppe[P]tu58fs/getopt2.c
// Function: getopt_getoptionsyntax
static char *getopt_getoptionsyntax(getopt_option_descr_t *odesc, int style)
//	getopt_t *_this, getopt_option_descr_t *odesc)
{
	static char buffer[2 * GETOPT_MAX_LINELEN];
	unsigned i;
	char *s;

	// mount a single "-option arg arg [arg arg]"
	if (style == 0) {
		if (odesc->long_name)
			snprintf(buffer, sizeof(buffer), "--%s", odesc->long_name);
		else if (odesc->short_name)
			snprintf(buffer, sizeof(buffer), "-%s", odesc->short_name);
		else  buffer[0] = 0; // no option name: non-optopn commadnline arguments
	}
	else { // both names comma separated: "-short, --long"
		buffer[0] = 0;
		if (odesc->short_name) {
			strncat(buffer, "-", sizeof(buffer) - 1);
			strncat(buffer, odesc->short_name, sizeof(buffer) - 1);
		}
		// expand short name field for widthes name, so summary is aligned
		while (strlen(buffer) < 1+odesc->parent->max_short_name_len)
			strncat(buffer, " ", sizeof(buffer) - 1);

		if (odesc->long_name) {
			if (odesc->short_name)
				strncat(buffer, " | ", sizeof(buffer) - 1);
			strncat(buffer, "--", sizeof(buffer) - 1);
			strncat(buffer, odesc->long_name, sizeof(buffer) - 1);
		}
	}

	for (i = 0; (s = odesc->fix_args[i]); i++) {
		strncat(buffer, " <", sizeof(buffer) - 1);
		strncat(buffer, s, sizeof(buffer) - 1);
		strncat(buffer, ">", sizeof(buffer) - 1);
	}
	for (i = 0; (s = odesc->var_args[i]); i++) {
		strncat(buffer, " ", sizeof(buffer) - 1);
		if (i == 0) strncat(buffer, "[", sizeof(buffer) - 1);
		strncat(buffer, "<", sizeof(buffer) - 1);
		strncat(buffer, s, sizeof(buffer) - 1);
		strncat(buffer, ">", sizeof(buffer) - 1);
	}
	if (i > 0) strncat(buffer, "]", sizeof(buffer) - 1);

	return buffer;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
cmpl $0x0, -0xc(%rbp)
jne 0x7081
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x7044
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rcx
leaq 0x1df41(%rip), %rdi     # 0x24f70
movl $0x200, %esi            # imm = 0x200
leaq 0x14675(%rip), %rdx     # 0x1b6b0
movb $0x0, %al
callq 0x31d0
jmp 0x707c
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x7073
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rcx
leaq 0x1df12(%rip), %rdi     # 0x24f70
movl $0x200, %esi            # imm = 0x200
leaq 0x14647(%rip), %rdx     # 0x1b6b1
movb $0x0, %al
callq 0x31d0
jmp 0x707a
movb $0x0, 0x1def6(%rip)     # 0x24f70
jmp 0x707c
jmp 0x7164
movb $0x0, 0x1dee8(%rip)     # 0x24f70
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x70c4
leaq 0x1ded6(%rip), %rdi     # 0x24f70
leaq 0x14368(%rip), %rsi     # 0x1b409
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rsi
leaq 0x1deb6(%rip), %rdi     # 0x24f70
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
jmp 0x70c6
leaq 0x1dea3(%rip), %rdi     # 0x24f70
callq 0x3190
movq -0x8(%rbp), %rcx
movq (%rcx), %rcx
movl 0x340(%rcx), %ecx
addl $0x1, %ecx
movl %ecx, %ecx
cmpq %rcx, %rax
jae 0x7103
leaq 0x1de80(%rip), %rdi     # 0x24f70
leaq 0x1666d(%rip), %rsi     # 0x1d764
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
jmp 0x70c6
movq -0x8(%rbp), %rax
cmpq $0x0, 0x10(%rax)
je 0x7162
movq -0x8(%rbp), %rax
cmpq $0x0, 0x8(%rax)
je 0x7131
leaq 0x1de50(%rip), %rdi     # 0x24f70
leaq 0x1458e(%rip), %rsi     # 0x1b6b5
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
leaq 0x1de38(%rip), %rdi     # 0x24f70
leaq 0x142c9(%rip), %rsi     # 0x1b408
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rsi
leaq 0x1de18(%rip), %rdi     # 0x24f70
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
jmp 0x7164
movl $0x0, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl -0x10(%rbp), %ecx
movq 0x18(%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
je 0x71d1
leaq 0x1dde8(%rip), %rdi     # 0x24f70
leaq 0x1452a(%rip), %rsi     # 0x1b6b9
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
movq -0x18(%rbp), %rsi
leaq 0x1ddcc(%rip), %rdi     # 0x24f70
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
leaq 0x1ddbb(%rip), %rdi     # 0x24f70
leaq 0x16dfa(%rip), %rsi     # 0x1dfb6
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x716b
movl $0x0, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl -0x10(%rbp), %ecx
movq 0x340(%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
cmpq $0x0, %rax
je 0x727e
leaq 0x1dd74(%rip), %rdi     # 0x24f70
leaq 0x16561(%rip), %rsi     # 0x1d764
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
cmpl $0x0, -0x10(%rbp)
jne 0x722b
leaq 0x1dd56(%rip), %rdi     # 0x24f70
leaq 0x1449b(%rip), %rsi     # 0x1b6bc
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
leaq 0x1dd3e(%rip), %rdi     # 0x24f70
leaq 0x14481(%rip), %rsi     # 0x1b6ba
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
movq -0x18(%rbp), %rsi
leaq 0x1dd22(%rip), %rdi     # 0x24f70
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
leaq 0x1dd11(%rip), %rdi     # 0x24f70
leaq 0x16d50(%rip), %rsi     # 0x1dfb6
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x71d8
cmpl $0x0, -0x10(%rbp)
jbe 0x729c
leaq 0x1dce5(%rip), %rdi     # 0x24f70
leaq 0x15df9(%rip), %rsi     # 0x1d08b
movl $0x1ff, %edx            # imm = 0x1FF
callq 0x3250
leaq 0x1dccd(%rip), %rax     # 0x24f70
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)