Function at 0x1400b4da0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push rbx
push rsi
lea rbp, [rsp - 0x13f0]
mov eax, 0x14f0
call fcn.1400eb2b0
sub rsp, rax
mov rax, qword [0x14011e7d8]
xor rax, rsp
mov qword [rbp + 0x1390], rax
mov rbx, rdx
mov rsi, rcx
test rcx, rcx
jne 0x1400b4df2
lea r8, str.llama_new_context_with_model
lea rdx, str._s:_model_cannot_be_NULL_n
lea ecx, [rsi + 2]
call fcn.1400919b0
xor eax, eax
jmp 0x1400b588d
cmp dword [rdx + 8], 0
jne 0x1400b4e1d
cmp dword [rdx + 0xc], 0
jne 0x1400b4e1d
lea r8, str.llama_new_context_with_model
mov ecx, 2
lea rdx, str._s:_n_batch_and_n_ubatch_cannot_both_be_zero_n
call fcn.1400919b0
xor eax, eax
jmp 0x1400b588d
mov qword [rsp + 0x14d0], r15
mov r15d, dword [rdx + 4]
test r15d, r15d
jne 0x1400b4e52
cmp dword [rcx + 0x38], r15d
jne 0x1400b4e52
lea r8, str.llama_new_context_with_model
lea rdx, str._s:_n_ctx_and_model__hparams.n_ctx_train_cannot_both_be_zero_n
lea ecx, [r15 + 2]
call fcn.1400919b0
xor eax, eax
jmp 0x1400b5885
mov qword [rsp + 0x1520], rdi
mov ecx, 0x1628
mov qword [rsp + 0x14e8], r12
mov qword [rsp + 0x14e0], r13
mov qword [rsp + 0x14d8], r14
vmovaps xmmword [rsp + 0x14c0], xmm6
call fcn.1400eae84
xor r14d, r14d
test rax, rax
je 0x1400b4e9d
mov rdx, rsi
mov rcx, rax
call fcn.14006af30
mov rdi, rax
jmp 0x1400b4ea0
mov rdi, r14
mov eax, 1
cmp dword [rbx + 0x10], eax
cmova eax, dword [rbx + 0x10]
mov dword [rdi + 0xc], eax
mov eax, dword [rbx + 0x14]
mov dword [rdi + 0x10], eax
mov eax, dword [rbx + 0x18]
mov dword [rdi + 0x14], eax
mov eax, dword [rbx + 0x2c]
mov dword [rdi + 0x24], eax
mov eax, dword [rbx + 0x30]
mov dword [rdi + 0x28], eax
mov eax, dword [rbx + 0x34]
mov dword [rdi + 0x2c], eax
mov eax, dword [rbx + 0x38]
mov dword [rdi + 0x30], eax
mov eax, dword [rbx + 0x40]
mov dword [rdi + 0x34], eax
movzx eax, byte [rbx + 0x61]
mov byte [rdi + 0x38], al
movzx eax, byte [rbx + 0x62]
mov byte [rdi + 0x3a], al
movzx eax, byte [rbx + 0x63]
mov byte [rdi + 0x3b], al
mov eax, dword [rbx + 0x20]
mov dword [rdi + 0x3c], eax
test r15d, r15d
jne 0x1400b4efd
mov r15d, dword [rsi + 0x38]
vmovss xmm0, dword [rbx + 0x24]
vxorps xmm6, xmm6, xmm6
vucomiss xmm0, xmm6
mov dword [rdi], r15d
jp 0x1400b4f16
jne 0x1400b4f16
vmovss xmm0, dword [rsi + 0x70]
vmovss xmm1, dword [rbx + 0x28]
vucomiss xmm1, xmm6
vmovss dword [rdi + 0x18], xmm0
jp 0x1400b4f2d
jne 0x1400b4f2d
vmovss xmm1, dword [rsi + 0x74]
mov r12d, dword [rbx + 8]
add r15d, 0xff
and r15d, 0xffffff00
mov dword [rdi], r15d
vmovss dword [rdi + 0x1c], xmm1
cmp byte [rsi + 0x98], r14b
je 0x1400b4f59
cmp r12d, r15d
cmovb r15d, r12d
jmp 0x1400b4f5c
mov r15d, r12d
mov dword [rdi + 4], r15d
cmp r15d, 0x20
jae 0x1400b4f8a
mov r15d, 0x20
lea r8, str.llama_new_context_with_model
mov r9d, r15d
lea rdx, str._s:_n_batch_is_less_than_GGML_KQ_MASK_PAD___increasing_to__d_n
lea ecx, [r15 - 0x1d]
call fcn.1400919b0
mov dword [rdi + 4], r15d
mov eax, dword [rbx + 0xc]
test eax, eax
cmovne r12d, eax
mov eax, dword [rbx + 0x3c]
cmp r12d, r15d
cmovb r15d, r12d
mov dword [rdi + 8], r15d
test eax, eax
jne 0x1400b4faf
mov eax, dword [rsi + 0x78]
test eax, eax
jne 0x1400b4faf
mov eax, dword [rsi + 0x38]
mov dword [rdi + 0x20], eax
mov rax, qword [rbx + 0x48]
mov qword [rdi + 0x40], rax
mov rax, qword [rbx + 0x50]
mov qword [rdi + 0x48], rax
mov eax, dword [rbx + 0x1c]
cmp eax, 0xffffffff
jne 0x1400b4fd0
mov eax, dword [rsi + 0xa4]
test eax, eax
jne 0x1400b4fdb
mov dword [rdi + 0x1c], 0x3f800000
vcomiss xmm6, dword [rdi + 0x24]
mov r13d, 2
jbe 0x1400b5008
vmovd xmm1, r13d
vmovd xmm0, eax
vpcmpeqd xmm2, xmm0, xmm1
vmovss xmm1, dword [0x1400f8d24]
vblendvps xmm0, xmm6, xmm1, xmm2
vmovss dword [rdi + 0x24], xmm0
cmp dword [rdi + 0x3c], 0xffffffff
movzx eax, byte [rsi + 0x98]
mov byte [rdi + 0x39], al
jne 0x1400b5028
mov eax, dword [rsi + 0x9c]
cmp eax, 0xffffffff
cmove eax, r14d
mov dword [rdi + 0x3c], eax
cmp byte [rdi + 0x3b], r14b
je 0x1400b5062
cmp byte [rsi + 0x99], r14b
je 0x1400b5040
lea rdx, str._s:_flash_attn_is_not_yet_compatible_with_ALiBi___forcing_off_n
jmp 0x1400b504d
cmp dword [rsi + 4], 3
jne 0x1400b5062
lea rdx, str._s:_flash_attn_is_not_compatible_with_Grok___forcing_off_n
lea r8, str.llama_new_context_with_model
mov ecx, 3
call fcn.1400919b0
mov byte [rdi + 0x3b], r14b
mov r15d, dword [rbx]
cmp r15d, 0xffffffff
jne 0x1400b5078
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov r15, rax
mov dword [rbx], eax
mov r9d, dword [rdi]
lea r8, str.llama_new_context_with_model
lea rdx, str._s:_n_ctx________u_n
mov ecx, 4
call fcn.1400919b0
mov r9d, dword [rdi + 4]
lea r8, str.llama_new_context_with_model
lea rdx, str._s:_n_batch______u_n
mov ecx, 4
call fcn.1400919b0
mov r9d, dword [rdi + 8]
lea r8, str.llama_new_context_with_model
lea rdx, str._s:_n_ubatch_____u_n
mov ecx, 4
call fcn.1400919b0
movzx r9d, byte [rdi + 0x3b]
lea r8, str.llama_new_context_with_model
lea rdx, str._s:_flash_attn___d_n
mov ecx, 4
call fcn.1400919b0
vmovss xmm3, dword [rdi + 0x18]
vcvtss2sd xmm3, xmm3, xmm3
vmovq r9, xmm3
lea r8, str.llama_new_context_with_model
mov ecx, 4
lea rdx, str._s:_freq_base____.1f_n
call fcn.1400919b0
vmovss xmm3, dword [rdi + 0x1c]
vcvtss2sd xmm3, xmm3, xmm3
vmovq r9, xmm3
lea r8, str.llama_new_context_with_model
mov ecx, 4
lea rdx, str._s:_freq_scale___g_n
call fcn.1400919b0
mov rax, qword [rbx + 0x68]
mov edx, 1
mov qword [rdi + 0x1568], rax
mov rax, qword [rbx + 0x70]
mov qword [rdi + 0x1570], rax
mov dword [rbp + 0x1384], 0xffffffff
mov dword [rbp + 4], r15d
nop dword [rax]
mov eax, r15d
shr eax, 0x1e
xor eax, r15d
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [rbp + rdx*4 + 4], ecx
mov r15d, ecx
inc rdx
cmp rdx, 0x270
jb 0x1400b5160
lea rcx, [rdi + 0x110]
mov dword [rbp], 0x270
mov r8d, 0x1388
lea rdx, [rbp]
call sub.VCRUNTIME140.dll_memcpy
movzx eax, byte [rbx + 0x60]
mov byte [rdi + 0x1524], al
mov edx, dword [rsi + 4]
mov r15d, dword [rdi]
cmp edx, 0x1b
jne 0x1400b51c5
mov r15d, 1
cmp dword [rbx + 0x10], r15d
cmova r15d, dword [rbx + 0x10]
cmp edx, 0x1b
mov eax, r14d
mov r12d, r14d
cmovne eax, dword [rbx + 0x58]
cmovne r12d, dword [rbx + 0x5c]
mov ecx, eax
mov dword [rsp + 0x50], r12d
mov dword [rsp + 0x40], eax
call fcn.140034f00
mov r8d, eax
xor edx, edx
mov eax, dword [rsi + 0x50]
div r8d
test edx, edx
je 0x1400b5247
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x3c99
lea r8, str.F:prog_llmllama.cppllama.cpp
mov rcx, rax
lea rdx, str.GGML_ASSERT:__s:_d:__s_n
lea rax, str.hparams.n_embd_head_k___ggml_blck_size_type_k___0
mov qword [rsp + 0x20], rax
call fcn.140032e30
call fcn.14005c7a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
mov ecx, r12d
call fcn.140034f00
mov ecx, eax
xor edx, edx
mov eax, dword [rsi + 0x54]
div ecx
test edx, edx
je 0x1400b52ad
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov ecx, r13d
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r9d, 0x3c9a
lea r8, str.F:prog_llmllama.cppllama.cpp
mov rcx, rax
lea rdx, str.GGML_ASSERT:__s:_d:__s_n
lea rax, str.hparams.n_embd_head_v___ggml_blck_size_type_v___0
mov qword [rsp + 0x20], rax
call fcn.140032e30
call fcn.14005c7a0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
vmovaps xmmword [rsp + 0x14b0], xmm7
cmp byte [rsi + 0x30], r14b
jne 0x1400b5850
call fcn.1400db9b0
mov qword [rdi + 0x68], rax
lea r8, [rdi + 0x68]
test rax, rax
jne 0x1400b52e1
lea rdx, str._s:_failed_to_initialize_CPU_backend_n
mov ecx, r13d
jmp 0x1400b54b3
mov rdx, qword [rdi + 0x58]
lea r12, [rdi + 0x50]
cmp rdx, qword [r12 + 0x10]
je 0x1400b52fb
mov qword [rdx], rax
add qword [r12 + 8], 8
jmp 0x1400b5303
mov rcx, r12
call fcn.1400646f0
movzx eax, byte [rdi + 0x3a]
lea rcx, [rdi + 0x78]
mov r9d, dword [rsp + 0x50]
mov rdx, rdi
mov r8d, dword [rsp + 0x40]
mov byte [rsp + 0x28], al
mov dword [rsp + 0x20], r15d
call fcn.140090d30
test al, al
jne 0x1400b5339
lea rdx, str._s:_llama_kv_cache_init___failed_for_self_attention_cache_n
mov ecx, r13d
jmp 0x1400b54b3
mov rax, qword [rdi + 0xb8]
mov r13, r14
mov rsi, qword [rdi + 0xb0]
mov r15, r14
vmovaps xmmword [rsp + 0x14a0], xmm8
cmp rsi, rax
je 0x1400b5378
mov r12, rax
nop
mov rcx, qword [rsi]
call fcn.14005b980
add r13, rax
add rsi, 8
cmp rsi, r12
jne 0x1400b5360
lea r12, [rdi + 0x50]
mov rax, qword [rdi + 0xd0]
mov rsi, qword [rdi + 0xc8]
cmp rsi, rax
je 0x1400b53a8
mov r12, rax
nop
mov rcx, qword [rsi]
call fcn.14005b980
add r15, rax
add rsi, 8
cmp rsi, r12
jne 0x1400b5390
lea r12, [rdi + 0x50]
vxorps xmm0, xmm0, xmm0
test r15, r15
js 0x1400b53b8
vcvtsi2ss xmm0, xmm0, r15
jmp 0x1400b53d0
mov rax, r15
mov rdx, r15
shr rdx, 1
and eax, 1
or rdx, rax
vcvtsi2ss xmm0, xmm0, rdx
vaddss xmm0, xmm0, xmm0
vmovss xmm6, dword [0x1400fd020]
mov ecx, dword [rsp + 0x50]
vmulss xmm0, xmm0, xmm6
vcvtss2sd xmm8, xmm0, xmm0
call fcn.14005ec60
mov rsi, rax
vxorps xmm0, xmm0, xmm0
test r13, r13
js 0x1400b53fc
vcvtsi2ss xmm0, xmm0, r13
jmp 0x1400b5414
mov rax, r13
mov rdx, r13
shr rdx, 1
and eax, 1
or rdx, rax
vcvtsi2ss xmm0, xmm0, rdx
vaddss xmm0, xmm0, xmm0
mov ecx, dword [rsp + 0x40]
vmulss xmm0, xmm0, xmm6
vcvtss2sd xmm7, xmm0, xmm0
call fcn.14005ec60
lea rcx, [r15 + r13]
mov rdx, rax
vxorps xmm0, xmm0, xmm0
test rcx, rcx
js 0x1400b543c
vcvtsi2ss xmm0, xmm0, rcx
jmp 0x1400b5451
mov rax, rcx
and ecx, 1
shr rax, 1
or rax, rcx
vcvtsi2ss xmm0, xmm0, rax
vaddss xmm0, xmm0, xmm0
vmovsd qword [rsp + 0x38], xmm8
vmulss xmm0, xmm0, xmm6
mov qword [rsp + 0x30], rsi
lea r8, str.llama_new_context_with_model
vcvtss2sd xmm3, xmm0, xmm0
vmovsd qword [rsp + 0x28], xmm7
mov qword [rsp + 0x20], rdx
mov ecx, 4
vmovq r9, xmm3
lea rdx, str._s:_KV_self_size____7.2f_MiB__K___s_:__7.2f_MiB__V___s_:__7.2f_MiB_n
call fcn.1400919b0
mov ebx, dword [rbx + 0x10]
mov rcx, rdi
mov edx, ebx
call fcn.140092360
vmovaps xmm8, xmmword [rsp + 0x14a0]
cmp rax, rbx
jae 0x1400b54db
lea rdx, str._s:_failed_to_reserve_initial_output_buffer_n
mov ecx, 2
lea r8, str.llama_new_context_with_model
call fcn.1400919b0
mov rcx, rdi
call fcn.14006f2c0
mov edx, 0x1628
mov rcx, rdi
call fcn.1400eaec0
xor eax, eax
jmp 0x1400b5853
mov rcx, qword [rdi + 0x14e8]
call fcn.1400db770
mov rcx, rax
vxorps xmm0, xmm0, xmm0
test rax, rax
js 0x1400b54fa
vcvtsi2sd xmm0, xmm0, rax
jmp 0x1400b550c
shr rax, 1
and ecx, 1
or rax, rcx
vcvtsi2sd xmm0, xmm0, rax
vaddsd xmm0, xmm0, xmm0
vmovsd xmm7, qword [0x1400fd048]
mov rcx, qword [rdi + 0x14e8]
vmulsd xmm0, xmm0, xmm7
vmulsd xmm6, xmm0, xmm7
call fcn.1400db7a0
mov r9, rax
lea r8, str.llama_new_context_with_model
lea rdx, str._s:__10s__output_buffer_size___8.2f_MiB_n
mov ecx, 4
vmovsd qword [rsp + 0x20], xmm6
call fcn.1400919b0
mov rax, qword [r12 + 8]
mov rsi, r14
mov r15, qword [r12]
mov qword [rsp + 0x68], r14
vpxor xmm0, xmm0, xmm0
vmovdqu xmmword [rsp + 0x58], xmm0
cmp r15, rax
je 0x1400b55d0
mov rbx, qword [rsp + 0x60]
mov r12, rax
mov r13, qword [r15]
mov rcx, r13
call fcn.1400dbae0
test al, al
je 0x1400b5587
call fcn.1400db370
jmp 0x1400b558f
mov rcx, r13
call fcn.1400dbad0
mov qword [rsp + 0x48], rax
cmp rbx, rsi
je 0x1400b55a7
mov qword [rbx], rax
add rbx, 8
mov qword [rsp + 0x60], rbx
jmp 0x1400b55c3
lea r8, [rsp + 0x48]
mov rdx, rbx
lea rcx, [rsp + 0x58]
call fcn.1400646f0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add r15, 8
cmp r15, r12
jne 0x1400b5571
lea r12, [rdi + 0x50]
xor edx, edx
mov ecx, 0x2000
call fcn.140059e60
mov rbx, rax
call fcn.14005e9f0
shl rax, 0xd
lea rcx, [rdi + 0x1548]
lea rdx, [rax + rbx]
call fcn.1400b1270
mov rcx, qword [r12]
mov r9d, 0x2000
mov r8, qword [r12 + 8]
mov r15, qword [rsp + 0x58]
sub r8, rcx
sar r8, 3
mov rdx, r15
mov byte [rsp + 0x20], r14b
call fcn.1400dc0f0
mov qword [rdi + 0x1560], rax
mov r8d, dword [rdi]
mov edx, r8d
cmp dword [rdi + 8], r8d
mov rax, qword [rdi + 0x70]
cmovb edx, dword [rdi + 8]
vpxor xmm0, xmm0, xmm0
vmovdqu ymmword [rbp - 0x80], ymm0
mov ecx, dword [rax + 0x158]
sub r8d, edx
mov dword [rsp + 0x70], edx
lea rax, [rsp + 0x40]
mov dword [rbp - 0x58], r8d
lea rdx, [rbp - 0x48]
mov qword [rbp - 0x54], 1
mov r8b, 1
mov qword [rsp + 0x78], rax
vmovups ymm0, ymmword [rsp + 0x70]
vmovups ymmword [rbp - 0x48], ymm0
vmovsd xmm0, qword [rbp - 0x50]
mov qword [rbp - 0x60], r14
vmovups ymm1, ymmword [rbp - 0x70]
mov dword [rsp + 0x40], ecx
mov rcx, rdi
vmovsd qword [rbp - 8], xmm0
vmovups ymmword [rbp - 0x28], ymm1
vzeroupper
call fcn.140090280
mov rcx, qword [rdi + 0x1560]
mov rdx, rax
mov r13, rax
call fcn.1400dc460
test al, al
jne 0x1400b5724
lea r8, str.llama_new_context_with_model
mov ecx, 2
lea rdx, str._s:_failed_to_allocate_compute_buffers_n
call fcn.1400919b0
mov rcx, rdi
call fcn.14006f2c0
mov edx, 0x1628
mov rcx, rdi
call fcn.1400eaec0
test r15, r15
je 0x1400b571d
sub rsi, r15
mov rax, r15
and rsi, 0xfffffffffffffff8
cmp rsi, 0x1000
jb 0x1400b5712
mov r15, qword [r15 - 8]
add rsi, 0x27
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400b583e
mov rdx, rsi
mov rcx, r15
call fcn.1400eaec0
xor eax, eax
jmp 0x1400b5853
mov rcx, qword [r12]
mov rax, qword [r12 + 8]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x1400b57cc
nop dword [rax]
mov rdx, qword [rcx + r14*8]
mov rcx, qword [rdi + 0x1560]
mov rbx, qword [r15 + r14*8]
call fcn.1400dc040
mov rcx, rax
cmp rax, 1
jbe 0x1400b57b0
vxorps xmm0, xmm0, xmm0
test rax, rax
js 0x1400b576d
vcvtsi2sd xmm0, xmm0, rax
jmp 0x1400b577f
shr rax, 1
and ecx, 1
or rax, rcx
vcvtsi2sd xmm0, xmm0, rax
vaddsd xmm0, xmm0, xmm0
vmulsd xmm0, xmm0, xmm7
mov rcx, rbx
vmulsd xmm6, xmm0, xmm7
call fcn.1400db7a0
mov r9, rax
lea r8, str.llama_new_context_with_model
lea rdx, str._s:__10s_compute_buffer_size___8.2f_MiB_n
mov ecx, 4
vmovsd qword [rsp + 0x20], xmm6
call fcn.1400919b0
mov rcx, qword [r12]
inc r14
mov rax, qword [r12 + 8]
sub rax, rcx
sar rax, 3
cmp r14, rax
jb 0x1400b5740
mov rcx, qword [rdi + 0x1560]
call fcn.1400dc0e0
mov r9d, dword [r13 + 4]
lea r8, str.llama_new_context_with_model
lea rdx, str._s:_graph_nodes____d_n
mov ecx, 4
mov ebx, eax
call fcn.1400919b0
mov r9d, ebx
lea r8, str.llama_new_context_with_model
lea rdx, str._s:_graph_splits___d_n
mov ecx, 4
call fcn.1400919b0
test r15, r15
je 0x1400b5850
sub rsi, r15
mov rax, r15
and rsi, 0xfffffffffffffff8
cmp rsi, 0x1000
jb 0x1400b5845
mov r15, qword [r15 - 8]
add rsi, 0x27
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400b5845
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, rsi
mov rcx, r15
call fcn.1400eaec0
mov rax, rdi
vmovaps xmm7, xmmword [rsp + 0x14b0]
mov rdi, qword [rsp + 0x1520]
mov r14, qword [rsp + 0x14d8]
mov r13, qword [rsp + 0x14e0]
mov r12, qword [rsp + 0x14e8]
vmovaps xmm6, xmmword [rsp + 0x14c0]
mov r15, qword [rsp + 0x14d0]
mov rcx, qword [rbp + 0x1390]
xor rcx, rsp
call fcn.1400eafe0
add rsp, 0x14f0
pop rsi
pop rbx
pop rbp
ret