Function at 0x140049580
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x120
mov qword [rbp + 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov r13, rdx
mov r15, rcx
xor r14d, r14d
mov dword [rbp - 0x18], r14d
mov qword [rbp - 0x10], rcx
lea rax, str.SELECT_MIN_FILE_METRIC__FROM_FILES__SEGMENTS_WHERE_FILES.FILE_ID__SEGMENTS.FILE_ID_AND_SEGMENT_ID__0_AND_CLUSTERS___0
mov qword [rbp - 8], rax
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
mov edi, r14d
lea rcx, [rbp - 0x18]
call fcn.14000cde0
test eax, eax
jne 0x14004961a
mov rcx, qword [rbp]
call fcn.140055990
mov edx, eax
mov ecx, eax
sub ecx, 0x64
je 0x140049611
cmp ecx, 1
je 0x140049608
lea rcx, [rbp - 0x18]
call fcn.14000ce70
mov dword [rbp - 0x18], 3
jmp 0x14004962e
mov dword [rbp - 0x18], 4
jmp 0x14004962e
mov dword [rbp - 0x18], 2
jmp 0x140049620
cmp dword [rbp - 0x18], 2
jne 0x14004962e
xor edx, edx
mov rcx, qword [rbp]
call fcn.140055f90
mov rdi, rax
mov dword [rsp + 0x48], r14d
mov qword [rsp + 0x50], r15
lea rax, str.SELECT_SUM_CLUSTERS__FROM_FILES__SEGMENTS_WHERE_SEGMENTS.SEGMENT_ID__1_AND_FILES.FILE_ID__SEGMENTS.FILE_ID_AND_FILES.FILE_METRIC____min_eviction_hottness
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov rsi, r14
lea rcx, [rsp + 0x48]
call fcn.14000cde0
mov ebx, eax
test eax, eax
jne 0x140049672
mov r8, rdi
lea edx, [rax + 1]
mov rcx, qword [rsp + 0x60]
call fcn.140064ee0
mov ebx, eax
mov r8d, 1
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.14000ce60
test ebx, ebx
jne 0x1400496fa
mov eax, dword [rsp + 0x48]
test eax, eax
je 0x1400496ac
add eax, 0xfffffffd
cmp eax, 1
ja 0x1400496ba
mov rcx, qword [rsp + 0x60]
call fcn.140056910
mov dword [rsp + 0x48], 1
jmp 0x1400496ba
lea rcx, [rsp + 0x48]
call fcn.14000cde0
test eax, eax
jne 0x1400496fa
mov rcx, qword [rsp + 0x60]
call fcn.140055990
mov edx, eax
sub edx, 0x64
je 0x1400496f0
cmp edx, 1
je 0x1400496e6
mov edx, eax
lea rcx, [rsp + 0x48]
call fcn.14000ce70
mov dword [rsp + 0x48], 3
jmp 0x140049710
mov dword [rsp + 0x48], 4
jmp 0x140049710
mov dword [rsp + 0x48], 2
jmp 0x140049701
cmp dword [rsp + 0x48], 2
jne 0x140049710
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.140055f90
mov rsi, rax
mov dword [rbp - 0x40], r14d
mov qword [rbp - 0x38], r15
lea rax, str.SELECT_MAX_FILE_METRIC__FROM_FILES__SEGMENTS_WHERE_FILES.FILE_ID__SEGMENTS.FILE_ID_AND_SEGMENT_ID__1_AND_CLUSTERS___0
mov qword [rbp - 0x30], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov rdi, r14
lea rcx, [rbp - 0x40]
call fcn.14000cde0
test eax, eax
jne 0x140049776
mov rcx, qword [rbp - 0x28]
call fcn.140055990
mov edx, eax
sub edx, 0x64
je 0x14004976d
cmp edx, 1
je 0x140049764
mov edx, eax
lea rcx, [rbp - 0x40]
call fcn.14000ce70
mov dword [rbp - 0x40], 3
jmp 0x14004978a
mov dword [rbp - 0x40], 4
jmp 0x14004978a
mov dword [rbp - 0x40], 2
jmp 0x14004977c
cmp dword [rbp - 0x40], 2
jne 0x14004978a
xor edx, edx
mov rcx, qword [rbp - 0x28]
call fcn.140055f90
mov rdi, rax
mov r12, r14
mov dword [rsp + 0x20], r14d
mov qword [rsp + 0x28], r15
lea rax, str.SELECT_SUM_CLUSTERS__FROM_FILES__SEGMENTS_WHERE_FILES.FILE_IDSEGMENTS.FILE_ID_AND_SEGMENT_ID0_AND_FILE_METRIC____max_promo_hottness
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
lea rcx, [rsp + 0x20]
call fcn.14000cde0
mov ebx, eax
test eax, eax
jne 0x1400497ce
mov r8, rdi
lea edx, [rax + 1]
mov rcx, qword [rsp + 0x38]
call fcn.140064ee0
mov ebx, eax
mov r8d, 1
mov edx, ebx
lea rcx, [rsp + 0x20]
call fcn.14000ce60
test ebx, ebx
jne 0x140049856
mov eax, dword [rsp + 0x20]
test eax, eax
je 0x140049808
add eax, 0xfffffffd
cmp eax, 1
ja 0x140049816
mov rcx, qword [rsp + 0x38]
call fcn.140056910
mov dword [rsp + 0x20], 1
jmp 0x140049816
lea rcx, [rsp + 0x20]
call fcn.14000cde0
test eax, eax
jne 0x140049856
mov rcx, qword [rsp + 0x38]
call fcn.140055990
mov edx, eax
sub edx, 0x64
je 0x14004984c
cmp edx, 1
je 0x140049842
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.14000ce70
mov dword [rsp + 0x20], 3
jmp 0x14004986c
mov dword [rsp + 0x20], 4
jmp 0x14004986c
mov dword [rsp + 0x20], 2
jmp 0x14004985d
cmp dword [rsp + 0x20], 2
jne 0x14004986c
xor edx, edx
mov rcx, qword [rsp + 0x38]
call fcn.140055f90
mov r12, rax
mov dword [rbp - 0x68], 0
mov qword [rbp - 0x60], r15
lea rax, str.SELECT_SUM_CLUSTERS__FROM_SEGMENTS_WHERE_SEGMENT_ID__0
mov qword [rbp - 0x58], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
lea rcx, [rbp - 0x68]
call fcn.14000cde0
test eax, eax
jne 0x1400498d2
mov rcx, qword [rbp - 0x50]
call fcn.140055990
mov edx, eax
sub edx, 0x64
je 0x1400498c9
cmp edx, 1
je 0x1400498c0
mov edx, eax
lea rcx, [rbp - 0x68]
call fcn.14000ce70
mov dword [rbp - 0x68], 3
jmp 0x1400498e6
mov dword [rbp - 0x68], 4
jmp 0x1400498e6
mov dword [rbp - 0x68], 2
jmp 0x1400498d8
cmp dword [rbp - 0x68], 2
jne 0x1400498e6
xor edx, edx
mov rcx, qword [rbp - 0x50]
call fcn.140055f90
mov r14, rax
mov rdi, r14
sub rdi, r12
mov rbx, r13
sub rbx, r14
cmp r13, r14
mov r12d, 0
cmovbe rbx, r12
mov dword [rsp + 0x70], r12d
mov qword [rsp + 0x78], r15
lea rax, str.SELECT_SUM_CLUSTERS__FROM_SEGMENTS__FILES_WHERE_SEGMENT_ID__1_AND_SEGMENTS.FILE_ID__FILES.FILE_ID_AND_FILES.FILE_METRIC___0
mov qword [rbp - 0x80], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov r14d, r12d
lea rcx, [rsp + 0x70]
call fcn.14000cde0
test eax, eax
jne 0x14004996c
mov rcx, qword [rbp - 0x78]
call fcn.140055990
mov edx, eax
sub edx, 0x64
je 0x140049962
cmp edx, 1
je 0x140049958
mov edx, eax
lea rcx, [rsp + 0x70]
call fcn.14000ce70
mov dword [rsp + 0x70], 3
jmp 0x140049981
mov dword [rsp + 0x70], 4
jmp 0x140049981
mov dword [rsp + 0x70], 2
jmp 0x140049973
cmp dword [rsp + 0x70], 2
jne 0x140049981
xor edx, edx
mov rcx, qword [rbp - 0x78]
call fcn.140055f90
mov r14, rax
mov rdx, r14
sub rdx, rsi
cmp rsi, rdi
jbe 0x1400499aa
lea rcx, [rbx + rdi]
cmp r14, rcx
jb 0x14004999b
lea rbx, [rbx + rdi*2]
jmp 0x1400499c2
lea rax, [rdi + rdi*2]
sub rax, rdx
sub rax, rsi
add rbx, rax
jmp 0x1400499c2
lea rax, [rbx + rdi]
cmp r14, rax
jae 0x1400499be
cmp rbx, rdx
jbe 0x1400499be
lea rbx, [rdx + rsi*2]
jmp 0x1400499c2
lea rbx, [rbx + rsi*2]
mov rcx, qword [rbp - 0x78]
call fcn.140056340
mov qword [rbp - 0x78], r12
mov dword [rsp + 0x70], r12d
mov rcx, qword [rbp - 0x50]
call fcn.140056340
mov qword [rbp - 0x50], r12
mov dword [rbp - 0x68], r12d
mov rcx, qword [rsp + 0x38]
call fcn.140056340
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x20], r12d
mov rcx, qword [rbp - 0x28]
call fcn.140056340
mov qword [rbp - 0x28], r12
mov dword [rbp - 0x40], r12d
mov rcx, qword [rsp + 0x60]
call fcn.140056340
mov qword [rsp + 0x60], r12
mov dword [rsp + 0x48], r12d
mov rcx, qword [rbp]
call fcn.140056340
mov rax, rbx
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret