Function at 0x1401c9980
Capabilities:
Reference sql statements

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov r14d, dword [rcx + 0x40]
mov qword [rsp + 0x30], r9
mov rbx, rcx
mov r12d, edx
mov r15, r8
test r14d, r14d
jne 0x1401c9c9d
cmp qword [rcx + 0x20], 0
je 0x1401c99d5
mov rcx, qword [rbx + 0x20]
mov r8, qword [rsp + 0x30]
mov edx, 1
call fcn.140214400
mov rcx, qword [rbx + 0x20]
call fcn.140219b70
cmp eax, 0x64
jne 0x1401c9a35
jmp 0x1401c99f8
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
call fcn.1401c9cb0
cmp dword [rbx + 0x40], 0
mov qword [rbx + 0x20], rax
je 0x1401c99b2
jmp 0x1401c9c9d
mov rcx, qword [rbx + 0x20]
xor edx, edx
call fcn.140215100
mov rcx, qword [rbx + 0x20]
xor edx, edx
mov r13d, eax
call fcn.1402150d0
movsxd rcx, r13d
mov qword [rsp + 0x38], rcx
mov rsi, rax
call fcn.140218360
mov rcx, qword [rsp + 0x38]
test rax, rax
mov rbp, rax
jne 0x1401c9a3c
mov dword [rbx + 0x40], 7
xor r13d, r13d
xor ebp, ebp
jmp 0x1401c9a41
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [rbx + 0x20]
call fcn.140218e50
cmp dword [rbx + 0x40], 0
jne 0x1401c9aa2
mov dword [rbx + 0x40], eax
test eax, eax
jne 0x1401c9aa2
test rbp, rbp
je 0x1401c9a7e
cmp r13d, 3
jg 0x1401c9aac
mov r8, qword [rsp + 0x30]
mov r9d, r13d
lea rdx, str.Node__lld_is_too_small___d_bytes_
mov rcx, rbx
call fcn.1401c9760
jmp 0x1401c9c85
mov r8, qword [rsp + 0x30]
lea rdx, str.Node__lld_missing_from_database
mov rcx, rbx
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1401c9760
test rbp, rbp
jne 0x1401c9a5c
jmp 0x1401c9c9d
test r15, r15
jne 0x1401c9adc
mov r12w, word [rbp]
rol r12w, 8
movzx r12d, r12w
cmp r12d, 0x28
jle 0x1401c9adc
mov r8d, r12d
lea rdx, str.Rtree_depth_out_of_range___d_
mov rcx, rbx
call fcn.1401c9760
jmp 0x1401c9c85
mov si, word [rbp + 2]
mov eax, dword [rbx + 0x1c]
rol si, 8
inc eax
movzx esi, si
imul eax, esi
lea eax, [rax*8 + 3]
cmp eax, r13d
jl 0x1401c9b94
mov dword [rsp + 0x20], r13d
mov r8, qword [rsp + 0x30]
mov r9d, esi
mov rcx, rbx
lea rdx, str.Node__lld_is_too_small_for_cell_count_of__d___d_bytes_
call fcn.1401c9760
jmp 0x1401c9c85
mov edx, dword [rdi + r13*8 + 8]
mov r11d, dword [rdi + r13*8 + 0xc]
cmp dword [rbx + 0x18], 0
bswap edx
bswap r11d
mov dword [rsp + 0x38], edx
je 0x1401c9bc4
cmp edx, r11d
jg 0x1401c9bd8
test r15, r15
jne 0x1401c9c0d
inc r13
mov r8d, r13d
cmp dword [rbx + 0x1c], r13d
jg 0x1401c9b20
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
test r12d, r12d
je 0x1401c9c70
xor edx, edx
mov rcx, rbx
call fcn.1401c9860
mov r9, qword [rsp + 0x40]
lea edx, [r12 - 1]
mov rcx, rbx
lea r8, [rdi + 8]
call fcn.1401c9980
inc dword [rbx + 0x3c]
inc r14d
cmp r14d, esi
jge 0x1401c9c85
mov eax, dword [rbx + 0x1c]
xor r13d, r13d
inc eax
imul eax, r14d
lea eax, [rax*8 + 4]
cdqe
lea rdi, [rbp + rax]
mov rax, qword [rdi]
bswap rax
mov qword [rsp + 0x40], rax
jmp 0x1401c9b52
movss xmm0, dword [rsp + 0x38]
movd xmm1, r11d
comiss xmm0, xmm1
jbe 0x1401c9b46
mov rax, qword [rsp + 0x30]
mov r9d, r14d
mov rcx, rbx
mov dword [rsp + 0x4c], r11d
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt
mov dword [rsp + 0x48], r8d
mov qword [rsp + 0x20], rax
call fcn.1401c9760
mov r11d, dword [rsp + 0x4c]
mov r8d, dword [rsp + 0x48]
jmp 0x1401c9b46
mov edx, dword [r15 + r13*8]
mov ecx, dword [r15 + r13*8 + 4]
cmp dword [rbx + 0x18], 0
bswap edx
bswap ecx
jne 0x1401c9c2d
movd xmm0, edx
comiss xmm0, dword [rsp + 0x38]
ja 0x1401c9c4f
jmp 0x1401c9c3d
cmp r11d, ecx
jg 0x1401c9c4f
cmp dword [rsp + 0x38], edx
jl 0x1401c9c4f
jmp 0x1401c9b4f
movd xmm0, r11d
movd xmm2, ecx
comiss xmm0, xmm2
jbe 0x1401c9b4f
mov rax, qword [rsp + 0x30]
mov r9d, r14d
lea rdx, str.Dimension__d_of_cell__d_on_node__lld_is_corrupt_relative_to_parent
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1401c9760
jmp 0x1401c9b4f
mov edx, 1
mov rcx, rbx
call fcn.1401c9860
inc dword [rbx + 0x38]
jmp 0x1401c9b91
mov rcx, rbp
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.1402174a0
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret