// File: /workspace/github_cpp_makefile_star2_O1/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 0x4895
movq %r8, %r15
movq %rdx, %r12
cmpb $0x0, 0x1d(%r14)
jne 0x47cc
movb $0x0, 0x1c(%r14)
movb $0x0, 0x1b(%r14)
testq %r15, %r15
je 0x47da
movb $0x0, (%r15)
testq %r12, %r12
jne 0x47ea
cmpb $0x0, 0x19(%r14)
je 0x49ab
cmpl $0x3, %ecx
jne 0x47fa
cmpb $0x0, 0x1a(%r14)
je 0x493d
testq %r12, %r12
je 0x4812
cmpb $0x1, 0x1a(%r14)
jne 0x4812
cmpl $0x1, %ecx
jg 0x484d
cmpb $0x0, 0x19(%r14)
je 0x484d
leaq 0x2dbb3(%rip), %rsi     # 0x323cc
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
xorl %edx, %edx
movl $0x1, %ecx
callq 0x5040
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 0x5040
movq (%r13), %rdx
movq 0x8(%r13), %rcx
movq (%r14), %rax
movq %r14, %rdi
movl $0x1, %esi
callq *(%rax)
testb %al, %al
je 0x49c6
testq %r15, %r15
je 0x483e
movb $0x1, (%r15)
jmp 0x483e
movzbl 0x17(%r14), %eax
testb %al, %al
jns 0x48a4
movl 0x10(%r14), %eax
jmp 0x48a7
xorl $0xf, %eax
testl %eax, %eax
jne 0x48d7
leaq 0x48(%rsp), %r14
movb $0xf, 0xf(%r14)
movb $0x0, (%r14)
leaq 0x2a769(%rip), %rsi     # 0x2f029
movl $0x24, %edx
movq %r14, %rdi
movl $0x1, %ecx
callq 0x5040
jmp 0x4a16
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)
movzbl 0xf(%rcx), %edx
movq %rdx, %rdi
xorq $0xf, %rdi
testb %dl, %dl
movl %eax, %edx
cmovnsq %rcx, %rsi
cmovnsq %rdi, %rdx
movq %r14, %rdi
callq 0x19466
leaq 0x2a6e3(%rip), %rsi     # 0x2f019
movl $0xf, %edx
jmp 0x4992
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)
movzbl 0xf(%rcx), %edx
movq %rdx, %rdi
xorq $0xf, %rdi
testb %dl, %dl
movl %eax, %edx
cmovnsq %rcx, %rsi
cmovnsq %rdi, %rdx
movq %r14, %rdi
callq 0x19466
leaq 0x2a6d9(%rip), %rsi     # 0x2f066
movl $0x1a, %edx
movq %r14, %rdi
callq 0x19466
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movb $0xf, 0xf(%r14)
movb %bpl, (%r14)
jmp 0x4a1d
movq 0x8(%r14), %r15
movq 0x10(%r14), %r12
leaq 0x2a694(%rip), %rsi     # 0x2f04e
leaq 0x8(%rsp), %r14
movl $0x17, %edx
jmp 0x49df
movq 0x8(%r14), %r15
movq 0x10(%r14), %r12
leaq 0x2a6ac(%rip), %rsi     # 0x2f081
leaq 0x8(%rsp), %r14
movl $0x14, %edx
movq %r14, %rdi
callq 0x19316
leaq 0x18(%rsp), %rax
movq %r15, (%rax)
movq %r12, 0x8(%rax)
movzbl 0xf(%rax), %ecx
movq %rcx, %rsi
xorq $0xf, %rsi
testb %cl, %cl
movl %r12d, %edx
cmovnsq %rax, %r15
cmovnsq %rsi, %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x19466
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x4746
nop