// File: /workspace/github_c_makefile_star2_O3/ender672[P]liboil/oil_resample.c
// Function: set_coeffs
static void set_coeffs(int in_dim, int out_dim, float *coeffs, int *borders,
	float *tmp)
{
	if (out_dim <= in_dim) {
		xscale_calc_coeffs(in_dim, out_dim, coeffs, borders, tmp);
	} else {
		scale_up_coeffs(in_dim, out_dim, coeffs, borders);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %r12
movq %rdx, %r9
movl %esi, %ebx
movl %edi, %r13d
cmpl %edi, %esi
jle 0x17f0
testl %ebx, %ebx
jle 0x19d5
leal -0x1(%r13), %ebp
cvtsi2sd %r13d, %xmm1
cvtsi2sd %ebx, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x10(%rsp)
xorl %r14d, %r14d
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
movsd 0x8(%rsp), %xmm0
addsd 0x38ec(%rip), %xmm0     # 0x5038
mulsd 0x10(%rsp), %xmm0
addsd 0x3906(%rip), %xmm0     # 0x5060
movapd %xmm0, %xmm1
cmpltsd 0x3911(%rip), %xmm1     # 0x5078
movapd %xmm1, %xmm2
andnpd %xmm0, %xmm2
movsd 0x38f1(%rip), %xmm3     # 0x5068
andpd %xmm3, %xmm1
orpd %xmm2, %xmm1
cvttsd2si %xmm1, %eax
cvttpd2dq %xmm1, %xmm1
cvtdq2pd %xmm1, %xmm1
leal 0x2(%rax), %ecx
movl %ecx, %esi
subl %ebp, %esi
movl %ebp, %edi
cmovll %ecx, %edi
movl $0x1, %edx
subl %eax, %edx
testl %eax, %eax
cmovgl %r14d, %edx
subsd %xmm1, %xmm0
cmpl %r13d, %ecx
cmovll %r14d, %esi
movslq %edi, %rax
incl (%r12,%rax,4)
cvtsd2ss %xmm0, %xmm0
movslq %esi, %rcx
leaq (%r9,%rcx,4), %rdi
movl $0x4, %esi
movq %r9, %r15
callq 0x315a
movsd 0x8(%rsp), %xmm0
movq %r15, %r9
addq $0x10, %r9
addsd 0x388d(%rip), %xmm0     # 0x5070
decl %ebx
jne 0x1738
jmp 0x19d5
leal (,%r13,4), %eax
cltd
idivl %ebx
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x30(%rsp)
testl %ebx, %ebx
jle 0x19d5
movq %r8, %r10
movl %eax, %ecx
andl $-0x2, %ecx
movl %ecx, 0x8(%rsp)
cvtsi2sd %r13d, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x50(%rsp)
sarl %eax
movq %rax, 0x58(%rsp)
leal -0x1(%r13), %eax
movl %eax, 0x1c(%rsp)
movl %ebx, %eax
movq %rax, 0x48(%rsp)
xorl %r11d, %r11d
movq %r12, 0x28(%rsp)
movq %r9, 0x40(%rsp)
movq %r13, 0x60(%rsp)
movq %r8, 0x20(%rsp)
movq %r11, 0x10(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r11d, %xmm0
addsd 0x37c7(%rip), %xmm0     # 0x5038
mulsd 0x50(%rsp), %xmm0
addsd 0x37e1(%rip), %xmm0     # 0x5060
movapd %xmm0, %xmm1
cmpltsd 0x37ec(%rip), %xmm1     # 0x5078
movapd %xmm1, %xmm2
andnpd %xmm0, %xmm2
movsd 0x37cc(%rip), %xmm3     # 0x5068
andpd %xmm3, %xmm1
orpd %xmm2, %xmm1
cvttsd2si %xmm1, %r14d
cvttpd2dq %xmm1, %xmm1
cvtdq2pd %xmm1, %xmm1
subsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movq 0x58(%rsp), %rcx
leal (%rcx,%r14), %eax
subl %ecx, %r14d
leal 0x1(%r14), %ebp
cmpl %r13d, %eax
cmovgel 0x1c(%rsp), %eax
movl %r11d, %r15d
andl $0x3, %r15d
movl %r15d, %ecx
movl %eax, 0x30(%rsp,%rcx,4)
leal -0x1(%r11), %ecx
andl $0x3, %ecx
movl 0x30(%rsp,%rcx,4), %r13d
movl %r14d, %ebx
movl 0x8(%rsp), %ecx
addl %ecx, %r14d
movl %ecx, %esi
subl %eax, %r14d
subl %r13d, %eax
movl %eax, (%r12,%r11,4)
notl %ebx
movl %ebp, %r12d
sarl $0x1f, %r12d
andl %ebx, %r12d
movq %r10, %rdi
movl %r12d, %edx
movl %r14d, %ecx
callq 0x315a
movl 0x8(%rsp), %eax
subl %r14d, %eax
cmpl %eax, %r12d
jge 0x19b0
xorq $0x2, %r15
movq 0x10(%rsp), %rdi
incq %rdi
movl %edi, %ecx
andl $0x3, %ecx
movl %r12d, %edx
testl %ebp, %ebp
movl $0x0, %esi
cmovlel %esi, %ebp
movq 0x20(%rsp), %r10
leaq (%r10,%rdx,4), %rdx
leal (,%rbp,4), %esi
movq 0x28(%rsp), %r12
movq 0x40(%rsp), %r9
movq %rdi, %r11
xorl %edi, %edi
cmpl %r13d, %ebp
jg 0x1986
movl $0x1, %edi
cmpl 0x30(%rsp,%r15,4), %ebp
jg 0x1986
xorl %edi, %edi
cmpl 0x30(%rsp,%rcx,4), %ebp
setg %dil
xorl $0x3, %edi
movss (%rdx), %xmm0
addl %esi, %edi
movslq %edi, %rdi
movss %xmm0, (%r9,%rdi,4)
leal (%rbx,%rbp), %edi
incl %edi
movl %ebp, %r8d
incl %r8d
addq $0x4, %rdx
addl $0x4, %esi
movl %r8d, %ebp
cmpl %edi, %eax
jg 0x1966
jmp 0x19c5
movq 0x10(%rsp), %rax
incq %rax
movq 0x28(%rsp), %r12
movq 0x20(%rsp), %r10
movq %rax, %r11
cmpq 0x48(%rsp), %r11
movq 0x60(%rsp), %r13
jne 0x185c
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq