// File: /workspace/github_c_makefile_star2_O2/algorithm-archivists[P]GathVL/src/objects/../../include/stb_image_resize.h
// Function: stbir__calculate_filters(stbir__contributors*, float*, stbir_filter, float, float, int, int)
static void stbir__calculate_filters(stbir__contributors* contributors, float* coefficients, stbir_filter filter, float scale_ratio, float shift, int input_size, int output_size)
{
    int n;
    int total_contributors = stbir__get_contributors(scale_ratio, filter, input_size, output_size);

    if (stbir__use_upsampling(scale_ratio))
    {
        float out_pixels_radius = stbir__filter_info_table[filter].support(1 / scale_ratio) * scale_ratio;

        // Looping through out pixels
        for (n = 0; n < total_contributors; n++)
        {
            float in_center_of_out; // Center of the current out pixel in the in pixel space
            int in_first_pixel, in_last_pixel;

            stbir__calculate_sample_range_upsample(n, out_pixels_radius, scale_ratio, shift, &in_first_pixel, &in_last_pixel, &in_center_of_out);

            stbir__calculate_coefficients_upsample(filter, scale_ratio, in_first_pixel, in_last_pixel, in_center_of_out, stbir__get_contributor(contributors, n), stbir__get_coefficient(coefficients, filter, scale_ratio, n, 0));
        }
    }
    else
    {
        float in_pixels_radius = stbir__filter_info_table[filter].support(scale_ratio) / scale_ratio;

        // Looping through in pixels
        for (n = 0; n < total_contributors; n++)
        {
            float out_center_of_in; // Center of the current out pixel in the in pixel space
            int out_first_pixel, out_last_pixel;
            int n_adjusted = n - stbir__get_filter_pixel_margin(filter, scale_ratio);

            stbir__calculate_sample_range_downsample(n_adjusted, in_pixels_radius, scale_ratio, shift, &out_first_pixel, &out_last_pixel, &out_center_of_in);

            stbir__calculate_coefficients_downsample(filter, scale_ratio, out_first_pixel, out_last_pixel, out_center_of_in, stbir__get_contributor(contributors, n), stbir__get_coefficient(coefficients, filter, scale_ratio, n, 0));
        }

        stbir__normalize_downsample_coefficients(contributors, coefficients, filter, scale_ratio, input_size, output_size);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movss %xmm1, 0x54(%rsp)
movss %xmm0, 0xc(%rsp)
movl %edx, %ebp
movq %rsi, %r13
movq %rdi, 0x18(%rsp)
movl %edx, %edi
movl %ecx, 0x6c(%rsp)
movl %ecx, %esi
movl %r8d, 0x50(%rsp)
movl %r8d, %edx
callq 0x15b89
movss 0xc(%rsp), %xmm0
movl %ebp, %r14d
shlq $0x4, %r14
ucomiss 0x5567(%rip), %xmm0     # 0x1b3fc
movl %eax, %r12d
leaq 0xfc41(%rip), %r15      # 0x25ae0
movq 0x8(%r14,%r15), %rax
movl %ebp, 0x14(%rsp)
movq %r13, 0x48(%rsp)
movq %rax, 0x70(%rsp)
ja 0x16080
callq *%rax
movss 0xc(%rsp), %xmm1
divss %xmm1, %xmm0
movss %xmm0, 0x30(%rsp)
addq %r14, %r15
xorl %r14d, %r14d
testl %r12d, %r12d
cmovlel %r14d, %r12d
movl 0x14(%rsp), %edi
movq %r12, 0x60(%rsp)
movq %r15, 0x20(%rsp)
movaps %xmm1, %xmm0
cmpq %r12, %r14
je 0x162cb
movl %edi, %ebp
callq 0x15ae1
movl %r14d, %edi
subl %eax, %edi
movss 0x30(%rsp), %xmm0
movss 0xc(%rsp), %xmm1
movss 0x54(%rsp), %xmm2
leaq 0x38(%rsp), %rsi
leaq 0x34(%rsp), %rdx
leaq 0x3c(%rsp), %rcx
callq 0x16710
movl 0x38(%rsp), %r15d
movl 0x34(%rsp), %r12d
movss 0x3c(%rsp), %xmm0
movss %xmm0, 0x10(%rsp)
movl %ebp, %edi
movss 0xc(%rsp), %xmm0
callq 0x15e0a
movl %eax, %ebx
movl %r12d, %ebp
subl %r15d, %ebp
movss 0xc(%rsp), %xmm0
callq *0x70(%rsp)
addss %xmm0, %xmm0
callq 0x52b0
cvttss2si %xmm0, %eax
cmpl %eax, %ebp
jg 0x1655e
movq 0x18(%rsp), %rax
movl %r15d, (%rax,%r14,8)
movl %r12d, 0x4(%rax,%r14,8)
movl %r12d, 0x28(%rsp)
cmpl %r15d, %r12d
jl 0x1657d
movl %ebx, %eax
imull %r14d, %eax
cltq
leaq (,%rax,4), %rax
addq %r13, %rax
movq %rax, 0x40(%rsp)
movslq %ebp, %r12
movq %r14, 0x58(%rsp)
movl %r14d, %eax
imull %ebx, %eax
cltq
leaq (,%rax,4), %r14
addq %r13, %r14
xorl %r13d, %r13d
movss 0xc(%rsp), %xmm1
cmpq %r12, %r13
jg 0x15ffc
leal (%r15,%r13), %eax
cvtsi2ss %eax, %xmm0
addss 0x5426(%rip), %xmm0     # 0x1b400
subss 0x10(%rsp), %xmm0
movq 0x20(%rsp), %rax
callq *(%rax)
movss 0xc(%rsp), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, (%r14,%r13,4)
incq %r13
jmp 0x15fc5
movl 0x28(%rsp), %ebx
incl %ebx
cvtsi2ss %ebx, %xmm0
addss 0x53f2(%rip), %xmm0     # 0x1b400
subss 0x10(%rsp), %xmm0
movq 0x20(%rsp), %r15
callq *(%r15)
xorps %xmm1, %xmm1
ucomiss %xmm1, %xmm0
movl 0x14(%rsp), %edi
movq 0x48(%rsp), %r13
movq 0x58(%rsp), %r14
movq 0x40(%rsp), %rsi
jne 0x1659c
jp 0x1659c
testl %ebp, %ebp
js 0x1606d
movl %ebp, %eax
movss (%rsi,%rax,4), %xmm0
ucomiss %xmm1, %xmm0
jne 0x1606d
jp 0x1606d
movq 0x18(%rsp), %rdx
movl (%rdx,%r14,8), %eax
addl %ebp, %eax
decl %eax
movl %ebp, %ecx
decl %ecx
movl %eax, 0x4(%rdx,%r14,8)
movl %ecx, %ebp
jmp 0x16041
incq %r14
movss 0xc(%rsp), %xmm1
movq 0x60(%rsp), %r12
jmp 0x15ee5
movss 0x5374(%rip), %xmm1     # 0x1b3fc
divss %xmm0, %xmm1
movss %xmm1, 0x10(%rsp)
movaps %xmm1, %xmm0
callq *%rax
movss 0xc(%rsp), %xmm1
mulss %xmm1, %xmm0
movss %xmm0, 0x30(%rsp)
addq %r14, %r15
movq %r15, 0x20(%rsp)
xorl %r15d, %r15d
testl %r12d, %r12d
cmovlel %r15d, %r12d
movq %r12, 0x60(%rsp)
cmpq %r12, %r15
je 0x1654f
movl %r15d, %edi
movss 0x30(%rsp), %xmm0
movss 0x54(%rsp), %xmm2
leaq 0x38(%rsp), %rsi
leaq 0x34(%rsp), %rdx
leaq 0x3c(%rsp), %rcx
callq 0x16694
movl 0x38(%rsp), %r14d
movl 0x34(%rsp), %ebx
movss 0x3c(%rsp), %xmm0
movss %xmm0, 0x28(%rsp)
movl 0x14(%rsp), %edi
movss 0xc(%rsp), %xmm0
callq 0x15e0a
movl %eax, %r12d
movl %ebx, %ebp
subl %r14d, %ebp
movss 0x10(%rsp), %xmm0
callq *0x70(%rsp)
addss %xmm0, %xmm0
callq 0x52b0
cvttss2si %xmm0, %eax
cmpl %eax, %ebp
jg 0x165da
movq 0x18(%rsp), %rax
movl %r14d, (%rax,%r15,8)
movl %ebx, 0x4(%rax,%r15,8)
movl %ebx, 0x40(%rsp)
cmpl %r14d, %ebx
jl 0x16618
movl %r12d, %ebx
imull %r15d, %r12d
movslq %r12d, %rax
leaq (%r13,%rax,4), %r13
xorl %r12d, %r12d
xorps %xmm1, %xmm1
movl 0x40(%rsp), %eax
movl %eax, %ebp
subl %r14d, %ebp
movss %xmm1, 0x58(%rsp)
cmpl %ebp, %r12d
jg 0x161dc
leal (%r14,%r12), %eax
cvtsi2ss %eax, %xmm1
addss 0x5277(%rip), %xmm1     # 0x1b400
movss 0x28(%rsp), %xmm0
subss %xmm1, %xmm0
movss 0x10(%rsp), %xmm1
movq 0x20(%rsp), %rax
callq *(%rax)
movslq %r12d, %rax
movss %xmm0, (%r13,%rax,4)
testl %r12d, %r12d
jne 0x161cd
ucomiss 0x52a2(%rip), %xmm0     # 0x1b458
jne 0x161cd
jp 0x161cd
incl %r14d
movq 0x18(%rsp), %rax
movl %r14d, (%rax,%r15,8)
decl %ebp
xorl %r12d, %r12d
jmp 0x16174
movss 0x58(%rsp), %xmm1
addss %xmm0, %xmm1
incl %r12d
jmp 0x16165
movl 0x40(%rsp), %eax
incl %eax
cvtsi2ss %eax, %xmm0
addss 0x5212(%rip), %xmm0     # 0x1b400
subss 0x28(%rsp), %xmm0
movss 0x10(%rsp), %xmm1
movq 0x20(%rsp), %rax
callq *(%rax)
ucomiss 0x5250(%rip), %xmm0     # 0x1b458
jne 0x165bb
jp 0x165bb
movss 0x58(%rsp), %xmm2
cvtss2sd %xmm2, %xmm0
ucomisd 0x6072(%rip), %xmm0     # 0x1c298
movss 0xc(%rsp), %xmm1
jbe 0x16675
movss 0x5216(%rip), %xmm0     # 0x1b450
ucomiss %xmm2, %xmm0
jbe 0x16656
movss 0x51b1(%rip), %xmm0     # 0x1b3fc
divss %xmm2, %xmm0
movslq %ebp, %rax
testq %rax, %rax
pushq $-0x1
popq %rcx
cmovsq %rcx, %rax
incq %rax
imull %r15d, %ebx
movslq %ebx, %rcx
movq 0x48(%rsp), %rdx
leaq (%rdx,%rcx,4), %rcx
xorl %edx, %edx
cmpq %rdx, %rax
je 0x162a1
movss (%rcx,%rdx,4), %xmm2
mulss %xmm0, %xmm2
movss %xmm2, (%rcx,%rdx,4)
incq %rdx
jmp 0x16271
movq 0x18(%rsp), %rdx
movl (%rdx,%r15,8), %eax
addl %ebp, %eax
decl %eax
movl %ebp, %ecx
decl %ecx
movl %eax, 0x4(%rdx,%r15,8)
movl %ecx, %ebp
testl %ebp, %ebp
js 0x162b9
movl %ebp, %eax
movss (%r13,%rax,4), %xmm0
ucomiss 0x51a3(%rip), %xmm0     # 0x1b458
jne 0x162b9
jnp 0x16289
incq %r15
movq 0x48(%rsp), %r13
movq 0x60(%rsp), %r12
jmp 0x160be
movl 0x6c(%rsp), %esi
movl 0x50(%rsp), %r14d
movl %edi, %ebp
movl %r14d, %edx
callq 0x15b89
movl %eax, %ebx
movl %ebp, %edi
movss 0xc(%rsp), %xmm0
callq 0x15e0a
movl %ebp, %edi
movss 0xc(%rsp), %xmm0
xorl %r15d, %r15d
testl %ebx, %ebx
cmovlel %r15d, %ebx
testl %r14d, %r14d
movl $0x0, %ebp
cmovgl %r14d, %ebp
movl %eax, 0x40(%rsp)
cmpl %ebp, %r15d
je 0x16401
xorps %xmm2, %xmm2
xorl %r14d, %r14d
cmpq %r14, %rbx
je 0x1636f
movl %r15d, %r12d
movq 0x18(%rsp), %rax
subl (%rax,%r14,8), %r12d
jl 0x1636f
movq 0x18(%rsp), %rax
cmpl 0x4(%rax,%r14,8), %r15d
jg 0x1636a
movl 0x14(%rsp), %edi
movss %xmm2, 0x20(%rsp)
callq 0x15e0a
movss 0x20(%rsp), %xmm2
movss 0xc(%rsp), %xmm0
movl %r14d, %ecx
imull %eax, %ecx
addl %ecx, %r12d
movslq %r12d, %rax
addss (%r13,%rax,4), %xmm2
incq %r14
jmp 0x1631d
ucomiss 0x50de(%rip), %xmm2     # 0x1b454
jbe 0x16637
movss 0x50cc(%rip), %xmm1     # 0x1b450
ucomiss %xmm2, %xmm1
jbe 0x165f9
movss 0x5067(%rip), %xmm1     # 0x1b3fc
divss %xmm2, %xmm1
movss %xmm1, 0x20(%rsp)
xorl %r14d, %r14d
cmpq %r14, %rbx
je 0x163f5
movl %r15d, %r12d
movq 0x18(%rsp), %rax
subl (%rax,%r14,8), %r12d
jl 0x163f5
movq 0x18(%rsp), %rax
cmpl 0x4(%rax,%r14,8), %r15d
jg 0x163f0
movl 0x14(%rsp), %edi
callq 0x15e0a
movss 0xc(%rsp), %xmm0
movl %r14d, %ecx
imull %eax, %ecx
addl %ecx, %r12d
movslq %r12d, %rax
movss (%r13,%rax,4), %xmm1
mulss 0x20(%rsp), %xmm1
movss %xmm1, (%r13,%rax,4)
incq %r14
jmp 0x163a2
incl %r15d
movl 0x14(%rsp), %edi
jmp 0x1630e
xorl %r13d, %r13d
movq %rbx, 0x28(%rsp)
cmpq %rbx, %r13
je 0x1652b
xorl %eax, %eax
pushq $0x1
popq %rcx
pushq $-0x1
popq %rdx
movl %edx, %r14d
movq 0x48(%rsp), %r12
movl %ecx, %r15d
movl %eax, %ebp
movl %edi, %ebx
callq 0x15e0a
movl %ebx, %edi
movss 0xc(%rsp), %xmm0
imull %r13d, %eax
addl %r14d, %eax
incl %eax
cltq
movss (%r12,%rax,4), %xmm1
incl %r14d
leal 0x1(%r15), %ecx
leal -0x1(%rbp), %eax
ucomiss 0x5000(%rip), %xmm1     # 0x1b458
jne 0x1645c
jnp 0x16422
movq 0x18(%rsp), %rcx
movl (%rcx,%r13,8), %eax
addl %eax, %r14d
movl %r14d, (%rcx,%r13,8)
addl %eax, %r15d
negl %ebp
movl %r15d, %eax
decl %eax
jns 0x16488
movq 0x18(%rsp), %rax
movl %r15d, (%rax,%r13,8)
incl %r15d
incl %ebp
jmp 0x16471
movq 0x18(%rsp), %rax
movl 0x4(%rax,%r13,8), %r14d
subl %r15d, %r14d
addl $0x2, %r14d
movl 0x40(%rsp), %eax
cmpl %r14d, %eax
cmovll %eax, %r14d
callq 0x15e0a
movl %eax, 0x10(%rsp)
xorl %r12d, %r12d
movq 0x28(%rsp), %rbx
cmpl %r14d, %r12d
jge 0x16519
cmpl 0x10(%rsp), %ebp
jge 0x16519
movl 0x14(%rsp), %r15d
movl %r15d, %edi
movss 0xc(%rsp), %xmm0
callq 0x15e0a
imull %r13d, %eax
addl %ebp, %eax
cltq
movq 0x48(%rsp), %rbx
movss (%rbx,%rax,4), %xmm0
movss %xmm0, 0x20(%rsp)
movl %r15d, %edi
movss 0xc(%rsp), %xmm0
callq 0x15e0a
imull %r13d, %eax
addl %r12d, %eax
cltq
movss 0x20(%rsp), %xmm0
movss %xmm0, (%rbx,%rax,4)
movq 0x28(%rsp), %rbx
incl %r12d
incl %ebp
jmp 0x164b5
incq %r13
movss 0xc(%rsp), %xmm0
movl 0x14(%rsp), %edi
jmp 0x16409
movl 0x50(%rsp), %edx
decl %edx
xorl %eax, %eax
movq 0x18(%rsp), %rsi
cmpq %rax, %rbx
je 0x1654f
movl 0x4(%rsi,%rax,8), %ecx
cmpl %edx, %ecx
cmovgel %edx, %ecx
movl %ecx, 0x4(%rsi,%rax,8)
incq %rax
jmp 0x16538
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6e4b(%rip), %rdi      # 0x1d3b0
leaq 0x68aa(%rip), %rsi      # 0x1ce16
leaq 0x6ea6(%rip), %rcx      # 0x1d419
movl $0x441, %edx            # imm = 0x441
callq 0x5130
leaq 0x6d76(%rip), %rdi      # 0x1d2fa
leaq 0x688b(%rip), %rsi      # 0x1ce16
leaq 0x6e87(%rip), %rcx      # 0x1d419
movl $0x446, %edx            # imm = 0x446
callq 0x5130
leaq 0x6eea(%rip), %rdi      # 0x1d48d
leaq 0x686c(%rip), %rsi      # 0x1ce16
leaq 0x6e68(%rip), %rcx      # 0x1d419
movl $0x44f, %edx            # imm = 0x44F
callq 0x5130
leaq 0x6d5b(%rip), %rdi      # 0x1d31d
leaq 0x684d(%rip), %rsi      # 0x1ce16
leaq 0x6cb8(%rip), %rcx      # 0x1d288
movl $0x428, %edx            # imm = 0x428
callq 0x5130
leaq 0x6c44(%rip), %rdi      # 0x1d225
leaq 0x682e(%rip), %rsi      # 0x1ce16
leaq 0x6c99(%rip), %rcx      # 0x1d288
movl $0x411, %edx            # imm = 0x411
callq 0x5130
leaq 0x6f78(%rip), %rdi      # 0x1d578
leaq 0x680f(%rip), %rsi      # 0x1ce16
leaq 0x6efd(%rip), %rcx      # 0x1d50b
movl $0x473, %edx            # imm = 0x473
callq 0x5130
leaq 0x6cdb(%rip), %rdi      # 0x1d2fa
leaq 0x67f0(%rip), %rsi      # 0x1ce16
leaq 0x6c5b(%rip), %rcx      # 0x1d288
movl $0x416, %edx            # imm = 0x416
callq 0x5130
leaq 0x6ec0(%rip), %rdi      # 0x1d4fe
leaq 0x67d1(%rip), %rsi      # 0x1ce16
leaq 0x6ebf(%rip), %rcx      # 0x1d50b
movl $0x472, %edx            # imm = 0x472
callq 0x5130
leaq 0x6d3f(%rip), %rdi      # 0x1d39c
leaq 0x67b2(%rip), %rsi      # 0x1ce16
leaq 0x6c1d(%rip), %rcx      # 0x1d288
movl $0x42b, %edx            # imm = 0x42B
callq 0x5130
leaq 0x6d0d(%rip), %rdi      # 0x1d389
leaq 0x6793(%rip), %rsi      # 0x1ce16
leaq 0x6bfe(%rip), %rcx      # 0x1d288
movl $0x42a, %edx            # imm = 0x42A
callq 0x5130