Function at 0x1401c6e00
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 0x1401c7152
cmp qword [rcx + 0x20], 0
je 0x1401c6e58
mov rcx, qword [r12 + 0x20]
mov r8, rbp
mov edx, 1
call fcn.140212e50
mov rcx, qword [r12 + 0x20]
call fcn.1402187f0
cmp eax, 0x64
je 0x1401c6e7e
xor r9d, r9d
xor r13d, r13d
jmp 0x1401c6ed5
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
call fcn.1401c7170
cmp dword [r12 + 0x40], 0
mov qword [r12 + 0x20], rax
je 0x1401c6e2f
jmp 0x1401c7152
mov rcx, qword [r12 + 0x20]
xor edx, edx
call fcn.140213be0
mov rcx, qword [r12 + 0x20]
xor edx, edx
mov dword [rsp + 0x38], eax
call fcn.140213bb0
movsxd rcx, dword [rsp + 0x38]
mov rsi, rax
mov dword [rsp + 0x48], ecx
mov qword [rsp + 0x38], rcx
call fcn.140216f20
mov rcx, qword [rsp + 0x38]
mov r9d, dword [rsp + 0x48]
test rax, rax
mov r13, rax
jne 0x1401c6ed0
mov dword [r12 + 0x40], 7
xor r9d, r9d
jmp 0x1401c6ed5
mov rdi, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, qword [r12 + 0x20]
mov dword [rsp + 0x38], r9d
call fcn.140217a70
cmp dword [r12 + 0x40], 0
mov r9d, dword [rsp + 0x38]
jne 0x1401c6f3e
mov dword [r12 + 0x40], eax
test eax, eax
jne 0x1401c6f3e
test r13, r13
je 0x1401c6f1c
cmp r9d, 3
jg 0x1401c6f48
mov r8, rbp
lea rdx, str.Node__lld_is_too_small___d_bytes_
mov rcx, r12
call fcn.1401c6be0
jmp 0x1401c70d0
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.1401c6be0
test r13, r13
jne 0x1401c6eff
jmp 0x1401c7152
test r15, r15
jne 0x1401c6f78
movzx ebx, byte [r13]
movzx edx, byte [r13 + 1]
shl ebx, 8
add ebx, edx
cmp ebx, 0x28
jle 0x1401c6f78
mov r8d, ebx
lea rdx, str.Rtree_depth_out_of_range___d_
mov rcx, r12
call fcn.1401c6be0
jmp 0x1401c70d0
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 0x1401c7073
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.1401c6be0
jmp 0x1401c70d0
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 0x1401c70a6
cmp edx, r11d
setg dl
test dl, dl
je 0x1401c702d
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.1401c6be0
mov r11d, dword [rsp + 0x5c]
mov r10, qword [rsp + 0x50]
mov r8d, dword [rsp + 0x58]
test r15, r15
jne 0x1401c70e8
inc rsi
mov r8d, esi
cmp dword [r12 + 0x1c], esi
jg 0x1401c6fcf
mov r9, rbp
mov r8, rdi
test ebx, ebx
je 0x1401c70bc
xor edx, edx
mov rcx, r12
call fcn.1401c6ce0
mov r8, qword [rsp + 0x40]
mov r9, rdi
mov rcx, r12
mov edx, dword [rsp + 0x4c]
call fcn.1401c6e00
inc dword [r12 + 0x3c]
inc r14d
cmp r14d, dword [rsp + 0x48]
je 0x1401c70d0
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 0x1401c7039
movss xmm0, dword [rsp + 0x38]
movd xmm1, r11d
comiss xmm0, xmm1
seta dl
jmp 0x1401c6ff4
mov edx, 1
mov rcx, r12
call fcn.1401c6ce0
inc dword [r12 + 0x38]
jmp 0x1401c7070
mov rcx, r13
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.140216000
mov edx, dword [r15 + rsi*8]
mov ecx, dword [r15 + rsi*8 + 4]
cmp dword [r12 + 0x18], 0
bswap edx
bswap ecx
jne 0x1401c710a
movd xmm0, edx
comiss xmm0, dword [rsp + 0x38]
ja 0x1401c712c
jmp 0x1401c711a
cmp r11d, ecx
jg 0x1401c712c
cmp dword [rsp + 0x38], edx
jl 0x1401c712c
jmp 0x1401c7036
movd xmm0, r11d
movd xmm2, ecx
comiss xmm0, xmm2
jbe 0x1401c7036
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.1401c6be0
mov r10, qword [rsp + 0x38]
jmp 0x1401c7036
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret