	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_errmsg16               ## -- Begin function sqlite3_errmsg16
	.p2align	4, 0x90
_sqlite3_errmsg16:                      ## @sqlite3_errmsg16
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	callq	_sqlite3SafetyCheckSickOrOk
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	callq	_sqlite3_mutex_enter
	cmpq	$0, 16(%rbx)
	je	LBB0_6
## %bb.5:
	leaq	_sqlite3_errmsg16.outOfMem(%rip), %r14
	jmp	LBB0_9
LBB0_1:
	leaq	_sqlite3_errmsg16.outOfMem(%rip), %r14
	jmp	LBB0_10
LBB0_3:
	leaq	_sqlite3_errmsg16.misuse(%rip), %r14
	jmp	LBB0_10
LBB0_6:
	movl	4(%rbx), %edi
	callq	_sqlite3_value_text16
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	movl	8(%rbx), %r14d
	movl	%r14d, %edi
	callq	_sqlite3ErrStr
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_sqlite3ErrorWithMsg
	movl	4(%rbx), %edi
	callq	_sqlite3_value_text16
	movq	%rax, %r14
LBB0_8:
	movq	%rbx, %rdi
	callq	_sqlite3OomClear
LBB0_9:
	movl	(%rbx), %edi
	callq	_sqlite3_mutex_leave
LBB0_10:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_sqlite3_errmsg16.outOfMem:             ## @sqlite3_errmsg16.outOfMem
	.asciz	"out of memory"

	.p2align	4                               ## @sqlite3_errmsg16.misuse
_sqlite3_errmsg16.misuse:
	.asciz	"bad parameter or other API misuse"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_errmsg16               ; -- Begin function sqlite3_errmsg16
	.p2align	2
_sqlite3_errmsg16:                      ; @sqlite3_errmsg16
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	bl	_sqlite3SafetyCheckSickOrOk
	cbz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x19]
	bl	_sqlite3_mutex_enter
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_6
; %bb.3:
Lloh0:
	adrp	x20, _sqlite3_errmsg16.outOfMem@PAGE
Lloh1:
	add	x20, x20, _sqlite3_errmsg16.outOfMem@PAGEOFF
	b	LBB0_9
LBB0_4:
Lloh2:
	adrp	x20, _sqlite3_errmsg16.outOfMem@PAGE
Lloh3:
	add	x20, x20, _sqlite3_errmsg16.outOfMem@PAGEOFF
	b	LBB0_10
LBB0_5:
Lloh4:
	adrp	x20, _sqlite3_errmsg16.misuse@PAGE
Lloh5:
	add	x20, x20, _sqlite3_errmsg16.misuse@PAGEOFF
	b	LBB0_10
LBB0_6:
	ldr	w0, [x19, #4]
	bl	_sqlite3_value_text16
	mov	x20, x0
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	w20, [x19, #8]
	mov	x0, x20
	bl	_sqlite3ErrStr
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_sqlite3ErrorWithMsg
	ldr	w0, [x19, #4]
	bl	_sqlite3_value_text16
	mov	x20, x0
LBB0_8:
	mov	x0, x19
	bl	_sqlite3OomClear
LBB0_9:
	ldr	w0, [x19]
	bl	_sqlite3_mutex_leave
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_sqlite3_errmsg16.outOfMem:             ; @sqlite3_errmsg16.outOfMem
	.asciz	"out of memory"

_sqlite3_errmsg16.misuse:               ; @sqlite3_errmsg16.misuse
	.asciz	"bad parameter or other API misuse"

.subsections_via_symbols
