// File: /workspace/github_c_makefile_star2_O3/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 0x1d59f
leaq 0x469c8(%rip), %r13     # 0x63ef0
leaq 0x25dba(%rip), %r15     # 0x432e9
movq %rsp, %r12
movq 0x10(%r14), %rdi
testb $0x4, 0x11(%rdi)
je 0x1d56a
movl $0x2, %esi
callq 0x2afd5
testq %rax, %rax
je 0x1d566
movq 0x40(%rax), %rcx
movq 0x50(%rcx), %rcx
testq %rcx, %rcx
je 0x1d566
movq 0x68(%rax), %rdx
movq %r14, %rdi
movq %r12, %rsi
callq *%rcx
jmp 0x1d590
movq 0x10(%r14), %rdi
cmpq %r13, %rdi
jne 0x1d590
movq (%rsp), %rax
testb $0x20, %al
je 0x1d588
movq (%r14), %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x118fc
movq (%rsp), %rax
orq $0x20, %rax
movq %rax, (%rsp)
movq 0x8(%r14), %r14
movl (%r14), %eax
andl $0x3f, %eax
cmpl $0x3, %eax
je 0x1d532
leaq 0x2645e(%rip), %rdx     # 0x43a04
movq %r14, %rdi
movl $0x28, %esi
callq 0x1950f
leaq 0x10(%rbx), %rsi
leaq 0x244ae(%rip), %rdx     # 0x41a6c
movq %rax, %rdi
callq 0x38dc2
movq %rax, %r14
movq (%rax), %rax
movl %eax, %ecx
andl $0x3f, %ecx
cmpl $0x12, %ecx
jne 0x1d5ef
cmpl $0x3a, 0x10(%r14)
jne 0x1d5ef
leaq 0x18(%rbx), %rsi
movq %r14, %rdi
callq 0x1d745
movq %rax, %r14
movq (%rax), %rax
movl %eax, %ecx
andl $0x3f, %ecx
cmpl $0x12, %ecx
jne 0x1d612
cmpl $0x3a, 0x10(%r14)
jne 0x1d612
leaq 0x20(%rbx), %rsi
movq %r14, %rdi
callq 0x1d745
movq %rax, %r14
movq (%rax), %rax
movl %eax, %ecx
andl $0x3f, %ecx
cmpl $0x12, %ecx
jne 0x1d662
cmpl $0x3a, 0x10(%r14)
jne 0x1d662
leaq 0x28(%rbx), %r15
leaq 0x8(%rsp), %r12
movq 0x8(%r14), %rdi
movq %r12, %rsi
callq 0x38e13
movq %rax, %r14
movq 0x8(%rsp), %rsi
testq %rsi, %rsi
je 0x1d64d
movq %r15, %rdi
callq 0x227b4
movl (%r14), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1d65f
cmpl $0x2c, 0x10(%r14)
je 0x1d62c
movq (%r14), %rax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1d6b8
cmpl $0x3a, 0x10(%r14)
jne 0x1d6b8
testb $0x20, (%rsp)
je 0x1d6b8
addq $0x30, %rbx
movq 0x8(%r14), %r14
movl (%r14), %eax
andl $0x3f, %eax
cmpl $0x3, %eax
jne 0x1d6b8
movq %r14, %rdi
movl $0x1, %esi
callq 0x195dd
movq %rbx, %rdi
movq %rax, %rsi
callq 0x227b4
movq 0x8(%r14), %r14
movl (%r14), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1d6b8
cmpl $0x2c, 0x10(%r14)
je 0x1d67b
leaq 0x26345(%rip), %rdx     # 0x43a04
movq %r14, %rdi
movl $0x29, %esi
callq 0x1950f
leaq 0x2633b(%rip), %rdx     # 0x43a0e
movq %rax, %rdi
movl $0x3b, %esi
callq 0x1950f
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq