Function at 0x1400ccf90
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
push rbx
push r13
push r15
sub rsp, 0x70
cmp dword [rcx + 0x30], 0
mov r13, rdx
mov r15, qword [rcx]
mov rbx, rcx
jne 0x1400cd5f3
mov qword [rax + 0x10], rbp
xor edx, edx
mov qword [rax - 0x20], rsi
mov esi, 0xffff8000
mov qword [rax - 0x30], r12
mov r12, qword [rcx + 0x150]
mov qword [rax - 0x38], r14
mov rcx, qword [r12 + 0x60]
test rcx, rcx
je 0x1400ccffb
mov rax, qword [r15 + 0x20]
mov esi, edx
add rax, 0x18
cmp qword [rax], rcx
je 0x1400ccffb
nop word [rax + rax]
inc esi
lea rax, [rax + 0x20]
cmp qword [rax], rcx
jne 0x1400ccff0
mov rax, qword [r15 + 0x20]
mov rbp, qword [r12]
add rbp, 0x10
movsxd rcx, esi
shl rcx, 5
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0xa0], rbp
mov r14, qword [rcx + rax]
movsx rax, word [r12 + 0x36]
mov qword [rsp + 0x48], r14
lea rcx, [rax + rax*2]
mov rax, qword [r12 + 8]
lea rax, [rax + rcx*8]
add rax, 0xffffffffffffffe8
mov qword [rsp + 0xa8], rax
movzx eax, word [rax + 0x10]
test ax, ax
jne 0x1400cd056
mov rdi, rdx
jmp 0x1400cd083
cmp byte [r12 + 0x3f], dl
je 0x1400cd062
mov rdi, rdx
jmp 0x1400cd083
mov rdi, qword [r12 + 0x50]
test rdi, rdi
jne 0x1400cd071
mov rdi, rdx
jmp 0x1400cd083
cmp dword [rdi], eax
jge 0x1400cd07a
mov rdi, rdx
jmp 0x1400cd083
shl rax, 5
mov rdi, qword [rax + rdi - 0x18]
mov r8, r14
mov rdx, rbp
mov rcx, r15
call fcn.1400d6c00
mov r8, r14
mov qword [rsp + 0x20], 0
mov edx, 0x1a
mov rcx, rbx
mov r9, qword [rax]
call fcn.1400d5f40
test eax, eax
jne 0x1400cd5d7
mov rax, qword [rsp + 0xa8]
movzx eax, word [rax + 0x12]
test al, 1
je 0x1400cd0d9
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rbx
call fcn.1400820c0
jmp 0x1400cd5d7
cmp qword [r12 + 0x10], 0
je 0x1400cd0f5
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rbx
call fcn.1400820c0
jmp 0x1400cd5d7
test al, 0x60
jne 0x1400cd1ff
test rdi, rdi
je 0x1400cd112
mov rax, qword [rdi + 0x10]
cmp byte [rax], 0x79
mov eax, 0
cmove rdi, rax
mov eax, dword [r15 + 0x30]
bt rax, 0xe
jae 0x1400cd148
cmp qword [r12 + 0x48], 0
je 0x1400cd148
test rdi, rdi
je 0x1400cd148
mov r9, r14
mov qword [rsp + 0x20], rbp
lea r8, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov rcx, rbx
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.1400d6a20
mov rax, qword [rsp + 0xa8]
test byte [rax + 8], 0xf
je 0x1400cd167
test rdi, rdi
jne 0x1400cd170
lea r8, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x1400cd20a
test rdi, rdi
je 0x1400cd221
xor eax, eax
mov r9b, 0x41
mov qword [rsp + 0x90], rax
mov r8b, 1
lea rax, [rsp + 0x90]
mov rdx, rdi
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.1400a70c0
test eax, eax
jne 0x1400cd5d7
mov rdi, qword [rsp + 0x90]
test rdi, rdi
jne 0x1400cd1d8
mov r9, r14
mov qword [rsp + 0x20], rbp
lea r8, str.Cannot_add_a_column_with_non_constant_default
mov rcx, rbx
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
call fcn.1400d6a20
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x1400cd221
mov eax, 0x2400
test word [rdi + 8], ax
jne 0x1400cd1e9
cmp dword [rdi + 0x20], 0
je 0x1400cd1f1
mov rcx, rdi
call fcn.1400a61d0
mov rcx, qword [rdi + 0x28]
mov rdx, rdi
call fcn.14007e790
jmp 0x1400cd221
test al, 0x40
je 0x1400cd221
lea r8, str.cannot_add_a_STORED_column
mov r9, r14
mov qword [rsp + 0x20], rbp
lea rdx, str.SELECT_raise_ABORT__Q__FROM___w_.__w_
mov rcx, rbx
call fcn.1400d6a20
mov r14, qword [r13]
mov ebp, dword [r13 + 8]
test r14, r14
je 0x1400cd2c5
lea rdx, [rbp + 1]
mov rcx, r15
call fcn.14007ebb0
mov rdi, rax
test rax, rax
je 0x1400cd2c5
mov r8d, ebp
mov rdx, r14
mov rcx, rax
call fcn.140185440
mov byte [rdi + rbp], 0
mov ecx, dword [r13 + 8]
dec ecx
add rcx, rdi
cmp rcx, rdi
jbe 0x1400cd288
lea rdx, [0x1401de390]
nop dword [rax]
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x1400cd27d
test byte [rax + rdx], 1
je 0x1400cd288
mov byte [rcx], 0
dec rcx
cmp rcx, rdi
ja 0x1400cd270
mov r9d, dword [r12 + 0x40]
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 r13, qword [rsp + 0xa0]
mov rcx, rbx
mov r8, qword [rsp + 0x48]
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r9d
mov qword [rsp + 0x20], rdi
call fcn.1400d6a20
mov rdx, rdi
mov rcx, r15
call fcn.14007e790
jmp 0x1400cd2cd
mov r13, qword [rsp + 0xa0]
mov rdi, qword [rbx + 0x10]
test rdi, rdi
je 0x1400cd2db
mov r14, rdi
jmp 0x1400cd309
cmp qword [rbx + 0xa0], 0
jne 0x1400cd2f2
mov rax, qword [rbx]
test byte [rax + 0x60], 8
jne 0x1400cd2f2
mov byte [rbx + 0x23], 1
mov rcx, rbx
call fcn.1400a76a0
mov rdi, rax
mov r14, rax
test rax, rax
je 0x1400cd5d7
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x1400cd319
inc dword [rbx + 0x38]
mov ebp, dword [rbx + 0x38]
jmp 0x1400cd328
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0xd8]
movsxd rcx, dword [rdi + 0x98]
cmp dword [rdi + 0x9c], ecx
jg 0x1400cd35e
mov r9d, ebp
mov dword [rsp + 0x20], 2
mov r8d, esi
mov edx, 0x62
mov rcx, rdi
call fcn.1400a7990
add r14, 0x90
xor r9d, r9d
jmp 0x1400cd394
lea eax, [rcx + 1]
xor r9d, r9d
mov dword [rdi + 0x98], eax
lea rcx, [rcx + rcx*2]
lea r14, [rdi + 0x90]
mov rax, qword [r14]
mov dword [rax + rcx*8], 0x62
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], ebp
mov dword [rax + rcx*8 + 0xc], 2
mov qword [rax + rcx*8 + 0x10], r9
mov eax, dword [rdi + 0xd4]
mov r15, qword [rsp + 0x40]
bts eax, esi
mov dword [rdi + 0xd4], eax
cmp esi, 1
je 0x1400cd3ce
mov rax, qword [rdi]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx + r15 + 8]
cmp byte [rax + 0x11], 0
je 0x1400cd3ce
mov eax, dword [rdi + 0xd8]
bts eax, esi
mov dword [rdi + 0xd8], eax
movsxd rcx, dword [rdi + 0x98]
cmp dword [rdi + 0x9c], ecx
jg 0x1400cd3fc
mov dword [rsp + 0x20], r9d
mov r8d, ebp
mov r9d, 0xfffffffe
mov rcx, rdi
lea edx, [r9 + 0x57]
call fcn.1400a7990
xor r9d, r9d
jmp 0x1400cd429
lea eax, [rcx + 1]
mov dword [rdi + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14]
mov dword [rax + rcx*8], 0x55
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], 0xfffffffe
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
movsxd rcx, dword [rdi + 0x98]
lea edx, [rcx + 2]
cmp dword [rdi + 0x9c], ecx
jg 0x1400cd458
mov dword [rsp + 0x20], r9d
mov r8d, ebp
mov r9d, edx
mov rcx, rdi
mov edx, 0x31
call fcn.1400a7990
xor r9d, r9d
jmp 0x1400cd481
lea eax, [rcx + 1]
mov dword [rdi + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14]
mov dword [rax + rcx*8], 0x31
mov dword [rax + rcx*8 + 4], ebp
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r9
movsxd rcx, dword [rdi + 0x98]
cmp dword [rdi + 0x9c], ecx
jg 0x1400cd4b2
mov r9d, 2
mov dword [rsp + 0x20], 3
mov r8d, esi
mov rcx, rdi
lea edx, [r9 + 0x61]
call fcn.1400a7990
xor r9d, r9d
jmp 0x1400cd4e2
lea eax, [rcx + 1]
mov dword [rdi + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r14]
mov dword [rax + rcx*8], 0x63
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], 2
mov dword [rax + rcx*8 + 0xc], 3
mov qword [rax + rcx*8 + 0x10], r9
test ebp, ebp
je 0x1400cd4f8
movzx eax, byte [rbx + 0x1f]
cmp al, 8
jae 0x1400cd4f8
mov dword [rbx + rax*4 + 0xd8], ebp
inc byte [rbx + 0x1f]
mov r10, qword [rbx + 0x10]
test r10, r10
je 0x1400cd5a4
mov rax, qword [rbx]
mov rcx, qword [rax + 0x20]
mov rax, qword [rcx + r15 + 0x18]
movsxd rcx, dword [r10 + 0x98]
mov r8d, dword [rax]
inc r8d
cmp dword [r10 + 0x9c], ecx
jg 0x1400cd543
mov r9d, 1
mov dword [rsp + 0x20], r8d
mov r8d, esi
mov rcx, r10
lea edx, [r9 + 0x62]
call fcn.1400a7990
jmp 0x1400cd575
lea eax, [rcx + 1]
mov dword [r10 + 0x98], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r10 + 0x90]
mov dword [rax + rcx*8], 0x63
mov dword [rax + rcx*8 + 4], esi
mov dword [rax + rcx*8 + 8], 1
mov dword [rax + rcx*8 + 0xc], r8d
mov qword [rax + rcx*8 + 0x10], r9
mov rcx, qword [rbx + 0x10]
mov r9d, 3
xor r8d, r8d
mov edx, esi
call fcn.1400a8160
cmp esi, 1
je 0x1400cd5a4
mov rcx, qword [rbx + 0x10]
mov r9d, 3
xor r8d, r8d
lea edx, [r9 - 2]
call fcn.1400a8160
cmp qword [r12 + 0x20], 0
jne 0x1400cd5c0
mov rax, qword [rsp + 0xa8]
test byte [rax + 8], 0xf
je 0x1400cd5d7
test byte [rax + 0x12], 0x60
je 0x1400cd5d7
mov r9, qword [rsp + 0x48]
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 r8, r13
mov rcx, rbx
call fcn.1400d6a20
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x98]
mov r14, qword [rsp + 0x50]
add rsp, 0x70
pop r15
pop r13
pop rbx
ret