// File: /workspace/github_c_makefile_star2_O1/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, 0x10(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
movq $0x0, 0x8(%rsp)
leaq 0x4658c(%rip), %rax     # 0x615c8
cmpl $0x0, (%rax)
je 0x1b05e
movq 0x18(%r14), %rdi
callq 0x2e465
movq (%rbx), %rdi
leaq 0x2b4f7(%rip), %rsi     # 0x4654b
movq %rax, %rdx
xorl %eax, %eax
callq 0x118b4
leaq 0x8(%rsp), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1bf99
movq %rax, %rbx
movq (%rax), %rdi
movl %edi, %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1b0ad
cmpl $0x3b, 0x10(%rbx)
jne 0x1b0ad
movq 0x8(%rbx), %rbx
movl (%rbx), %eax
andl $0x3f, %eax
cmpl $0x3, %eax
jne 0x1b0bb
movq 0x10(%rbx), %rdi
movl $0x12, %esi
callq 0x2b511
testq %rax, %rax
je 0x1b0bb
testb $0x2, 0x1(%rax)
jne 0x1b063
jmp 0x1b0bb
leaq 0x2b4bc(%rip), %rsi     # 0x46570
xorl %eax, %eax
callq 0x11a38
movq %rbx, 0x20(%rsp)
movq 0x8(%rsp), %r13
movq %r14, 0x18(%rsp)
movq 0x60(%r14), %rax
movq 0x88(%rax), %rax
movq %rax, (%rsp)
testq %rax, %rax
je 0x1b210
leaq 0x50d8f(%rip), %r14     # 0x6be78
leaq 0x51648(%rip), %r15     # 0x6c738
movq (%rsp), %r12
movzwl (%r12), %ecx
testb %cl, %cl
jle 0x1b201
xorl %ebp, %ebp
movq 0x18(%r12,%rbp,8), %rbx
movzwl %cx, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0x1b11c
testq %rbx, %rbx
je 0x1b1ed
testq %r13, %r13
je 0x1b165
movq %r13, %rcx
movzwl (%rcx), %esi
movsbl %sil, %edx
testw %dx, %dx
jle 0x1b15c
movzwl %dx, %edx
movzwl %si, %esi
xorl %edi, %edi
movq 0x18(%rcx,%rdi,8), %rax
cmpl $0x100, %esi            # imm = 0x100
jb 0x1b14a
testq %rax, %rax
je 0x1b154
movq 0x18(%rax), %r8
cmpq 0x18(%rbx), %r8
je 0x1b169
incq %rdi
cmpq %rdi, %rdx
jne 0x1b138
movq 0x10(%rcx), %rcx
cmpq %r13, %rcx
jne 0x1b124
xorl %ecx, %ecx
jmp 0x1b16b
movb $0x1, %cl
testb %cl, %cl
jne 0x1b1b3
leaq 0x4643a(%rip), %rax     # 0x615b0
cmpl $0x0, (%rax)
je 0x1b199
movq 0x18(%rbx), %rdi
callq 0x2e465
movq 0x4(%rbx), %rdi
leaq 0x2b425(%rip), %rsi     # 0x465b4
movq %rax, %rdx
xorl %eax, %eax
callq 0x118b4
movq 0x4(%rbx), %rdi
movl $0x3, %esi
callq 0x2b547
movq 0x18(%rbx), %rcx
movq %rcx, 0x18(%rax)
movq %r15, 0x60(%rax)
orb $0x2, 0x2(%rax)
leaq 0x60(%rax), %rcx
movq 0x60(%rax), %rdx
testq %rdx, %rdx
je 0x1b1d3
cmpq %r14, 0x60(%rdx)
jne 0x1b1d3
testb $0x2, 0x57(%rdx)
je 0x1b1d3
movq %r15, (%rcx)
movq 0x20(%rcx), %rdx
movq %rdx, 0x80(%rbx)
movups (%rcx), %xmm0
movups 0x10(%rcx), %xmm1
movups %xmm1, 0x70(%rbx)
movups %xmm0, 0x60(%rbx)
incq %rbp
movl (%r12), %ecx
movsbq %cl, %rdx
cmpq %rdx, %rbp
jl 0x1b103
movq 0x10(%r12), %r12
cmpq (%rsp), %r12
jne 0x1b0f4
testq %r13, %r13
je 0x1b275
leaq 0x2b3c4(%rip), %r12     # 0x465e0
movq %r13, %rbx
movzwl (%rbx), %eax
testb %al, %al
jle 0x1b26c
xorl %r14d, %r14d
movq 0x18(%rbx,%r14,8), %r15
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x1b23d
testq %r15, %r15
je 0x1b25e
testb $0x2, 0x2(%r15)
jne 0x1b25e
movq 0x18(%r15), %rdi
callq 0x2e465
movq 0x4(%r15), %rdi
movq %r12, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x118b4
incq %r14
movl (%rbx), %eax
movsbq %al, %rcx
cmpq %rcx, %r14
jl 0x1b229
movq 0x10(%rbx), %rbx
cmpq %r13, %rbx
jne 0x1b21f
movq 0x20(%rsp), %rbx
movq (%rbx), %rdi
movl %edi, %eax
andl $0x3f, %eax
cmpl $0x12, %eax
movq 0x18(%rsp), %rsi
jne 0x1b2a4
cmpl $0x7b, 0x10(%rbx)
jne 0x1b2a4
movq %rbx, %rdi
movq 0x10(%rsp), %rdx
callq 0x1b2c4
movq %rax, %rbx
jmp 0x1b2b2
leaq 0x2b2f2(%rip), %rsi     # 0x4659d
xorl %eax, %eax
callq 0x11a38
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq