	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swapongeom
_swapongeom:                            ## @swapongeom
	.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	%rdi, %rbx
	movq	_LK_EXCLUSIVE@GOTPCREL(%rip), %rax
	movq	_LK_RETRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_vn_lock
	movq	(%rbx), %rax
	movq	_VCHR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_VI_DOOMED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_3
LBB0_2:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_4
LBB0_3:
	xorl	%eax, %eax
	callq	_g_topology_lock
	movl	12(%rbx), %edi
	movq	%rbx, %rsi
	callq	_swapongeom_locked
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_g_topology_unlock
LBB0_4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_VOP_UNLOCK
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LK_EXCLUSIVE,4,2               ## @LK_EXCLUSIVE
	.comm	_LK_RETRY,4,2                   ## @LK_RETRY
	.comm	_VCHR,8,3                       ## @VCHR
	.comm	_VI_DOOMED,4,2                  ## @VI_DOOMED
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_swapongeom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swapongeom
_swapongeom:                            ; @swapongeom
	.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, x0
Lloh0:
	adrp	x8, _LK_EXCLUSIVE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LK_EXCLUSIVE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _LK_RETRY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LK_RETRY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_vn_lock
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _VCHR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _VCHR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
Lloh9:
	adrp	x9, _VI_DOOMED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VI_DOOMED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
Lloh12:
	adrp	x8, _ENOENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	b	LBB0_4
LBB0_3:
	bl	_g_topology_lock
	ldr	w0, [x19, #12]
	mov	x1, x19
	bl	_swapongeom_locked
	mov	x20, x0
	bl	_g_topology_unlock
LBB0_4:
	mov	x0, x19
	mov	w1, #0
	bl	_VOP_UNLOCK
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LK_EXCLUSIVE,4,2               ; @LK_EXCLUSIVE
	.comm	_LK_RETRY,4,2                   ; @LK_RETRY
	.comm	_VCHR,8,3                       ; @VCHR
	.comm	_VI_DOOMED,4,2                  ; @VI_DOOMED
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_swapongeom
.subsections_via_symbols
