// File: /workspace/github_c_makefile_star2_O1/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 %r8, 0x18(%rsp)
movq %rcx, %r12
movq %rdx, %r9
movl %esi, %ebx
movl %edi, %r13d
cmpl %edi, %esi
jle 0x17a8
testl %ebx, %ebx
jle 0x1968
leal -0x1(%r13), %ebp
cvtsi2sd %r13d, %xmm1
cvtsi2sd %ebx, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
xorl %r14d, %r14d
xorpd %xmm0, %xmm0
movsd %xmm0, (%rsp)
movsd (%rsp), %xmm0
addsd 0x3933(%rip), %xmm0     # 0x5038
mulsd 0x8(%rsp), %xmm0
addsd 0x394d(%rip), %xmm0     # 0x5060
movapd %xmm0, %xmm1
cmpltsd 0x3958(%rip), %xmm1     # 0x5078
movapd %xmm1, %xmm2
andnpd %xmm0, %xmm2
movsd 0x3938(%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 0x2fbd
movsd (%rsp), %xmm0
movq %r15, %r9
addq $0x10, %r9
addsd 0x38d5(%rip), %xmm0     # 0x5070
decl %ebx
jne 0x16f3
jmp 0x1968
leal (,%r13,4), %eax
cltd
idivl %ebx
pcmpeqd %xmm0, %xmm0
movdqa %xmm0, 0x20(%rsp)
testl %ebx, %ebx
jle 0x1968
movl %eax, %ecx
andl $-0x2, %ecx
movl %ecx, (%rsp)
cvtsi2sd %r13d, %xmm1
xorps %xmm0, %xmm0
cvtsi2sd %ebx, %xmm0
divsd %xmm0, %xmm1
movsd %xmm1, 0x40(%rsp)
sarl %eax
movq %rax, 0x48(%rsp)
leal -0x1(%r13), %eax
movl %eax, 0x14(%rsp)
movl %ebx, %eax
movq %rax, 0x38(%rsp)
xorl %r10d, %r10d
movq %r12, 0x60(%rsp)
movq %r9, 0x58(%rsp)
movq %r13, 0x50(%rsp)
movq %r10, 0x8(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r10d, %xmm0
addsd 0x3818(%rip), %xmm0     # 0x5038
mulsd 0x40(%rsp), %xmm0
addsd 0x3832(%rip), %xmm0     # 0x5060
movapd %xmm0, %xmm1
cmpltsd 0x383d(%rip), %xmm1     # 0x5078
movapd %xmm1, %xmm2
andnpd %xmm0, %xmm2
movsd 0x381d(%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 0x48(%rsp), %rcx
leal (%rcx,%r14), %eax
subl %ecx, %r14d
leal 0x1(%r14), %ebp
cmpl %r13d, %eax
cmovgel 0x14(%rsp), %eax
movl %r10d, %r15d
andl $0x3, %r15d
movl %r15d, %ecx
movl %eax, 0x20(%rsp,%rcx,4)
leal -0x1(%r10), %ecx
andl $0x3, %ecx
movl 0x20(%rsp,%rcx,4), %r13d
movl %r14d, %ebx
movl (%rsp), %ecx
addl %ecx, %r14d
movl %ecx, %esi
subl %eax, %r14d
subl %r13d, %eax
movl %eax, (%r12,%r10,4)
notl %ebx
movl %ebp, %r12d
sarl $0x1f, %r12d
andl %ebx, %r12d
movq 0x18(%rsp), %rdi
movl %r12d, %edx
movl %r14d, %ecx
callq 0x2fbd
movq 0x8(%rsp), %r10
movq 0x58(%rsp), %r9
movl (%rsp), %eax
subl %r14d, %eax
cmpl %eax, %r12d
jge 0x1950
xorq $0x2, %r15
leal 0x1(%r10), %ecx
andl $0x3, %ecx
movl %r12d, %edx
testl %ebp, %ebp
movl $0x0, %esi
cmovlel %esi, %ebp
movq 0x18(%rsp), %rsi
leaq (%rsi,%rdx,4), %rdx
leal (,%rbp,4), %esi
xorl %edi, %edi
cmpl %r13d, %ebp
jg 0x1928
movl $0x1, %edi
cmpl 0x20(%rsp,%r15,4), %ebp
jg 0x1928
xorl %edi, %edi
cmpl 0x20(%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 0x1908
incq %r10
cmpq 0x38(%rsp), %r10
movq 0x60(%rsp), %r12
movq 0x50(%rsp), %r13
jne 0x180b
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq