// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/linearize.c
// Function: linearize_symbol
struct entrypoint *linearize_symbol(struct symbol *sym)
{
	struct symbol *base_type;

	if (!sym)
		return NULL;
	current_pos = sym->pos;
	base_type = sym->ctype.base_type;
	if (!base_type)
		return NULL;
	if (base_type->type == SYM_FN)
		return linearize_fn(sym, base_type);
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
testq %rdi, %rdi
je 0x13b34
movq %rdi, %r15
movq 0x4(%rdi), %rax
movq %rax, 0x542ac(%rip)     # 0x67d68
movq 0x60(%rdi), %rbx
testq %rbx, %rbx
je 0x13b34
cmpb $0x5, (%rbx)
jne 0x13b34
movq 0x90(%rbx), %r12
testq %r12, %r12
je 0x13b34
testb $0x1, 0x55(%r15)
jne 0x13b34
xorl %edi, %edi
callq 0x3027a
movq %rax, %r13
movq %r15, (%rax)
movq %rax, 0xc0(%r15)
movq 0x4(%r15), %r14
xorl %edi, %edi
callq 0x30217
movq %r14, (%rax)
movq %r13, 0x10(%rax)
movl 0x54267(%rip), %ecx     # 0x67d70
leal 0x1(%rcx), %edx
movl %edx, 0x5425e(%rip)     # 0x67d70
movl %ecx, 0x38(%rax)
movq %r13, %rdi
movq %rax, %rsi
callq 0x1401d
cmpl $0xb, (%r12)
jne 0x13b49
movq %r13, %rdi
movq %r12, %rsi
callq 0x1407d
jmp 0x13b37
xorl %r13d, %r13d
movq %r13, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, 0x18(%rsp)
xorl %edi, %edi
callq 0x302dd
movq %rax, %r15
movl $0x80, %eax
andl (%r15), %eax
incl %eax
movl %eax, (%r15)
movq 0x541fc(%rip), %rax     # 0x67d68
movq %rax, 0x10(%r15)
movq 0x20(%r13), %rdi
testq %rdi, %rdi
je 0x13b89
movq %rdi, 0x8(%r15)
addq $0x28, %rdi
movq %r15, %rsi
callq 0x2285b
movq %r15, 0x28(%r13)
movq 0x88(%rbx), %rdi
movq %r13, 0x10(%rsp)
addq $0x8, %r13
movq %r13, %rsi
callq 0x22bbe
movq %rbx, 0x8(%rsp)
movq 0x88(%rbx), %rax
movq %rax, (%rsp)
testq %rax, %rax
je 0x13c62
xorl %ebp, %ebp
leaq 0x20(%rsp), %r15
movq (%rsp), %r13
movq 0x10(%rsp), %rbx
movzwl (%r13), %eax
testb %al, %al
jle 0x13c54
xorl %r14d, %r14d
movq 0x18(%r13,%r14,8), %rsi
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x13bee
testq %rsi, %rsi
je 0x13c44
incl %ebp
xorps %xmm0, %xmm0
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x30(%rsp)
movq %rsi, 0x20(%rsp)
movq %rbx, %rdi
callq 0x16810
movq %rax, 0x30(%rsp)
xorl %edi, %edi
callq 0x303a3
movq %rax, %r12
movq 0x28(%rbx), %rdi
movl $0x4, 0x4(%rax)
movl %ebp, (%rax)
movq %rdi, 0x18(%rax)
addq $0x30, %rdi
movq %rax, %rsi
callq 0x2285b
movq %rbx, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x16877
incq %r14
movl (%r13), %eax
movsbq %al, %rcx
cmpq %rcx, %r14
jl 0x13bda
movq 0x10(%r13), %r13
cmpq (%rsp), %r13
jne 0x13bce
movq 0x10(%rsp), %r13
movq %r13, %rdi
movq 0x18(%rsp), %rsi
callq 0x1434d
movq %rax, %r15
movq 0x8(%rsp), %rax
movq 0x60(%rax), %r12
movl $0x2, %edi
movq %r12, %rsi
callq 0x13602
movq %rax, %r14
testq %r12, %r12
je 0x13ce7
cmpl $0x0, 0x50(%r12)
jle 0x13ce7
movq %r15, 0x30(%r14)
testq %r15, %r15
je 0x13ce7
movl 0x4(%r15), %eax
cmpl $0x6, %eax
ja 0x13cb9
movl $0x43, %ecx
btl %eax, %ecx
jb 0x13ce7
movq %r14, %rbx
addq $0x30, %rbx
leaq 0x4d4e9(%rip), %rdi     # 0x611b0
movl $0x10, %esi
callq 0x2fd3c
movq %rbx, 0x8(%rax)
movq %r14, (%rax)
addq $0x8, %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x2285b
movq 0x20(%r13), %rdi
testq %rdi, %rdi
je 0x13d00
movq %rdi, 0x8(%r14)
addq $0x28, %rdi
movq %r14, %rsi
callq 0x2285b
movq %r13, %rdi
callq 0x181a8
movq 0x18(%r13), %rax
testq %rax, %rax
je 0x13b37
movq %rax, %rdx
movq %rax, 0x8(%rsp)
movzwl (%rdx), %eax
testb %al, %al
jle 0x13ea9
xorl %ebx, %ebx
movq %rdx, (%rsp)
movq 0x18(%rdx,%rbx,8), %rcx
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x13d46
testq %rcx, %rcx
je 0x13e93
movq 0x28(%rcx), %r15
testq %r15, %r15
je 0x13e93
movq %r15, %r12
movzwl (%r12), %eax
testb %al, %al
jle 0x13e85
xorl %r14d, %r14d
movq 0x18(%r12,%r14,8), %r13
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x13d7e
testq %r13, %r13
je 0x13e71
cmpq $0x0, 0x8(%r13)
je 0x13e71
movl (%r13), %eax
testb %al, %al
jns 0x13e5d
movl %eax, %ecx
andl $0x7f, %ecx
leal -0xb(%rcx), %edx
cmpl $0x4, %edx
jae 0x13dcd
movq 0x38(%r13), %rbp
xorl %edi, %edi
callq 0x136d3
cmpq %rax, %rbp
jne 0x13e5d
movq 0x10(%r13), %rdi
leaq 0x2edc2(%rip), %rsi     # 0x42b83
xorl %eax, %eax
callq 0x118b4
jmp 0x13e5d
addl $-0xf, %ecx
cmpl $0x3, %ecx
jae 0x13e5d
movq 0x38(%r13), %rcx
cmpl $0x6, 0x4(%rcx)
jne 0x13e5d
movq 0x18(%rcx), %rbp
shrl $0x8, %eax
cmpq %rax, %rbp
jb 0x13e5d
decb %al
movzbl %al, %ecx
movq $-0x1, %rax
shlq %cl, %rax
btq %rcx, %rbp
movl $0x0, %edx
cmovbq %rax, %rdx
leaq 0x4d7c6(%rip), %rax     # 0x615d8
cmpl $0x0, (%rax)
je 0x13e30
orq %rbp, %rdx
jns 0x13e30
movq 0x10(%r13), %rdi
leaq 0x2ed6b(%rip), %rsi     # 0x42b92
xorl %eax, %eax
callq 0x118b4
jmp 0x13e5d
leaq 0x4d7a5(%rip), %rax     # 0x615dc
cmpl $0x0, (%rax)
je 0x13e5d
movq 0x18(%r13), %rdi
callq 0x2386c
movq 0x10(%r13), %rdi
leaq 0x2ed61(%rip), %rsi     # 0x42bb1
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x118b4
movl (%r13), %eax
andl $0x7f, %eax
cmpl $0x43, %eax
jne 0x13e71
movq %r13, %rdi
callq 0x3c44f
incq %r14
movl (%r12), %eax
movsbq %al, %rcx
cmpq %rcx, %r14
jl 0x13d66
movq 0x10(%r12), %r12
cmpq %r15, %r12
jne 0x13d56
incq %rbx
movq (%rsp), %rdx
movl (%rdx), %eax
movsbq %al, %rcx
cmpq %rcx, %rbx
jl 0x13d2e
movq 0x10(%rdx), %rdx
movq 0x8(%rsp), %rax
cmpq %rax, %rdx
jne 0x13d1d
movq 0x10(%rsp), %r13
jmp 0x13b37