// File: /workspace/github_c_makefile_star2_O0/lucvoo[P]sparse-dev/parse.c
// Function: parse_asm_statement
static struct token *parse_asm_statement(struct token *token, struct statement *stmt)
{
	unsigned long mods = 0;

	token = token->next;
	stmt->type = STMT_ASM;
	while (token_type(token) == TOKEN_IDENT) {
		struct symbol *s = lookup_keyword(token->ident, NS_TYPEDEF);
		if (s && s->op->asm_modifier)
			s->op->asm_modifier(token, &mods, s->ctype.modifiers);
		else if (token->ident == &goto_ident)
			asm_modifier(token, &mods, MOD_ASM_GOTO);
		token = token->next;
	}
	token = expect(token, '(', "after asm");
	token = string_expression(token, &stmt->asm_string, "inline asm");
	if (match_op(token, ':'))
		token = parse_asm_operands(token, stmt, &stmt->asm_outputs);
	if (match_op(token, ':'))
		token = parse_asm_operands(token, stmt, &stmt->asm_inputs);
	if (match_op(token, ':'))
		token = parse_asm_clobbers(token, stmt, &stmt->asm_clobbers);
	if (match_op(token, ':') && (mods & MOD_ASM_GOTO))
		token = parse_asm_labels(token, stmt, &stmt->asm_labels);
	token = expect(token, ')', "after asm");
	return expect(token, ';', "at end of asm-statement");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
movq -0x10(%rbp), %rax
movl $0xb, (%rax)
movq -0x8(%rbp), %rax
movq (%rax), %rax
andq $0x3f, %rax
cmpl $0x3, %eax
jne 0x279f4
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rdi
movl $0x2, %esi
callq 0x244c0
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
je 0x279be
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rax
cmpq $0x0, 0x50(%rax)
je 0x279be
movq -0x20(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x50(%rax), %rax
movq -0x8(%rbp), %rdi
movq -0x20(%rbp), %rcx
movq 0x68(%rcx), %rdx
leaq -0x18(%rbp), %rsi
callq *%rax
jmp 0x279e3
movq -0x8(%rbp), %rax
leaq 0x624f7(%rip), %rcx     # 0x89ec0
cmpq %rcx, 0x10(%rax)
jne 0x279e1
movq -0x8(%rbp), %rdi
leaq -0x18(%rbp), %rsi
movl $0x20, %edx
callq 0x24e50
jmp 0x279e3
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x8(%rbp)
jmp 0x2795e
movq -0x8(%rbp), %rdi
movl $0x28, %esi
leaq 0x3d969(%rip), %rdx     # 0x6536d
callq 0x22eb0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
addq $0x10, %rsi
leaq 0x3bfa6(%rip), %rdx     # 0x639c6
callq 0x55ce0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movl $0x3a, %esi
callq 0x22f80
cmpl $0x0, %eax
je 0x27a59
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq $0x10, %rdx
addq $0x8, %rdx
callq 0x27bc0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movl $0x3a, %esi
callq 0x22f80
cmpl $0x0, %eax
je 0x27a89
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq $0x10, %rdx
addq $0x10, %rdx
callq 0x27bc0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movl $0x3a, %esi
callq 0x22f80
cmpl $0x0, %eax
je 0x27ab9
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq $0x10, %rdx
addq $0x18, %rdx
callq 0x27d20
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movl $0x3a, %esi
callq 0x22f80
cmpl $0x0, %eax
je 0x27af7
movq -0x18(%rbp), %rax
andq $0x20, %rax
cmpq $0x0, %rax
je 0x27af7
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
movq -0x10(%rbp), %rdx
addq $0x10, %rdx
addq $0x20, %rdx
callq 0x27d80
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movl $0x29, %esi
leaq 0x3d866(%rip), %rdx     # 0x6536d
callq 0x22eb0
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movl $0x3b, %esi
leaq 0x3d857(%rip), %rdx     # 0x65377
callq 0x22eb0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)