	.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, %rbx
	movq	_SQLITE_OK@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	xorl	%edi, %edi
	cmpq	%rbx, 24(%rsi)
	sete	%dil
	callq	_assert
	movq	_PGHDR_DIRTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	(%r14), %edi
	callq	_assert
	movl	(%rbx), %edi
	callq	_NEVER
	testq	%rax, %rax
	jne	LBB0_23
## %bb.1:
	cmpq	$0, 32(%rbx)
	je	LBB0_2
LBB0_23:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_PGHDR_NEED_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_23
LBB0_4:
	movq	$0, 16(%r14)
	movq	%rbx, %rdi
	callq	_pagerUseWal
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	callq	_subjRequiresPage
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%r14, %rdi
	callq	_subjournalPage
	movl	%eax, %r15d
LBB0_7:
	cmpl	(%r12), %r15d
	jne	LBB0_20
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_pagerWalFrames
	jmp	LBB0_19
LBB0_9:
	movq	_PGHDR_NEED_SYNC@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, (%r14)
	jne	LBB0_11
## %bb.10:
	movq	8(%rbx), %rax
	movq	_PAGER_WRITER_CACHEMOD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_11:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_syncJournal
	movl	%eax, %r15d
LBB0_12:
	xorl	%edi, %edi
	cmpl	(%r12), %r15d
	jne	LBB0_15
## %bb.13:
	movq	8(%r14), %rax
	cmpq	16(%rbx), %rax
	jle	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_subjRequiresPage
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
LBB0_15:
	callq	_NEVER
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_subjournalPage
	movl	%eax, %r15d
LBB0_17:
	cmpl	(%r12), %r15d
	jne	LBB0_20
## %bb.18:
	movl	(%r13), %eax
	xorl	%edi, %edi
	andl	(%r14), %eax
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_pager_write_pagelist
LBB0_19:
	movl	%eax, %r15d
LBB0_20:
	cmpl	(%r12), %r15d
	jne	LBB0_22
## %bb.21:
	movq	%rbx, %rdi
	callq	_PAGERID
	movq	8(%r14), %rdi
	callq	_PAGERTRACE
	movq	%r14, %rdi
	callq	_sqlite3PcacheMakeClean
LBB0_22:
	movq	%rbx, %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	_PGHDR_NEED_SYNC,4,2            ## @PGHDR_NEED_SYNC
	.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, #24]
	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]
	bl	_NEVER
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_3
LBB0_2:
	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_3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w8, [x20]
Lloh5:
	adrp	x9, _PGHDR_NEED_SYNC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PGHDR_NEED_SYNC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
LBB0_5:
	str	xzr, [x20, #16]
	mov	x0, x19
	bl	_pagerUseWal
	cbz	x0, LBB0_10
; %bb.6:
	mov	x0, x20
	bl	_subjRequiresPage
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x20
	bl	_subjournalPage
	mov	x21, x0
LBB0_8:
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_22
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	bl	_pagerWalFrames
	b	LBB0_21
LBB0_10:
	ldr	w8, [x20]
Lloh8:
	adrp	x23, _PGHDR_NEED_SYNC@GOTPAGE
Lloh9:
	ldr	x23, [x23, _PGHDR_NEED_SYNC@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_12
; %bb.11:
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _PAGER_WRITER_CACHEMOD@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PAGER_WRITER_CACHEMOD@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_12:
	mov	x0, x19
	mov	w1, #1
	bl	_syncJournal
	mov	x21, x0
LBB0_13:
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_16
; %bb.14:
	ldr	x8, [x20, #8]
	ldr	x9, [x19, #16]
	cmp	x8, x9
	b.le	LBB0_16
; %bb.15:
	mov	x0, x20
	bl	_subjRequiresPage
	cmp	x0, #0
	cset	w0, ne
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	bl	_NEVER
	cbz	x0, LBB0_19
; %bb.18:
	mov	x0, x20
	bl	_subjournalPage
	mov	x21, x0
LBB0_19:
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_22
; %bb.20:
	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_21:
	mov	x21, x0
LBB0_22:
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_24
; %bb.23:
	mov	x0, x19
	bl	_PAGERID
	ldr	x0, [x20, #8]
	bl	_PAGERTRACE
	mov	x0, x20
	bl	_sqlite3PcacheMakeClean
LBB0_24:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_PGHDR_DIRTY,4,2                ; @PGHDR_DIRTY
	.comm	_PGHDR_NEED_SYNC,4,2            ; @PGHDR_NEED_SYNC
	.comm	_PAGER_WRITER_CACHEMOD,8,3      ; @PAGER_WRITER_CACHEMOD
	.no_dead_strip	_pagerStress
.subsections_via_symbols
