	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_errmsg                 ## -- Begin function sqlite3_errmsg
	.p2align	4, 0x90
_sqlite3_errmsg:                        ## @sqlite3_errmsg
	.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.3:
	movq	%rdi, %rbx
	callq	_sqlite3SafetyCheckSickOrOk
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movl	8(%rbx), %edi
	callq	_sqlite3_mutex_enter
	cmpq	$0, 24(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_SQLITE_NOMEM_BKPT@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rdi
	callq	_sqlite3ErrStr
	movq	%rax, %r14
	jmp	LBB0_13
LBB0_1:
	movq	_SQLITE_NOMEM_BKPT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_SQLITE_MISUSE_BKPT@GOTPCREL(%rip), %rax
LBB0_2:
	movq	(%rax), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_sqlite3ErrStr                  ## TAILCALL
LBB0_7:
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	sete	%dil
	callq	_testcase
	cmpq	$0, 16(%rbx)
	je	LBB0_8
## %bb.9:
	movq	(%rbx), %rdi
	callq	_sqlite3_value_text
	movq	%rax, %r14
	jmp	LBB0_10
LBB0_8:
	xorl	%r14d, %r14d
LBB0_10:
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	sete	%dil
	callq	_assert
	testq	%r14, %r14
	je	LBB0_11
LBB0_13:
	movl	8(%rbx), %edi
	callq	_sqlite3_mutex_leave
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	leaq	16(%rbx), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_NOMEM_BKPT,8,3          ## @SQLITE_NOMEM_BKPT
	.comm	_SQLITE_MISUSE_BKPT,8,3         ## @SQLITE_MISUSE_BKPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_errmsg                 ; -- Begin function sqlite3_errmsg
	.p2align	2
_sqlite3_errmsg:                        ; @sqlite3_errmsg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_sqlite3SafetyCheckSickOrOk
	cbz	w0, LBB0_6
; %bb.2:
	ldr	w0, [x19, #8]
	bl	_sqlite3_mutex_enter
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_8
; %bb.3:
Lloh0:
	adrp	x21, _SQLITE_NOMEM_BKPT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _SQLITE_NOMEM_BKPT@GOTPAGEOFF]
LBB0_4:
	ldr	x0, [x21]
	bl	_sqlite3ErrStr
	mov	x20, x0
	b	LBB0_12
LBB0_5:
Lloh2:
	adrp	x8, _SQLITE_NOMEM_BKPT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_NOMEM_BKPT@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _SQLITE_MISUSE_BKPT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_MISUSE_BKPT@GOTPAGEOFF]
LBB0_7:
	ldr	x0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sqlite3ErrStr
LBB0_8:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_testcase
	mov	x21, x19
	ldr	x8, [x21, #16]!
	cbz	x8, LBB0_10
; %bb.9:
	ldr	x0, [x19]
	bl	_sqlite3_value_text
	mov	x20, x0
	b	LBB0_11
LBB0_10:
	mov	x20, #0
LBB0_11:
	ldr	x8, [x19, #24]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	cbz	x20, LBB0_4
LBB0_12:
	ldr	w0, [x19, #8]
	bl	_sqlite3_mutex_leave
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_NOMEM_BKPT,8,3          ; @SQLITE_NOMEM_BKPT
	.comm	_SQLITE_MISUSE_BKPT,8,3         ; @SQLITE_MISUSE_BKPT
.subsections_via_symbols
