// File: /workspace/github_c_makefile_star2_O1/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 0x13602
movq %rax, %rbx
movq 0x28(%r15), %r14
testq %r14, %r14
je 0x17dbd
movq %r14, %rbp
cmpb $0x0, (%rbp)
jg 0x17dc7
movq 0x10(%rbp), %rbp
cmpq %r14, %rbp
jne 0x17da9
xorl %r12d, %r12d
jmp 0x17dc2
xorl %r12d, %r12d
xorl %ebp, %ebp
xorl %r15d, %r15d
jmp 0x17dd5
movq 0x18(%rbp), %r12
andq $-0x4, %r12
movl $0x1, %r15d
movq %r13, 0x8(%rsp)
movq %r13, %rdi
movq %r12, %rsi
callq 0x1447d
movq %rax, 0x30(%rbx)
testq %rax, %rax
je 0x17e38
movq %rax, %r13
movl 0x4(%rax), %eax
cmpl $0x6, %eax
ja 0x17e03
movl $0x43, %ecx
btl %eax, %ecx
jb 0x17e38
leaq 0x30(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x4939d(%rip), %rdi     # 0x611b0
movl $0x10, %esi
callq 0x2fd3c
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq %rbx, (%rax)
addq $0x8, %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0x2285b
testq %r12, %r12
je 0x17e5c
movq 0x8(%rsp), %rdi
movsbl (%rbp), %eax
cmpl %eax, %r15d
jl 0x17e66
movq 0x10(%rbp), %rbp
xorl %r15d, %r15d
cmpq %r14, %rbp
jne 0x17e42
xorl %r12d, %r12d
jmp 0x17e75
xorl %r12d, %r12d
movq 0x8(%rsp), %rdi
jmp 0x17e75
movl %r15d, %eax
movq 0x18(%rbp,%rax,8), %r12
andq $-0x4, %r12
incl %r15d
movq %r12, %rsi
callq 0x1447d
movq %rax, 0x38(%rbx)
testq %rax, %rax
je 0x17ed0
movq %rax, %r13
movl 0x4(%rax), %eax
cmpl $0x6, %eax
ja 0x17e9b
movl $0x43, %ecx
btl %eax, %ecx
jb 0x17ed0
leaq 0x38(%rbx), %rax
movq %rax, 0x10(%rsp)
leaq 0x49305(%rip), %rdi     # 0x611b0
movl $0x10, %esi
callq 0x2fd3c
movq 0x10(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq %rbx, (%rax)
addq $0x8, %r13
movq %r13, %rdi
movq %rax, %rsi
callq 0x2285b
testq %r12, %r12
je 0x17ef1
movq 0x8(%rsp), %r12
movsbl (%rbp), %eax
cmpl %eax, %r15d
jl 0x17efb
movq 0x10(%rbp), %rbp
xorl %r15d, %r15d
cmpq %r14, %rbp
jne 0x17eda
jmp 0x17f07
xorl %r15d, %r15d
movq 0x8(%rsp), %r12
jmp 0x17f07
movl %r15d, %eax
movq 0x18(%rbp,%rax,8), %r15
andq $-0x4, %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x1447d
movq %rax, 0x40(%rbx)
testq %rax, %rax
je 0x17f5e
movq %rax, %r15
movl 0x4(%rax), %eax
cmpl $0x6, %eax
ja 0x17f30
movl $0x43, %ecx
btl %eax, %ecx
jb 0x17f5e
movq %rbx, %r14
addq $0x40, %r14
leaq 0x49272(%rip), %rdi     # 0x611b0
movl $0x10, %esi
callq 0x2fd3c
movq %r14, 0x8(%rax)
movq %rbx, (%rax)
addq $0x8, %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x2285b
movq 0x20(%r12), %rdi
testq %rdi, %rdi
je 0x17f78
movq %rdi, 0x8(%rbx)
addq $0x28, %rdi
movq %rbx, %rsi
callq 0x2285b
xorl %edi, %edi
callq 0x303a3
movl $0x3, 0x4(%rax)
movl 0x4fbc4(%rip), %ecx     # 0x67b50
incl %ecx
movl %ecx, 0x4fbbc(%rip)     # 0x67b50
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