Function at 0x18018caa0
Capabilities:
Encrypt data using speck

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x228]
sub rsp, 0x2f0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rax - 0x98], xmm11
movaps xmmword [rax - 0xa8], xmm12
movaps xmmword [rax - 0xb8], xmm13
movaps xmmword [rax - 0xc8], xmm14
movaps xmmword [rax - 0xd8], xmm15
mov rax, qword [0x1802c2700]
xor rax, rsp
mov qword [rbp + 0x140], rax
movups xmm1, xmmword [rcx + 0x50]
mov rax, qword [rcx + 0x58]
xor r13d, r13d
movups xmm0, xmmword [rcx + 0x70]
mov rbx, r8
shr rax, 0x20
movaps xmmword [rbp - 0x50], xmm1
mov r8d, edx
mov r10, qword [rbp - 0x50]
test eax, eax
mov dword [rbp - 0x68], edx
mov r12d, r13d
psrldq xmm1, 0xc
mov esi, r13d
movd r9d, xmm1
mov qword [rbp - 0x60], rcx
mov dword [rsp + 0x60], 1
mov edx, r9d
mov dword [rsp + 0x5c], r13d
cmovns edx, r13d
mov dword [rsp + 0x68], r13d
mov dword [rbp - 0x70], r13d
movups xmmword [rbp - 0x40], xmm0
cmp edx, r9d
jl 0x18018cb77
xor al, al
jmp 0x18018cb81
movsxd rax, edx
inc edx
movzx eax, byte [rax + r10]
movzx r14d, al
cmp edx, r9d
jl 0x18018cb8e
xor al, al
jmp 0x18018cb98
movsxd rax, edx
inc edx
movzx eax, byte [rax + r10]
shl r14d, 8
movzx eax, al
or r14d, eax
cmp edx, r9d
jl 0x18018cbab
xor al, al
jmp 0x18018cbb5
movsxd rax, edx
inc edx
movzx eax, byte [rax + r10]
movzx edi, al
mov ecx, r8d
imul ecx, edi
add ecx, edx
cmp ecx, r9d
jg 0x18018cbc9
test ecx, ecx
jns 0x18018cbcc
mov ecx, r9d
mov r8d, r13d
test al, al
je 0x18018cc23
mov rdx, rdi
cmp ecx, r9d
jl 0x18018cbdf
xor al, al
jmp 0x18018cbe9
movsxd rax, ecx
inc ecx
movzx eax, byte [rax + r10]
shl r8d, 8
movzx eax, al
or r8d, eax
sub rdx, 1
jne 0x18018cbd6
mov edx, r13d
mov r11, rdi
nop
cmp ecx, r9d
jl 0x18018cc09
xor al, al
jmp 0x18018cc13
movsxd rax, ecx
inc ecx
movzx eax, byte [rax + r10]
shl edx, 8
movzx eax, al
or edx, eax
sub r11, 1
jne 0x18018cc00
jmp 0x18018cc26
mov edx, r13d
lea eax, [r14 + 1]
mov dword [rsp + 0x44], r13d
imul eax, edi
lea ecx, [r8 + 2]
sub edx, r8d
mov qword [rbp - 0x80], r13
mov r11d, r13d
mov r15, r13
add ecx, eax
js 0x18018cc84
mov dword [rsp + 0x44], r13d
mov qword [rbp - 0x80], r13
test edx, edx
js 0x18018cc84
mov dword [rsp + 0x44], r13d
mov qword [rbp - 0x80], r13
cmp ecx, r9d
jg 0x18018cc84
sub r9d, ecx
mov dword [rsp + 0x44], r13d
mov qword [rbp - 0x80], r13
cmp edx, r9d
jg 0x18018cc84
movsxd r15, ecx
mov r11d, edx
add r15, r10
mov dword [rsp + 0x44], edx
mov qword [rbp - 0x80], r15
movss xmm1, dword [rbp + 8]
xor r9d, r9d
movss xmm0, dword [rbp + 4]
mov edx, r9d
movss xmm7, dword [rbp]
xorps xmm9, xmm9
movss xmm6, dword [rbp - 4]
movss xmm8, dword [rbp - 0x10]
movss xmm14, dword [rbp - 8]
movss xmm15, dword [rbp - 0xc]
movss xmm11, dword [rbp - 0x14]
movss xmm12, dword [rbp - 0x18]
movss xmm13, dword [rbp - 0x1c]
movss xmm10, dword [rbp - 0x20]
movss dword [rsp + 0x48], xmm1
movss dword [rsp + 0x4c], xmm0
movss dword [rsp + 0x64], xmm7
movss dword [rsp + 0x58], xmm6
movss dword [rbp - 0x6c], xmm8
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x7c], r11d
movss xmm2, dword [0x180233460]
lea r10, [0x180000000]
movss xmm5, dword [0x1801d8290]
movss xmm4, dword [0x1801d81d0]
cmp edx, r11d
jge 0x18018cec8
movsxd rax, edx
mov edi, r9d
inc edx
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x50], edx
movsxd r8, edx
movzx r13d, byte [rax + r15]
mov dword [rsp + 0x78], edx
lea eax, [r13 - 1]
cmp eax, 0x1e
ja case.0x18018cd56.2
cdqe
mov ecx, dword [r10 + rax*4 + 0x18dd3c]
add rcx, r10
jmp rcx
cmp dword [rsp + 0x60], 0
mov r13d, dword [rsp + 0x5c]
je 0x18018cd73
mov eax, esi
cdq
sub eax, edx
sar eax, 1
add r13d, eax
mov dword [rsp + 0x5c], r13d
lea eax, [r13 + 7]
mov dword [rsp + 0x60], r9d
cdq
and edx, 7
add edx, eax
sar edx, 3
add edx, r8d
cmp edx, r11d
jg 0x18018cd95
test edx, edx
jns 0x18018d3e1
mov ecx, dword [rsp + 0x40]
mov eax, r9d
test ecx, ecx
mov edx, r11d
cmove eax, esi
mov esi, eax
jmp 0x18018ccf4
mov ecx, dword [rsp + 0x40]
mov eax, esi
cdq
sub eax, edx
mov edx, dword [rsp + 0x50]
sar eax, 1
add dword [rsp + 0x5c], eax
mov eax, r9d
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x18018ccf4
mov dword [rsp + 0x60], r9d
cmp esi, 2
jl 0x18018cec8
movsxd rax, esi
mov rcx, rbx
movss xmm2, dword [rbp + rax*4 - 0x24]
movss xmm1, dword [rbp + rax*4 - 0x28]
call fcn.18018b2a0
movss xmm0, dword [rsp + 0x4c]
xor r9d, r9d
mov edx, dword [rsp + 0x50]
mov r11d, dword [rsp + 0x44]
jmp 0x18018d3db
mov dword [rsp + 0x60], r9d
cmp esi, 1
jl 0x18018cec8
movsxd rax, esi
movaps xmm1, xmm9
mov rcx, rbx
movss xmm2, dword [rbp + rax*4 - 0x24]
call fcn.18018b2a0
movss xmm0, dword [rsp + 0x4c]
xor r9d, r9d
mov edx, dword [rsp + 0x50]
mov r11d, dword [rsp + 0x44]
jmp 0x18018d3db
mov dword [rsp + 0x60], r9d
cmp esi, 1
jl 0x18018cec8
movsxd rax, esi
movaps xmm2, xmm9
mov rcx, rbx
movss xmm1, dword [rbp + rax*4 - 0x24]
call fcn.18018b2a0
movss xmm0, dword [rsp + 0x4c]
xor r9d, r9d
mov edx, dword [rsp + 0x50]
mov r11d, dword [rsp + 0x44]
jmp 0x18018d3db
cmp esi, 2
jl 0x18018cec8
mov edi, 1
lea r11, [rbp - 0x20]
nop word [rax + rax]
movss xmm2, dword [r11 + 4]
mov rcx, rbx
movss xmm1, dword [r11]
call fcn.18018b1c0
add edi, 2
lea r11, [r11 + 8]
cmp edi, esi
jl 0x18018ce90
mov edx, dword [rsp + 0x50]
xor r9d, r9d
mov r11d, dword [rsp + 0x44]
jmp 0x18018d3db
cmp esi, 1
jge 0x18018cfee
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.180199d30
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x58]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
movaps xmm12, xmmword [r11 - 0x70]
movaps xmm13, xmmword [r11 - 0x80]
movaps xmm14, xmmword [r11 - 0x90]
movaps xmm15, xmmword [r11 - 0xa0]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp esi, 1
jl 0x18018cec8
cmp dword [rbx], 0
movss xmm0, dword [rbx + 0x14]
addss xmm0, xmm9
movsxd rax, edi
movss xmm1, dword [rbp + rax*4 - 0x20]
addss xmm1, dword [rbx + 0x10]
movss dword [rbx + 0x14], xmm0
cvttss2si r8d, xmm0
movss dword [rbx + 0x10], xmm1
cvttss2si edx, xmm1
je 0x18018cfa6
cmp edx, dword [rbx + 0x1c]
jg 0x18018cf6c
cmp dword [rbx + 4], 0
jne 0x18018cf6f
mov dword [rbx + 0x1c], edx
cmp r8d, dword [rbx + 0x24]
jg 0x18018cf7b
cmp dword [rbx + 4], 0
jne 0x18018cf7f
mov dword [rbx + 0x24], r8d
cmp edx, dword [rbx + 0x18]
jl 0x18018cf8a
cmp dword [rbx + 4], 0
jne 0x18018cf8d
mov dword [rbx + 0x18], edx
cmp r8d, dword [rbx + 0x20]
jl 0x18018cf99
cmp dword [rbx + 4], 0
jne 0x18018cf9d
mov dword [rbx + 0x20], r8d
mov dword [rbx + 4], 1
jmp 0x18018cfe9
movsxd rax, dword [rbx + 0x30]
imul rcx, rax, 0xe
add rcx, qword [rbx + 0x28]
mov byte [rcx + 0xc], 2
mov word [rcx], dx
mov word [rcx + 2], r8w
mov dword [rcx + 4], 0
movsxd rax, dword [rbx + 0x30]
imul rcx, rax, 0xe
mov rax, qword [rbx + 0x28]
mov word [rcx + rax + 8], r9w
movsxd rax, dword [rbx + 0x30]
imul rcx, rax, 0xe
mov rax, qword [rbx + 0x28]
mov word [rcx + rax + 0xa], r9w
inc dword [rbx + 0x30]
inc edi
cmp edi, esi
jge 0x18018d0bb
cmp dword [rbx], 0
movss xmm1, dword [rbx + 0x10]
addss xmm1, xmm9
movsxd rax, edi
movss xmm0, dword [rbp + rax*4 - 0x20]
addss xmm0, dword [rbx + 0x14]
movss dword [rbx + 0x10], xmm1
cvttss2si edx, xmm1
movss dword [rbx + 0x14], xmm0
cvttss2si r8d, xmm0
je 0x18018d06b
cmp edx, dword [rbx + 0x1c]
jg 0x18018d031
cmp dword [rbx + 4], 0
jne 0x18018d034
mov dword [rbx + 0x1c], edx
cmp r8d, dword [rbx + 0x24]
jg 0x18018d040
cmp dword [rbx + 4], 0
jne 0x18018d044
mov dword [rbx + 0x24], r8d
cmp edx, dword [rbx + 0x18]
jl 0x18018d04f
cmp dword [rbx + 4], 0
jne 0x18018d052
mov dword [rbx + 0x18], edx
cmp r8d, dword [rbx + 0x20]
jl 0x18018d05e
cmp dword [rbx + 4], 0
jne 0x18018d062
mov dword [rbx + 0x20], r8d
mov dword [rbx + 4], 1
jmp 0x18018d0ae
movsxd rax, dword [rbx + 0x30]
imul rcx, rax, 0xe
add rcx, qword [rbx + 0x28]
mov byte [rcx + 0xc], 2
mov word [rcx], dx
mov word [rcx + 2], r8w
mov dword [rcx + 4], 0
movsxd rax, dword [rbx + 0x30]
imul rcx, rax, 0xe
mov rax, qword [rbx + 0x28]
mov word [rcx + rax + 8], r9w
movsxd rax, dword [rbx + 0x30]
imul rcx, rax, 0xe
mov rax, qword [rbx + 0x28]
mov word [rcx + rax + 0xa], r9w
inc dword [rbx + 0x30]
inc edi
cmp edi, esi
jl 0x18018cf31
movss xmm0, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x50]
jmp 0x18018d3db
cmp esi, 4
jl 0x18018cec8
jmp 0x18018d176
cmp esi, 4
jl 0x18018cec8
mov eax, esi
sub eax, edi
cmp eax, 5
jne 0x18018d0f5
movsxd rax, edi
movss xmm6, dword [rbp + rax*4 - 0x10]
jmp 0x18018d0f9
movaps xmm6, xmm9
movss xmm5, dword [rbx + 0x10]
movsxd rax, edi
addss xmm5, xmm9
movss xmm4, dword [rbp + rax*4 - 0x20]
addss xmm4, dword [rbx + 0x14]
movaps xmm3, xmm5
addss xmm3, dword [rbp + rax*4 - 0x1c]
cvttss2si r10d, xmm5
cvttss2si edx, xmm4
movaps xmm1, xmm4
movaps xmm2, xmm3
addss xmm2, dword [rbp + rax*4 - 0x14]
addss xmm1, dword [rbp + rax*4 - 0x18]
cvttss2si ecx, xmm3
cvttss2si eax, xmm1
movaps xmm0, xmm1
movss dword [rbx + 0x10], xmm2
mov dword [rsp + 0x38], eax
addss xmm0, xmm6
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
cvttss2si r8d, xmm2
mov dword [rsp + 0x20], r10d
cvttss2si r9d, xmm0
movss dword [rbx + 0x14], xmm0
call fcn.18018b3a0
add edi, 4
lea eax, [rdi + 3]
cmp eax, esi
jge 0x18018d221
mov eax, esi
sub eax, edi
cmp eax, 5
jne 0x18018d195
movsxd rax, edi
movss xmm0, dword [rbp + rax*4 - 0x10]
jmp 0x18018d199
movaps xmm0, xmm9
movss xmm4, dword [rbx + 0x14]
movsxd rax, edi
addss xmm4, xmm9
movss xmm5, dword [rbp + rax*4 - 0x20]
addss xmm5, dword [rbx + 0x10]
cvttss2si edx, xmm4
movaps xmm3, xmm5
movaps xmm1, xmm4
addss xmm3, dword [rbp + rax*4 - 0x1c]
addss xmm1, dword [rbp + rax*4 - 0x18]
cvttss2si r10d, xmm5
cvttss2si ecx, xmm3
movaps xmm2, xmm3
addss xmm2, xmm0
movaps xmm0, xmm1
addss xmm0, dword [rbp + rax*4 - 0x14]
cvttss2si eax, xmm1
cvttss2si r9d, xmm0
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x10], xmm2
movss dword [rbx + 0x14], xmm0
call fcn.18018b3a0
add edi, 4
lea eax, [rdi + 3]
cmp eax, esi
jl 0x18018d0e1
movss xmm6, dword [rsp + 0x58]
xor r9d, r9d
movss xmm0, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x50]
mov r11d, dword [rsp + 0x44]
jmp 0x18018d3db
cmp esi, 6
jl 0x18018cec8
mov r14d, 5
lea rdi, [rbp - 0x1c]
movss xmm5, dword [rdi - 4]
addss xmm5, dword [rbx + 0x10]
movss xmm4, dword [rdi]
addss xmm4, dword [rbx + 0x14]
movaps xmm3, xmm5
addss xmm3, dword [rdi + 4]
cvttss2si edx, xmm4
movaps xmm1, xmm4
movaps xmm2, xmm3
addss xmm1, dword [rdi + 8]
addss xmm2, dword [rdi + 0xc]
cvttss2si ecx, xmm3
cvttss2si eax, xmm1
cvttss2si r10d, xmm5
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
movaps xmm0, xmm1
movss dword [rbx + 0x10], xmm2
addss xmm0, dword [rdi + 0x10]
cvttss2si r8d, xmm2
mov dword [rsp + 0x20], r10d
cvttss2si r9d, xmm0
movss dword [rbx + 0x14], xmm0
call fcn.18018b3a0
add r14d, 6
add rdi, 0x18
cmp r14d, esi
jl 0x18018d251
movss xmm0, dword [rsp + 0x4c]
xor r9d, r9d
mov edx, dword [rsp + 0x50]
mov r11d, dword [rsp + 0x44]
jmp 0x18018d3db
cmp esi, 8
jl 0x18018cec8
lea r12d, [rsi - 2]
cmp r12d, 5
jle 0x18018d3b8
mov r15d, 5
lea r14, [rbp - 0x1c]
nop dword [rax]
movss xmm5, dword [r14 - 4]
addss xmm5, dword [rbx + 0x10]
movss xmm4, dword [r14]
addss xmm4, dword [rbx + 0x14]
movaps xmm3, xmm5
addss xmm3, dword [r14 + 4]
cvttss2si edx, xmm4
movaps xmm1, xmm4
movaps xmm2, xmm3
addss xmm1, dword [r14 + 8]
addss xmm2, dword [r14 + 0xc]
cvttss2si ecx, xmm3
cvttss2si eax, xmm1
cvttss2si r10d, xmm5
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
movaps xmm0, xmm1
movss dword [rbx + 0x10], xmm2
addss xmm0, dword [r14 + 0x10]
cvttss2si r8d, xmm2
mov dword [rsp + 0x20], r10d
cvttss2si r9d, xmm0
movss dword [rbx + 0x14], xmm0
call fcn.18018b3a0
add edi, 6
add r15d, 6
add r14, 0x18
mov eax, edi
cmp r15d, r12d
jl 0x18018d310
inc eax
cmp eax, esi
jge 0x18018cec8
movss xmm0, dword [rsp + 0x4c]
mov r11d, dword [rsp + 0x44]
mov r15, qword [rbp - 0x80]
movsxd rax, edi
mov rcx, rbx
movss xmm2, dword [rbp + rax*4 - 0x1c]
movss xmm1, dword [rbp + rax*4 - 0x20]
call fcn.18018b1c0
mov edx, dword [rsp + 0x50]
xor r9d, r9d
mov r12d, dword [rsp + 0x68]
movss xmm1, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov eax, r9d
test ecx, ecx
cmove eax, esi
mov esi, eax
jmp 0x18018ccf4
cmp esi, 8
jl 0x18018cec8
lea r15d, [rsi - 6]
cmp r15d, 1
jle 0x18018d441
mov r14d, 1
lea r11, [rbp - 0x20]
movss xmm2, dword [r11 + 4]
mov rcx, rbx
movss xmm1, dword [r11]
call fcn.18018b1c0
add edi, 2
lea r11, [r11 + 8]
add r14d, 2
mov eax, edi
cmp r14d, r15d
jl 0x18018d411
add eax, 5
cmp eax, esi
jge 0x18018cec8
movsxd rax, edi
movss xmm5, dword [rbp + rax*4 - 0x20]
movss xmm4, dword [rbp + rax*4 - 0x1c]
addss xmm5, dword [rbx + 0x10]
addss xmm4, dword [rbx + 0x14]
movaps xmm3, xmm5
addss xmm3, dword [rbp + rax*4 - 0x18]
cvttss2si edx, xmm4
movaps xmm1, xmm4
movaps xmm2, xmm3
addss xmm2, dword [rbp + rax*4 - 0x10]
addss xmm1, dword [rbp + rax*4 - 0x14]
cvttss2si ecx, xmm3
cvttss2si r10d, xmm5
movaps xmm0, xmm1
movss dword [rbx + 0x10], xmm2
addss xmm0, dword [rbp + rax*4 - 0xc]
cvttss2si eax, xmm1
cvttss2si r9d, xmm0
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x14], xmm0
call fcn.18018b3a0
mov edx, dword [rsp + 0x50]
xor r9d, r9d
mov r11d, dword [rsp + 0x44]
movss xmm0, dword [rsp + 0x4c]
mov r15, qword [rbp - 0x80]
jmp 0x18018d3db
cmp esi, 4
jl 0x18018cec8
mov eax, esi
movaps xmm1, xmm9
and eax, 1
je 0x18018d4f1
movaps xmm1, xmm10
lea r12d, [rax + 3]
cmp r12d, esi
jge 0x18018d3d6
lea rdi, [rbp - 0x18]
lea rdi, [rdi + rax*4]
nop word [rax + rax]
movss xmm6, dword [rbx + 0x10]
lea rax, [rbx + 0x14]
movss xmm3, dword [rbx + 0x14]
lea rcx, [rbx + 0x10]
movss xmm4, dword [rdi]
movss xmm0, dword [rdi - 8]
movss xmm2, dword [rdi - 4]
movss xmm7, dword [rdi + 4]
cmp r13b, 0x1b
jne 0x18018d562
addss xmm3, xmm1
addss xmm0, xmm6
movaps xmm1, xmm0
addss xmm1, xmm2
movaps xmm2, xmm3
addss xmm2, xmm4
movaps xmm4, xmm1
movaps xmm5, xmm2
addss xmm4, xmm7
addss xmm5, xmm9
jmp 0x18018d58d
addss xmm6, xmm1
addss xmm0, xmm3
movaps xmm1, xmm6
addss xmm1, xmm2
movaps xmm3, xmm0
movaps xmm2, xmm0
movaps xmm0, xmm6
addss xmm2, xmm4
movaps xmm4, xmm1
addss xmm4, xmm9
movaps xmm5, xmm2
addss xmm5, xmm7
movss dword [rcx], xmm4
cvttss2si edx, xmm3
movss dword [rax], xmm5
cvttss2si eax, xmm2
cvttss2si ecx, xmm1
mov dword [rsp + 0x38], eax
cvttss2si r10d, xmm0
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
cvttss2si r9d, xmm5
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm4
call fcn.18018b3a0
add r12d, 4
add rdi, 0x10
movaps xmm1, xmm9
cmp r12d, esi
jl 0x18018d510
movss xmm6, dword [rsp + 0x58]
movss xmm7, dword [rsp + 0x64]
movss xmm0, dword [rsp + 0x4c]
mov edx, dword [rsp + 0x50]
mov r11d, dword [rsp + 0x44]
mov r15, qword [rbp - 0x80]
jmp 0x18018d3d3
cmp dword [rbp - 0x70], 0
mov rdi, qword [rbp - 0x60]
jne 0x18018d63e
cmp dword [rdi + 0x9c], 0
je 0x18018d631
mov r8d, dword [rbp - 0x68]
lea rcx, [rbp - 0x30]
mov rdx, rdi
call fcn.18018ad30
xor r9d, r9d
movups xmm2, xmmword [rax]
movups xmmword [rbp - 0x40], xmm2
mov dword [rbp - 0x70], 1
jmp 0x18018d63e
mov rdi, qword [rbp - 0x60]
cmp esi, 1
jl 0x18018cec8
dec esi
movsxd rax, esi
cvttss2si r10d, dword [rbp + rax*4 - 0x20]
cmp r12d, 0xa
jge 0x18018cec8
movaps xmm0, xmmword [rsp + 0x70]
movsxd rax, r12d
inc r12d
add rax, rax
mov dword [rsp + 0x68], r12d
movups xmmword [rbp + rax*8 + 0xa0], xmm0
lea rax, [rbp - 0x40]
cmp r13d, 0xa
je 0x18018d686
lea rax, [rdi + 0x60]
movups xmm1, xmmword [rax]
mov rax, qword [rax + 8]
shr rax, 0x20
movaps xmmword [rsp + 0x70], xmm1
test eax, eax
psrldq xmm1, 0xc
movd r8d, xmm1
mov ecx, r8d
cmovns ecx, r9d
mov r9, qword [rsp + 0x70]
mov dword [rsp + 0x78], ecx
cmp ecx, r8d
jl 0x18018d6bb
xor al, al
jmp 0x18018d6c9
movsxd rax, ecx
inc ecx
mov dword [rsp + 0x78], ecx
movzx eax, byte [rax + r9]
movzx edx, al
cmp ecx, r8d
jl 0x18018d6d5
xor al, al
jmp 0x18018d6e3
movsxd rax, ecx
inc ecx
mov dword [rsp + 0x78], ecx
movzx eax, byte [rax + r9]
shl edx, 8
movzx eax, al
or edx, eax
cmp edx, 0x846c
jb 0x18018d6fa
mov eax, 0x8000
jmp 0x18018d70d
cmp edx, 0x4d8
mov eax, 0x6b
mov ecx, 0x46b
cmovae eax, ecx
lea r8d, [rax + r10]
test r8d, r8d
js 0x18018d739
cmp r8d, edx
jge 0x18018d739
movaps xmm0, xmmword [rsp + 0x70]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x50]
movdqa xmmword [rsp + 0x70], xmm0
call fcn.18018a9a0
xor r9d, r9d
jmp 0x18018d744
xor r9d, r9d
mov qword [rbp - 0x50], r9
mov qword [rbp - 0x48], r9
movaps xmm0, xmmword [rbp - 0x50]
movdqa xmmword [rsp + 0x70], xmm0
psrldq xmm0, 8
movq rax, xmm0
shr rax, 0x20
test eax, eax
je 0x18018cec8
mov r15, qword [rsp + 0x70]
mov ecx, r9d
mov r11d, dword [rsp + 0x7c]
test ecx, ecx
movss xmm0, dword [rsp + 0x4c]
mov eax, r9d
movss xmm1, dword [rsp + 0x48]
cmove eax, esi
mov esi, eax
mov dword [rsp + 0x44], r11d
mov edx, r9d
mov qword [rbp - 0x80], r15
jmp 0x18018ccf4
test r12d, r12d
jle 0x18018cec8
dec r12d
mov ecx, r9d
movsxd rax, r12d
add rax, rax
mov dword [rsp + 0x68], r12d
test ecx, ecx
movups xmm2, xmmword [rbp + rax*8 + 0xa0]
mov eax, r9d
cmove eax, esi
movdqa xmm0, xmm2
movaps xmmword [rsp + 0x70], xmm2
psrldq xmm0, 0xc
movdqa xmm1, xmm2
movd r11d, xmm0
movq r15, xmm2
movss xmm0, dword [rsp + 0x4c]
mov esi, eax
psrldq xmm1, 8
movd edx, xmm1
movss xmm1, dword [rsp + 0x48]
mov dword [rsp + 0x44], r11d
mov qword [rbp - 0x80], r15
jmp 0x18018ccf4
mov rax, qword [rsp + 0x78]
shr rax, 0x20
cmp r8d, eax
jl 0x18018d815
xor al, al
jmp 0x18018d822
movzx eax, byte [r8 + r15]
inc r8d
mov dword [rsp + 0x50], r8d
movzx ecx, al
sub ecx, 0x22
je 0x18018dac2
sub ecx, 1
je 0x18018da17
sub ecx, 1
je 0x18018d964
cmp ecx, 1
jne 0x18018cec8
cmp esi, 0xb
jl 0x18018cec8
movaps xmm2, xmm12
movaps xmm3, xmm11
addss xmm2, xmm10
movaps xmm6, xmm1
addss xmm3, xmm13
movaps xmm7, xmm1
addss xmm2, xmm8
addss xmm3, xmm15
addss xmm2, xmm14
addss xmm3, dword [rsp + 0x58]
addss xmm2, dword [rsp + 0x64]
addss xmm3, xmm0
movaps xmm1, xmm2
movaps xmm0, xmm3
andps xmm1, xmm5
andps xmm0, xmm5
comiss xmm1, xmm0
jbe 0x18018d8a2
movaps xmm6, xmm3
xorps xmm6, xmm4
jmp 0x18018d8a8
movaps xmm7, xmm2
xorps xmm7, xmm4
movaps xmm5, xmm10
movaps xmm4, xmm13
addss xmm5, dword [rbx + 0x10]
addss xmm4, dword [rbx + 0x14]
movaps xmm3, xmm12
movaps xmm1, xmm11
movaps xmm2, xmm8
movaps xmm0, xmm15
addss xmm3, xmm5
cvttss2si edx, xmm4
addss xmm1, xmm4
addss xmm2, xmm3
cvttss2si ecx, xmm3
addss xmm0, xmm1
movss dword [rbx + 0x10], xmm2
cvttss2si eax, xmm1
cvttss2si r10d, xmm5
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
cvttss2si r9d, xmm0
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x14], xmm0
call fcn.18018b3a0
movss xmm5, dword [rsp + 0x64]
movaps xmm3, xmm14
movss xmm8, dword [rsp + 0x4c]
movss xmm4, dword [rsp + 0x58]
addss xmm3, dword [rbx + 0x10]
addss xmm4, dword [rbx + 0x14]
addss xmm5, xmm3
addss xmm8, xmm4
movaps xmm1, xmm5
movaps xmm2, xmm8
addss xmm1, xmm7
movss xmm7, dword [rsp + 0x64]
addss xmm2, xmm6
movss xmm6, dword [rsp + 0x58]
jmp 0x18018db73
cmp esi, 9
jl 0x18018cec8
movaps xmm1, xmm11
movaps xmm4, xmm13
addss xmm4, dword [rbx + 0x14]
movaps xmm5, xmm10
movaps xmm3, xmm12
addss xmm5, dword [rbx + 0x10]
movaps xmm2, xmm8
cvttss2si edx, xmm4
addss xmm1, xmm4
addss xmm3, xmm5
cvttss2si r10d, xmm5
addss xmm2, xmm3
movaps xmm0, xmm1
addss xmm0, xmm9
cvttss2si eax, xmm1
cvttss2si ecx, xmm3
mov dword [rsp + 0x38], eax
cvttss2si r9d, xmm0
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x10], xmm2
movss dword [rbx + 0x14], xmm0
call fcn.18018b3a0
movss xmm4, dword [rbx + 0x14]
movaps xmm8, xmm6
addss xmm4, xmm9
movaps xmm0, xmm11
addss xmm0, xmm13
movaps xmm3, xmm15
movaps xmm5, xmm14
movaps xmm1, xmm7
addss xmm8, xmm4
addss xmm0, xmm6
movaps xmm2, xmm8
subss xmm2, xmm0
jmp 0x18018db66
cmp esi, 0xd
jl 0x18018cec8
movaps xmm5, xmm10
movaps xmm4, xmm13
addss xmm5, dword [rbx + 0x10]
addss xmm4, dword [rbx + 0x14]
movaps xmm3, xmm12
movaps xmm1, xmm11
movaps xmm2, xmm8
movaps xmm0, xmm15
addss xmm3, xmm5
cvttss2si edx, xmm4
addss xmm1, xmm4
addss xmm2, xmm3
cvttss2si ecx, xmm3
addss xmm0, xmm1
movss dword [rbx + 0x10], xmm2
cvttss2si eax, xmm1
cvttss2si r10d, xmm5
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
cvttss2si r9d, xmm0
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x14], xmm0
call fcn.18018b3a0
movss xmm8, dword [rsp + 0x4c]
movaps xmm4, xmm6
addss xmm4, dword [rbx + 0x14]
movss xmm2, dword [rbp + 0xc]
movaps xmm3, xmm14
movss xmm1, dword [rsp + 0x48]
movaps xmm5, xmm7
addss xmm8, xmm4
addss xmm2, xmm8
jmp 0x18018db66
cmp esi, 7
jl 0x18018cec8
movss xmm4, dword [rbx + 0x14]
movaps xmm1, xmm12
addss xmm4, xmm9
movaps xmm5, xmm10
addss xmm5, dword [rbx + 0x10]
movaps xmm3, xmm13
movaps xmm2, xmm11
cvttss2si edx, xmm4
addss xmm1, xmm4
addss xmm3, xmm5
cvttss2si r10d, xmm5
addss xmm2, xmm3
movaps xmm0, xmm1
addss xmm0, xmm9
cvttss2si eax, xmm1
cvttss2si ecx, xmm3
mov dword [rsp + 0x38], eax
cvttss2si r9d, xmm0
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm2
movss dword [rbx + 0x10], xmm2
movss dword [rbx + 0x14], xmm0
call fcn.18018b3a0
movss xmm4, dword [rbx + 0x14]
movaps xmm3, xmm8
addss xmm4, xmm9
movaps xmm5, xmm15
movaps xmm1, xmm14
movaps xmm8, xmm4
subss xmm8, xmm12
movaps xmm2, xmm8
addss xmm2, xmm9
addss xmm3, dword [rbx + 0x10]
addss xmm5, xmm3
addss xmm1, xmm5
cvttss2si edx, xmm4
cvttss2si eax, xmm8
cvttss2si ecx, xmm5
mov dword [rsp + 0x38], eax
cvttss2si r10d, xmm3
mov dword [rsp + 0x30], ecx
mov rcx, rbx
mov dword [rsp + 0x28], edx
mov dl, 4
movss dword [rbx + 0x10], xmm1
cvttss2si r9d, xmm2
mov dword [rsp + 0x20], r10d
cvttss2si r8d, xmm1
movss dword [rbx + 0x14], xmm2
call fcn.18018b3a0
mov edx, dword [rsp + 0x50]
xor r9d, r9d
mov r11d, dword [rsp + 0x44]
movss xmm8, dword [rbp - 0x6c]
movss xmm0, dword [rsp + 0x4c]
jmp 0x18018d3db
cmp r13d, 0xff
je 0x18018dc32
test r13d, 0xffffffe0
jne 0x18018dbed
cmp r13d, 0x1c
jne 0x18018cec8
lea eax, [rdx - 1]
cmp eax, r11d
jg 0x18018dbfd
mov dword [rsp + 0x78], eax
test eax, eax
jns 0x18018dc02
mov dword [rsp + 0x78], r11d
lea rcx, [rsp + 0x70]
call fcn.18018aaf0
mov r15, qword [rsp + 0x70]
xor r9d, r9d
mov r11d, dword [rsp + 0x7c]
mov edx, dword [rsp + 0x78]
movsx ecx, ax
mov dword [rsp + 0x44], r11d
mov qword [rbp - 0x80], r15
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
jmp 0x18018dca6
cmp r8d, r11d
jl 0x18018dc3b
xor al, al
jmp 0x18018dc47
movzx eax, byte [r8 + r15]
lea edx, [r8 + 1]
mov r8d, edx
movzx ecx, al
cmp r8d, r11d
jl 0x18018dc53
xor al, al
jmp 0x18018dc5d
movsxd rax, edx
inc edx
movzx eax, byte [rax + r15]
shl ecx, 8
movzx eax, al
or ecx, eax
cmp edx, r11d
jl 0x18018dc6e
xor al, al
jmp 0x18018dc78
movsxd rax, edx
inc edx
movzx eax, byte [rax + r15]
shl ecx, 8
movzx eax, al
or ecx, eax
cmp edx, r11d
jl 0x18018dc89
xor al, al
jmp 0x18018dc93
movsxd rax, edx
inc edx
movzx eax, byte [rax + r15]
shl ecx, 8
movzx eax, al
or ecx, eax
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
mulss xmm0, xmm2
cmp esi, 0x30
jge 0x18018cec8
movsxd rax, esi
mov ecx, r9d
inc esi
test ecx, ecx
movss dword [rbp + rax*4 - 0x20], xmm0
mov eax, r9d
movss xmm1, dword [rbp + 8]
cmove eax, esi
movss xmm0, dword [rbp + 4]
mov esi, eax
movss xmm7, dword [rbp]
movss xmm6, dword [rbp - 4]
movss xmm8, dword [rbp - 0x10]
movss xmm14, dword [rbp - 8]
movss xmm15, dword [rbp - 0xc]
movss xmm11, dword [rbp - 0x14]
movss xmm12, dword [rbp - 0x18]
movss xmm13, dword [rbp - 0x1c]
movss xmm10, dword [rbp - 0x20]
movss dword [rsp + 0x48], xmm1
movss dword [rsp + 0x4c], xmm0
movss dword [rsp + 0x64], xmm7
movss dword [rsp + 0x58], xmm6
movss dword [rbp - 0x6c], xmm8
jmp 0x18018ccf4
mov rcx, rbx
call fcn.18018b0e0
mov eax, 1
jmp 0x18018ceca