// File: /workspace/github_c_makefile_star2_O3/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 0x13b59
movq %rdi, %r15
movq 0x4(%rdi), %rax
movq %rax, 0x5328d(%rip)     # 0x66d68
movq 0x60(%rdi), %r12
testq %r12, %r12
je 0x13b59
cmpb $0x5, (%r12)
jne 0x13b59
movq 0x90(%r12), %r13
testq %r13, %r13
je 0x13b59
testb $0x1, 0x55(%r15)
jne 0x13b59
xorl %edi, %edi
callq 0x2fc46
movq %rax, %r14
movq %r15, (%rax)
movq %rax, 0xc0(%r15)
movq 0x4(%r15), %rbx
xorl %edi, %edi
callq 0x2fbe3
movq %rbx, (%rax)
movq %r14, %rbx
movq %r14, 0x10(%rax)
movl 0x53242(%rip), %ecx     # 0x66d70
leal 0x1(%rcx), %edx
movl %edx, 0x53239(%rip)     # 0x66d70
movl %ecx, 0x38(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x14060
cmpl $0xb, (%r13)
jne 0x13b6d
movq %rbx, %rdi
movq %r13, %rsi
callq 0x140c0
jmp 0x13b5b
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r13, 0x20(%rsp)
xorl %edi, %edi
callq 0x2fca9
movq %rax, %r15
movl $0x80, %eax
andl (%r15), %eax
incl %eax
movl %eax, (%r15)
movq 0x531d8(%rip), %rax     # 0x66d68
movq %rax, 0x10(%r15)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x13bad
movq %rdi, 0x8(%r15)
addq $0x28, %rdi
movq %r15, %rsi
callq 0x227b4
movq %r15, 0x28(%rbx)
movq 0x88(%r12), %rdi
movq %rbx, 0x10(%rsp)
addq $0x8, %rbx
movq %rbx, %rsi
callq 0x22b14
movq %r12, 0x18(%rsp)
movq 0x88(%r12), %rax
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x13c9b
xorl %ebp, %ebp
leaq 0x30(%rsp), %r14
movq 0x8(%rsp), %r13
movq 0x10(%rsp), %r15
movzwl (%r13), %eax
testb %al, %al
jle 0x13c8c
xorl %ebx, %ebx
movq 0x18(%r13,%rbx,8), %rsi
movzwl %ax, %ecx
cmpl $0x100, %ecx            # imm = 0x100
jb 0x13c1a
testq %rsi, %rsi
je 0x13c79
incl %ebp
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq $0x0, 0x10(%r14)
movq %rsi, 0x28(%rsp)
movq %r15, %rdi
callq 0x167e4
movq %rax, 0x38(%rsp)
xorl %edi, %edi
callq 0x2fd6f
movq %rax, %r12
movq 0x28(%r15), %rdi
movl $0x4, 0x4(%rax)
movl %ebp, (%rax)
movq %rdi, 0x18(%rax)
addq $0x30, %rdi
movq %rax, %rsi
callq 0x227b4
movq %r15, %rdi
movq %r12, %rsi
leaq 0x28(%rsp), %rdx
callq 0x1684b
movzwl (%r13), %eax
incq %rbx
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %rbx
jl 0x13c05
movq 0x10(%r13), %r13
cmpq 0x8(%rsp), %r13
jne 0x13bf6
movq 0x10(%rsp), %rbx
movq %rbx, %rdi
movq 0x20(%rsp), %rsi
callq 0x143a5
movq %rax, %r15
movq 0x18(%rsp), %rax
movq 0x60(%rax), %r12
movl $0x2, %edi
movq %r12, %rsi
callq 0x13674
movq %rax, %r14
testq %r12, %r12
je 0x13d25
cmpl $0x0, 0x50(%r12)
jle 0x13d25
movq %r15, 0x30(%r14)
testq %r15, %r15
je 0x13d25
movl 0x4(%r15), %eax
cmpl $0x6, %eax
ja 0x13cf2
movl $0x43, %ecx
btl %eax, %ecx
jb 0x13d25
movq %r14, %rbx
addq $0x30, %rbx
leaq 0x4c4b0(%rip), %rdi     # 0x601b0
movl $0x10, %esi
callq 0x2f700
movq %rbx, 0x8(%rax)
movq 0x10(%rsp), %rbx
movq %r14, (%rax)
addq $0x8, %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x227b4
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x13d3e
movq %rdi, 0x8(%r14)
addq $0x28, %rdi
movq %r14, %rsi
callq 0x227b4
movq %rbx, %rdi
callq 0x181c4
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x13b5b
movq %rax, %rsi
movq %rax, 0x18(%rsp)
movzwl (%rsi), %eax
testb %al, %al
jle 0x13eee
xorl %ebx, %ebx
movq %rsi, 0x8(%rsp)
movq 0x18(%rsi,%rbx,8), %rcx
movzwl %ax, %edx
cmpl $0x100, %edx            # imm = 0x100
jb 0x13d86
testq %rcx, %rcx
je 0x13edb
movq 0x28(%rcx), %r15
testq %r15, %r15
je 0x13edb
movq %r15, %r12
movzwl (%r12), %eax
testb %al, %al
jle 0x13ec5
xorl %r14d, %r14d
movq 0x18(%r12,%r14,8), %r13
movzwl %ax, %eax
cmpl $0x100, %eax            # imm = 0x100
jb 0x13dbe
testq %r13, %r13
je 0x13eb1
cmpq $0x0, 0x8(%r13)
je 0x13eb1
movl (%r13), %eax
testb %al, %al
jns 0x13e9d
movl %eax, %ecx
andl $0x7f, %ecx
leal -0xb(%rcx), %edx
cmpl $0x4, %edx
jae 0x13e0d
movq 0x38(%r13), %rbp
xorl %edi, %edi
callq 0x13745
cmpq %rax, %rbp
jne 0x13e9d
movq 0x10(%r13), %rdi
leaq 0x2dd52(%rip), %rsi     # 0x41b53
xorl %eax, %eax
callq 0x118fc
jmp 0x13e9d
addl $-0xf, %ecx
cmpl $0x3, %ecx
jae 0x13e9d
movq 0x38(%r13), %rcx
cmpl $0x6, 0x4(%rcx)
jne 0x13e9d
movq 0x18(%rcx), %rbp
shrl $0x8, %eax
cmpq %rax, %rbp
jb 0x13e9d
decb %al
movzbl %al, %ecx
movq $-0x1, %rax
shlq %cl, %rax
btq %rcx, %rbp
movl $0x0, %edx
cmovbq %rax, %rdx
leaq 0x4c786(%rip), %rax     # 0x605d8
cmpl $0x0, (%rax)
je 0x13e70
orq %rbp, %rdx
jns 0x13e70
movq 0x10(%r13), %rdi
leaq 0x2dcfb(%rip), %rsi     # 0x41b62
xorl %eax, %eax
callq 0x118fc
jmp 0x13e9d
leaq 0x4c765(%rip), %rax     # 0x605dc
cmpl $0x0, (%rax)
je 0x13e9d
movq 0x18(%r13), %rdi
callq 0x237c5
movq 0x10(%r13), %rdi
leaq 0x2dcf1(%rip), %rsi     # 0x41b81
movq %rbp, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x118fc
movl (%r13), %eax
andl $0x7f, %eax
cmpl $0x43, %eax
jne 0x13eb1
movq %r13, %rdi
callq 0x3b53b
incq %r14
movl (%r12), %eax
movsbq %al, %rcx
cmpq %rcx, %r14
jl 0x13da6
movq 0x10(%r12), %r12
cmpq %r15, %r12
jne 0x13d96
movq 0x8(%rsp), %rsi
movzwl (%rsi), %eax
incq %rbx
movzwl %ax, %ecx
movsbq %cl, %rcx
cmpq %rcx, %rbx
jl 0x13d6d
movq 0x10(%rsi), %rsi
movq 0x18(%rsp), %rax
cmpq %rax, %rsi
jne 0x13d5b
movq 0x10(%rsp), %rbx
jmp 0x13b5b