Function at 0x1401b75c0
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov r14d, dword [rcx + 0x40]
mov r12, rcx
mov ebx, edx
mov r15, r8
mov rbp, r9
test r14d, r14d
jne 0x1401b7912
cmp qword [rcx + 0x20], 0
je 0x1401b7618
mov rcx, qword [r12 + 0x20]
mov r8, rbp
mov edx, 1
call fcn.140203610
mov rcx, qword [r12 + 0x20]
call fcn.140208fb0
cmp eax, 0x64
je 0x1401b763e
xor r9d, r9d
xor r13d, r13d
jmp 0x1401b7695
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
call fcn.1401b7930
cmp dword [r12 + 0x40], 0
mov qword [r12 + 0x20], rax
je 0x1401b75ef
jmp 0x1401b7912
mov rcx, qword [r12 + 0x20]
xor edx, edx
call fcn.1402043a0
mov rcx, qword [r12 + 0x20]
xor edx, edx
mov dword [rsp + 0x38], eax
call fcn.140204370
movsxd rcx, dword [rsp + 0x38]
mov rsi, rax
mov dword [rsp + 0x48], ecx
mov qword [rsp + 0x38], rcx
call fcn.1402076e0
mov rcx, qword [rsp + 0x38]
mov r9d, dword [rsp + 0x48]
test rax, rax
mov r13, rax
jne 0x1401b7690
mov dword [r12 + 0x40], 7
xor r9d, r9d
jmp 0x1401b7695
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [r12 + 0x20]
mov dword [rsp + 0x38], r9d
call fcn.140208230
cmp dword [r12 + 0x40], 0
mov r9d, dword [rsp + 0x38]
jne 0x1401b76fe
mov dword [r12 + 0x40], eax
test eax, eax
jne 0x1401b76fe
test r13, r13
je 0x1401b76dc
cmp r9d, 3
jg 0x1401b7708
mov r8, rbp
lea rdx, str.Node__lld_is_too_small___d_bytes_
mov rcx, r12
call fcn.1401b73a0
jmp 0x1401b7890
mov r8, rbp
lea rdx, str.Node__lld_missing_from_database
mov rcx, r12
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401b73a0
test r13, r13
jne 0x1401b76bf
jmp 0x1401b7912
test r15, r15
jne 0x1401b7738
movzx ebx, byte [r13]
movzx edx, byte [r13 + 1]
shl ebx, 8
add ebx, edx
cmp ebx, 0x28
jle 0x1401b7738
mov r8d, ebx
lea rdx, str.Rtree_depth_out_of_range___d_
mov rcx, r12
call fcn.1401b73a0
jmp 0x1401b7890
movzx esi, byte [r13 + 2]
movzx eax, byte [r13 + 3]
lea edi, [rbx - 1]
mov dword [rsp + 0x4c], edi
shl esi, 8
add eax, esi
mov dword [rsp + 0x48], eax
mov eax, dword [r12 + 0x1c]
inc eax
imul eax, dword [rsp + 0x48]
lea eax, [rax*8 + 3]
cmp eax, r9d
jl 0x1401b7833
mov dword [rsp + 0x20], r9d
mov r9d, dword [rsp + 0x48]
mov r8, rbp
mov rcx, r12
lea rdx, str.Node__lld_is_too_small_for_cell_count_of__d___d_bytes_
call fcn.1401b73a0
jmp 0x1401b7890
mov edx, dword [r10 + rsi*8 + 8]
mov r11d, dword [r10 + rsi*8 + 0xc]
cmp dword [r12 + 0x18], 0
bswap edx
bswap r11d
mov dword [rsp + 0x38], edx
je 0x1401b7866
cmp edx, r11d
setg dl
test dl, dl
je 0x1401b77ed
mov qword [rsp + 0x20], rbp
mov r9d, r14d
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt
mov rcx, r12
mov dword [rsp + 0x5c], r11d
mov qword [rsp + 0x50], r10
mov dword [rsp + 0x58], r8d
call fcn.1401b73a0
mov r11d, dword [rsp + 0x5c]
mov r10, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x58]
test r15, r15
jne 0x1401b78a8
inc rsi
mov r8d, esi
cmp dword [r12 + 0x1c], esi
jg 0x1401b778f
mov r9, rbp
mov r8, rdi
test ebx, ebx
je 0x1401b787c
xor edx, edx
mov rcx, r12
call fcn.1401b74a0
mov r8, qword [rsp + 0x40]
mov r9, rdi
mov rcx, r12
mov edx, dword [rsp + 0x4c]
call fcn.1401b75c0
inc dword [r12 + 0x3c]
inc r14d
cmp r14d, dword [rsp + 0x48]
je 0x1401b7890
mov eax, dword [r12 + 0x1c]
xor esi, esi
inc eax
imul eax, r14d
lea r10d, [rax*8 + 4]
movsxd r10, r10d
add r10, r13
mov rdi, qword [r10]
lea rax, [r10 + 8]
mov qword [rsp + 0x40], rax
bswap rdi
jmp 0x1401b77f9
movss xmm0, dword [rsp + 0x38]
movd xmm1, r11d
comiss xmm0, xmm1
seta dl
jmp 0x1401b77b4
mov edx, 1
mov rcx, r12
call fcn.1401b74a0
inc dword [r12 + 0x38]
jmp 0x1401b7830
mov rcx, r13
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1402067c0
mov edx, dword [r15 + rsi*8]
mov ecx, dword [r15 + rsi*8 + 4]
cmp dword [r12 + 0x18], 0
bswap edx
bswap ecx
jne 0x1401b78ca
movd xmm0, edx
comiss xmm0, dword [rsp + 0x38]
ja 0x1401b78ec
jmp 0x1401b78da
cmp r11d, ecx
jg 0x1401b78ec
cmp dword [rsp + 0x38], edx
jl 0x1401b78ec
jmp 0x1401b77f6
movd xmm0, r11d
movd xmm2, ecx
comiss xmm0, xmm2
jbe 0x1401b77f6
mov qword [rsp + 0x20], rbp
mov r9d, r14d
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt_relative_to_parent
mov rcx, r12
mov qword [rsp + 0x38], r10
call fcn.1401b73a0
mov r10, qword [rsp + 0x38]
jmp 0x1401b77f6
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret