// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/parse.c
// Function: parse_k_r_arguments
static struct token *parse_k_r_arguments(struct token *token, struct symbol *decl,
	struct symbol_list **list)
{
	struct symbol_list *args = NULL;

	if (Wold_style_definition)
		warning(token->pos, "non-ANSI definition of function '%s'", show_ident(decl->ident));

	do {
		token = declaration_list(token, &args);
		if (!match_op(token, ';')) {
			sparse_error(token->pos, "expected ';' at end of parameter declaration");
			break;
		}
		token = token->next;
	} while (lookup_type(token));

	apply_k_r_types(args, decl);

	if (!match_op(token, '{')) {
		sparse_error(token->pos, "expected function body");
		return token;
	}
	return parse_function_body(token, decl, list);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, 0x18(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
movq $0x0, 0x8(%rsp)
leaq 0x4569c(%rip), %rax     # 0x605c8
cmpl $0x0, (%rax)
je 0x1af4e
movq 0x18(%r14), %rdi
callq 0x2de35
movq (%rbx), %rdi
leaq 0x2a5c7(%rip), %rsi     # 0x4550b
movq %rax, %rdx
xorl %eax, %eax
callq 0x118fc
leaq 0x8(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1be95
movq %rax, %rbx
movq (%rax), %rdi
movl %edi, %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1af9d
cmpl $0x3b, 0x10(%rbx)
jne 0x1af9d
movq 0x8(%rbx), %rbx
movl (%rbx), %eax
andl $0x3f, %eax
cmpl $0x3, %eax
jne 0x1afab
movq 0x10(%rbx), %rdi
movl $0x12, %esi
callq 0x2afd5
testq %rax, %rax
je 0x1afab
testb $0x2, 0x1(%rax)
jne 0x1af53
jmp 0x1afab
leaq 0x2a58c(%rip), %rsi     # 0x45530
xorl %eax, %eax
callq 0x11a80
movq %rbx, 0x20(%rsp)
movq 0x8(%rsp), %r13
movq %r14, 0x10(%rsp)
movq 0x60(%r14), %rax
movq 0x88(%rax), %rax
movq %rax, (%rsp)
testq %rax, %rax
je 0x1b107
leaq 0x5075f(%rip), %r15     # 0x6b738
leaq 0x4fe98(%rip), %rbp     # 0x6ae78
movq (%rsp), %r12
movzwl (%r12), %eax
testb %al, %al
jle 0x1b0f8
xorl %r14d, %r14d
movq 0x18(%r12,%r14,8), %rbx
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0x1b00d
testq %rbx, %rbx
je 0x1b0e5
testq %r13, %r13
je 0x1b055
movq %r13, %rax
movzwl (%rax), %edx
movsbl %dl, %ecx
testw %cx, %cx
jle 0x1b04c
movzwl %cx, %ecx
movzwl %dx, %edx
xorl %esi, %esi
movq 0x18(%rax,%rsi,8), %rdi
cmpl $0x100, %edx            # imm = 0x100
jb 0x1b03a
testq %rdi, %rdi
je 0x1b044
movq 0x18(%rdi), %r8
cmpq 0x18(%rbx), %r8
je 0x1b0a6
incq %rsi
cmpq %rsi, %rcx
jne 0x1b028
movq 0x10(%rax), %rax
cmpq %r13, %rax
jne 0x1b015
leaq 0x45554(%rip), %rax     # 0x605b0
cmpl $0x0, (%rax)
je 0x1b07f
movq 0x18(%rbx), %rdi
callq 0x2de35
movq 0x4(%rbx), %rdi
leaq 0x2a4ff(%rip), %rsi     # 0x45574
movq %rax, %rdx
xorl %eax, %eax
callq 0x118fc
movq 0x4(%rbx), %rdi
movl $0x3, %esi
callq 0x2b00b
movq 0x18(%rbx), %rcx
movq %rcx, 0x18(%rax)
leaq 0x60(%rax), %rcx
movq %r15, 0x60(%rax)
orb $0x2, 0x2(%rax)
movq %r15, %rax
jmp 0x1b0b7
leaq 0x60(%rdi), %rcx
movq 0x60(%rdi), %rax
orb $0x2, 0x2(%rdi)
testq %rax, %rax
je 0x1b0c6
cmpq %rbp, 0x60(%rax)
jne 0x1b0c6
testb $0x2, 0x57(%rax)
je 0x1b0c6
movq %r15, (%rcx)
movq 0x20(%rcx), %rax
movq %rax, 0x80(%rbx)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups %xmm1, 0x70(%rbx)
movups %xmm0, 0x60(%rbx)
movzwl (%r12), %eax
incq %r14
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r14
jl 0x1aff4
movq 0x10(%r12), %r12
cmpq (%rsp), %r12
jne 0x1afe4
testq %r13, %r13
je 0x1b171
leaq 0x2a48d(%rip), %r12     # 0x455a0
movq %r13, %rbx
movzwl (%rbx), %eax
testb %al, %al
jle 0x1b168
xorl %r14d, %r14d
movq 0x18(%rbx,%r14,8), %r15
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0x1b135
testq %r15, %r15
je 0x1b159
testb $0x2, 0x2(%r15)
jne 0x1b159
movq 0x18(%r15), %rdi
callq 0x2de35
movq 0x4(%r15), %rdi
movq %r12, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x118fc
movzwl (%rbx), %eax
incq %r14
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %r14
jl 0x1b120
movq 0x10(%rbx), %rbx
cmpq %r13, %rbx
jne 0x1b116
movq 0x20(%rsp), %rbx
movq (%rbx), %rdi
movl %edi, %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1b1a0
cmpl $0x7b, 0x10(%rbx)
jne 0x1b1a0
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
callq 0x1b1c0
movq %rax, %rbx
jmp 0x1b1ae
leaq 0x2a3b6(%rip), %rsi     # 0x4555d
xorl %eax, %eax
callq 0x11a80
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq