	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unixShmUnmap
_unixShmUnmap:                          ## @unixShmUnmap
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	8(%rbx), %r12
	movq	8(%rdi), %rax
	xorl	%edi, %edi
	cmpq	(%rax), %r12
	sete	%dil
	callq	_assert
	movq	32(%r12), %rax
	xorl	%edi, %edi
	cmpq	8(%r15), %rax
	sete	%dil
	callq	_assert
	movl	20(%r12), %edi
	callq	_sqlite3_mutex_enter
	leaq	24(%r12), %rcx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rax
	movq	(%rcx), %rcx
	cmpq	%rbx, %rcx
	jne	LBB0_2
## %bb.3:
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	%rbx, %rdi
	callq	_sqlite3_free
	movq	$0, (%r15)
	movl	20(%r12), %edi
	callq	_sqlite3_mutex_leave
	movq	%r15, %rdi
	callq	_unixFileMutexNotheld
	movl	%eax, %edi
	callq	_assert
	xorl	%eax, %eax
	callq	_unixEnterMutex
	xorl	%edi, %edi
	cmpq	$0, (%r12)
	setg	%dil
	callq	_assert
	decq	(%r12)
	jne	LBB0_8
## %bb.4:
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.5:
	cmpq	$0, 8(%r12)
	js	LBB0_7
## %bb.6:
	movl	16(%r12), %edi
	callq	_osUnlink
LBB0_7:
	movq	%r15, %rdi
	callq	_unixShmPurge
LBB0_8:
	xorl	%eax, %eax
	callq	_unixLeaveMutex
LBB0_9:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.no_dead_strip	_unixShmUnmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unixShmUnmap
_unixShmUnmap:                          ; @unixShmUnmap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x0]
	cbz	x21, LBB0_9
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x21, #8]
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cmp	x22, x8
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22, #32]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w0, [x22, #20]
	bl	_sqlite3_mutex_enter
	add	x8, x22, #24
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x8
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.3:
	ldr	x8, [x21]
	str	x8, [x9]
	mov	x0, x21
	bl	_sqlite3_free
	str	xzr, [x19]
	ldr	w0, [x22, #20]
	bl	_sqlite3_mutex_leave
	mov	x0, x19
	bl	_unixFileMutexNotheld
	bl	_assert
	bl	_unixEnterMutex
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	ldr	x8, [x22]
	subs	x8, x8, #1
	str	x8, [x22]
	b.ne	LBB0_8
; %bb.4:
	cbz	w20, LBB0_7
; %bb.5:
	ldr	x8, [x22, #8]
	tbnz	x8, #63, LBB0_7
; %bb.6:
	ldr	w0, [x22, #16]
	bl	_osUnlink
LBB0_7:
	mov	x0, x19
	bl	_unixShmPurge
LBB0_8:
	bl	_unixLeaveMutex
LBB0_9:
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.no_dead_strip	_unixShmUnmap
.subsections_via_symbols
