	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function freeSpace
_freeSpace:                             ## @freeSpace
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	setne	%dil
	callq	_assert
	movl	16(%rbx), %edi
	callq	_sqlite3PagerIswriteable
	movl	%eax, %edi
	callq	_assert
	movl	8(%rbx), %eax
	movl	12(%rbx), %ecx
	addl	%ecx, %eax
	addl	$6, %eax
	xorl	%edi, %edi
	cmpl	%r12d, %eax
	setle	%dil
	callq	_assert
	leal	(%r14,%r12), %eax
	movq	24(%rbx), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setle	%dil
	callq	_assert
	movq	24(%rbx), %rax
	movl	8(%rax), %edi
	callq	_sqlite3_mutex_held
	movl	%eax, %edi
	callq	_assert
	movl	%r14d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	24(%rbx), %rax
	movq	_BTS_SECURE_DELETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	je	LBB0_2
## %bb.1:
	movslq	%r12d, %rdi
	addq	%r15, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	_memset
	movq	24(%rbx), %rax
LBB0_2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movslq	8(%rbx), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	leaq	1(%rcx), %rbx
	movl	(%rax), %eax
	addl	$-4, %eax
	xorl	%edi, %edi
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	cmpl	%r12d, %eax
	setge	%dil
	callq	_assert
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %rbx
	addq	%r15, %rbx
	movq	%rbx, %rdi
	callq	_get2byte
	movl	%eax, %r14d
	cmpl	%r12d, %eax
	jge	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	$4, %r13d
	cmpl	%r13d, %r14d
	movl	%r14d, %r13d
	jge	LBB0_3
	jmp	LBB0_6
LBB0_7:
	cmpl	-56(%rbp), %r14d                ## 4-byte Folded Reload
	jle	LBB0_9
LBB0_6:
	movq	_SQLITE_CORRUPT_BKPT@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	cmpl	%r13d, %r14d
	setg	%al
	testl	%r14d, %r14d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_put2byte
	movslq	%r12d, %rbx
	leaq	(%r15,%rbx), %rdi
	movl	%r14d, %esi
	callq	_put2byte
	leaq	(%r15,%rbx), %rdi
	addq	$2, %rdi
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_put2byte
	movslq	%ebx, %rax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	addq	%rax, 32(%r14)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	addq	%r15, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_get2byte
	testl	%eax, %eax
	jle	LBB0_19
## %bb.10:
	movl	%eax, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	%r12d, %ebx
LBB0_12:                                ##   in Loop: Header=BB0_13 Depth=1
	movslq	%ebx, %rdi
	addq	%r15, %rdi
	callq	_get2byte
	movl	%eax, %r12d
	testl	%eax, %eax
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jle	LBB0_19
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	cmpl	%ebx, %r12d
	setg	%dil
	callq	_assert
	movq	24(%r14), %rax
	movl	(%rax), %eax
	addl	$-4, %eax
	xorl	%edi, %edi
	cmpl	%eax, %r12d
	setle	%dil
	callq	_assert
	movl	%r12d, %ebx
	leaq	(%r15,%rbx), %r14
	movq	%r14, %rdi
	callq	_get2byte
	movl	%eax, %r13d
	addq	%r15, %rbx
	addq	$2, %rbx
	movq	%rbx, %rdi
	callq	_get2byte
                                        ## kill: def $eax killed $eax def $rax
	testl	%r13d, %r13d
	jle	LBB0_11
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	leal	(%rax,%r12), %ecx
	addl	$3, %ecx
	cmpl	%r13d, %ecx
	jl	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	addl	%r12d, %eax
	movl	%r13d, %ecx
	subl	%eax, %ecx
	js	LBB0_6
## %bb.16:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movzbl	7(%r15,%rdx), %eax
	cmpl	%eax, %ecx
	ja	LBB0_6
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	subb	%cl, %al
	movb	%al, 7(%r15,%rdx)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %ebx
	leaq	(%r15,%rbx), %rdi
	callq	_get2byte
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_put2byte
	leaq	(%r15,%rbx), %rdi
	addq	$2, %rdi
	callq	_get2byte
	subl	%r12d, %r13d
	addl	%eax, %r13d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_put2byte
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_19:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movb	(%rbx), %al
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpb	5(%rcx,%r15), %al
	jne	LBB0_22
## %bb.20:
	movb	2(%rcx,%r15), %al
	cmpb	6(%rcx,%r15), %al
	jne	LBB0_22
## %bb.21:
	leaq	(%rcx,%r15), %r13
	addq	$5, %r13
	movq	%rbx, %rdi
	callq	_get2byte
	movslq	%eax, %r12
	leaq	(%r15,%r12), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_memcpy
	movq	%r13, %rbx
	movq	%r13, %rdi
	callq	_get2byte
	movl	%eax, %r13d
	leaq	(%r15,%r12), %rdi
	addq	$2, %rdi
	callq	_get2byte
	addl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_put2byte
LBB0_22:
	movl	16(%r14), %edi
	callq	_sqlite3PagerIswriteable
	movl	%eax, %edi
	callq	_assert
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_BTS_SECURE_DELETE,4,2          ## @BTS_SECURE_DELETE
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ## @SQLITE_CORRUPT_BKPT
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_freeSpace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function freeSpace
_freeSpace:                             ; @freeSpace
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x25, [x0]
	ldr	x8, [x0, #24]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	w0, [x19, #16]
	bl	_sqlite3PagerIswriteable
	bl	_assert
	ldp	w8, w9, [x19, #8]
	add	w8, w8, w9
	add	w8, w8, #6
	cmp	w8, w21
	cset	w0, le
	bl	_assert
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	add	w9, w20, w21
	cmp	w9, w8
	cset	w0, le
	bl	_assert
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	bl	_sqlite3_mutex_held
	bl	_assert
	mvn	w8, w20
	lsr	w0, w8, #31
	bl	_assert
	ldr	x8, [x19, #24]
	ldr	w9, [x8, #4]
Lloh0:
	adrp	x10, _BTS_SECURE_DELETE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BTS_SECURE_DELETE@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
	add	x0, x25, w21, sxtw
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	ldr	x8, [x19, #24]
LBB0_2:
	ldrsw	x9, [x19, #8]
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	add	x27, x9, #1
	ldr	w8, [x8]
	sub	w24, w8, #4
	cmp	w24, w21
	cset	w0, ge
	bl	_assert
Lloh3:
	adrp	x28, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh4:
	ldr	x28, [x28, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
	mov	x26, x27
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x25, w26, sxtw
	mov	x0, x23
	bl	_get2byte
	mov	x22, x0
	cmp	w0, w21
	ccmp	w0, #1, #8, lt
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w8, w26, #4
	mov	x26, x22
	cmp	w22, w8
	b.ge	LBB0_3
	b	LBB0_20
LBB0_5:
	cmp	w22, w24
	b.le	LBB0_7
; %bb.6:
Lloh5:
	adrp	x28, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh6:
	ldr	x28, [x28, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
	b	LBB0_20
LBB0_7:
	cmp	w22, w26
	ccmp	w22, #0, #4, le
	cset	w0, eq
	bl	_assert
	mov	x0, x23
	mov	x1, x21
	bl	_put2byte
	add	x21, x25, w21, sxtw
	mov	x0, x21
	mov	x1, x22
	bl	_put2byte
	add	x0, x21, #2
	mov	x1, x20
	bl	_put2byte
	ldr	x8, [x19, #32]
	add	x8, x8, w20, sxtw
	str	x8, [x19, #32]
	add	x0, x25, x27
	str	x0, [sp]                        ; 8-byte Folded Spill
	bl	_get2byte
	cmp	w0, #1
	ldr	x26, [sp, #8]                   ; 8-byte Folded Reload
	b.lt	LBB0_16
; %bb.8:
	mov	x21, x0
	add	x20, x26, #7
Lloh7:
	adrp	x28, _SQLITE_CORRUPT_BKPT@GOTPAGE
Lloh8:
	ldr	x28, [x28, _SQLITE_CORRUPT_BKPT@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	mov	x27, x21
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x0, x25, w27, sxtw
	bl	_get2byte
	mov	x21, x0
	cmp	w0, #0
	b.le	LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	cmp	w21, w27
	cset	w0, gt
	bl	_assert
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	sub	w8, w8, #4
	cmp	w21, w8
	cset	w0, le
	bl	_assert
	add	x24, x25, w21, uxtw
	mov	x0, x24
	bl	_get2byte
	mov	x22, x0
	add	w8, w21, #2
	add	x23, x25, x8
	mov	x0, x23
	bl	_get2byte
	cmp	w22, #1
	b.lt	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	w8, w0, w21
	add	w9, w8, #3
	cmp	w9, w22
	b.lt	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	subs	w8, w22, w8
	b.mi	LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldrb	w9, [x25, x20]
	cmp	w8, w9
	b.hi	LBB0_20
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	w8, w9, w8
	strb	w8, [x25, x20]
	add	x0, x25, w22, uxtw
	bl	_get2byte
	mov	x1, x0
	mov	x0, x24
	bl	_put2byte
	add	w8, w22, #2
	add	x0, x25, x8
	bl	_get2byte
	sub	w8, w22, w21
	add	w1, w8, w0
	mov	x0, x23
	bl	_put2byte
	b	LBB0_10
LBB0_16:
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	ldrb	w9, [x20]
	add	x8, x26, x25
	mov	x21, x8
	ldrb	w10, [x21, #5]!
	cmp	w9, w10
	b.ne	LBB0_19
; %bb.17:
	ldrb	w9, [x8, #2]
	ldrb	w8, [x8, #6]
	cmp	w9, w8
	b.ne	LBB0_19
; %bb.18:
	mov	x0, x20
	bl	_get2byte
	add	x22, x25, w0, sxtw
	mov	x0, x20
	mov	x1, x22
	mov	w2, #2
	bl	_memcpy
	mov	x0, x21
	bl	_get2byte
	mov	x20, x0
	add	x0, x22, #2
	bl	_get2byte
	add	w1, w0, w20
	mov	x0, x21
	bl	_put2byte
LBB0_19:
	ldr	w0, [x19, #16]
	bl	_sqlite3PagerIswriteable
	bl	_assert
Lloh9:
	adrp	x28, _SQLITE_OK@GOTPAGE
Lloh10:
	ldr	x28, [x28, _SQLITE_OK@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x28]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_BTS_SECURE_DELETE,4,2          ; @BTS_SECURE_DELETE
	.comm	_SQLITE_CORRUPT_BKPT,4,2        ; @SQLITE_CORRUPT_BKPT
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_freeSpace
.subsections_via_symbols
