// File: /workspace/github_c_makefile_star2_O1/lucvoo[P]sparse-dev/linearize.c
// Function: linearize_store_gen
static pseudo_t linearize_store_gen(struct entrypoint *ep,
		pseudo_t value,
		struct access_data *ad)
{
	struct symbol *ctype = ad->type;
	struct symbol *btype;
	pseudo_t store = value;

	if (!ep->active)
		return VOID;

	btype = ad->btype = bitfield_base_type(ctype);
	if (type_size(btype) != type_size(ctype)) {
		pseudo_t orig = add_load(ep, ad);
		store = linearize_bitfield_insert(ep, orig, value, ctype, btype);
	}
	add_store(ep, ad, store);
	return value;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpq $0x0, 0x20(%rdi)
je 0x16968
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %r14
movq (%rdx), %rbp
movq %rbp, %rdi
callq 0x16bc2
movq %rax, %r12
movq %rax, 0x8(%r15)
xorl %eax, %eax
movl $0x0, %ecx
testq %r12, %r12
je 0x168c3
movl 0x50(%r12), %edx
xorl %ecx, %ecx
testl %edx, %edx
cmovgl %edx, %ecx
testq %rbp, %rbp
je 0x168d2
movl 0x50(%rbp), %edx
xorl %eax, %eax
testl %edx, %edx
cmovgl %edx, %eax
movq %r13, 0x8(%rsp)
cmpl %eax, %ecx
je 0x169c6
movq %r14, %rdi
movq %r15, 0x18(%rsp)
movq %r15, %rsi
callq 0x16c41
movq %rax, 0x20(%rsp)
movzbl 0x54(%rbp), %r15d
movb 0x50(%rbp), %cl
movq $-0x1, %rbx
shlq %cl, %rbx
movl 0x50(%r12), %r13d
movq %r14, %rdi
movq %r12, %rsi
movl $0x35, %edx
movq 0x8(%rsp), %rcx
callq 0x16e4b
movq %r14, 0x10(%rsp)
movq %rax, %r14
movq 0x18(%rax), %rax
movq %rbp, 0x40(%rax)
testq %r15, %r15
je 0x16974
movq %r15, %rbp
notq %rbx
movq %r15, %rdi
callq 0x136d3
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movl $0x11, %edx
movq %r14, %rcx
movq %rax, %r8
callq 0x16d46
movq %rax, %r15
movl %ebp, %ecx
shlq %cl, %rbx
notq %rbx
jmp 0x16977
leaq 0x50061(%rip), %rbx     # 0x669d0
jmp 0x16ac9
movq %r14, %r15
negb %r13b
movl %r13d, %ecx
shlq %cl, %rbx
shrq %cl, %rbx
movq %rbx, %rdi
callq 0x136d3
movq 0x10(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
movl $0x16, %edx
movq 0x20(%rsp), %rcx
movq %rax, %r8
callq 0x16d46
movq %r14, %rdi
movq %r12, %rsi
movl $0x17, %edx
movq %rax, %rcx
movq %r15, %r8
callq 0x16d46
movq %rax, %r13
movq 0x18(%rsp), %r15
cmpq $0x0, 0x20(%r14)
je 0x169f9
movq 0x8(%r15), %rsi
movl $0x44, %edi
callq 0x13602
movq %rax, %r12
movq 0x18(%r15), %rax
movq %rax, 0x38(%r12)
movq (%r15), %rax
testq %rax, %rax
je 0x16a03
movl 0x68(%rax), %eax
shrl $0xa, %eax
andb $0x1, %al
jmp 0x16a05
movq 0x8(%rsp), %rbx
jmp 0x16ac9
xorl %eax, %eax
leaq 0x30(%r12), %rbp
movb 0x40(%r12), %cl
andb $-0x2, %cl
orb %al, %cl
movb %cl, 0x40(%r12)
movq %r13, 0x20(%r12)
testq %r13, %r13
je 0x16a64
movl 0x4(%r13), %eax
cmpl $0x6, %eax
ja 0x16a36
movl $0x43, %ecx
btl %eax, %ecx
jb 0x16a64
movq %r12, %rbx
addq $0x20, %rbx
leaq 0x4a76c(%rip), %rdi     # 0x611b0
movl $0x10, %esi
callq 0x2fd3c
movq %rbx, 0x8(%rax)
movq %r12, (%rax)
addq $0x8, %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0x2285b
movq 0x10(%r15), %rbx
movq %rbx, (%rbp)
testq %rbx, %rbx
je 0x16aaa
movl 0x4(%rbx), %eax
cmpl $0x6, %eax
ja 0x16a83
movl $0x43, %ecx
btl %eax, %ecx
jb 0x16aaa
leaq 0x4a726(%rip), %rdi     # 0x611b0
movl $0x10, %esi
callq 0x2fd3c
movq %rbp, 0x8(%rax)
movq %r12, (%rax)
addq $0x8, %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x2285b
movq 0x20(%r14), %rdi
testq %rdi, %rdi
movq 0x8(%rsp), %rbx
je 0x16ac9
movq %rdi, 0x8(%r12)
addq $0x28, %rdi
movq %r12, %rsi
callq 0x2285b
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq