	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swapgeom_release
_swapgeom_release:                      ## @swapgeom_release
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_sw_dev_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_assert
	decq	(%rbx)
	jne	LBB0_3
## %bb.1:
	movq	_swapgeom_close_ev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_g_post_event
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	$0, (%r14)
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sw_dev_mtx,4,2                 ## @sw_dev_mtx
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_swapgeom_close_ev,4,2          ## @swapgeom_close_ev
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.no_dead_strip	_swapgeom_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swapgeom_release
_swapgeom_release:                      ; @swapgeom_release
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, _sw_dev_mtx@GOTPAGE
Lloh4:
	ldr	x0, [x0, _sw_dev_mtx@GOTPAGEOFF]
	bl	_mtx_assert
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _swapgeom_close_ev@GOTPAGE
Lloh6:
	ldr	x8, [x8, _swapgeom_close_ev@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x1, x20
	mov	x3, #0
	bl	_g_post_event
	cbnz	x0, LBB0_3
; %bb.2:
	str	xzr, [x19]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_sw_dev_mtx,4,2                 ; @sw_dev_mtx
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_swapgeom_close_ev,4,2          ; @swapgeom_close_ev
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.no_dead_strip	_swapgeom_release
.subsections_via_symbols
