// File: /workspace/github_c_makefile_star2_O0/lucvoo[P]sparse-dev/pre-process.c
// Function: try_arg
static int try_arg(struct token *token, enum token_type type, struct token *arglist)
{
	struct ident *ident = token->ident;
	int nr;

	if (!arglist || token_type(token) != TOKEN_IDENT)
		return 0;

	arglist = arglist->next;

	for (nr = 0; !eof_token(arglist); nr++, arglist = arglist->next->next) {
		if (arglist->ident == ident) {
			struct argcount *count = &arglist->next->count;
			int n;

			token->argnum = nr;
			token_type(token) = type;
			switch (type) {
			case TOKEN_MACRO_ARGUMENT:
				n = ++count->normal;
				break;
			case TOKEN_QUOTED_ARGUMENT:
				n = ++count->quoted;
				break;
			default:
				n = ++count->str;
			}
			if (n)
				return count->vararg ? 2 : 1;
			/*
			 * XXX - need saner handling of that
			 * (>= 1024 instances of argument)
			 */
			token_type(token) = TOKEN_ERROR;
			return -1;
		}
	}
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq %rdx, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x2c682
movq -0x10(%rbp), %rax
movq (%rax), %rax
andq $0x3f, %rax
cmpl $0x3, %eax
je 0x2c68e
movl $0x0, -0x4(%rbp)
jmp 0x2c7f9
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0x2c(%rbp)
leaq 0x80318(%rip), %rax     # 0xac9c0
cmpq %rax, -0x20(%rbp)
sete %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x2c6ba
jmp 0x2c7f2
movq -0x20(%rbp), %rax
movq 0x10(%rax), %rax
cmpq -0x28(%rbp), %rax
jne 0x2c7d2
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
addq $0x10, %rax
movq %rax, -0x38(%rbp)
movl -0x2c(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x10(%rax)
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
movl %ecx, %edx
movq (%rax), %rcx
andl $0x3f, %edx
andq $-0x40, %rcx
orq %rdx, %rcx
movq %rcx, (%rax)
movl -0x14(%rbp), %eax
movl %eax, -0x40(%rbp)
subl $0x15, %eax
je 0x2c716
jmp 0x2c70c
movl -0x40(%rbp), %eax
subl $0x17, %eax
je 0x2c73a
jmp 0x2c766
movq -0x38(%rbp), %rcx
movl (%rcx), %eax
andl $0x3ff, %eax            # imm = 0x3FF
addl $0x1, %eax
movl (%rcx), %edx
andl $0x3ff, %eax            # imm = 0x3FF
andl $0xfffffc00, %edx       # imm = 0xFFFFFC00
orl %eax, %edx
movl %edx, (%rcx)
movl %eax, -0x3c(%rbp)
jmp 0x2c790
movq -0x38(%rbp), %rcx
movl (%rcx), %eax
shrl $0xa, %eax
andl $0x3ff, %eax            # imm = 0x3FF
addl $0x1, %eax
movl (%rcx), %edx
andl $0x3ff, %eax            # imm = 0x3FF
movl %eax, %esi
shll $0xa, %esi
andl $0xfff003ff, %edx       # imm = 0xFFF003FF
orl %esi, %edx
movl %edx, (%rcx)
movl %eax, -0x3c(%rbp)
jmp 0x2c790
movq -0x38(%rbp), %rcx
movl (%rcx), %eax
shrl $0x14, %eax
andl $0x3ff, %eax            # imm = 0x3FF
addl $0x1, %eax
movl (%rcx), %edx
andl $0x3ff, %eax            # imm = 0x3FF
movl %eax, %esi
shll $0x14, %esi
andl $0xc00fffff, %edx       # imm = 0xC00FFFFF
orl %esi, %edx
movl %edx, (%rcx)
movl %eax, -0x3c(%rbp)
cmpl $0x0, -0x3c(%rbp)
je 0x2c7b7
movq -0x38(%rbp), %rax
movl (%rax), %edx
shrl $0x1e, %edx
andl $0x1, %edx
movl $0x1, %eax
movl $0x2, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x4(%rbp)
jmp 0x2c7f9
movq -0x10(%rbp), %rax
movq (%rax), %rcx
andq $-0x40, %rcx
orq $0x2, %rcx
movq %rcx, (%rax)
movl $0xffffffff, -0x4(%rbp) # imm = 0xFFFFFFFF
jmp 0x2c7f9
jmp 0x2c7d4
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
jmp 0x2c6a1
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nop