Function at 0x1800f9290
Capabilities:
Reference sql statements

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xb8]
sub rsp, 0x1b8
mov rax, qword [0x1801f5f20]
xor rax, rsp
mov qword [rbp + 0xa0], rax
lea rax, str.DELETE_FROM__Q._q_content_WHERE_rowid___
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x60], rax
lea r10, str.INSERT_INTO__Q._q_content_VALUES__s_
lea rax, str.SELECT_NOT_EXISTS_SELECT_docid_FROM__Q._q_content_WHERE_rowid___
mov qword [rbp - 0x10], r10
mov qword [rsp + 0x68], rax
mov r12, r8
lea rax, str.DELETE_FROM__Q._q_content
mov r13, r9
mov qword [rsp + 0x70], rax
lea r8, str.SELECT__s_WHERE_rowid_
lea rax, str.DELETE_FROM__Q._q_segments
mov qword [rbp - 0x68], r8
mov qword [rsp + 0x78], rax
mov r15, rcx
lea rax, str.DELETE_FROM__Q._q_segdir
mov qword [rbp - 0x80], rax
lea rax, str.DELETE_FROM__Q._q_docsize
mov qword [rbp - 0x78], rax
lea rax, str.DELETE_FROM__Q._q_stat
mov qword [rbp - 0x70], rax
lea rax, str.SELECT__SELECT_max_idx__FROM__Q._q_segdir_WHERE_level______1
mov qword [rbp - 0x60], rax
lea rax, str.REPLACE_INTO__Q._q_segments_blockid__block__VALUES______
mov qword [rbp - 0x58], rax
lea rax, str.SELECT_coalesce__SELECT_max_blockid__FROM__Q._q_segments___1__1_
mov qword [rbp - 0x50], rax
lea rax, str.REPLACE_INTO__Q._q_segdir_VALUES_____________
mov qword [rbp - 0x48], rax
lea rax, str.SELECT_idx__start_block__leaves_end_block__end_block__root_FROM__Q._q_segdir_WHERE_level____ORDER_BY_idx_ASC
mov qword [rbp - 0x40], rax
lea rax, str.SELECT_idx__start_block__leaves_end_block__end_block__root_FROM__Q._q_segdir_WHERE_level_BETWEEN___AND__ORDER_BY_level_DESC__idx_ASC
mov qword [rbp - 0x38], rax
lea rax, str.SELECT_count___FROM__Q._q_segdir_WHERE_level___
mov qword [rbp - 0x30], rax
lea rax, str.SELECT_max_level__FROM__Q._q_segdir_WHERE_level_BETWEEN___AND__
mov qword [rbp - 0x28], rax
lea rax, str.DELETE_FROM__Q._q_segdir_WHERE_level___
mov qword [rbp - 0x20], rax
lea rax, str.DELETE_FROM__Q._q_segments_WHERE_blockid_BETWEEN___AND__
mov qword [rbp - 0x18], rax
lea rax, str.DELETE_FROM__Q._q_docsize_WHERE_docid___
mov qword [rbp - 8], rax
lea rax, str.REPLACE_INTO__Q._q_docsize_VALUES_____
mov qword [rbp], rax
lea rax, str.SELECT_size_FROM__Q._q_docsize_WHERE_docid_
mov qword [rbp + 8], rax
lea rax, str.SELECT_value_FROM__Q._q_stat_WHERE_id_
mov qword [rbp + 0x10], rax
lea rax, str.REPLACE_INTO__Q._q_stat_VALUES_____
mov qword [rbp + 0x18], rax
lea rax, [0x1801a91a0]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
lea rax, str.DELETE_FROM__Q._q_segdir_WHERE_level_BETWEEN___AND__
mov qword [rbp + 0x30], rax
lea rax, str.SELECT___UNION_SELECT_level____1024_____FROM__Q._q_segdir
mov qword [rbp + 0x38], rax
lea rax, str.SELECT_level__count___AS_cnt_FROM__Q._q_segdir___GROUP_BY_level_HAVING_cnt____ORDER_BY__level____1024__ASC__2_DESC_LIMIT_1
mov qword [rbp + 0x40], rax
lea rax, str.SELECT_2__total_1__leaves_end_block___start_block____FROM__SELECT__FROM__Q._q_segdir_________WHERE_level____ORDER_BY_idx_ASC_LIMIT_____
mov qword [rbp + 0x48], rax
lea rax, str.DELETE_FROM__Q._q_segdir_WHERE_level____AND_idx___
mov qword [rbp + 0x50], rax
lea rax, str.UPDATE__Q._q_segdir_SET_idx____WHERE_level__AND_idx_
mov qword [rbp + 0x58], rax
lea rax, str.SELECT_idx__start_block__leaves_end_block__end_block__root_FROM__Q._q_segdir_WHERE_level____AND_idx___
mov qword [rbp + 0x60], rax
lea rax, str.UPDATE__Q._q_segdir_SET_start_block_____root___WHERE_level____AND_idx___
mov qword [rbp + 0x68], rax
lea rax, str.SELECT_1_FROM__Q._q_segments_WHERE_blockid__AND_block_IS_NULL
mov qword [rbp + 0x70], rax
lea rax, str.SELECT_idx_FROM__Q._q_segdir_WHERE_level__ORDER_BY_1_ASC
mov qword [rbp + 0x78], rax
lea rax, str.SELECT_max__level____1024___FROM__Q._q_segdir
mov qword [rbp + 0x80], rax
lea rax, str.SELECT_level__idx__end_block_FROM__Q._q_segdir_WHERE_level_BETWEEN___AND___ORDER_BY_level_DESC__idx_ASC
mov qword [rbp + 0x88], rax
lea rax, str.UPDATE_OR_FAIL__Q._q_segdir_SET_level_1_idx__WHERE_level__AND_idx_
mov qword [rbp + 0x90], rax
xor ebx, ebx
movsxd rcx, edx
lea rax, str.UPDATE_OR_FAIL__Q._q_segdir_SET_level__WHERE_level_1
mov edi, ebx
mov qword [rbp + 0x98], rax
lea rax, [rcx + 0xe]
mov r14, qword [r15 + rax*8]
lea rax, [r15 + rax*8]
mov qword [rsp + 0x50], rax
lea esi, [rbx + 1]
mov qword [rsp + 0x40], r14
test r14, r14
jne 0x1800f9554
lea edi, [rbx + 5]
cmp edx, 0x12
jne 0x1800f94d6
mov r9, qword [r15 + 0x1c0]
mov rcx, r10
mov r8, qword [r15 + 0x28]
mov rdx, qword [r15 + 0x20]
call fcn.18003b710
jmp 0x1800f9500
cmp edx, 7
jne 0x1800f94ee
mov rdx, qword [r15 + 0x1b8]
mov rcx, r8
mov edi, esi
call fcn.18003b710
jmp 0x1800f9500
mov r8, qword [r15 + 0x28]
mov rdx, qword [r15 + 0x20]
mov rcx, qword [rsp + rcx*8 + 0x60]
call fcn.18003b710
mov r12, rax
test rax, rax
jne 0x1800f950d
lea edi, [rax + 7]
jmp 0x1800f954f
mov rcx, qword [r15 + 0x18]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
bts edi, 7
mov qword [rsp + 0x28], rax
mov r9d, edi
or r8d, 0xffffffff
mov qword [rsp + 0x20], rbx
mov rdx, r12
call fcn.1800aef00
mov rcx, r12
mov edi, eax
call fcn.180038ac0
mov rax, qword [rsp + 0x50]
mov r14, qword [rsp + 0x40]
mov qword [rax], r14
mov r12, qword [rsp + 0x48]
test r13, r13
je 0x1800f9591
test r14, r14
je 0x1800f9565
movsx eax, word [r14 + 0x20]
jmp 0x1800f9567
mov eax, ebx
test edi, edi
jne 0x1800f9591
movsxd r15, eax
nop
cmp rbx, r15
jge 0x1800f9591
mov r8, qword [r13 + rbx*8]
mov edx, esi
mov rcx, r14
call fcn.180068b50
inc esi
inc rbx
mov edi, eax
test eax, eax
je 0x1800f9570
jmp 0x1800f9593
mov eax, edi
mov qword [r12], r14
mov rcx, qword [rbp + 0xa0]
xor rcx, rsp
call fcn.180131f30
add rsp, 0x1b8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret