// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/parse.c
// Function: declaration_list
static struct token *declaration_list(struct token *token, struct symbol_list **list)
{
	struct decl_state ctx = {.prefer_abstract = 0};
	struct ctype saved;
	unsigned long mod;

	token = declaration_specifiers(token, &ctx);
	mod = decl_modifiers(&ctx);
	saved = ctx.ctype;
	for (;;) {
		struct symbol *decl = alloc_symbol(token->pos, SYM_NODE);
		ctx.cleanup = NULL;
		ctx.ident = &decl->ident;

		token = declarator(token, &ctx);
		if (match_op(token, ':'))
			token = handle_bitfield(token, &ctx);

		token = handle_attributes(token, &ctx);
		apply_modifiers(token->pos, &ctx);

		decl->ctype = ctx.ctype;
		decl->ctype.modifiers |= mod;
		decl->cleanup = ctx.cleanup;
		decl->endpos = token->pos;
		add_symbol(list, decl);
		if (!match_op(token, ','))
			break;
		token = token->next;
		ctx.ctype = saved;
	}
	return token;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rsi, %r12
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %r14
movaps %xmm0, 0x40(%r14)
movaps %xmm0, 0x30(%r14)
movaps %xmm0, 0x20(%r14)
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
movq $0x0, 0x50(%r14)
movq %r14, %rsi
callq 0x1981b
movq %rax, %r15
movq 0x8(%r14), %rax
movl %eax, %ebx
andl $0x3141007f, %ebx       # imm = 0x3141007F
andq $-0x31410080, %rax      # imm = 0xCEBEFF80
movq %rax, 0x8(%r14)
orq 0x48(%r14), %rbx
movaps 0x10(%r14), %xmm0
movaps %xmm0, 0x90(%rsp)
movq 0x20(%r14), %rax
movq %rax, 0xa0(%rsp)
movq (%r14), %rax
movq %rax, 0x80(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x88(%rsp)
movq %r12, 0x18(%rsp)
movq (%r15), %rdi
movl $0x3, %esi
callq 0x2b547
movq %rax, %r13
movq $0x0, 0x58(%rsp)
addq $0x18, %rax
movq %rax, 0x48(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x19a74
movq %rax, %rbp
movl (%rax), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1c19d
cmpl $0x3a, 0x10(%rbp)
jne 0x1c19d
movq 0x20(%rsp), %rdi
cmpq 0x44efd(%rip), %rdi     # 0x60f80
je 0x1c0da
cmpb $0x3, (%rdi)
movq %rdi, %rax
jne 0x1c091
movq 0x60(%rdi), %rax
cmpb $0x9, (%rax)
jne 0x1c09a
movq 0x60(%rax), %rax
cmpb $0xb, (%rax)
je 0x1c0da
leaq 0x4fdd2(%rip), %rcx     # 0x6be78
cmpq %rcx, 0x60(%rax)
je 0x1c0da
callq 0x2386c
movq (%rbp), %rdi
leaq 0x28461(%rip), %rsi     # 0x4451d
movq %rax, %rdx
xorl %eax, %eax
callq 0x11a38
movq 0x8(%rbp), %rdi
movq %rsp, %rsi
callq 0x3a79d
movq %rax, %rbp
jmp 0x1c19d
movq (%rbp), %rdi
movl $0xb, %esi
callq 0x2b547
movq %rax, %r12
movq 0x20(%rsp), %rax
movq %rax, 0x60(%r12)
movq 0x28(%rsp), %rax
movq %rax, 0x68(%r12)
movq %r12, 0x20(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x8(%rbp), %rdi
movq %rsp, %rsi
callq 0x3a79d
movq %rax, %rbp
movq (%rsp), %rdi
callq 0xf2f1
movq %rax, %r15
movl %r15d, 0x50(%r12)
cmpq $0x7fffffff, %rax       # imm = 0x7FFFFFFF
ja 0x1c151
movq 0x48(%rsp), %rax
movq (%rax), %rax
testq %rax, %rax
sete %cl
testq %r15, %r15
setne %dl
orb %cl, %dl
jne 0x1c249
movq 0x48(%rsp), %rax
movq (%rax), %rdi
callq 0x2e465
movq (%rbp), %rdi
leaq 0x283dc(%rip), %rsi     # 0x44545
movq %rax, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x11a38
movq $-0x1, %r15
movl %r15d, 0x50(%r12)
movq (%rbp), %rax
movq %rax, 0xc(%r12)
movq 0x48(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x18(%r12)
movq 0x18(%rsp), %r12
movq %rbp, %rdi
movq %r14, %rsi
callq 0x1afe1
movq %rax, %r15
movq (%rax), %rdi
movq %r14, %rsi
callq 0x1a1c6
movaps 0x20(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movups %xmm0, 0x60(%r13)
movq 0x40(%rsp), %rax
movq %rax, 0x80(%r13)
movups %xmm1, 0x70(%r13)
orq %rbx, 0x68(%r13)
movq 0x58(%rsp), %rax
movq %rax, 0xb8(%r13)
movq (%r15), %rax
movq %rax, 0xc(%r13)
movq %r12, %rdi
movq %r13, %rsi
callq 0x2285b
movl (%r15), %ecx
andl $0x3f, %ecx
movb $0x1, %al
cmpl $0x12, %ecx
jne 0x1c20d
cmpl $0x2c, 0x10(%r15)
setne %al
testb %al, %al
jne 0x1c23c
movq 0x8(%r15), %r15
movq 0xa0(%rsp), %rcx
movq %rcx, 0x40(%rsp)
movaps 0x80(%rsp), %xmm0
movaps 0x90(%rsp), %xmm1
movaps %xmm1, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
testb %al, %al
je 0x1c02f
jmp 0x1c2f2
testq %rax, %rax
je 0x1c17d
movq 0x60(%r12), %rax
cmpq 0x44d22(%rip), %rax     # 0x60f80
movq %r12, %rdx
cmovneq %rax, %rdx
movq 0x68(%rdx), %rcx
cmpq $0x1, %r15
jne 0x1c2aa
leaq 0x45356(%rip), %rax     # 0x615cc
cmpl $0x0, (%rax)
je 0x1c2aa
movl %ecx, %eax
andl $0x4000, %eax           # imm = 0x4000
jne 0x1c2aa
movq (%rbp), %rdi
leaq 0x282dd(%rip), %rsi     # 0x4456c
xorl %eax, %eax
movq %rcx, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
callq 0x11a38
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
leaq 0x4bb47(%rip), %rax     # 0x67df8
cmpl $0x0, (%rax)
je 0x1c17d
cmpb $0x9, (%rdx)
je 0x1c17d
andl $0x4000, %ecx           # imm = 0x4000
movq 0x68(%rdx), %rax
andl $0x8000, %eax           # imm = 0x8000
orq %rcx, %rax
jne 0x1c17d
movq (%rbp), %rdi
leaq 0x282a6(%rip), %rsi     # 0x4458c
xorl %eax, %eax
callq 0x118b4
jmp 0x1c17d
movq %r15, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq