Function at 0x1002dcc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff0
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x102289dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebx + 0xc]
push edi
push dword [ebx + 0x10]
push esi
call fcn.10006d90
add esp, 8
test al, al
je 0x1002e018
mov eax, dword [esi]
mov edx, dword [ebx + 0x20]
add eax, 7
shr eax, 3
cmp eax, dword [edx]
je 0x1002dd1a
push str.DivCeil_xyb_x.xsize____kBlockDim___out__xsize__
push 0x131
jmp 0x1002e022
mov eax, dword [esi + 4]
add eax, 7
shr eax, 3
cmp eax, dword [edx + 4]
je 0x1002dd37
push str.DivCeil_xyb_x.ysize____kBlockDim___out__ysize__
push 0x132
jmp 0x1002e022
movss xmm4, dword [ebx + 0x18]
movss xmm0, dword [0x101f7780]
movaps xmm3, xmm4
movss xmm6, dword [ebx + 8]
comiss xmm6, xmm0
movss xmm2, dword [0x101f4728]
mulss xmm3, dword [0x101f4720]
movaps xmm1, xmm2
jb 0x1002dd7d
movaps xmm1, xmm6
subss xmm1, xmm0
divss xmm1, xmm0
movaps xmm0, xmm2
subss xmm0, xmm1
xorps xmm1, xmm1
maxss xmm1, xmm0
mov ecx, dword [ebx + 0x1c]
subss xmm2, xmm1
movaps xmm0, xmm1
mulss xmm0, xmm4
mov edi, dword [ecx + 4]
mov eax, dword [ecx + 0xc]
mulss xmm2, xmm3
add eax, edi
mov dword [ebp - 0x14], edi
movss dword [ebp - 0x18], xmm0
movss dword [ebp - 0x1c], xmm2
cmp edi, eax
jae 0x1002e005
mov eax, dword [ecx + 8]
add eax, dword [ecx]
mov dword [ebp - 0x10], eax
nop dword [eax]
nop dword [eax + eax]
mov esi, dword [edx + 0x10]
lea eax, [edi*8]
imul esi, edi
mov dword [ebp - 0xc], eax
mov eax, dword [ecx]
mov dword [ebp - 8], eax
add esi, dword [edx + 0x14]
cmp eax, dword [ebp - 0x10]
jae 0x1002dff3
movaps xmm4, xmmword [0x101f7850]
mov edi, eax
movaps xmm0, xmmword [0x101f7890]
movaps xmm5, xmmword [0x101f4a90]
movups xmmword [ebp - 0x40], xmm4
lea eax, [edi*8]
mov dword [ebp - 8], eax
nop word [eax + eax]
movss xmm1, dword [esi + edi*4]
lea ecx, [ebp - 0x30]
shufps xmm1, xmm1, 0
movaps xmm2, xmm5
mulps xmm1, xmmword [0x101f7870]
push ecx
push dword [ebx + 0x10]
push dword [ebp - 0xc]
maxps xmm1, xmmword [0x101f77c0]
push eax
lea eax, [ebp - 0x50]
push dword [ebp - 0xc]
movaps xmm3, xmm1
mulps xmm3, xmm1
push eax
addps xmm0, xmm3
addps xmm3, xmm4
divps xmm2, xmm0
movaps xmm0, xmmword [0x101f7930]
addps xmm0, xmm1
mulps xmm2, xmmword [0x101f78d0]
movaps xmm1, xmm5
divps xmm1, xmm0
movaps xmm0, xmm5
divps xmm0, xmm3
mulps xmm1, xmmword [0x101f78e0]
mulps xmm0, xmmword [0x101f78b0]
addps xmm2, xmm1
addps xmm2, xmm0
addps xmm2, xmmword [0x101f7970]
movaps xmmword [ebp - 0x30], xmm2
call fcn.100271f0
add esp, 0x18
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x30], xmm0
sub esp, 8
lea eax, [ebp - 0x60]
xorps xmm0, xmm0
cvtss2sd xmm0, xmm6
movsd qword [esp], xmm0
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebx + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
call fcn.10026570
movups xmm0, xmmword [eax]
lea eax, [ebp - 0x30]
push eax
push dword [ebx + 0x10]
lea eax, [ebp - 0x70]
push dword [ebx + 0xc]
movups xmmword [ebp - 0x30], xmm0
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 0xc]
push eax
call fcn.10027030
add esp, 0x44
movups xmm4, xmmword [eax]
mulss xmm4, dword [0x101f76d8]
shufps xmm4, xmm4, 0
cvttps2dq xmm1, xmm4
movaps xmm0, xmm4
pandn xmm0, xmm1
psrad xmm0, 0x1f
pxor xmm0, xmm1
movaps xmm1, xmm4
andps xmm1, xmmword [0x101f4be0]
cmpltps xmm1, xmmword [0x101f6b90]
cvtdq2ps xmm2, xmm0
movaps xmm0, xmm4
cmpltps xmm0, xmm2
cvtdq2ps xmm3, xmm0
addps xmm3, xmm2
andps xmm3, xmm1
andnps xmm1, xmm4
movaps xmm2, xmmword [0x101f6b40]
orps xmm3, xmm1
cvttps2dq xmm0, xmm3
mov ecx, dword [ebx + 0x1c]
add dword [ebp - 8], 8
subps xmm4, xmm3
movaps xmm5, xmmword [0x101f4a90]
movaps xmm1, xmm3
movss xmm6, dword [ebx + 8]
pandn xmm1, xmm0
psrad xmm1, 0x1f
pxor xmm1, xmm0
addps xmm2, xmm4
paddd xmm1, xmmword [0x101f6aa0]
movaps xmm0, xmm4
mulss xmm0, dword [0x101f6b10]
pslld xmm1, 0x17
mulss xmm2, xmm4
addps xmm0, xmmword [0x101f6bb0]
addps xmm2, xmmword [0x101f6b60]
mulss xmm0, xmm4
mulss xmm2, xmm4
addps xmm0, xmmword [0x101f6bc0]
addps xmm2, xmmword [0x101f6b70]
mulss xmm0, xmm4
mulss xmm2, xmm1
addps xmm0, xmmword [0x101f6b80]
movups xmm4, xmmword [ebp - 0x40]
divss xmm2, xmm0
movaps xmm0, xmmword [0x101f7890]
mulss xmm2, dword [ebp - 0x18]
addss xmm2, dword [ebp - 0x1c]
movss dword [esi + edi*4], xmm2
inc edi
mov eax, dword [ecx + 8]
add eax, dword [ecx]
mov dword [ebp - 0x10], eax
cmp edi, eax
mov eax, dword [ebp - 8]
jb 0x1002de10
mov edi, dword [ebp - 0x14]
mov edx, dword [ebx + 0x20]
mov eax, dword [ecx + 0xc]
inc edi
add eax, dword [ecx + 4]
mov dword [ebp - 0x14], edi
cmp edi, eax
jb 0x1002ddc0
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.101e8c02
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push str.SameSize_xyb_x__xyb_y_
push 0x130
push str.C:Projectslibjxllib_jxl_enc_adaptive_quantization.cc
push str._s:_d:_JXL_ASSERT:__s_n
call fcn.100def30
add esp, 0x10
call fcn.100def20
int3