Function at 0x1401204f0
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
lea rax, [rbp + 0x7f]
mov byte [rbp + 0x7f], 1
mov qword [rbp - 0x39], rax
lea rcx, str.SELECT_name_FROM_sqlite_master_WHERE_typetable_AND_nametversion
lea rax, [rbp + 0x67]
xor esi, esi
mov qword [rbp - 0x31], rax
mov rdi, r8
movaps xmm0, xmmword [rbp - 0x39]
lea rax, [rbp - 0x49]
mov qword [rbp - 0x29], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_aa618c5c1a7803e15346eba88f167e45___void__struct_sqlite3_stmt____ptr64_.0
movsd xmm1, qword [rbp - 0x29]
mov qword [rbp - 0x11], rax
lea rax, [rbp - 0x11]
mov qword [rbp + 0x27], rax
mov qword [rbp - 0x41], rsi
mov byte [rbp - 0x49], sil
movups xmmword [rbp - 9], xmm0
movsd qword [rbp + 7], xmm1
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov rcx, qword [rbp + 0x67]
lea r9, [rbp - 0x11]
mov rdx, rax
lea r8, [rbp - 0x41]
call fcn.14010ed40
and byte [rbp + 0x7f], al
jne 0x1401205a7
mov rbx, qword [rbp - 0x41]
lea rcx, str.Failed_to_read_sqlite_master_table:___
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov r9, rbx
lea ecx, [rsi + 0xb]
mov r8, rax
mov rdx, rdi
call fcn.14010dcb0
jmp 0x1401206db
cmp byte [rbp - 0x49], sil
jne 0x140120606
mov rdi, qword [rbp - 0x41]
lea rcx, str.no_tversion_table__will_setup_a_new_database:___
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
lea rcx, [0x1402a45b4]
mov rbx, rax
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov qword [rsp + 0x30], rdi
lea r9, [0x1402a4560]
mov rdx, rax
mov qword [rsp + 0x28], rbx
lea r8, [0x1402a4548]
mov dword [rsp + 0x20], 0x8f
mov ecx, 5
call fcn.140109c60
mov rax, qword [rbp + 0x6f]
mov dword [rax], esi
jmp 0x1401206db
lea rax, [rbp + 0x7f]
mov qword [rbp - 0x39], rax
lea rcx, str.SELECT_version_FROM_tversion
lea rax, [rbp + 0x67]
mov qword [rbp - 0x31], rax
lea rax, [rbp + 0x6f]
movaps xmm0, xmmword [rbp - 0x39]
mov qword [rbp - 0x29], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_62ea4d2dd4d6791ad6c5c80b912fc3b4___void__struct_sqlite3_stmt____ptr64_.0
movsd xmm1, qword [rbp - 0x29]
mov qword [rbp - 0x11], rax
lea rax, [rbp - 0x11]
mov qword [rbp + 0x27], rax
movups xmmword [rbp - 9], xmm0
movsd qword [rbp + 7], xmm1
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov rcx, qword [rbp + 0x67]
lea r9, [rbp - 0x11]
mov rdx, rax
lea r8, [rbp - 0x41]
call fcn.14010ed40
and byte [rbp + 0x7f], al
je 0x1401206db
mov rax, qword [rbp + 0x6f]
cmp word [rax], 9
jb 0x1401206db
lea rax, [rbp + 0x7f]
mov qword [rbp - 0x39], rax
lea rcx, str.SELECT_minor_FROM_tversion_WHERE_version___
lea rax, [rbp + 0x6f]
mov qword [rbp - 0x31], rax
lea rax, [rbp - 0x41]
movaps xmm0, xmmword [rbp - 0x39]
mov qword [rbp - 0x29], rax
lea rax, [rbp + 0x67]
mov qword [rbp - 0x21], rax
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_49e2f65ba270e4cc8ff8133f1e675ce3___void__struct_sqlite3_stmt____ptr64_.0
movaps xmm1, xmmword [rbp - 0x29]
mov qword [rbp - 0x11], rax
lea rax, [rbp - 0x11]
mov qword [rbp + 0x27], rax
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm1
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov rcx, qword [rbp + 0x67]
lea r9, [rbp - 0x11]
mov rdx, rax
lea r8, [rbp - 0x41]
call fcn.14010ed40
mov byte [rbp + 0x7f], 1
mov rax, qword [rbp + 0x6f]
lea rcx, str.database_version_is:_0x_08x_:__d_:___
mov rsi, qword [rbp - 0x41]
movzx r14d, byte [rbp + 0x7f]
mov edi, dword [rax]
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
lea rcx, [0x1402a46b0]
mov rbx, rax
call qword [sym.imp.CoreFoundation.dll___CFStringMakeConstantString]
mov qword [rsp + 0x40], rsi
lea r9, [0x1402a4640]
mov dword [rsp + 0x38], r14d
lea r8, str.SecKeychainDbGetVersion
mov dword [rsp + 0x30], edi
mov rdx, rax
mov qword [rsp + 0x28], rbx
mov ecx, 5
mov dword [rsp + 0x20], 0xac
call fcn.140109c60
mov rcx, qword [rbp - 0x41]
test rcx, rcx
je 0x14012074c
call qword [sym.imp.CoreFoundation.dll_CFRelease]
movzx eax, byte [rbp + 0x7f]
add rsp, 0xd0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret