Function at 0x140235eb0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x1b8
mov rax, qword [0x14032e340]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
lea rax, str.DELETE_FROM__Q._q_content_WHERE_rowid___
mov qword [rsp + 0x60], rax
lea rax, str.SELECT_NOT_EXISTS_SELECT_docid_FROM__Q._q_content_WHERE_rowid___
mov qword [rsp + 0x68], rax
lea rax, str.DELETE_FROM__Q._q_content
mov qword [rsp + 0x70], rax
lea rax, str.DELETE_FROM__Q._q_segments
mov qword [rsp + 0x78], rax
lea rax, str.DELETE_FROM__Q._q_segdir
mov qword [rsp + 0x80], rax
lea rax, str.DELETE_FROM__Q._q_docsize
mov qword [rsp + 0x88], rax
lea rax, str.DELETE_FROM__Q._q_stat
mov qword [rsp + 0x90], rax
lea rax, str.SELECT__s_WHERE_rowid_
mov qword [rsp + 0x98], rax
lea rax, str.SELECT__SELECT_max_idx__FROM__Q._q_segdir_WHERE_level______1
mov qword [rsp + 0xa0], rax
lea rax, str.REPLACE_INTO__Q._q_segments_blockid__block__VALUES______
mov qword [rsp + 0xa8], rax
lea rax, str.SELECT_coalesce__SELECT_max_blockid__FROM__Q._q_segments___1__1_
mov qword [rsp + 0xb0], rax
lea rax, str.REPLACE_INTO__Q._q_segdir_VALUES_____________
mov qword [rsp + 0xb8], 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 [rsp + 0xc0], 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 [rsp + 0xc8], rax
lea rax, str.SELECT_count___FROM__Q._q_segdir_WHERE_level___
mov qword [rsp + 0xd0], rax
lea rax, str.SELECT_max_level__FROM__Q._q_segdir_WHERE_level_BETWEEN___AND__
mov qword [rsp + 0xd8], rax
lea rax, str.DELETE_FROM__Q._q_segdir_WHERE_level___
mov qword [rsp + 0xe0], rax
lea rax, str.DELETE_FROM__Q._q_segments_WHERE_blockid_BETWEEN___AND__
mov qword [rsp + 0xe8], rax
lea rax, [0x140328d38]
mov qword [rsp + 0xf0], rax
lea rax, str.DELETE_FROM__Q._q_docsize_WHERE_docid___
mov qword [rsp + 0xf8], rax
lea rax, str.REPLACE_INTO__Q._q_docsize_VALUES_____
mov qword [rsp + 0x100], rax
lea rax, str.SELECT_size_FROM__Q._q_docsize_WHERE_docid_
mov qword [rsp + 0x108], rax
lea rax, str.SELECT_value_FROM__Q._q_stat_WHERE_id_
mov qword [rsp + 0x110], rax
lea rax, str.REPLACE_INTO__Q._q_stat_VALUES_____
mov qword [rsp + 0x118], rax
lea rax, [0x14032e81b]
mov qword [rsp + 0x120], rax
lea rax, [0x14032e81c]
mov qword [rsp + 0x128], rax
lea rax, str.DELETE_FROM__Q._q_segdir_WHERE_level_BETWEEN___AND__
mov qword [rsp + 0x130], rax
lea rax, str.SELECT___UNION_SELECT_level____1024_____FROM__Q._q_segdir
mov qword [rsp + 0x138], 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 [rsp + 0x140], 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 [rsp + 0x148], rax
lea rax, str.DELETE_FROM__Q._q_segdir_WHERE_level____AND_idx___
mov qword [rsp + 0x150], rax
lea rax, str.UPDATE__Q._q_segdir_SET_idx____WHERE_level__AND_idx_
mov qword [rsp + 0x158], rax
lea rax, str.SELECT_idx__start_block__leaves_end_block__end_block__root_FROM__Q._q_segdir_WHERE_level____AND_idx___
mov qword [rsp + 0x160], rax
lea rax, str.UPDATE__Q._q_segdir_SET_start_block_____root___WHERE_level____AND_idx___
mov qword [rsp + 0x168], rax
lea rax, str.SELECT_1_FROM__Q._q_segments_WHERE_blockid__AND_block_IS_NULL
mov qword [rsp + 0x170], rax
lea rax, str.SELECT_idx_FROM__Q._q_segdir_WHERE_level__ORDER_BY_1_ASC
mov qword [rsp + 0x178], rax
lea rax, str.SELECT_max__level____1024___FROM__Q._q_segdir
mov qword [rsp + 0x180], 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 [rsp + 0x188], rax
lea rax, str.UPDATE_OR_FAIL__Q._q_segdir_SET_level_1_idx__WHERE_level__AND_idx_
mov qword [rsp + 0x190], rax
lea rax, str.UPDATE_OR_FAIL__Q._q_segdir_SET_level__WHERE_level_1
mov qword [rsp + 0x198], rax
mov dword [rsp + 0x34], 0
movsxd rax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1c0]
mov rax, qword [rcx + rax*8 + 0x70]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x140236282
mov dword [rsp + 0x38], 5
cmp dword [rsp + 0x1c8], 0x12
jne 0x1402361a8
movsxd rax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1c0]
mov r9, qword [rcx + 0x1c0]
mov rcx, qword [rsp + 0x1c0]
mov r8, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x1c0]
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rsp + rax*8 + 0x60]
call fcn.140129dd0
mov qword [rsp + 0x48], rax
jmp 0x140236214
cmp dword [rsp + 0x1c8], 7
jne 0x1402361e5
mov eax, dword [rsp + 0x38]
and eax, 0xfffffffb
mov dword [rsp + 0x38], eax
movsxd rax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1c0]
mov rdx, qword [rcx + 0x1b8]
mov rcx, qword [rsp + rax*8 + 0x60]
call fcn.140129dd0
mov qword [rsp + 0x48], rax
jmp 0x140236214
movsxd rax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1c0]
mov r8, qword [rcx + 0x28]
mov rcx, qword [rsp + 0x1c0]
mov rdx, qword [rcx + 0x20]
mov rcx, qword [rsp + rax*8 + 0x60]
call fcn.140129dd0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140236226
mov dword [rsp + 0x34], 7
jmp 0x140236282
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x38]
mov r8d, 0xffffffff
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x1c0]
mov rcx, qword [rax + 0x18]
call fcn.14012b560
mov dword [rsp + 0x34], eax
mov rcx, qword [rsp + 0x48]
call fcn.14012a180
movsxd rax, dword [rsp + 0x1c8]
mov rcx, qword [rsp + 0x1c0]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax*8 + 0x70], rdx
cmp qword [rsp + 0x1d8], 0
je 0x1402362e9
mov rcx, qword [rsp + 0x40]
call fcn.14012c190
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x30], 0
jmp 0x1402362af
mov eax, dword [rsp + 0x30]
inc eax
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x34], 0
jne 0x1402362e9
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x30], eax
jge 0x1402362e9
movsxd rax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x30]
inc ecx
mov rdx, qword [rsp + 0x1d8]
mov r8, qword [rdx + rax*8]
mov edx, ecx
mov rcx, qword [rsp + 0x40]
call fcn.14012be30
mov dword [rsp + 0x34], eax
jmp 0x1402362a5
mov rax, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov eax, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14028bd80
add rsp, 0x1b8
ret