// File: /workspace/github_cpp_makefile_star2_O1/lunasorcery[P]brailify/./stb/stb_image_resize.h
// Function: stbir__decode_scanline(stbir__info*, int)
static void stbir__decode_scanline(stbir__info* stbir_info, int n)
{
    int c;
    int channels = stbir_info->channels;
    int alpha_channel = stbir_info->alpha_channel;
    int type = stbir_info->type;
    int colorspace = stbir_info->colorspace;
    int input_w = stbir_info->input_w;
    int input_stride_bytes = stbir_info->input_stride_bytes;
    float* decode_buffer = stbir__get_decode_buffer(stbir_info);
    stbir_edge edge_horizontal = stbir_info->edge_horizontal;
    stbir_edge edge_vertical = stbir_info->edge_vertical;
    int in_buffer_row_offset = stbir__edge_wrap(edge_vertical, n, stbir_info->input_h) * input_stride_bytes;
    const void* input_data = (char *) stbir_info->input_data + in_buffer_row_offset;
    int max_x = input_w + stbir_info->horizontal_filter_pixel_margin;
    int decode = STBIR__DECODE(type, colorspace);

    int x = -stbir_info->horizontal_filter_pixel_margin;

    // special handling for STBIR_EDGE_ZERO because it needs to return an item that doesn't appear in the input,
    // and we want to avoid paying overhead on every pixel if not STBIR_EDGE_ZERO
    if (edge_vertical == STBIR_EDGE_ZERO && (n < 0 || n >= stbir_info->input_h))
    {
        for (; x < max_x; x++)
            for (c = 0; c < channels; c++)
                decode_buffer[x*channels + c] = 0;
        return;
    }

    switch (decode)
    {
    case STBIR__DECODE(STBIR_TYPE_UINT8, STBIR_COLORSPACE_LINEAR):
        for (; x < max_x; x++)
        {
            int decode_pixel_index = x * channels;
            int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels;
            for (c = 0; c < channels; c++)
                decode_buffer[decode_pixel_index + c] = ((float)((const unsigned char*)input_data)[input_pixel_index + c]) / 255;
        }
        break;

    case STBIR__DECODE(STBIR_TYPE_UINT8, STBIR_COLORSPACE_SRGB):
        for (; x < max_x; x++)
        {
            int decode_pixel_index = x * channels;
            int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels;
            for (c = 0; c < channels; c++)
                decode_buffer[decode_pixel_index + c] = stbir__srgb_uchar_to_linear_float[((const unsigned char*)input_data)[input_pixel_index + c]];

            if (!(stbir_info->flags&STBIR_FLAG_ALPHA_USES_COLORSPACE))
                decode_buffer[decode_pixel_index + alpha_channel] = ((float)((const unsigned char*)input_data)[input_pixel_index + alpha_channel]) / 255;
        }
        break;

    case STBIR__DECODE(STBIR_TYPE_UINT16, STBIR_COLORSPACE_LINEAR):
        for (; x < max_x; x++)
        {
            int decode_pixel_index = x * channels;
            int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels;
            for (c = 0; c < channels; c++)
                decode_buffer[decode_pixel_index + c] = ((float)((const unsigned short*)input_data)[input_pixel_index + c]) / 65535;
        }
        break;

    case STBIR__DECODE(STBIR_TYPE_UINT16, STBIR_COLORSPACE_SRGB):
        for (; x < max_x; x++)
        {
            int decode_pixel_index = x * channels;
            int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels;
            for (c = 0; c < channels; c++)
                decode_buffer[decode_pixel_index + c] = stbir__srgb_to_linear(((float)((const unsigned short*)input_data)[input_pixel_index + c]) / 65535);

            if (!(stbir_info->flags&STBIR_FLAG_ALPHA_USES_COLORSPACE))
                decode_buffer[decode_pixel_index + alpha_channel] = ((float)((const unsigned short*)input_data)[input_pixel_index + alpha_channel]) / 65535;
        }
        break;

    case STBIR__DECODE(STBIR_TYPE_UINT32, STBIR_COLORSPACE_LINEAR):
        for (; x < max_x; x++)
        {
            int decode_pixel_index = x * channels;
            int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels;
            for (c = 0; c < channels; c++)
                decode_buffer[decode_pixel_index + c] = (float)(((double)((const unsigned int*)input_data)[input_pixel_index + c]) / 4294967295);
        }
        break;

    case STBIR__DECODE(STBIR_TYPE_UINT32, STBIR_COLORSPACE_SRGB):
        for (; x < max_x; x++)
        {
            int decode_pixel_index = x * channels;
            int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels;
            for (c = 0; c < channels; c++)
                decode_buffer[decode_pixel_index + c] = stbir__srgb_to_linear((float)(((double)((const unsigned int*)input_data)[input_pixel_index + c]) / 4294967295));

            if (!(stbir_info->flags&STBIR_FLAG_ALPHA_USES_COLORSPACE))
                decode_buffer[decode_pixel_index + alpha_channel] = (float)(((double)((const unsigned int*)input_data)[input_pixel_index + alpha_channel]) / 4294967295);
        }
        break;

    case STBIR__DECODE(STBIR_TYPE_FLOAT, STBIR_COLORSPACE_LINEAR):
        for (; x < max_x; x++)
        {
            int decode_pixel_index = x * channels;
            int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels;
            for (c = 0; c < channels; c++)
                decode_buffer[decode_pixel_index + c] = ((const float*)input_data)[input_pixel_index + c];
        }
        break;

    case STBIR__DECODE(STBIR_TYPE_FLOAT, STBIR_COLORSPACE_SRGB):
        for (; x < max_x; x++)
        {
            int decode_pixel_index = x * channels;
            int input_pixel_index = stbir__edge_wrap(edge_horizontal, x, input_w) * channels;
            for (c = 0; c < channels; c++)
                decode_buffer[decode_pixel_index + c] = stbir__srgb_to_linear(((const float*)input_data)[input_pixel_index + c]);

            if (!(stbir_info->flags&STBIR_FLAG_ALPHA_USES_COLORSPACE))
                decode_buffer[decode_pixel_index + alpha_channel] = ((const float*)input_data)[input_pixel_index + alpha_channel];
        }

        break;

    default:
        STBIR_ASSERT(!"Unknown type/colorspace/channels combination.");
        break;
    }

    if (!(stbir_info->flags & STBIR_FLAG_ALPHA_PREMULTIPLIED))
    {
        for (x = -stbir_info->horizontal_filter_pixel_margin; x < max_x; x++)
        {
            int decode_pixel_index = x * channels;

            // If the alpha value is 0 it will clobber the color values. Make sure it's not.
            float alpha = decode_buffer[decode_pixel_index + alpha_channel];
#ifndef STBIR_NO_ALPHA_EPSILON
            if (stbir_info->type != STBIR_TYPE_FLOAT) {
                alpha += STBIR_ALPHA_EPSILON;
                decode_buffer[decode_pixel_index + alpha_channel] = alpha;
            }
#endif
            for (c = 0; c < channels; c++)
            {
                if (c == alpha_channel)
                    continue;

                decode_buffer[decode_pixel_index + c] *= alpha;
            }
        }
    }

    if (edge_horizontal == STBIR_EDGE_ZERO)
    {
        for (x = -stbir_info->horizontal_filter_pixel_margin; x < 0; x++)
        {
            for (c = 0; c < channels; c++)
                decode_buffer[x*channels + c] = 0;
        }
        for (x = input_w; x < max_x; x++)
        {
            for (c = 0; c < channels; c++)
                decode_buffer[x*channels + c] = 0;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movslq 0x4c(%rdi), %rax
movq %rax, -0x40(%rbp)
movslq 0x50(%rdi), %rax
movq %rax, -0x68(%rbp)
movl 0x58(%rdi), %r15d
movl 0x6c(%rdi), %r8d
movl 0x8(%rdi), %r13d
movl 0xc(%rdi), %r10d
movl 0x10(%rdi), %ecx
movq 0x98(%rdi), %r14
movl 0xb8(%rdi), %r12d
movl 0x64(%rdi), %eax
movq %rax, -0x60(%rbp)
testl %esi, %esi
setns %al
cmpl %esi, %r10d
setg %r11b
movq %rdi, -0x70(%rbp)
movl 0x68(%rdi), %r9d
movl %esi, %edx
testb %r11b, %al
je 0x1424a
movq -0x40(%rbp), %r11
movl %r11d, %ebx
movl %r12d, %eax
imull %r11d, %eax
movslq %eax, %rdi
leaq (%r14,%rdi,4), %rax
movq %rax, -0x78(%rbp)
cmpl %esi, %r10d
setg %r10b
movq -0x70(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x50(%rbp)
movl %r12d, %eax
negl %eax
testl %esi, %esi
leal (%r12,%r13), %esi
movl %esi, -0x2c(%rbp)
setns %sil
cmpl $0x4, %r9d
jne 0x14280
andb %r10b, %sil
jne 0x14280
cmpl %eax, -0x2c(%rbp)
jle 0x15053
movl %ebx, %r14d
shlq $0x2, %rbx
leal (%r13,%r12,2), %r15d
imull %r14d, %r12d
negl %r12d
testl %r14d, %r14d
jle 0x1423d
movslq %r12d, %rax
movq -0x78(%rbp), %rcx
leaq (%rcx,%rax,4), %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x1070
addl %r14d, %r12d
decl %r15d
jne 0x14223
jmp 0x15053
leal -0x1(%r9), %eax
cmpl $0x3, %eax
ja 0x1507c
xorl %edx, %edx
leaq 0x304c(%rip), %r11      # 0x172ac
movslq (%r11,%rax,4), %rax
addq %r11, %rax
jmpq *%rax
testl %esi, %esi
js 0x141bf
leal -0x1(%r10), %edx
cmpl %esi, %r10d
cmovgl %esi, %edx
jmp 0x141bf
leal (%r8,%r15,2), %esi
cmpl $0x7, %esi
ja 0x1509b
movq %rdi, -0x58(%rbp)
movq %r12, -0xb0(%rbp)
movslq %r13d, %rdi
movq %rdi, -0x38(%rbp)
imull %ecx, %edx
movslq %edx, %rcx
addq %rcx, -0x50(%rbp)
leaq 0x300c(%rip), %rcx      # 0x172bc
movslq (%rcx,%rsi,4), %rdx
addq %rcx, %rdx
movq %r13, -0xa8(%rbp)
jmpq *%rdx
cmpl %eax, -0x2c(%rbp)
jle 0x14f11
movq -0x38(%rbp), %rcx
leaq (%rcx,%rcx), %rsi
leal -0x1(%r13), %edi
movslq %eax, %rcx
movq -0x40(%rbp), %r9
movq %r9, %rax
imulq %rcx, %rax
movq -0x58(%rbp), %rdx
leaq (,%rdx,4), %rdx
leaq (%rdx,%rax,4), %r8
addq %r14, %r8
leaq (,%r9,4), %r9
xorl %r10d, %r10d
movss 0x2cfb(%rip), %xmm0     # 0x17004
movq -0x60(%rbp), %rax
leal -0x1(%rax), %r11d
leaq 0x3034(%rip), %r15      # 0x1734c
testq %rcx, %rcx
setns %al
cmpq -0x38(%rbp), %rcx
setl %dl
testb %dl, %al
je 0x1436c
movl %ecx, %edx
cmpl $0x0, -0x40(%rbp)
jle 0x1435c
imull %ebx, %edx
movslq %edx, %rax
addq -0x50(%rbp), %rax
xorl %edx, %edx
movzbl (%rax,%rdx), %r12d
xorps %xmm1, %xmm1
cvtsi2ss %r12d, %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%r8,%rdx,4)
incq %rdx
cmpq %rdx, %rbx
jne 0x1433d
incq %rcx
addq %r9, %r8
cmpl %ecx, -0x2c(%rbp)
jne 0x14318
jmp 0x14f11
cmpl $0x3, %r11d
ja 0x1507c
movslq (%r15,%r11,4), %rax
addq %r15, %rax
jmpq *%rax
cmpq -0x38(%rbp), %rcx
movl %edi, %edx
cmovll %ecx, %edx
testq %rcx, %rcx
cmovsl %r10d, %edx
jmp 0x1432b
movl %ecx, %eax
cltd
idivl %r13d
testq %rcx, %rcx
jns 0x1432b
leal (%rdx,%r13), %eax
testl %edx, %edx
cmovel %edx, %eax
movl %eax, %edx
jmp 0x1432b
xorl %edx, %edx
jmp 0x1432b
movl %ecx, %edx
testq %rcx, %rcx
js 0x143d3
cmpq -0x38(%rbp), %rcx
jl 0x1432b
movl %ecx, %edx
notl %edx
addl %esi, %edx
cmpq %rsi, %rcx
cmovgel %r10d, %edx
jmp 0x1432b
negl %edx
cmpq -0x38(%rbp), %rcx
cmovgel %edi, %edx
jmp 0x1432b
testl %esi, %esi
js 0x15065
movl %esi, %edx
cmpl %esi, %r10d
jg 0x141bf
leal (%r10,%r10), %eax
xorl %r11d, %r11d
cmpl %esi, %eax
movl %esi, %eax
notl %eax
leal (%rax,%r10,2), %edx
cmovlel %r11d, %edx
jmp 0x141bf
movl %esi, %eax
cltd
idivl %r10d
testl %esi, %esi
jns 0x141bf
leal (%rdx,%r10), %eax
testl %edx, %edx
cmovel %edx, %eax
movl %eax, %edx
jmp 0x141bf
cmpl %eax, -0x2c(%rbp)
jle 0x14f11
movq -0x38(%rbp), %rcx
leaq (%rcx,%rcx), %rsi
leal -0x1(%r13), %edi
movslq %eax, %rcx
movq -0x40(%rbp), %r9
movq %r9, %rax
imulq %rcx, %rax
movq -0x58(%rbp), %rdx
leaq (,%rdx,4), %rdx
leaq (%rdx,%rax,4), %r8
addq %r14, %r8
leaq (,%r9,4), %r9
xorl %r10d, %r10d
movsd 0x38eb(%rip), %xmm0     # 0x17d60
movq -0x60(%rbp), %rax
leal -0x1(%rax), %r11d
leaq 0x2e88(%rip), %r15      # 0x1730c
testq %rcx, %rcx
setns %al
cmpq -0x38(%rbp), %rcx
setl %dl
testb %dl, %al
je 0x144df
movl %ecx, %edx
cmpl $0x0, -0x40(%rbp)
jle 0x144cf
imull %ebx, %edx
movslq %edx, %rax
movq -0x50(%rbp), %rdx
leaq (%rdx,%rax,4), %rax
xorl %edx, %edx
movl (%rax,%rdx,4), %r12d
xorps %xmm1, %xmm1
cvtsi2sd %r12, %xmm1
divsd %xmm0, %xmm1
cvtsd2ss %xmm1, %xmm1
movss %xmm1, (%r8,%rdx,4)
incq %rdx
cmpq %rdx, %rbx
jne 0x144ad
incq %rcx
addq %r9, %r8
cmpl %ecx, -0x2c(%rbp)
jne 0x14484
jmp 0x14f11
cmpl $0x3, %r11d
ja 0x1507c
movslq (%r15,%r11,4), %rax
addq %r15, %rax
jmpq *%rax
cmpq -0x38(%rbp), %rcx
movl %edi, %edx
cmovll %ecx, %edx
testq %rcx, %rcx
cmovsl %r10d, %edx
jmp 0x14497
movl %ecx, %eax
cltd
idivl %r13d
testq %rcx, %rcx
jns 0x14497
leal (%rdx,%r13), %eax
testl %edx, %edx
cmovel %edx, %eax
movl %eax, %edx
jmp 0x14497
xorl %edx, %edx
jmp 0x14497
movl %ecx, %edx
testq %rcx, %rcx
js 0x14549
cmpq -0x38(%rbp), %rcx
jl 0x14497
movl %ecx, %edx
notl %edx
addl %esi, %edx
cmpq %rsi, %rcx
cmovgel %r10d, %edx
jmp 0x14497
negl %edx
cmpq -0x38(%rbp), %rcx
cmovgel %edi, %edx
jmp 0x14497
cmpl %eax, -0x2c(%rbp)
jle 0x14f11
movq -0x38(%rbp), %rcx
leaq (%rcx,%rcx), %rsi
leal -0x1(%r13), %edi
movslq %eax, %rcx
movq -0x40(%rbp), %r9
movq %r9, %rax
imulq %rcx, %rax
movq -0x58(%rbp), %rdx
leaq (,%rdx,4), %rdx
leaq (%rdx,%rax,4), %r8
addq %r14, %r8
leaq (,%r9,4), %r9
xorl %r10d, %r10d
movss 0x2a80(%rip), %xmm0     # 0x17020
movq -0x60(%rbp), %rax
leal -0x1(%rax), %r11d
leaq 0x2d7d(%rip), %r15      # 0x1732c
testq %rcx, %rcx
setns %al
cmpq -0x38(%rbp), %rcx
setl %dl
testb %dl, %al
je 0x14607
movl %ecx, %edx
cmpl $0x0, -0x40(%rbp)
jle 0x145f7
imull %ebx, %edx
movslq %edx, %rax
movq -0x50(%rbp), %rdx
leaq (%rdx,%rax,2), %rax
xorl %edx, %edx
movzwl (%rax,%rdx,2), %r12d
xorps %xmm1, %xmm1
cvtsi2ss %r12d, %xmm1
divss %xmm0, %xmm1
movss %xmm1, (%r8,%rdx,4)
incq %rdx
cmpq %rdx, %rbx
jne 0x145d8
incq %rcx
addq %r9, %r8
cmpl %ecx, -0x2c(%rbp)
jne 0x145af
jmp 0x14f11
cmpl $0x3, %r11d
ja 0x1507c
movslq (%r15,%r11,4), %rax
addq %r15, %rax
jmpq *%rax
cmpq -0x38(%rbp), %rcx
movl %edi, %edx
cmovll %ecx, %edx
testq %rcx, %rcx
cmovsl %r10d, %edx
jmp 0x145c2
movl %ecx, %eax
cltd
idivl %r13d
testq %rcx, %rcx
jns 0x145c2
leal (%rdx,%r13), %eax
testl %edx, %edx
cmovel %edx, %eax
movl %eax, %edx
jmp 0x145c2
xorl %edx, %edx
jmp 0x145c2
movl %ecx, %edx
testq %rcx, %rcx
js 0x14671
cmpq -0x38(%rbp), %rcx
jl 0x145c2
movl %ecx, %edx
notl %edx
addl %esi, %edx
cmpq %rsi, %rcx
cmovgel %r10d, %edx
jmp 0x145c2
negl %edx
cmpq -0x38(%rbp), %rcx
cmovgel %edi, %edx
jmp 0x145c2
cmpl %eax, -0x2c(%rbp)
jle 0x14f11
movq -0x38(%rbp), %rcx
addq %rcx, %rcx
movq %rcx, -0x80(%rbp)
leal -0x1(%r13), %ecx
movl %ecx, -0x44(%rbp)
movslq %eax, %rsi
movq -0x78(%rbp), %rax
movq -0x68(%rbp), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -0x88(%rbp)
movq -0x40(%rbp), %rdx
movq %rdx, %rax
imulq %rsi, %rax
movq -0x58(%rbp), %rcx
leaq (,%rcx,4), %rcx
leaq (%rcx,%rax,4), %r12
addq %r14, %r12
leaq (,%rdx,4), %rax
movq %rax, -0x98(%rbp)
movss 0x293b(%rip), %xmm1     # 0x17020
movss 0x2987(%rip), %xmm2     # 0x17074
movq -0x60(%rbp), %rax
decl %eax
movq %rax, -0x90(%rbp)
testq %rsi, %rsi
setns %al
cmpq -0x38(%rbp), %rsi
setl %cl
testb %cl, %al
je 0x147f0
movl %esi, %edx
movq %rsi, -0xa0(%rbp)
movq -0x40(%rbp), %rax
movl %eax, %ecx
imull %edx, %ecx
movl %ecx, -0x48(%rbp)
testl %eax, %eax
jle 0x14791
movslq -0x48(%rbp), %rax
movq -0x50(%rbp), %rcx
leaq (%rcx,%rax,2), %r15
xorl %r13d, %r13d
movzwl (%r15,%r13,2), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
divss %xmm1, %xmm0
ucomiss %xmm0, %xmm2
jae 0x1477b
addss 0x2928(%rip), %xmm0     # 0x1707c
divss 0x2924(%rip), %xmm0     # 0x17080
movss 0x2920(%rip), %xmm1     # 0x17084
callq 0x1180
movss 0x2903(%rip), %xmm2     # 0x17074
movss 0x28a7(%rip), %xmm1     # 0x17020
jmp 0x14783
divss 0x28f5(%rip), %xmm0     # 0x17078
movss %xmm0, (%r12,%r13,4)
incq %r13
cmpq %r13, %rbx
jne 0x14737
movq -0x70(%rbp), %rax
testb $0x2, 0x54(%rax)
movq -0xa0(%rbp), %rsi
jne 0x147d1
movl -0x48(%rbp), %eax
addl -0x68(%rbp), %eax
cltq
movq -0x50(%rbp), %rcx
movzwl (%rcx,%rax,2), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movq %rsi, %rax
imulq -0x40(%rbp), %rax
divss %xmm1, %xmm0
movq -0x88(%rbp), %rcx
movss %xmm0, (%rcx,%rax,4)
incq %rsi
addq -0x98(%rbp), %r12
cmpl %esi, -0x2c(%rbp)
movq -0xa8(%rbp), %r13
jne 0x146fa
jmp 0x14f11
movq -0x90(%rbp), %rax
cmpl $0x3, %eax
ja 0x1507c
leaq 0x2b15(%rip), %rcx      # 0x1731c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpq -0x38(%rbp), %rsi
movl -0x44(%rbp), %eax
movl %eax, %edx
cmovll %esi, %edx
testq %rsi, %rsi
movl $0x0, %eax
cmovsl %eax, %edx
jmp 0x14711
movl %esi, %eax
cltd
idivl %r13d
testq %rsi, %rsi
jns 0x14711
leal (%rdx,%r13), %eax
testl %edx, %edx
cmovel %edx, %eax
movl %eax, %edx
jmp 0x14711
xorl %edx, %edx
jmp 0x14711
movl %esi, %edx
testq %rsi, %rsi
js 0x1487d
cmpq -0x38(%rbp), %rsi
jl 0x14711
movl %esi, %edx
notl %edx
movq -0x80(%rbp), %rax
addl %eax, %edx
cmpq %rax, %rsi
movl $0x0, %eax
cmovgel %eax, %edx
jmp 0x14711
negl %edx
cmpq -0x38(%rbp), %rsi
cmovgel -0x44(%rbp), %edx
jmp 0x14711
cmpl %eax, -0x2c(%rbp)
jle 0x14f11
movq -0x38(%rbp), %rcx
addq %rcx, %rcx
movq %rcx, -0x80(%rbp)
leal -0x1(%r13), %ecx
movl %ecx, -0x44(%rbp)
movslq %eax, %rsi
movq -0x78(%rbp), %rax
movq -0x68(%rbp), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -0x88(%rbp)
movq -0x40(%rbp), %rdx
movq %rdx, %rax
imulq %rsi, %rax
movq -0x58(%rbp), %rcx
leaq (,%rcx,4), %rcx
leaq (%rcx,%rax,4), %r12
addq %r14, %r12
leaq (,%rdx,4), %rax
movq %rax, -0x98(%rbp)
movss 0x2782(%rip), %xmm1     # 0x17074
movq -0x60(%rbp), %rax
decl %eax
movq %rax, -0x90(%rbp)
testq %rsi, %rsi
setns %al
cmpq -0x38(%rbp), %rsi
setl %cl
testb %cl, %al
je 0x149d8
movl %esi, %edx
movq %rsi, -0xa0(%rbp)
movl %ebx, %eax
imull %edx, %eax
movl %eax, -0x48(%rbp)
cmpl $0x0, -0x40(%rbp)
jle 0x14982
movslq -0x48(%rbp), %rax
movq -0x50(%rbp), %rcx
leaq (%rcx,%rax,4), %r15
xorl %r13d, %r13d
movss (%r15,%r13,4), %xmm0
ucomiss %xmm0, %xmm1
jae 0x1496c
addss 0x272f(%rip), %xmm0     # 0x1707c
divss 0x272b(%rip), %xmm0     # 0x17080
movss 0x2727(%rip), %xmm1     # 0x17084
callq 0x1180
movss 0x270a(%rip), %xmm1     # 0x17074
jmp 0x14974
divss 0x2704(%rip), %xmm0     # 0x17078
movss %xmm0, (%r12,%r13,4)
incq %r13
cmpq %r13, %rbx
jne 0x1493a
movq -0x70(%rbp), %rax
testb $0x2, 0x54(%rax)
movq -0xa0(%rbp), %rsi
jne 0x149b9
movq %rsi, %rax
imulq -0x40(%rbp), %rax
movl -0x48(%rbp), %ecx
addl -0x68(%rbp), %ecx
movslq %ecx, %rcx
movq -0x50(%rbp), %rdx
movss (%rdx,%rcx,4), %xmm0
movq -0x88(%rbp), %rcx
movss %xmm0, (%rcx,%rax,4)
incq %rsi
addq -0x98(%rbp), %r12
cmpl %esi, -0x2c(%rbp)
movq -0xa8(%rbp), %r13
jne 0x148ff
jmp 0x14f11
movq -0x90(%rbp), %rax
cmpl $0x3, %eax
ja 0x1507c
leaq 0x28ed(%rip), %rcx      # 0x172dc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpq -0x38(%rbp), %rsi
movl -0x44(%rbp), %eax
movl %eax, %edx
cmovll %esi, %edx
testq %rsi, %rsi
movl $0x0, %eax
cmovsl %eax, %edx
jmp 0x14916
movl %esi, %eax
cltd
idivl %r13d
testq %rsi, %rsi
jns 0x14916
leal (%rdx,%r13), %eax
testl %edx, %edx
cmovel %edx, %eax
movl %eax, %edx
jmp 0x14916
xorl %edx, %edx
jmp 0x14916
movl %esi, %edx
testq %rsi, %rsi
js 0x14a65
cmpq -0x38(%rbp), %rsi
jl 0x14916
movl %esi, %edx
notl %edx
movq -0x80(%rbp), %rax
addl %eax, %edx
cmpq %rax, %rsi
movl $0x0, %eax
cmovgel %eax, %edx
jmp 0x14916
negl %edx
cmpq -0x38(%rbp), %rsi
cmovgel -0x44(%rbp), %edx
jmp 0x14916
cmpl %eax, -0x2c(%rbp)
jle 0x14f11
movq -0x38(%rbp), %rcx
leaq (%rcx,%rcx), %rsi
leal -0x1(%r13), %edi
movslq %eax, %rcx
movq -0x78(%rbp), %rax
movq -0x68(%rbp), %rdx
leaq (%rax,%rdx,4), %r8
movq -0x40(%rbp), %r10
movq %r10, %rax
imulq %rcx, %rax
movq -0x58(%rbp), %rdx
leaq (,%rdx,4), %rdx
leaq (%rdx,%rax,4), %r9
addq %r14, %r9
leaq (,%r10,4), %r10
leaq 0x2ccb(%rip), %r15      # 0x17790
movss 0x2537(%rip), %xmm0     # 0x17004
leaq 0x2868(%rip), %r12      # 0x1733c
testq %rcx, %rcx
setns %al
cmpq -0x38(%rbp), %rcx
setl %dl
testb %dl, %al
je 0x14b64
movl %ecx, %edx
movq -0x40(%rbp), %r11
imull %r11d, %edx
movslq %edx, %rax
testl %r11d, %r11d
jle 0x14b1a
movq -0x50(%rbp), %rdx
addq %rax, %rdx
xorl %r13d, %r13d
movzbl (%rdx,%r13), %r11d
movss (%r15,%r11,4), %xmm1
movss %xmm1, (%r9,%r13,4)
incq %r13
cmpq %r13, %rbx
jne 0x14b01
movq -0x70(%rbp), %rdx
testb $0x2, 0x54(%rdx)
jne 0x14b49
addq -0x68(%rbp), %rax
movq -0x50(%rbp), %rdx
movzbl (%rdx,%rax), %eax
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
movq %rcx, %rax
imulq -0x40(%rbp), %rax
divss %xmm0, %xmm1
movss %xmm1, (%r8,%rax,4)
incq %rcx
addq %r10, %r9
cmpl %ecx, -0x2c(%rbp)
movq -0xa8(%rbp), %r13
jne 0x14ad4
jmp 0x14f11
movq -0x60(%rbp), %rax
decl %eax
cmpl $0x3, %eax
ja 0x1507c
movslq (%r12,%rax,4), %rax
addq %r12, %rax
jmpq *%rax
cmpq -0x38(%rbp), %rcx
movl %edi, %edx
cmovll %ecx, %edx
testq %rcx, %rcx
movl $0x0, %eax
cmovsl %eax, %edx
jmp 0x14ae7
movl %ecx, %eax
cltd
idivl %r13d
testq %rcx, %rcx
jns 0x14ae7
leal (%rdx,%r13), %eax
testl %edx, %edx
cmovel %edx, %eax
movl %eax, %edx
jmp 0x14ae7
xorl %edx, %edx
jmp 0x14ae7
movl %ecx, %edx
testq %rcx, %rcx
js 0x14be2
cmpq -0x38(%rbp), %rcx
jl 0x14ae7
movl %ecx, %edx
notl %edx
addl %esi, %edx
cmpq %rsi, %rcx
movl $0x0, %eax
cmovgel %eax, %edx
jmp 0x14ae7
negl %edx
cmpq -0x38(%rbp), %rcx
cmovgel %edi, %edx
jmp 0x14ae7
cmpl %eax, -0x2c(%rbp)
jle 0x14f11
movq -0x38(%rbp), %rcx
addq %rcx, %rcx
movq %rcx, -0x80(%rbp)
leal -0x1(%r13), %ecx
movl %ecx, -0x44(%rbp)
movslq %eax, %rsi
movq -0x78(%rbp), %rax
movq -0x68(%rbp), %rcx
leaq (%rax,%rcx,4), %rax
movq %rax, -0x88(%rbp)
movq -0x40(%rbp), %rdx
movq %rdx, %rax
imulq %rsi, %rax
movq -0x58(%rbp), %rcx
leaq (,%rcx,4), %rcx
leaq (%rcx,%rax,4), %r12
addq %r14, %r12
leaq (,%rdx,4), %rax
movq %rax, -0x98(%rbp)
movsd 0x310a(%rip), %xmm1     # 0x17d60
movss 0x2416(%rip), %xmm2     # 0x17074
movq -0x60(%rbp), %rax
decl %eax
movq %rax, -0x90(%rbp)
testq %rsi, %rsi
setns %al
cmpq -0x38(%rbp), %rsi
setl %cl
testb %cl, %al
je 0x14d6a
movl %esi, %edx
movq %rsi, -0xa0(%rbp)
movq -0x40(%rbp), %rax
movl %eax, %ecx
imull %edx, %ecx
movl %ecx, -0x48(%rbp)
testl %eax, %eax
jle 0x14d06
movslq -0x48(%rbp), %rax
movq -0x50(%rbp), %rcx
leaq (%rcx,%rax,4), %r15
xorl %r13d, %r13d
movl (%r15,%r13,4), %eax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
ucomiss %xmm0, %xmm2
jae 0x14cf0
addss 0x23b3(%rip), %xmm0     # 0x1707c
divss 0x23af(%rip), %xmm0     # 0x17080
movss 0x23ab(%rip), %xmm1     # 0x17084
callq 0x1180
movss 0x238e(%rip), %xmm2     # 0x17074
movsd 0x3072(%rip), %xmm1     # 0x17d60
jmp 0x14cf8
divss 0x2380(%rip), %xmm0     # 0x17078
movss %xmm0, (%r12,%r13,4)
incq %r13
cmpq %r13, %rbx
jne 0x14ca8
movq -0x70(%rbp), %rax
testb $0x2, 0x54(%rax)
movq -0xa0(%rbp), %rsi
jne 0x14d4b
movq %rsi, %rax
imulq -0x40(%rbp), %rax
movl -0x48(%rbp), %ecx
addl -0x68(%rbp), %ecx
movslq %ecx, %rcx
movq -0x50(%rbp), %rdx
movl (%rdx,%rcx,4), %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rcx, %xmm0
divsd %xmm1, %xmm0
cvtsd2ss %xmm0, %xmm0
movq -0x88(%rbp), %rcx
movss %xmm0, (%rcx,%rax,4)
incq %rsi
addq -0x98(%rbp), %r12
cmpl %esi, -0x2c(%rbp)
movq -0xa8(%rbp), %r13
jne 0x14c6b
jmp 0x14f11
movq -0x90(%rbp), %rax
cmpl $0x3, %eax
ja 0x1507c
leaq 0x257b(%rip), %rcx      # 0x172fc
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
cmpq -0x38(%rbp), %rsi
movl -0x44(%rbp), %eax
movl %eax, %edx
cmovll %esi, %edx
testq %rsi, %rsi
movl $0x0, %eax
cmovsl %eax, %edx
jmp 0x14c82
movl %esi, %eax
cltd
idivl %r13d
testq %rsi, %rsi
jns 0x14c82
leal (%rdx,%r13), %eax
testl %edx, %edx
cmovel %edx, %eax
movl %eax, %edx
jmp 0x14c82
xorl %edx, %edx
jmp 0x14c82
movl %esi, %edx
testq %rsi, %rsi
js 0x14df7
cmpq -0x38(%rbp), %rsi
jl 0x14c82
movl %esi, %edx
notl %edx
movq -0x80(%rbp), %rax
addl %eax, %edx
cmpq %rax, %rsi
movl $0x0, %eax
cmovgel %eax, %edx
jmp 0x14c82
negl %edx
cmpq -0x38(%rbp), %rsi
cmovgel -0x44(%rbp), %edx
jmp 0x14c82
cmpl %eax, -0x2c(%rbp)
jle 0x14f11
movq -0x38(%rbp), %rcx
leaq (%rcx,%rcx), %rsi
leal -0x1(%r13), %edi
movslq %eax, %rcx
movq -0x40(%rbp), %r9
movq %r9, %rax
imulq %rcx, %rax
movq -0x58(%rbp), %rdx
leaq (,%rdx,4), %rdx
leaq (%rdx,%rax,4), %r8
addq %r14, %r8
leaq (,%r9,4), %r9
xorl %r10d, %r10d
movq -0x60(%rbp), %rax
leal -0x1(%rax), %r11d
leaq 0x2496(%rip), %r15      # 0x172ec
testq %rcx, %rcx
setns %al
cmpq -0x38(%rbp), %rcx
setl %dl
testb %dl, %al
je 0x14e9f
movl %ecx, %edx
cmpl $0x0, -0x40(%rbp)
jle 0x14e92
imull %ebx, %edx
movslq %edx, %rax
movq -0x50(%rbp), %rdx
leaq (%rdx,%rax,4), %rax
xorl %edx, %edx
movss (%rax,%rdx,4), %xmm0
movss %xmm0, (%r8,%rdx,4)
incq %rdx
cmpq %rdx, %rbx
jne 0x14e7f
incq %rcx
addq %r9, %r8
cmpl %ecx, -0x2c(%rbp)
jne 0x14e56
jmp 0x14f11
cmpl $0x3, %r11d
ja 0x1507c
movslq (%r15,%r11,4), %rax
addq %r15, %rax
jmpq *%rax
cmpq -0x38(%rbp), %rcx
movl %edi, %edx
cmovll %ecx, %edx
testq %rcx, %rcx
cmovsl %r10d, %edx
jmp 0x14e69
movl %ecx, %eax
cltd
idivl %r13d
testq %rcx, %rcx
jns 0x14e69
leal (%rdx,%r13), %eax
testl %edx, %edx
cmovel %edx, %eax
movl %eax, %edx
jmp 0x14e69
xorl %edx, %edx
jmp 0x14e69
movl %ecx, %edx
testq %rcx, %rcx
js 0x14f03
cmpq -0x38(%rbp), %rcx
jl 0x14e69
movl %ecx, %edx
notl %edx
addl %esi, %edx
cmpq %rsi, %rcx
cmovgel %r10d, %edx
jmp 0x14e69
negl %edx
cmpq -0x38(%rbp), %rcx
cmovgel %edi, %edx
jmp 0x14e69
movq -0x70(%rbp), %rax
testb $0x1, 0x54(%rax)
jne 0x14fc7
movq -0x70(%rbp), %rax
movslq 0xb8(%rax), %rdi
movq %rdi, %rax
negq %rax
cmpl %eax, -0x2c(%rbp)
jle 0x14fc7
movq -0x70(%rbp), %rcx
movl 0x58(%rcx), %ecx
movq -0x68(%rbp), %r8
movl %r8d, %edx
movq -0x78(%rbp), %rsi
leaq (%rsi,%r8,4), %rsi
movq -0x58(%rbp), %r9
shlq $0x2, %r9
movq -0x40(%rbp), %r8
imulq %r8, %rdi
shlq $0x2, %rdi
subq %rdi, %r9
addq %r9, %r14
leaq (,%r8,4), %rdi
movss 0x210f(%rip), %xmm0     # 0x17088
movq %rax, %r8
imulq -0x40(%rbp), %r8
movss (%rsi,%r8,4), %xmm1
cmpl $0x3, %ecx
je 0x14f96
addss %xmm0, %xmm1
movss %xmm1, (%rsi,%r8,4)
cmpl $0x0, -0x40(%rbp)
jle 0x14fbc
xorl %r8d, %r8d
cmpq %r8, %rdx
je 0x14fb4
movss (%r14,%r8,4), %xmm2
mulss %xmm1, %xmm2
movss %xmm2, (%r14,%r8,4)
incq %r8
cmpq %r8, %rbx
jne 0x14f9f
incq %rax
addq %rdi, %r14
cmpl %eax, -0x2c(%rbp)
jne 0x14f79
cmpl $0x4, -0x60(%rbp)
jne 0x15053
movq -0x70(%rbp), %rax
movslq 0xb8(%rax), %r15
testq %r15, %r15
jle 0x15016
leaq (,%rbx,4), %r14
movl %r15d, %r12d
imull %ebx, %r12d
negl %r12d
cmpl $0x0, -0x40(%rbp)
jle 0x1500e
movslq %r12d, %rax
movq -0x78(%rbp), %rcx
leaq (%rcx,%rax,4), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x1070
addl %ebx, %r12d
decq %r15
jne 0x14ff3
cmpl $0x0, -0xb0(%rbp)
jle 0x15053
leaq (,%rbx,4), %r14
movl %r13d, %r15d
imull %ebx, %r15d
testl %ebx, %ebx
jle 0x15047
movslq %r15d, %rax
movq -0x78(%rbp), %rcx
leaq (%rcx,%rax,4), %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x1070
incl %r13d
addl %ebx, %r15d
cmpl -0x2c(%rbp), %r13d
jl 0x1502e
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl %esi, %r10d
jle 0x15073
movl %esi, %edx
negl %edx
jmp 0x141bf
leal -0x1(%r10), %edx
jmp 0x141bf
leaq 0x4065(%rip), %rdi      # 0x190e8
leaq 0x37ee(%rip), %rsi      # 0x18878
leaq 0x4072(%rip), %rcx      # 0x19103
movl $0x3d9, %edx            # imm = 0x3D9
callq 0x1090
leaq 0x3fe5(%rip), %rdi      # 0x19087
leaq 0x37cf(%rip), %rsi      # 0x18878
leaq 0x4008(%rip), %rcx      # 0x190b8
movl $0x54f, %edx            # imm = 0x54F
callq 0x1090