// File: /workspace/github_c_makefile_star2_O2/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 0x1ddb2
movl %esi, %ebx
movq 0x8(%rbp), %r12
movq 0x10(%rbp), %r15
movq (%r12), %rdi
btl $0x15, %edi
jb 0x1de66
movl %edi, %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1de4c
cmpl $0x28, 0x10(%r12)
jne 0x1de4c
movq 0x8(%r12), %rcx
orq $0x1b, %rdi
movq %rdi, (%r12)
andl $0x0, 0x10(%r12)
movq (%rcx), %rax
movl %eax, %edx
andl $0x3f, %edx
cmpl $0x12, %edx
jne 0x1ddd5
cmpl $0x29, 0x10(%rcx)
jne 0x1ddd5
movq 0x8(%rcx), %r8
leaq 0x62838(%rip), %rax     # 0x805e0
movq %rax, 0x8(%r12)
jmp 0x1dff7
movq (%r14), %rdi
leaq 0x21266(%rip), %rsi     # 0x3f022
xorl %eax, %eax
callq 0x1120e
pushq $0x1
popq %rax
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 0x1dee7
movq 0x10(%rcx), %rdx
cmpq 0x3c1c9(%rip), %rdx     # 0x59fb8
je 0x1dfc8
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 0x1dfb9
movq 0x8(%rcx), %r13
movq (%r13), %rdi
movl %edi, %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1df76
movl 0x10(%r13), %eax
cmpl $0x2c, %eax
jne 0x1de8f
orq $0x1b, %rdi
movq %rdi, (%r13)
andl $0x0, 0x10(%r13)
movq 0x8(%r13), %rcx
movq (%rcx), %rax
jmp 0x1ddd5
leaq 0x6278d(%rip), %r8      # 0x805e0
cmpq %r8, %r12
je 0x1de69
leaq 0x211e3(%rip), %rsi     # 0x3f042
xorl %eax, %eax
callq 0x1108a
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 0x1c6df
cmpl $0x29, %eax
je 0x1dfd7
cmpl $0x117, %eax            # imm = 0x117
jne 0x1df76
movq 0x8(%r13), %rax
movl (%rax), %edx
andl $0x3f, %edx
cmpl $0x12, %edx
jne 0x1e01f
cmpl $0x29, 0x10(%rax)
jne 0x1e01f
orq $0x1b, %rdi
movq %rdi, (%r13)
movl $0x40000000, 0x10(%r13) # imm = 0x40000000
movq 0x8(%rcx), %rcx
leaq 0x62706(%rip), %rdx     # 0x805e0
movq %rdx, 0x8(%rcx)
movq 0x8(%rax), %r8
jmp 0x1dff7
cmpl $0x12, %edx
jne 0x1df87
movl 0x10(%rcx), %edx
cmpl $0x117, %edx            # imm = 0x117
jne 0x1e005
movq 0x8(%rcx), %rdx
andq $-0x40, %rax
movq %rax, %rdi
orq $0x3, %rdi
movq %rdi, (%rcx)
leaq 0x40510(%rip), %rax     # 0x5e428
movq %rax, 0x10(%rcx)
movl (%rdx), %eax
andl $0x3f, %eax
cmpl $0x12, %eax
jne 0x1e01f
cmpl $0x29, 0x10(%rdx)
jne 0x1e01f
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 0x1dfb9
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 0x1dfe8
cmpq 0x3bf6b(%rip), %r13     # 0x59ee8
jne 0x1df97
movq (%rcx), %rdi
jmp 0x1e01f
movq %rcx, %r13
cmpq 0x3bf57(%rip), %rcx     # 0x59ee8
je 0x1e01f
movq %r13, %rdi
callq 0x294bb
movq (%r13), %rdi
leaq 0x210db(%rip), %rsi     # 0x3f085
movq %rax, %rdx
xorl %eax, %eax
callq 0x1120e
jmp 0x1ddc3
movq (%rcx), %rdi
leaq 0x21157(%rip), %rsi     # 0x3f11a
jmp 0x1ddbc
leaq 0x21106(%rip), %rsi     # 0x3f0d5
movq %rax, %rdi
jmp 0x1ddbc
orq $0x1b, %rdi
movq %rdi, (%r13)
andl $0x0, 0x10(%r13)
movq 0x8(%r13), %r8
movq 0x8(%rcx), %rax
leaq 0x625ed(%rip), %rcx     # 0x805e0
movq %rcx, 0x8(%rax)
testq %r8, %r8
jne 0x1de6c
jmp 0x1ddc3
cmpq 0x3bedc(%rip), %rcx     # 0x59ee8
je 0x1e01f
movq %rcx, %r13
cmpl $0x2c, %edx
jne 0x1df97
leaq 0x21051(%rip), %rsi     # 0x3f06e
jmp 0x1dfcf
leaq 0x2108b(%rip), %rsi     # 0x3f0b1
jmp 0x1ddbc