	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readDbPage
_readDbPage:                            ## @readDbPage
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	movslq	(%rdi), %r15
	movq	8(%rbx), %rax
	movq	_PAGER_READER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	setge	%al
	movq	_MEMDB@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	movl	(%rbx), %r12d
	sete	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movl	32(%rbx), %edi
	callq	_isOpen
	movl	%eax, %edi
	callq	_assert
	movl	32(%rbx), %edi
	callq	_isOpen
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_NEVER
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	callq	_assert
	movq	8(%r14), %rdi
	movl	(%rbx), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_11
LBB0_2:
	testl	%r13d, %r13d
	je	LBB0_4
## %bb.3:
	movl	36(%rbx), %edi
	movq	8(%r14), %rcx
	movl	%r13d, %esi
	movl	%r12d, %edx
	callq	_sqlite3WalReadFrame
	jmp	LBB0_6
LBB0_4:
	leal	-1(%r15), %ecx
	imull	(%rbx), %ecx
	movl	32(%rbx), %edi
	movq	8(%r14), %rsi
	movl	%r12d, %edx
	callq	_sqlite3OsRead
	movq	_SQLITE_IOERR_SHORT_READ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	cmpl	$1, %r15d
	jne	LBB0_10
## %bb.7:
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movq	24(%rbx), %rdi
	movl	$255, %esi
	movl	$8, %edx
	callq	_memset
	jmp	LBB0_10
LBB0_9:
	movq	8(%r14), %rsi
	addq	$96, %rsi
	leaq	24(%rbx), %rdi
	movl	$8, %edx
	callq	_memcpy
LBB0_10:
	movq	8(%r14), %rsi
	movq	_SQLITE_NOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rdi
	movl	%r15d, %edx
	movl	$3, %ecx
	movl	%r12d, %r8d
	callq	_CODEC1
	movq	_sqlite3_pager_readdb_count@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PAGER_INCR
	movl	20(%rbx), %edi
	callq	_PAGER_INCR
	movq	%r15, %rdi
	callq	_IOTRACE
	movq	%rbx, %rdi
	callq	_PAGERID
	movq	%r14, %rdi
	callq	_pager_pagehash
	movslq	%eax, %rdi
	callq	_PAGERTRACE
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_PAGER_READER,8,3               ## @PAGER_READER
	.comm	_MEMDB,4,2                      ## @MEMDB
	.comm	_SQLITE_IOERR_SHORT_READ,4,2    ## @SQLITE_IOERR_SHORT_READ
	.comm	_SQLITE_NOMEM,4,2               ## @SQLITE_NOMEM
	.comm	_sqlite3_pager_readdb_count,4,2 ## @sqlite3_pager_readdb_count
	.no_dead_strip	_readDbPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readDbPage
_readDbPage:                            ; @readDbPage
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x1
	mov	x19, x0
	ldr	x20, [x0, #16]
	ldrsw	x21, [x0]
	ldr	w22, [x20]
	ldr	x8, [x20, #8]
Lloh0:
	adrp	x9, _PAGER_READER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PAGER_READER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x8, _MEMDB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEMDB@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ccmp	w8, #0, #0, ge
	cset	w0, eq
	bl	_assert
	ldr	w0, [x20, #32]
	bl	_isOpen
	bl	_assert
	ldr	w0, [x20, #32]
	bl	_isOpen
	cmp	w0, #0
	cset	w0, eq
	bl	_NEVER
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20, #16]
	bl	_assert
	ldr	x0, [x19, #8]
	ldr	w2, [x20]
	mov	w1, #0
	bl	_memset
Lloh6:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	b	LBB0_9
LBB0_2:
	cbz	w23, LBB0_4
; %bb.3:
	ldr	w0, [x20, #36]
	ldr	x3, [x19, #8]
	mov	x1, x23
	mov	x2, x22
	bl	_sqlite3WalReadFrame
	cmp	w21, #1
	b.eq	LBB0_5
	b	LBB0_8
LBB0_4:
	sub	w8, w21, #1
	ldr	w9, [x20]
	mul	w3, w9, w8
	ldr	w0, [x20, #32]
	ldr	x1, [x19, #8]
	mov	x2, x22
	bl	_sqlite3OsRead
Lloh9:
	adrp	x8, _SQLITE_IOERR_SHORT_READ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SQLITE_IOERR_SHORT_READ@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _SQLITE_OK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SQLITE_OK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w0, w8
	csel	w0, w9, w0, eq
	cmp	w21, #1
	b.ne	LBB0_8
LBB0_5:
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x20, #24]
	mov	w1, #255
	mov	w2, #8
	bl	_memset
	b	LBB0_8
LBB0_7:
	ldr	x8, [x19, #8]
	add	x1, x8, #96
	add	x0, x20, #24
	mov	w2, #8
	bl	_memcpy
LBB0_8:
	ldr	x1, [x19, #8]
Lloh15:
	adrp	x8, _SQLITE_NOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SQLITE_NOMEM@GOTPAGEOFF]
Lloh17:
	ldr	w22, [x8]
	mov	x0, x20
	mov	x2, x21
	mov	w3, #3
	mov	x4, x22
	bl	_CODEC1
Lloh18:
	adrp	x8, _sqlite3_pager_readdb_count@GOTPAGE
Lloh19:
	ldr	x8, [x8, _sqlite3_pager_readdb_count@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_PAGER_INCR
	ldr	w0, [x20, #20]
	bl	_PAGER_INCR
	mov	x0, x21
	bl	_IOTRACE
	mov	x0, x20
	bl	_PAGERID
	mov	x0, x19
	bl	_pager_pagehash
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x0, w0
	bl	_PAGERTRACE
LBB0_9:
	mov	x0, x22
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_PAGER_READER,8,3               ; @PAGER_READER
	.comm	_MEMDB,4,2                      ; @MEMDB
	.comm	_SQLITE_IOERR_SHORT_READ,4,2    ; @SQLITE_IOERR_SHORT_READ
	.comm	_SQLITE_NOMEM,4,2               ; @SQLITE_NOMEM
	.comm	_sqlite3_pager_readdb_count,4,2 ; @sqlite3_pager_readdb_count
	.no_dead_strip	_readDbPage
.subsections_via_symbols
