// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/pre-process.c
// Function: do_handle_define
static int do_handle_define(struct stream *stream, struct token **line, struct token *token, int attr)
{
	struct token *arglist, *expansion;
	struct token *left = token->next;
	struct ident *name;

	if (token_type(left) != TOKEN_IDENT) {
		sparse_error(token->pos, "expected identifier to 'define'");
		return 1;
	}

	name = left->ident;

	arglist = NULL;
	expansion = left->next;
	if (!expansion->pos.whitespace) {
		if (match_op(expansion, '(')) {
			arglist = expansion;
			expansion = parse_arguments(expansion);
			if (!expansion)
				return 1;
		} else if (!eof_token(expansion)) {
			warning(expansion->pos,
				"no whitespace before object-like macro body");
		}
	}

	return do_define(left->pos, token, name, arglist, expansion, attr);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x8(%rdi), %rbp
movl (%rbp), %eax
andl $0x3f, %eax
cmpl $0x3, %eax
jne 0x20895
movl %esi, %ebx
movq 0x8(%rbp), %r12
movq 0x10(%rbp), %r15
movq (%r12), %rdi
btl $0x15, %edi
jb 0x2094e
movl %edi, %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x20934
cmpl $0x28, 0x10(%r12)
jne 0x20934
movq 0x8(%r12), %rcx
orq $0x1b, %rdi
movq %rdi, (%r12)
movl $0x0, 0x10(%r12)
movq (%rcx), %rax
movl %eax, %edx
andl $0x3f, %edx
cmpl $0x12, %edx
jne 0x208ba
cmpl $0x29, 0x10(%rcx)
jne 0x208ba
movq 0x8(%rcx), %r8
leaq 0x65d55(%rip), %rax     # 0x865e0
movq %rax, 0x8(%r12)
jmp 0x20ae2
movq (%r14), %rdi
leaq 0x25723(%rip), %rsi     # 0x45fc2
xorl %eax, %eax
callq 0x11a80
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edx
andl $0x3f, %edx
cmpq $0x3, %rdx
jne 0x209cf
movq 0x10(%rcx), %rdx
cmpq 0x3f6ec(%rip), %rdx     # 0x5ffc0
je 0x20ab0
movl 0x10(%r12), %eax
leal 0x1(%rax), %edx
andl $0x3ff, %edx            # imm = 0x3FF
andl $0xfffffc00, %eax       # imm = 0xFFFFFC00
orl %edx, %eax
movl %eax, 0x10(%r12)
testl %edx, %edx
je 0x20aa1
movq 0x8(%rcx), %r13
movq (%r13), %rdi
movl %edi, %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x20a5e
movl 0x10(%r13), %eax
cmpl $0x2c, %eax
jne 0x20977
orq $0x1b, %rdi
movq %rdi, (%r13)
movl $0x0, 0x10(%r13)
movq 0x8(%r13), %rcx
movq (%rcx), %rax
jmp 0x208ba
leaq 0x65ca5(%rip), %r8      # 0x865e0
cmpq %r8, %r12
je 0x20951
leaq 0x2569b(%rip), %rsi     # 0x45fe2
xorl %eax, %eax
callq 0x118fc
movq %r12, %r8
xorl %r12d, %r12d
movq (%rbp), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
movl %ebx, %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1f00b
cmpl $0x29, %eax
je 0x20abf
cmpl $0x117, %eax            # imm = 0x117
jne 0x20a5e
movq 0x8(%r13), %rax
movl (%rax), %edx
andl $0x3f, %edx
cmpl $0x12, %edx
jne 0x20b0e
cmpl $0x29, 0x10(%rax)
jne 0x20b0e
orq $0x1b, %rdi
movq %rdi, (%r13)
movl $0x40000000, 0x10(%r13) # imm = 0x40000000
movq 0x8(%rcx), %rcx
leaq 0x65c1e(%rip), %rdx     # 0x865e0
movq %rdx, 0x8(%rcx)
movq 0x8(%rax), %r8
jmp 0x20ae2
cmpl $0x12, %edx
jne 0x20a6f
movl 0x10(%rcx), %edx
cmpl $0x117, %edx            # imm = 0x117
jne 0x20af0
movq 0x8(%rcx), %rdx
andq $-0x40, %rax
movq %rax, %rdi
orq $0x3, %rdi
movq %rdi, (%rcx)
leaq 0x43a28(%rip), %rax     # 0x64428
movq %rax, 0x10(%rcx)
movl (%rdx), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x20b0e
cmpl $0x29, 0x10(%rdx)
jne 0x20b0e
movl 0x10(%r12), %eax
leal 0x1(%rax), %esi
andl $0x3ff, %esi            # imm = 0x3FF
andl $0xfffffc00, %eax       # imm = 0xFFFFFC00
orl %esi, %eax
movl %eax, 0x10(%r12)
testl %esi, %esi
je 0x20aa1
movq (%rdx), %rax
movq 0x8(%rdx), %r8
andq $-0x40, %rax
orq $0x1b, %rax
movq %rax, (%rdx)
movl $0x80000000, %eax       # imm = 0x80000000
andl 0x10(%rdx), %eax
orl $0x40000000, %eax       # imm = 0x40000000
movl %eax, 0x10(%rdx)
jmp 0x20ad3
cmpq 0x3f483(%rip), %r13     # 0x5fee8
jne 0x20a7f
movq (%rcx), %rdi
jmp 0x20b0e
movq %rcx, %r13
cmpq 0x3f46f(%rip), %rcx     # 0x5fee8
je 0x20b0e
movq %r13, %rdi
callq 0x2df90
movq (%r13), %rdi
leaq 0x25593(%rip), %rsi     # 0x46025
movq %rax, %rdx
xorl %eax, %eax
callq 0x11a80
jmp 0x208a6
movq (%rcx), %rdi
leaq 0x2560f(%rip), %rsi     # 0x460ba
jmp 0x2089f
leaq 0x255be(%rip), %rsi     # 0x46075
movq %rax, %rdi
jmp 0x2089f
orq $0x1b, %rdi
movq %rdi, (%r13)
movl $0x0, 0x10(%r13)
movq 0x8(%r13), %r8
movq 0x8(%rcx), %rax
leaq 0x65b02(%rip), %rcx     # 0x865e0
movq %rcx, 0x8(%rax)
testq %r8, %r8
jne 0x20954
jmp 0x208a6
cmpq 0x3f3f1(%rip), %rcx     # 0x5fee8
je 0x20b0e
movq %rcx, %r13
cmpl $0x2c, %edx
jne 0x20a7f
leaq 0x25502(%rip), %rsi     # 0x4600e
jmp 0x20ab7
leaq 0x2553c(%rip), %rsi     # 0x46051
jmp 0x2089f