Function at 0x18005b480
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbx
push rbp
push r14
sub rsp, 0x60
cmp dword [rcx + 0x30], 0
mov rbp, qword [rcx]
mov r14, rdx
mov rbx, rcx
jne 0x18005b8de
mov qword [rax + 0x10], rsi
mov qword [rax - 0x28], r12
mov r12, qword [rcx + 0x158]
mov rcx, qword [r12 + 0x60]
xor edx, edx
mov qword [rax - 0x30], r13
mov qword [rax - 0x38], r15
mov esi, 0xffff8000
test rcx, rcx
je 0x18005b4e0
mov rax, qword [rbp + 0x20]
mov esi, edx
add rax, 0x18
cmp qword [rax], rcx
je 0x18005b4e0
add rax, 0x20
inc esi
cmp qword [rax], rcx
jne 0x18005b4d5
mov rax, qword [rbp + 0x20]
mov r13, qword [r12]
movsxd rcx, esi
shl rcx, 5
add r13, 0x10
mov qword [rsp + 0x58], rdi
mov r15, qword [rcx + rax]
movsx eax, word [r12 + 0x36]
mov rcx, qword [r12 + 8]
dec eax
mov qword [rsp + 0x98], rcx
cdqe
lea rax, [rax + rax*2]
mov qword [rsp + 0x90], rax
movzx ecx, word [rcx + rax*8 + 0x10]
test cx, cx
jne 0x18005b52e
mov rdi, rdx
jmp 0x18005b561
cmp byte [r12 + 0x3f], dl
je 0x18005b53a
mov rdi, rdx
jmp 0x18005b561
mov rdi, qword [r12 + 0x50]
test rdi, rdi
jne 0x18005b549
mov rdi, rdx
jmp 0x18005b561
movzx eax, cx
cmp dword [rdi], eax
jge 0x18005b555
mov rdi, rdx
jmp 0x18005b561
movzx eax, cx
shl rax, 5
mov rdi, qword [rax + rdi - 0x18]
mov r8, r15
mov rdx, r13
mov rcx, rbp
call fcn.180063cf0
mov r8, r15
mov edx, 0x1a
mov r9, qword [rax]
mov rcx, rbx
mov qword [rsp + 0x20], 0
call fcn.180063300
test eax, eax
jne 0x18005b8c2
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
movzx eax, word [rcx + rax*8 + 0x12]
test al, 1
je 0x18005b5c0
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.18000ef10
jmp 0x18005b8c2
cmp qword [r12 + 0x10], 0
je 0x18005b5dc
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rbx
call fcn.18000ef10
jmp 0x18005b8c2
test al, 0x60
jne 0x18005b6d3
test rdi, rdi
je 0x18005b5f9
mov rax, qword [rdi + 0x10]
cmp byte [rax], 0x79
mov eax, 0
cmove rdi, rax
mov eax, dword [rbp + 0x30]
bt rax, 0xe
jae 0x18005b636
cmp qword [r12 + 0x48], 0
je 0x18005b636
test rdi, rdi
je 0x18005b636
lea r8, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov r9, r15
mov rcx, rbx
mov qword [rsp + 0x20], r13
call fcn.180063c00
mov rcx, qword [rsp + 0x98]
mov rax, qword [rsp + 0x90]
test byte [rcx + rax*8 + 8], 0xf
je 0x18005b656
test rdi, rdi
jne 0x18005b65f
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x18005b6de
test rdi, rdi
je 0x18005b6f5
xor eax, eax
mov qword [rsp + 0x80], rax
test rdi, rdi
je 0x18005b6a6
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x80]
mov r9b, 0x41
mov r8b, 1
mov rdx, rdi
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.180033a60
test eax, eax
jne 0x18005b8c2
mov rcx, qword [rsp + 0x80]
test rcx, rcx
jne 0x18005b6cc
lea r8, str.Cannot_add_a_column_with_non_constant_default
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov r9, r15
mov rcx, rbx
mov qword [rsp + 0x20], r13
call fcn.180063c00
mov rcx, qword [rsp + 0x80]
call fcn.180033ef0
jmp 0x18005b6f5
test al, 0x40
je 0x18005b6f5
lea r8, str.cannot_add_a_STORED_column
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov r9, r15
mov rcx, rbx
mov qword [rsp + 0x20], r13
call fcn.180063c00
mov r8d, dword [r14 + 8]
mov rdx, qword [r14]
mov rcx, rbp
call fcn.18000b8d0
mov rdi, rax
test rax, rax
je 0x18005b76d
mov edx, dword [r14 + 8]
dec edx
add rdx, rax
cmp rdx, rax
jbe 0x18005b73c
lea rcx, [0x180143a90]
movzx eax, byte [rdx]
cmp al, 0x3b
je 0x18005b731
movzx eax, al
test byte [rax + rcx], 1
je 0x18005b73c
mov byte [rdx], 0
dec rdx
cmp rdx, rdi
ja 0x18005b721
mov r9d, dword [r12 + 0x40]
mov qword [rsp + 0x30], r13
lea rdx, str.UPDATE___w_.sqlite_master_SET_sql__printf___._ds___sql____Q__substr_sql_1length_printf___._ds_sql____WHERE_type__table_AND_name___Q
mov dword [rsp + 0x28], r9d
mov r8, r15
mov rcx, rbx
mov qword [rsp + 0x20], rdi
call fcn.180063c00
mov rdx, rdi
mov rcx, rbp
call fcn.18000b260
mov rcx, rbx
call fcn.18008be70
mov rdi, rax
test rax, rax
je 0x18005b8c2
movzx ecx, byte [rbx + 0x1f]
test cl, cl
jne 0x18005b791
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x18005b7a0
dec cl
movzx eax, cl
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xe0]
mov r9d, ebp
mov r8d, esi
mov edx, 0x63
mov rcx, rdi
mov dword [rsp + 0x20], 2
call fcn.180034500
mov edx, esi
mov rcx, rdi
call fcn.180035e10
movsxd rcx, dword [rdi + 0x90]
cmp dword [rdi + 0x94], ecx
jg 0x18005b7f0
xor eax, eax
mov r8d, ebp
mov rcx, rdi
lea r9d, [rax - 2]
lea edx, [rax + 0x56]
mov dword [rsp + 0x20], eax
call fcn.1800343e0
xor edx, edx
jmp 0x18005b822
lea eax, [rcx + 1]
lea rcx, [rcx + rcx*2]
xor edx, edx
mov dword [rdi + 0x90], eax
mov rax, qword [rdi + 0x88]
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], 0xfffffffe
mov dword [rax + rcx*8 + 0xc], edx
mov qword [rax + rcx*8 + 0x10], rdx
mov dword [rax + rcx*8], 0x56
mov r9d, dword [rdi + 0x90]
mov dword [rsp + 0x20], edx
mov r8d, ebp
mov edx, 0x3b
mov rcx, rdi
add r9d, 2
call fcn.180034500
mov r9d, 2
mov r8d, esi
lea edx, [r9 + 0x62]
mov rcx, rdi
mov dword [rsp + 0x20], 3
call fcn.180034500
test ebp, ebp
je 0x18005b877
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x18005b877
movzx eax, al
mov dword [rbx + rax*4 + 0xe0], ebp
inc byte [rbx + 0x1f]
mov r8d, 3
mov edx, esi
mov rcx, rbx
call fcn.18005af80
cmp qword [r12 + 0x20], 0
jne 0x18005b8ad
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x98]
test byte [rcx + rax*8 + 8], 0xf
je 0x18005b8c2
test byte [rcx + rax*8 + 0x12], 0x60
je 0x18005b8c2
lea rdx, str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL
mov r9, r15
mov r8, r13
mov rcx, rbx
call fcn.180063c00
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
mov r13, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x88]
mov r15, qword [rsp + 0x40]
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret