	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_stmt_status            ## -- Begin function sqlite3_stmt_status
	.p2align	4, 0x90
_sqlite3_stmt_status:                   ## @sqlite3_stmt_status
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_SQLITE_STMTSTATUS_MEMUSED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	8(%r14), %rbx
	movl	8(%rbx), %edi
	callq	_sqlite3_mutex_enter
	movq	$0, -24(%rbp)
	leaq	-24(%rbp), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sqlite3VdbeClearObject
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sqlite3DbFree
	movq	$0, (%rbx)
	movl	8(%rbx), %edi
	callq	_sqlite3_mutex_leave
	jmp	LBB0_4
LBB0_2:
	movq	(%r14), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rsi
	movq	%rsi, -24(%rbp)
	testl	%edx, %edx
	je	LBB0_4
## %bb.3:
	movq	$0, (%rax,%rcx,8)
LBB0_4:
	movl	-24(%rbp), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_STMTSTATUS_MEMUSED,4,2  ## @SQLITE_STMTSTATUS_MEMUSED
	.comm	_SQLITE_MISUSE_BKPT,4,2         ## @SQLITE_MISUSE_BKPT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_stmt_status            ; -- Begin function sqlite3_stmt_status
	.p2align	2
_sqlite3_stmt_status:                   ; @sqlite3_stmt_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
Lloh0:
	adrp	x8, _SQLITE_STMTSTATUS_MEMUSED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_STMTSTATUS_MEMUSED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	ldr	x20, [x19, #8]
	ldr	w0, [x20, #8]
	bl	_sqlite3_mutex_enter
	str	xzr, [sp, #8]
	add	x8, sp, #8
	str	x8, [x20]
	mov	x0, x20
	mov	x1, x19
	bl	_sqlite3VdbeClearObject
	mov	x0, x20
	mov	x1, x19
	bl	_sqlite3DbFree
	str	xzr, [x20]
	ldr	w0, [x20, #8]
	bl	_sqlite3_mutex_leave
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19]
	ldr	x9, [x8, w1, sxtw #3]
	str	x9, [sp, #8]
	cbz	w2, LBB0_4
; %bb.3:
	sxtw	x9, w1
	str	xzr, [x8, x9, lsl #3]
LBB0_4:
	ldr	w0, [sp, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_STMTSTATUS_MEMUSED,4,2  ; @SQLITE_STMTSTATUS_MEMUSED
	.comm	_SQLITE_MISUSE_BKPT,4,2         ; @SQLITE_MISUSE_BKPT
.subsections_via_symbols
