	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pagerStress
_pagerStress:                           ## @pagerStress
	.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	%rsi, %r14
	movq	%rdi, %r13
	movq	_SQLITE_OK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r15d
	xorl	%edi, %edi
	cmpq	%r13, 16(%rsi)
	sete	%dil
	callq	_assert
	movq	_PGHDR_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r14), %edi
	callq	_assert
	movl	40(%r13), %edi
	callq	_NEVER
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %eax
	jmp	LBB0_2
LBB0_3:
	movq	_SPILLFLAG_ROLLBACK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	andl	(%r13), %edi
	callq	_testcase
	movq	_SPILLFLAG_OFF@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	andl	(%r13), %edi
	callq	_testcase
	movq	_SPILLFLAG_NOSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r13), %edi
	callq	_testcase
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:
	movl	(%r12), %ecx
	orl	(%rbx), %ecx
	testl	%eax, %ecx
	jne	LBB0_6
## %bb.5:
	movq	_PGHDR_NEED_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
LBB0_6:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	32(%r13), %rax
	movq	_PAGER_STAT_SPILL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	incl	(%rax,%rcx,4)
	movq	$0, 8(%r14)
	movq	%r13, %rdi
	callq	_pagerUseWal
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_subjournalPageIfRequired
	movl	%eax, %r15d
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	cmpl	(%r12), %eax
	jne	LBB0_16
## %bb.9:
	movq	%r13, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_pagerWalFrames
	jmp	LBB0_15
LBB0_10:
	movq	_PGHDR_NEED_SYNC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, (%r14)
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	jne	LBB0_12
## %bb.11:
	movq	16(%r13), %rax
	movq	_PAGER_WRITER_CACHEMOD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
LBB0_12:
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_syncJournal
	movl	%eax, %r15d
LBB0_13:
	cmpl	(%r12), %r15d
	jne	LBB0_16
## %bb.14:
	movl	(%rbx), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	sete	%dil
	callq	_assert
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_pager_write_pagelist
LBB0_15:
	movl	%eax, %r15d
LBB0_16:
	cmpl	(%r12), %r15d
	jne	LBB0_18
## %bb.17:
	movq	%r13, %rdi
	callq	_PAGERID
	movslq	4(%r14), %rdi
	callq	_PAGERTRACE
	movq	%r14, %rdi
	callq	_sqlite3PcacheMakeClean
LBB0_18:
	movq	%r13, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pager_error                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_PGHDR_DIRTY,4,2                ## @PGHDR_DIRTY
	.comm	_SPILLFLAG_ROLLBACK,4,2         ## @SPILLFLAG_ROLLBACK
	.comm	_SPILLFLAG_OFF,4,2              ## @SPILLFLAG_OFF
	.comm	_SPILLFLAG_NOSYNC,4,2           ## @SPILLFLAG_NOSYNC
	.comm	_PGHDR_NEED_SYNC,4,2            ## @PGHDR_NEED_SYNC
	.comm	_PAGER_STAT_SPILL,8,3           ## @PAGER_STAT_SPILL
	.comm	_PAGER_WRITER_CACHEMOD,8,3      ## @PAGER_WRITER_CACHEMOD
	.no_dead_strip	_pagerStress
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pagerStress
_pagerStress:                           ; @pagerStress
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x22, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SQLITE_OK@GOTPAGEOFF]
	ldr	w21, [x22]
	ldr	x8, [x1, #16]
	cmp	x8, x0
	cset	w0, eq
	bl	_assert
	ldr	w8, [x20]
Lloh2:
	adrp	x9, _PGHDR_DIRTY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PGHDR_DIRTY@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_assert
	ldr	w0, [x19, #40]
	bl	_NEVER
	cbz	x0, LBB0_2
LBB0_1:
	ldr	w0, [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
LBB0_2:
	ldr	w8, [x19]
Lloh5:
	adrp	x23, _SPILLFLAG_ROLLBACK@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SPILLFLAG_ROLLBACK@GOTPAGEOFF]
	ldr	w9, [x23]
	and	w0, w9, w8
	bl	_testcase
	ldr	w8, [x19]
Lloh7:
	adrp	x24, _SPILLFLAG_OFF@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SPILLFLAG_OFF@GOTPAGEOFF]
	ldr	w9, [x24]
	and	w0, w9, w8
	bl	_testcase
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _SPILLFLAG_NOSYNC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SPILLFLAG_NOSYNC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_testcase
	ldr	w8, [x19]
	cbz	w8, LBB0_5
; %bb.3:
	ldr	w9, [x23]
	ldr	w10, [x24]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_1
; %bb.4:
	ldr	w8, [x20]
Lloh12:
	adrp	x9, _PGHDR_NEED_SYNC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PGHDR_NEED_SYNC@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_1
LBB0_5:
	ldr	x8, [x19, #32]
Lloh15:
	adrp	x9, _PAGER_STAT_SPILL@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PAGER_STAT_SPILL@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, #1
	str	w10, [x8, x9]
	str	xzr, [x20, #8]
	mov	x0, x19
	bl	_pagerUseWal
	cbz	x0, LBB0_8
; %bb.6:
	mov	x0, x20
	bl	_subjournalPageIfRequired
	mov	x21, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.ne	LBB0_14
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_pagerWalFrames
	b	LBB0_13
LBB0_8:
	ldr	w8, [x20]
Lloh18:
	adrp	x23, _PGHDR_NEED_SYNC@GOTPAGE
Lloh19:
	ldr	x23, [x23, _PGHDR_NEED_SYNC@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.9:
	ldr	x8, [x19, #16]
Lloh20:
	adrp	x9, _PAGER_WRITER_CACHEMOD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _PAGER_WRITER_CACHEMOD@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_10:
	mov	x0, x19
	mov	w1, #1
	bl	_syncJournal
	mov	x21, x0
LBB0_11:
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_14
; %bb.12:
	ldr	w8, [x20]
	ldr	w9, [x23]
	tst	w9, w8
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	mov	x1, x20
	bl	_pager_write_pagelist
LBB0_13:
	mov	x21, x0
LBB0_14:
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_PAGERID
	ldrsw	x0, [x20, #4]
	bl	_PAGERTRACE
	mov	x0, x20
	bl	_sqlite3PcacheMakeClean
LBB0_16:
	mov	x0, x19
	mov	x1, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_pager_error
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_PGHDR_DIRTY,4,2                ; @PGHDR_DIRTY
	.comm	_SPILLFLAG_ROLLBACK,4,2         ; @SPILLFLAG_ROLLBACK
	.comm	_SPILLFLAG_OFF,4,2              ; @SPILLFLAG_OFF
	.comm	_SPILLFLAG_NOSYNC,4,2           ; @SPILLFLAG_NOSYNC
	.comm	_PGHDR_NEED_SYNC,4,2            ; @PGHDR_NEED_SYNC
	.comm	_PAGER_STAT_SPILL,8,3           ; @PAGER_STAT_SPILL
	.comm	_PAGER_WRITER_CACHEMOD,8,3      ; @PAGER_WRITER_CACHEMOD
	.no_dead_strip	_pagerStress
.subsections_via_symbols
