// File: /workspace/github_c_makefile_star2_O2/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, %rbp
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %r14
movaps %xmm0, 0x40(%r14)
movaps %xmm0, 0x30(%r14)
movaps %xmm0, 0x20(%r14)
movaps %xmm0, 0x10(%r14)
movaps %xmm0, (%r14)
andq $0x0, 0x50(%r14)
movq %r14, %rsi
callq 0x176c5
movq 0x8(%r14), %rcx
movl %ecx, %ebx
andl $0x3141007f, %ebx       # imm = 0x3141007F
andq $-0x31410080, %rcx      # imm = 0xCEBEFF80
movq %rcx, 0x8(%r14)
orq 0x48(%r14), %rbx
movq %rax, %r15
movaps 0x10(%r14), %xmm0
movaps %xmm0, 0x30(%rsp)
movq 0x20(%r14), %rax
movq %rax, 0x40(%rsp)
movq (%r14), %rax
movq %rax, 0x20(%rsp)
movq 0x8(%r14), %rax
movq %rax, 0x28(%rsp)
movq %rbp, 0x18(%rsp)
movq (%r15), %rdi
pushq $0x3
popq %rsi
callq 0x2671f
andq $0x0, 0x88(%rsp)
movq %rax, %r13
addq $0x18, %rax
movq %rax, 0x78(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x178e3
movq %rax, %r15
movq (%rax), %r12
movl %r12d, %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x19ce1
cmpl $0x3a, 0x10(%r15)
jne 0x19ce1
movq 0x50(%rsp), %rbp
cmpq 0x40372(%rip), %rbp     # 0x59f80
je 0x19c20
movq %rbp, %rdi
callq 0x19e3c
testl %eax, %eax
je 0x19cb1
movq %r12, %rdi
movq %r14, %rsi
pushq $0xb
popq %rdx
callq 0x19e71
movq %rax, %r12
movq 0x8(%r15), %rdi
movq %rsp, %rsi
callq 0x33498
movq %rax, %r15
movq (%rsp), %rdi
callq 0xfecd
movq %rax, %rbp
movl %ebp, 0x50(%r12)
movq 0x78(%rsp), %rax
movq (%rax), %rdi
cmpq $0x7fffffff, %rbp       # imm = 0x7FFFFFFF
ja 0x19c76
testq %rdi, %rdi
sete %al
testq %rbp, %rbp
setne %cl
orb %al, %cl
jne 0x19d80
callq 0x2936d
movq (%r15), %rdi
leaq 0x228e0(%rip), %rsi     # 0x3c565
movq %rax, %rdx
movq %rbp, %rcx
xorl %eax, %eax
callq 0x1120e
pushq $-0x1
popq %rbp
movl %ebp, 0x50(%r12)
movq (%r15), %rax
movq %rax, 0xc(%r12)
movq 0x78(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x18(%r12)
jmp 0x19cdc
movq %rbp, %rdi
callq 0x20b5a
movq (%r15), %rdi
leaq 0x2287a(%rip), %rsi     # 0x3c53d
movq %rax, %rdx
xorl %eax, %eax
callq 0x1120e
movq 0x8(%r15), %rdi
movq %rsp, %rsi
callq 0x33498
movq %rax, %r15
movq 0x18(%rsp), %rbp
movq %r15, %rdi
movq %r14, %rsi
callq 0x18eca
movq %rax, %r15
movq (%rax), %rdi
movq %r14, %rsi
callq 0x17fba
movaps 0x50(%rsp), %xmm0
movaps 0x60(%rsp), %xmm1
movups %xmm0, 0x60(%r13)
movq 0x70(%rsp), %rax
movq %rax, 0x80(%r13)
movups %xmm1, 0x70(%r13)
orq %rbx, 0x68(%r13)
movq 0x88(%rsp), %rax
movq %rax, 0xb8(%r13)
movq (%r15), %rax
movq %rax, 0xc(%r13)
movq %rbp, %rdi
movq %r13, %rsi
callq 0x1fae9
movl (%r15), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x19e27
cmpl $0x2c, 0x10(%r15)
jne 0x19e27
movq 0x8(%r15), %r15
movq 0x40(%rsp), %rax
movq %rax, 0x70(%rsp)
movaps 0x20(%rsp), %xmm0
movaps 0x30(%rsp), %xmm1
movaps %xmm1, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
jmp 0x19bb7
testq %rdi, %rdi
je 0x19c95
movq 0x60(%r12), %rax
cmpq 0x401eb(%rip), %rax     # 0x59f80
movq %r12, %rdx
cmovneq %rax, %rdx
movq 0x68(%rdx), %rcx
cmpq $0x1, %rbp
jne 0x19de0
leaq 0x4081f(%rip), %rax     # 0x5a5cc
cmpl $0x0, (%rax)
je 0x19de0
movl %ecx, %eax
andl $0x4000, %eax           # imm = 0x4000
jne 0x19de0
movq (%r15), %rdi
leaq 0x227c7(%rip), %rsi     # 0x3c58c
xorl %eax, %eax
movq %rcx, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
callq 0x1120e
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
leaq 0x47011(%rip), %rax     # 0x60df8
cmpl $0x0, (%rax)
je 0x19c95
cmpb $0x9, (%rdx)
je 0x19c95
andl $0x4000, %ecx           # imm = 0x4000
movq 0x68(%rdx), %rax
andl $0x8000, %eax           # imm = 0x8000
orq %rcx, %rax
jne 0x19c95
movq (%r15), %rdi
leaq 0x22791(%rip), %rsi     # 0x3c5ac
xorl %eax, %eax
callq 0x1108a
jmp 0x19c95
movq %r15, %rax
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq