	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zeroPage
_zeroPage:                              ## @zeroPage
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	8(%rdi), %r13
	movq	112(%rdi), %r15
	movl	104(%rdi), %edi
	callq	_sqlite3PagerPagenumber
	xorl	%edi, %edi
	cmpq	16(%rbx), %rax
	sete	%dil
	callq	_assert
	movl	104(%rbx), %edi
	callq	_sqlite3PagerGetExtra
	xorl	%edi, %edi
	cmpq	%rbx, %rax
	sete	%dil
	callq	_assert
	movl	104(%rbx), %edi
	callq	_sqlite3PagerGetData
	xorl	%edi, %edi
	cmpq	%r12, %rax
	sete	%dil
	callq	_assert
	movl	104(%rbx), %edi
	callq	_sqlite3PagerIswriteable
	movl	%eax, %edi
	callq	_assert
	movl	20(%r15), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movq	_BTS_FAST_SECURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_2
## %bb.1:
	leaq	(%r12,%r13), %rdi
	movl	8(%r15), %edx
	subl	%r13d, %edx
	xorl	%esi, %esi
	callq	_memset
LBB0_2:
	movb	%r14b, (%r12,%r13)
	movq	_PTF_LEAF@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	movl	(%rax), %eax
	andl	%r14d, %eax
	sete	%cl
	leaq	(,%rcx,4), %rax
	addq	%r13, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	leaq	8(,%rcx,4), %r14
	addq	%r13, %r14
	leaq	(%r12,%r13), %rdi
	incq	%rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movb	$0, 7(%r12,%r13)
	leaq	(%r12,%r13), %rdi
	addq	$5, %rdi
	movq	8(%r15), %rsi
	callq	_put2byte
	movq	8(%r15), %rax
	subq	%r14, %rax
	movq	%rax, 24(%rbx)
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_decodeFlags
	movq	%r14, 32(%rbx)
	movq	8(%r15), %rax
	addq	%r12, %rax
	movq	%rax, 40(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	%r12, %rax
	addq	$8, %rax
	movq	%rax, 48(%rbx)
	addq	64(%rbx), %r12
	movq	%r12, 56(%rbx)
	movq	$0, 96(%rbx)
	movl	$-512, %eax                     ## imm = 0xFE00
	addl	16(%r15), %eax
	xorl	%edi, %edi
	cmpl	$65025, %eax                    ## imm = 0xFE01
	setb	%dil
	callq	_assert
	movslq	16(%r15), %rax
	decq	%rax
	movq	%rax, 72(%rbx)
	movq	$0, 88(%rbx)
	movl	$1, 80(%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTS_FAST_SECURE,4,2            ## @BTS_FAST_SECURE
	.comm	_PTF_LEAF,4,2                   ## @PTF_LEAF
	.no_dead_strip	_zeroPage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zeroPage
_zeroPage:                              ; @zeroPage
	.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
	ldr	x21, [x0, #112]
	ldp	x22, x23, [x0]
	ldr	w0, [x0, #104]
	bl	_sqlite3PagerPagenumber
	ldr	x8, [x19, #16]
	cmp	x0, x8
	cset	w0, eq
	bl	_assert
	ldr	w0, [x19, #104]
	bl	_sqlite3PagerGetExtra
	cmp	x0, x19
	cset	w0, eq
	bl	_assert
	ldr	w0, [x19, #104]
	bl	_sqlite3PagerGetData
	cmp	x0, x22
	cset	w0, eq
	bl	_assert
	ldr	w0, [x19, #104]
	bl	_sqlite3PagerIswriteable
	bl	_assert
	ldr	w0, [x21, #20]
	bl	_sqlite3_mutex_held
	bl	_assert
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _BTS_FAST_SECURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTS_FAST_SECURE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	add	x0, x22, x23
	ldr	w8, [x21, #8]
	sub	w2, w8, w23
	mov	w1, #0
	bl	_memset
LBB0_2:
	add	x24, x22, x23
	strb	w20, [x24]
Lloh3:
	adrp	x8, _PTF_LEAF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PTF_LEAF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	mov	w8, #8
	mov	w9, #12
	csel	x8, x9, x8, eq
	add	x23, x8, x23
	add	x0, x24, #1
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	strb	wzr, [x24, #7]
	add	x0, x24, #5
	ldr	x1, [x21, #8]
	bl	_put2byte
	ldr	x8, [x21, #8]
	sub	x8, x8, x23
	str	x8, [x19, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_decodeFlags
	ldr	x8, [x21, #8]
	add	x8, x22, x8
	stp	x23, x8, [x19, #32]
	add	x8, x22, x23
	ldr	x9, [x19, #64]
	add	x9, x22, x9
	stp	x8, x9, [x19, #48]
	str	xzr, [x19, #96]
	ldr	w8, [x21, #16]
	sub	w8, w8, #512
	mov	w9, #65025
	cmp	w8, w9
	cset	w0, lo
	bl	_assert
	ldrsw	x8, [x21, #16]
	sub	x8, x8, #1
	str	x8, [x19, #72]
	str	xzr, [x19, #88]
	mov	w8, #1
	str	w8, [x19, #80]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BTS_FAST_SECURE,4,2            ; @BTS_FAST_SECURE
	.comm	_PTF_LEAF,4,2                   ; @PTF_LEAF
	.no_dead_strip	_zeroPage
.subsections_via_symbols
