	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pagerAcquireMapPage
_pagerAcquireMapPage:                   ## @pagerAcquireMapPage
	.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
	movq	%rcx, %r13
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	16(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	%rbx, (%r13)
	movq	56(%rbx), %rax
	movq	%rax, 16(%r12)
	movq	$0, 56(%rbx)
	xorl	%edi, %edi
	cmpl	$8, (%r12)
	setge	%dil
	callq	_assert
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	jmp	LBB0_5
LBB0_2:
	movl	(%r12), %edi
	addl	$64, %edi
	callq	_sqlite3MallocZero
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	addq	$64, %rax
	movq	%rax, (%rbx)
	movq	_PGHDR_MMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	$1, 16(%rbx)
	movq	%r12, 48(%rbx)
LBB0_5:
	leaq	64(%rbx), %rax
	xorl	%edi, %edi
	cmpq	%rax, (%rbx)
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	sete	%dil
	callq	_assert
	movq	8(%rbx), %rax
	movq	_PGHDR_MMAP@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	%r12, 48(%rbx)
	sete	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpl	$1, 16(%rbx)
	sete	%dil
	callq	_assert
	movl	%r15d, 32(%rbx)
	movq	%r14, 40(%rbx)
	incl	8(%r12)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	12(%r12), %edi
	decl	%r15d
	imull	4(%r12), %r15d
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_sqlite3OsUnfetch
	movq	_SQLITE_NOMEM_BKPT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_NOMEM_BKPT,4,2          ## @SQLITE_NOMEM_BKPT
	.comm	_PGHDR_MMAP,8,3                 ## @PGHDR_MMAP
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_pagerAcquireMapPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pagerAcquireMapPage
_pagerAcquireMapPage:                   ; @pagerAcquireMapPage
	.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, x3
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x0, #16]
Lloh0:
	adrp	x24, _PGHDR_MMAP@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PGHDR_MMAP@GOTPAGEOFF]
	cbz	x22, LBB0_2
; %bb.1:
	str	x22, [x23]
	ldr	x8, [x22, #56]
	str	x8, [x20, #16]
	str	xzr, [x22, #56]
	ldr	w8, [x20]
	cmp	w8, #7
	cset	w0, gt
	bl	_assert
	ldr	x0, [x22]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	b	LBB0_4
LBB0_2:
	ldr	w8, [x20]
	add	w0, w8, #64
	bl	_sqlite3MallocZero
	str	x0, [x23]
	cbz	x0, LBB0_6
; %bb.3:
	mov	x22, x0
	add	x8, x0, #64
	ldr	x9, [x24]
	stp	x8, x9, [x0]
	mov	w8, #1
	str	w8, [x0, #16]
	str	x20, [x0, #48]
LBB0_4:
	ldr	x8, [x22]
	add	x9, x22, #64
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22, #24]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22, #48]
	cmp	x8, x20
	cset	w0, eq
	bl	_assert
	ldr	w8, [x22, #16]
	cmp	w8, #1
	cset	w0, eq
	bl	_assert
	str	w21, [x22, #32]
	str	x19, [x22, #40]
	ldr	w8, [x20, #8]
	add	w8, w8, #1
	str	w8, [x20, #8]
Lloh2:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	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
LBB0_6:
	ldr	w0, [x20, #12]
	sub	w8, w21, #1
	ldr	w9, [x20, #4]
	mul	w1, w9, w8
	mov	x2, x19
	bl	_sqlite3OsUnfetch
Lloh4:
	adrp	x8, _SQLITE_NOMEM_BKPT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_NOMEM_BKPT@GOTPAGEOFF]
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_NOMEM_BKPT,4,2          ; @SQLITE_NOMEM_BKPT
	.comm	_PGHDR_MMAP,8,3                 ; @PGHDR_MMAP
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_pagerAcquireMapPage
.subsections_via_symbols
