	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_blob_reopen            ## -- Begin function sqlite3_blob_reopen
	.p2align	4, 0x90
_sqlite3_blob_reopen:                   ## @sqlite3_blob_reopen
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %ebx
	movq	%rdi, %r12
	movq	8(%rdi), %r14
	movl	(%r14), %edi
	callq	_sqlite3_mutex_enter
	cmpq	$0, (%r12)
	je	LBB0_3
## %bb.4:
	leaq	-40(%rbp), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_blobSeekToRow
	movl	%eax, %r15d
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_6
## %bb.5:
	movq	-40(%rbp), %rcx
	testq	%rcx, %rcx
	leaq	L_.str(%rip), %rdx
	cmoveq	%rcx, %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_sqlite3ErrorWithMsg
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_sqlite3DbFree
LBB0_6:
	movq	_SQLITE_SCHEMA@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %r15d
	setne	%dil
	callq	_assert
	jmp	LBB0_7
LBB0_1:
	movq	_SQLITE_MISUSE_BKPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_3:
	movq	_SQLITE_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_7:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_sqlite3ApiExit
	movl	%eax, %ebx
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	$1, %edi
	cmpl	(%rax), %ebx
	je	LBB0_9
## %bb.8:
	xorl	%edi, %edi
	cmpq	$0, (%r12)
	sete	%dil
LBB0_9:
	callq	_assert
	movl	(%r14), %edi
	callq	_sqlite3_mutex_leave
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_MISUSE_BKPT,4,2         ## @SQLITE_MISUSE_BKPT
	.comm	_SQLITE_ABORT,4,2               ## @SQLITE_ABORT
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_SQLITE_SCHEMA,4,2              ## @SQLITE_SCHEMA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqlite3_blob_reopen            ; -- Begin function sqlite3_blob_reopen
	.p2align	2
_sqlite3_blob_reopen:                   ; @sqlite3_blob_reopen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x19]
	bl	_sqlite3_mutex_enter
	ldr	x8, [x20]
Lloh0:
	adrp	x22, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SQLITE_OK@GOTPAGEOFF]
	cbz	x8, LBB0_6
; %bb.2:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x21
	bl	_blobSeekToRow
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	x3, [sp, #8]
Lloh2:
	adrp	x8, l_.str@PAGE
Lloh3:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x3, #0
	csel	x2, xzr, x8, eq
	mov	x0, x19
	mov	x1, x21
	bl	_sqlite3ErrorWithMsg
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_sqlite3DbFree
LBB0_4:
Lloh4:
	adrp	x8, _SQLITE_SCHEMA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_SCHEMA@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w21, w8
	cset	w0, ne
	bl	_assert
	b	LBB0_7
LBB0_5:
Lloh7:
	adrp	x8, _SQLITE_MISUSE_BKPT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SQLITE_MISUSE_BKPT@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	b	LBB0_11
LBB0_6:
Lloh10:
	adrp	x8, _SQLITE_ABORT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SQLITE_ABORT@GOTPAGEOFF]
Lloh12:
	ldr	w21, [x8]
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_sqlite3ApiExit
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w0, eq
LBB0_10:
	bl	_assert
	ldr	w0, [x19]
	bl	_sqlite3_mutex_leave
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_MISUSE_BKPT,4,2         ; @SQLITE_MISUSE_BKPT
	.comm	_SQLITE_ABORT,4,2               ; @SQLITE_ABORT
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_SQLITE_SCHEMA,4,2              ; @SQLITE_SCHEMA
.subsections_via_symbols
