// File: /workspace/github_c_makefile_star2_O3/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 0x1693c
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %r14
movq (%rdx), %rbp
movq %rbp, %rdi
callq 0x16b8d
movq %rax, %r12
movq %rax, 0x8(%r15)
xorl %eax, %eax
movl $0x0, %ecx
testq %r12, %r12
je 0x16897
movl 0x50(%r12), %edx
xorl %ecx, %ecx
testl %edx, %edx
cmovgl %edx, %ecx
testq %rbp, %rbp
je 0x168a6
movl 0x50(%rbp), %edx
xorl %eax, %eax
testl %edx, %edx
cmovgl %edx, %eax
movq %r13, 0x8(%rsp)
cmpl %eax, %ecx
je 0x1699a
movq %r14, %rdi
movq %r15, 0x18(%rsp)
movq %r15, %rsi
callq 0x16c16
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 0x16e20
movq %r14, 0x10(%rsp)
movq %rax, %r14
movq 0x18(%rax), %rax
movq %rbp, 0x40(%rax)
testq %r15, %r15
je 0x16948
movq %r15, %rbp
notq %rbx
movq %r15, %rdi
callq 0x13745
movq 0x10(%rsp), %rdi
movq %r12, %rsi
movl $0x11, %edx
movq %r14, %rcx
movq %rax, %r8
callq 0x16d1b
movq %rax, %r15
movl %ebp, %ecx
shlq %cl, %rbx
notq %rbx
jmp 0x1694b
leaq 0x4f08d(%rip), %rbx     # 0x659d0
jmp 0x16a9d
movq %r14, %r15
negb %r13b
movl %r13d, %ecx
shlq %cl, %rbx
shrq %cl, %rbx
movq %rbx, %rdi
callq 0x13745
movq 0x10(%rsp), %r14
movq %r14, %rdi
movq %r12, %rsi
movl $0x16, %edx
movq 0x20(%rsp), %rcx
movq %rax, %r8
callq 0x16d1b
movq %r14, %rdi
movq %r12, %rsi
movl $0x17, %edx
movq %rax, %rcx
movq %r15, %r8
callq 0x16d1b
movq %rax, %r13
movq 0x18(%rsp), %r15
cmpq $0x0, 0x20(%r14)
je 0x169cd
movq 0x8(%r15), %rsi
movl $0x44, %edi
callq 0x13674
movq %rax, %r12
movq 0x18(%r15), %rax
movq %rax, 0x38(%r12)
movq (%r15), %rax
testq %rax, %rax
je 0x169d7
movl 0x68(%rax), %eax
shrl $0xa, %eax
andb $0x1, %al
jmp 0x169d9
movq 0x8(%rsp), %rbx
jmp 0x16a9d
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 0x16a38
movl 0x4(%r13), %eax
cmpl $0x6, %eax
ja 0x16a0a
movl $0x43, %ecx
btl %eax, %ecx
jb 0x16a38
movq %r12, %rbx
addq $0x20, %rbx
leaq 0x49798(%rip), %rdi     # 0x601b0
movl $0x10, %esi
callq 0x2f700
movq %rbx, 0x8(%rax)
movq %r12, (%rax)
addq $0x8, %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0x227b4
movq 0x10(%r15), %rbx
movq %rbx, (%rbp)
testq %rbx, %rbx
je 0x16a7e
movl 0x4(%rbx), %eax
cmpl $0x6, %eax
ja 0x16a57
movl $0x43, %ecx
btl %eax, %ecx
jb 0x16a7e
leaq 0x49752(%rip), %rdi     # 0x601b0
movl $0x10, %esi
callq 0x2f700
movq %rbp, 0x8(%rax)
movq %r12, (%rax)
addq $0x8, %rbx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x227b4
movq 0x20(%r14), %rdi
testq %rdi, %rdi
movq 0x8(%rsp), %rbx
je 0x16a9d
movq %rdi, 0x8(%r12)
addq $0x28, %rdi
movq %r12, %rsi
callq 0x227b4
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq