// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq $0x0, (%rsp)
movq 0x8(%rdi), %r14
movl $0xb, (%rsi)
movl (%r14), %eax
andl $0x3f, %eax
cmpl $0x3, %eax
jne 0x1d4a4
leaq 0x47aba(%rip), %r13     # 0x64ef0
leaq 0x26eec(%rip), %r15     # 0x44329
movq %rsp, %r12
movq 0x10(%r14), %rdi
testb $0x4, 0x11(%rdi)
jne 0x1d44e
xorl %eax, %eax
jmp 0x1d458
movl $0x2, %esi
callq 0x2b511
testq %rax, %rax
je 0x1d478
movq 0x40(%rax), %rcx
movq 0x50(%rcx), %rcx
testq %rcx, %rcx
je 0x1d478
movq 0x68(%rax), %rdx
movq %r14, %rdi
movq %r12, %rsi
callq *%rcx
jmp 0x1d495
cmpq %r13, 0x10(%r14)
jne 0x1d495
testb $0x20, (%rsp)
je 0x1d491
movq (%r14), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x118b4
orb $0x20, (%rsp)
movq 0x8(%r14), %r14
movl (%r14), %eax
andl $0x3f, %eax
cmpl $0x3, %eax
je 0x1d440
leaq 0x27599(%rip), %rdx     # 0x44a44
movq %r14, %rdi
movl $0x28, %esi
callq 0x195d7
leaq 0x10(%rbx), %rsi
leaq 0x255d9(%rip), %rdx     # 0x42a9c
movq %rax, %rdi
callq 0x39940
movq %rax, %r14
movl (%rax), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1d4ee
cmpl $0x3a, 0x10(%r14)
jne 0x1d4ee
leaq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x1d643
movq %rax, %r14
movl (%r14), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1d50f
cmpl $0x3a, 0x10(%r14)
jne 0x1d50f
leaq 0x20(%rbx), %rsi
movq %r14, %rdi
callq 0x1d643
movq %rax, %r14
movl (%r14), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1d55d
cmpl $0x3a, 0x10(%r14)
jne 0x1d55d
leaq 0x28(%rbx), %r15
leaq 0x8(%rsp), %r12
movq 0x8(%r14), %rdi
movq %r12, %rsi
callq 0x39991
movq %rax, %r14
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x1d54b
movq %r15, %rdi
callq 0x2285b
movl (%r14), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1d55d
cmpl $0x2c, 0x10(%r14)
je 0x1d52a
movl (%r14), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1d5b6
cmpl $0x3a, 0x10(%r14)
jne 0x1d5b6
testb $0x20, (%rsp)
je 0x1d5b6
addq $0x30, %rbx
movq 0x8(%r14), %r14
movl (%r14), %eax
andl $0x3f, %eax
cmpl $0x3, %eax
jne 0x1d5b6
movq %r14, %rdi
movl $0x1, %esi
callq 0x196a5
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2285b
movq 0x8(%r14), %r14
movl (%r14), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1d5b6
cmpl $0x2c, 0x10(%r14)
je 0x1d579
leaq 0x27487(%rip), %rdx     # 0x44a44
movq %r14, %rdi
movl $0x29, %esi
callq 0x195d7
leaq 0x2747d(%rip), %rdx     # 0x44a4e
movq %rax, %rdi
movl $0x3b, %esi
callq 0x195d7
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq