// File: /workspace/github_cpp_makefile_star2_O3/Alcaro[P]bridges/arlib/argparse.cpp
// Function: argparse::single_arg(argparse::arg_base&, char const*, argparse::arglevel_t, bool*)
void argparse::single_arg(arg_base& arg, const char * value, arglevel_t arglevel, bool* used_value)
{
	if (!arg.can_use)
	{
		if (arg.name) error("can't use --"+arg.name+" more than once");
		else error("can't use more than one non-argument");
	}
	if (!arg.can_use_multi) arg.can_use = false;
	arg.must_use = false;
	
	if (used_value) *used_value = false;
	
	if (!value && !arg.accept_no_value) error("missing argument for --"+arg.name);
	if (arglevel == al_mandatory && !arg.accept_value) error("--"+arg.name+" doesn't allow an argument");
	
	if (value && arg.accept_value && (!arg.accept_no_value || arglevel > al_loose))
	{
		if (!arg.parse(true, value)) error("invalid value for --"+arg.name);
		if (used_value) *used_value = true;
	}
	else
	{
		arg.parse(false, "");
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x0, 0x1c(%rsi)
je 0x5209
movq %r8, %r15
movq %rdx, %r12
cmpb $0x0, 0x1d(%r14)
jne 0x5140
movb $0x0, 0x1c(%r14)
movb $0x0, 0x1b(%r14)
testq %r15, %r15
je 0x514e
movb $0x0, (%r15)
testq %r12, %r12
jne 0x515e
cmpb $0x0, 0x19(%r14)
je 0x5321
cmpl $0x3, %ecx
jne 0x516e
cmpb $0x0, 0x1a(%r14)
je 0x52b2
testq %r12, %r12
je 0x5186
cmpb $0x1, 0x1a(%r14)
jne 0x5186
cmpl $0x1, %ecx
jg 0x51c1
cmpb $0x0, 0x19(%r14)
je 0x51c1
leaq 0x2d2df(%rip), %rsi     # 0x3246c
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x5990
movq (%rbx), %rdx
movq 0x8(%rbx), %rcx
movq (%r14), %rax
movq %r14, %rdi
xorl %esi, %esi
callq *(%rax)
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x30f0
leaq 0x38(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
movl $0x1, %ecx
callq 0x5990
movq (%r13), %rdx
movq 0x8(%r13), %rcx
movq (%r14), %rax
movq %r14, %rdi
movl $0x1, %esi
callq *(%rax)
testb %al, %al
je 0x533c
testq %r15, %r15
je 0x51b2
movb $0x1, (%r15)
jmp 0x51b2
movzbl 0x17(%r14), %eax
testb %al, %al
jns 0x5218
movl 0x10(%r14), %eax
jmp 0x521b
xorl $0xf, %eax
testl %eax, %eax
jne 0x524b
leaq 0x48(%rsp), %r14
movb $0xf, 0xf(%r14)
movb $0x0, (%r14)
leaq 0x29df5(%rip), %rsi     # 0x2f029
movl $0x24, %edx
movq %r14, %rdi
movl $0x1, %ecx
callq 0x5990
jmp 0x538d
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rax
movabsq $0x73752074276e6163, %rcx # imm = 0x73752074276E6163
leaq 0x8(%rsp), %r14
movq %rcx, (%r14)
movl $0x2d2d2065, 0x8(%r14)  # imm = 0x2D2D2065
xorl %ebp, %ebp
movb %bpl, 0xc(%r14)
movb $0x3, 0xf(%r14)
leaq 0x18(%rsp), %rcx
movq %rsi, (%rcx)
movq %rax, 0x8(%rcx)
movq %rax, %rdi
shrq $0x38, %rdi
xorq $0xf, %rdi
testq %rax, %rax
movl %eax, %edx
cmovnsq %rdi, %rdx
cmovnsq %rcx, %rsi
movq %r14, %rdi
callq 0x1967e
leaq 0x29d6e(%rip), %rsi     # 0x2f019
movl $0xf, %edx
jmp 0x5308
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rax
leaq 0x8(%rsp), %r14
movw $0x2d2d, (%r14)         # imm = 0x2D2D
xorl %ebp, %ebp
movb %bpl, 0x2(%r14)
movb $0xd, 0xf(%r14)
leaq 0x18(%rsp), %rcx
movq %rsi, (%rcx)
movq %rax, 0x8(%rcx)
movq %rax, %rdi
shrq $0x38, %rdi
xorq $0xf, %rdi
testq %rax, %rax
movl %eax, %edx
cmovnsq %rdi, %rdx
cmovnsq %rcx, %rsi
movq %r14, %rdi
callq 0x1967e
leaq 0x29d63(%rip), %rsi     # 0x2f066
movl $0x1a, %edx
movq %r14, %rdi
callq 0x1967e
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movb $0xf, 0xf(%r14)
movb %bpl, (%r14)
jmp 0x5394
movq 0x8(%r14), %r15
movq 0x10(%r14), %r12
leaq 0x29d1e(%rip), %rsi     # 0x2f04e
leaq 0x8(%rsp), %r14
movl $0x17, %edx
jmp 0x5355
movq 0x8(%r14), %r15
movq 0x10(%r14), %r12
leaq 0x29d36(%rip), %rsi     # 0x2f081
leaq 0x8(%rsp), %r14
movl $0x14, %edx
movq %r14, %rdi
callq 0x19536
leaq 0x18(%rsp), %rax
movq %r15, (%rax)
movq %r12, 0x8(%rax)
movq %r12, %rcx
shrq $0x38, %rcx
xorq $0xf, %rcx
testq %r12, %r12
movl %r12d, %edx
cmovnsq %rcx, %rdx
cmovnsq %rax, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x1967e
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x50b6