	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unixMapfile
_unixMapfile:                           ## @unixMapfile
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	testq	%rsi, %rsi
	js	LBB0_1
## %bb.2:
	movl	$1, %ebx
	movl	$1, %edi
	callq	_assert
	testq	%r12, %r12
	jne	LBB0_5
	jmp	LBB0_3
LBB0_1:
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	sete	%dil
	callq	_assert
LBB0_3:
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r14)
	jne	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	cmpq	$0, 16(%r14)
	sete	%bl
LBB0_5:
	movl	%ebx, %edi
	callq	_assert
	cmpq	$0, (%r14)
	jle	LBB0_6
LBB0_15:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	testq	%r12, %r12
	js	LBB0_7
LBB0_10:
	movq	24(%r14), %r15
	cmpq	%r15, %r12
	cmovlq	%r12, %r15
	movl	$1, %edi
	testq	%r15, %r15
	jg	LBB0_13
## %bb.11:
	xorl	%edi, %edi
	cmpq	$0, 8(%r14)
	jne	LBB0_13
## %bb.12:
	xorl	%edi, %edi
	cmpq	$0, 16(%r14)
	sete	%dil
LBB0_13:
	callq	_assert
	cmpq	8(%r14), %r15
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_unixRemapfile
	jmp	LBB0_15
LBB0_7:
	movl	32(%r14), %edi
	leaq	-40(%rbp), %rsi
	callq	_osFstat
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_SQLITE_IOERR_FSTAT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_9:
	movq	-40(%rbp), %r12
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_IOERR_FSTAT,4,2         ## @SQLITE_IOERR_FSTAT
	.no_dead_strip	_unixMapfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unixMapfile
_unixMapfile:                           ; @unixMapfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	tbnz	x1, #63, LBB0_4
; %bb.1:
	mov	w21, #1
	mov	w0, #1
	bl	_assert
	cbnz	x20, LBB0_6
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
LBB0_3:
	mov	w21, #0
	b	LBB0_6
LBB0_4:
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_3
LBB0_5:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w21, eq
LBB0_6:
	mov	x0, x21
	bl	_assert
	ldr	x8, [x19]
	cmp	x8, #1
	b.lt	LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
LBB0_8:
	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
	add	sp, sp, #64
	ret
LBB0_9:
	tbnz	x20, #63, LBB0_12
LBB0_10:
	ldr	x8, [x19, #24]
	cmp	x20, x8
	csel	x20, x20, x8, lt
	cmp	x20, #0
	b.le	LBB0_14
; %bb.11:
	mov	w0, #1
	b	LBB0_18
LBB0_12:
	ldr	w0, [x19, #32]
	add	x1, sp, #8
	bl	_osFstat
	cbz	x0, LBB0_16
; %bb.13:
Lloh2:
	adrp	x8, _SQLITE_IOERR_FSTAT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SQLITE_IOERR_FSTAT@GOTPAGEOFF]
	b	LBB0_8
LBB0_14:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_17
; %bb.15:
	mov	w0, #0
	b	LBB0_18
LBB0_16:
	ldr	x20, [sp, #8]
	b	LBB0_10
LBB0_17:
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w0, eq
LBB0_18:
	bl	_assert
	ldr	x8, [x19, #8]
	cmp	x20, x8
	b.eq	LBB0_7
; %bb.19:
	mov	x0, x19
	mov	x1, x20
	bl	_unixRemapfile
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_IOERR_FSTAT,4,2         ; @SQLITE_IOERR_FSTAT
	.no_dead_strip	_unixMapfile
.subsections_via_symbols
