// File: /workspace/github_c_makefile_star2_O3/lucvoo[P]sparse-dev/linearize.c
// Function: linearize_fma
static pseudo_t linearize_fma(struct entrypoint *ep, struct expression *expr)
{
	struct instruction *insn = alloc_typed_instruction(OP_FMADD, expr->ctype);
	struct expression *arg;

	PREPARE_PTR_LIST(expr->args, arg);
		use_pseudo(insn, linearize_expression(ep, arg), &insn->src1);
		NEXT_PTR_LIST(arg)
		use_pseudo(insn, linearize_expression(ep, arg), &insn->src2);
		NEXT_PTR_LIST(arg)
		use_pseudo(insn, linearize_expression(ep, arg), &insn->src3);
	FINISH_PTR_LIST(arg);

	add_one_insn(ep, insn);
	return insn->target = alloc_pseudo(insn);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r15
movq %rdi, %r13
movq 0x10(%rsi), %rsi
movl $0x42, %edi
callq 0x13674
movq %rax, %rbx
movq 0x28(%r15), %r14
testq %r14, %r14
je 0x17dda
movq %r14, %rbp
cmpb $0x0, (%rbp)
jg 0x17de4
movq 0x10(%rbp), %rbp
cmpq %r14, %rbp
jne 0x17dc6
xorl %r12d, %r12d
jmp 0x17ddf
xorl %r12d, %r12d
xorl %ebp, %ebp
xorl %r15d, %r15d
jmp 0x17df2
movq 0x18(%rbp), %r12
andq $-0x4, %r12
movl $0x1, %r15d
movq %r13, 0x8(%rsp)
movq %r13, %rdi
movq %r12, %rsi
callq 0x144d5
movq %rax, 0x30(%rbx)
testq %rax, %rax
je 0x17e55
movq %rax, %r13
movl 0x4(%rax), %eax
cmpl $0x6, %eax
ja 0x17e20
movl $0x43, %ecx
btl %eax, %ecx
jb 0x17e55
leaq 0x30(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x48380(%rip), %rdi     # 0x601b0
movl $0x10, %esi
callq 0x2f700
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq %rbx, (%rax)
addq $0x8, %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0x227b4
testq %r12, %r12
je 0x17e79
movq 0x8(%rsp), %rdi
movsbl (%rbp), %eax
cmpl %eax, %r15d
jl 0x17e83
movq 0x10(%rbp), %rbp
xorl %r15d, %r15d
cmpq %r14, %rbp
jne 0x17e5f
xorl %r12d, %r12d
jmp 0x17e92
xorl %r12d, %r12d
movq 0x8(%rsp), %rdi
jmp 0x17e92
movl %r15d, %eax
movq 0x18(%rbp,%rax,8), %r12
andq $-0x4, %r12
incl %r15d
movq %r12, %rsi
callq 0x144d5
movq %rax, 0x38(%rbx)
testq %rax, %rax
je 0x17eed
movq %rax, %r13
movl 0x4(%rax), %eax
cmpl $0x6, %eax
ja 0x17eb8
movl $0x43, %ecx
btl %eax, %ecx
jb 0x17eed
leaq 0x38(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x482e8(%rip), %rdi     # 0x601b0
movl $0x10, %esi
callq 0x2f700
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq %rbx, (%rax)
addq $0x8, %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0x227b4
testq %r12, %r12
je 0x17f0e
movq 0x8(%rsp), %r12
movsbl (%rbp), %eax
cmpl %eax, %r15d
jl 0x17f18
movq 0x10(%rbp), %rbp
xorl %r15d, %r15d
cmpq %r14, %rbp
jne 0x17ef7
jmp 0x17f24
xorl %r15d, %r15d
movq 0x8(%rsp), %r12
jmp 0x17f24
movl %r15d, %eax
movq 0x18(%rbp,%rax,8), %r15
andq $-0x4, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x144d5
movq %rax, 0x40(%rbx)
testq %rax, %rax
je 0x17f7b
movq %rax, %r15
movl 0x4(%rax), %eax
cmpl $0x6, %eax
ja 0x17f4d
movl $0x43, %ecx
btl %eax, %ecx
jb 0x17f7b
movq %rbx, %r14
addq $0x40, %r14
leaq 0x48255(%rip), %rdi     # 0x601b0
movl $0x10, %esi
callq 0x2f700
movq %r14, 0x8(%rax)
movq %rbx, (%rax)
addq $0x8, %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x227b4
movq 0x20(%r12), %rdi
testq %rdi, %rdi
je 0x17f95
movq %rdi, 0x8(%rbx)
addq $0x28, %rdi
movq %rbx, %rsi
callq 0x227b4
xorl %edi, %edi
callq 0x2fd6f
movl $0x3, 0x4(%rax)
movl 0x4eba7(%rip), %ecx     # 0x66b50
incl %ecx
movl %ecx, 0x4eb9f(%rip)     # 0x66b50
movl %ecx, (%rax)
movq %rbx, 0x18(%rax)
movq %rax, 0x20(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq