Function at 0x1400cde90
Capabilities:
Reference sql statements

Disassembly:
mov r11, rsp
push rdi
push r12
push r14
sub rsp, 0x80
mov rax, qword [0x14015f0e8]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp dword [rcx + 0x30], 0
mov r12, rdx
mov r14, qword [rcx]
mov rdi, rcx
jne 0x1400ce1dc
mov qword [r11 + 0x18], rbx
mov qword [r11 - 0x20], rbp
mov qword [r11 - 0x28], rsi
mov qword [r11 - 0x30], r13
mov qword [r11 - 0x38], r15
mov r15, qword [rcx + 0x160]
mov rcx, r14
mov rdx, qword [r15 + 0x60]
call fcn.1400b0b30
mov rcx, qword [r14 + 0x20]
mov rsi, qword [r15]
movsxd rdx, eax
add rsi, 0x10
shl rdx, 5
mov dword [rsp + 0x40], eax
mov rbp, qword [rdx + rcx]
movsx ecx, word [r15 + 0x36]
dec ecx
movsxd rcx, ecx
lea rdx, [rcx + rcx*2]
mov rcx, qword [r15 + 8]
lea r13, [rcx + rdx*8]
mov rcx, r15
mov rdx, r13
call fcn.1400c7c40
mov rcx, r14
mov r8, rbp
mov rdx, rsi
mov rbx, rax
call fcn.1400c8330
xor ecx, ecx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rcx
mov r8, rbp
mov r9, qword [rax]
lea edx, [rcx + 0x1a]
mov rcx, rdi
call fcn.1400c8cb0
test eax, eax
jne 0x1400ce1c0
movzx ecx, word [r13 + 0x12]
test cl, 1
je 0x1400cdf77
lea rdx, str.Cannot_add_a_PRIMARY_KEY_column
mov rcx, rdi
call fcn.14010c080
jmp 0x1400ce1c0
cmp qword [r15 + 0x10], 0
je 0x1400cdf92
lea rdx, str.Cannot_add_a_UNIQUE_column
mov rcx, rdi
call fcn.14010c080
jmp 0x1400ce1c0
test cl, 0x60
jne 0x1400ce04b
test rbx, rbx
je 0x1400cdfb0
mov rax, qword [rbx + 0x10]
cmp byte [rax], 0x79
mov eax, 0
cmove rbx, rax
mov eax, dword [r14 + 0x30]
bt rax, 0xe
jae 0x1400cdfdc
cmp qword [r15 + 0x48], 0
je 0x1400cdfdc
test rbx, rbx
je 0x1400cdfdc
lea r9, str.Cannot_add_a_REFERENCES_column_with_non_NULL_default_value
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.1400ce200
test byte [r13 + 8], 0xf
je 0x1400cdff1
test rbx, rbx
jne 0x1400cdff6
lea r9, str.Cannot_add_a_NOT_NULL_column_with_default_value_NULL
jmp 0x1400ce057
test rbx, rbx
je 0x1400ce065
xor eax, eax
mov r9b, 0x41
mov qword [rsp + 0x50], rax
mov r8b, 1
lea rax, [rsp + 0x50]
mov rdx, rbx
mov rcx, r14
mov qword [rsp + 0x20], rax
call fcn.1400eb820
test eax, eax
jne 0x1400ce1c0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
jne 0x1400ce044
lea r9, str.Cannot_add_a_column_with_non_constant_default
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.1400ce200
mov rcx, qword [rsp + 0x50]
call fcn.1400eb7d0
jmp 0x1400ce065
test cl, 0x40
je 0x1400ce065
lea r9, str.cannot_add_a_STORED_column
mov r8, rsi
mov rdx, rbp
mov rcx, rdi
call fcn.1400ce200
mov r8d, dword [r12 + 8]
mov rcx, r14
mov rdx, qword [r12]
call fcn.14010f390
mov rbx, rax
test rax, rax
je 0x1400ce0dc
mov ecx, dword [r12 + 8]
dec ecx
add rcx, rax
cmp rcx, rax
jbe 0x1400ce0ac
lea rdx, [0x140138190]
movzx eax, byte [rcx]
cmp al, 0x3b
je 0x1400ce0a1
test byte [rax + rdx], 1
je 0x1400ce0ac
mov byte [rcx], 0
dec rcx
cmp rcx, rbx
ja 0x1400ce094
mov r9d, dword [r15 + 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 qword [rsp + 0x30], rsi
mov r8, rbp
mov dword [rsp + 0x28], r9d
mov rcx, rdi
mov qword [rsp + 0x20], rbx
call fcn.1400c8580
mov rdx, rbx
mov rcx, r14
call fcn.14010f980
mov rcx, rdi
call fcn.1400ad390
mov r14, rax
test rax, rax
je 0x1400ce1c0
mov rcx, rdi
call fcn.1400ce800
mov r12d, dword [rsp + 0x40]
mov r9d, eax
mov r8d, r12d
mov dword [rsp + 0x20], 2
mov edx, 0x63
mov rcx, r14
mov ebx, eax
call fcn.1400eb160
mov edx, r12d
mov rcx, r14
call fcn.1400e9e60
mov r9d, 0xfffffffe
mov r8d, ebx
mov rcx, r14
lea edx, [r9 + 0x58]
call fcn.1400eb1e0
mov rcx, r14
call fcn.1400ea9b0
mov r8d, ebx
mov edx, 0x3b
lea r9d, [rax + 2]
call fcn.1400eb1e0
mov r9d, 2
mov dword [rsp + 0x20], 3
mov r8d, r12d
mov rcx, r14
lea edx, [r9 + 0x62]
call fcn.1400eb160
mov edx, ebx
mov rcx, rdi
call fcn.1400ce7e0
mov r8d, 3
mov edx, r12d
call fcn.1400ce570
cmp qword [r15 + 0x20], 0
jne 0x1400ce1ab
test byte [r13 + 8], 0xf
je 0x1400ce19d
test byte [r13 + 0x12], 0x60
jne 0x1400ce1ab
mov rax, qword [rsp + 0x48]
test dword [rax + 0x30], 0x10000
je 0x1400ce1c0
mov r9, rbp
lea rdx, str.SELECT_CASE_WHEN_quick_check_GLOB_CHECK_THEN_raise_ABORT_CHECK_constraint_failed__WHEN_quick_check_GLOB_non__value_in_THEN_raise_ABORT_type_mismatch_on_DEFAULT__ELSE_raise_ABORT_NOT_NULL_constraint_failed__END__FROM_pragma_quick_check__Q__Q__WHERE_quick_check_GLOB_CHECK_OR_quick_check_GLOB_NULL_OR_quick_check_GLOB_non__value_in
mov r8, rsi
mov rcx, rdi
call fcn.1400c8580
mov r13, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0xb0]
mov r15, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004b440
add rsp, 0x80
pop r14
pop r12
pop rdi
ret