	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function swapgeom_done
_swapgeom_done:                         ## @swapgeom_done
	.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
	movq	40(%rdi), %rdi
	movq	32(%rbx), %r14
	movl	24(%rbx), %ecx
	movl	%ecx, 32(%rdi)
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_BIO_ERROR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, 32(%rdi)
LBB0_2:
	movq	16(%rdi), %rcx
	subq	16(%rbx), %rcx
	movq	%rcx, 24(%rdi)
	movq	%rax, 8(%rdi)
	movq	$0, (%rdi)
	callq	_bufdone
	movq	(%rbx), %r15
	movq	_sw_dev_mtx@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_mtx_lock
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_swapgeom_release
	movq	%r12, %rdi
	callq	_mtx_unlock
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_g_destroy_bio                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BIO_ERROR,4,2                  ## @BIO_ERROR
	.comm	_sw_dev_mtx,4,2                 ## @sw_dev_mtx
	.no_dead_strip	_swapgeom_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function swapgeom_done
_swapgeom_done:                         ; @swapgeom_done
	.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
	mov	x19, x0
	ldr	x0, [x0, #40]
	ldr	x20, [x19, #32]
	ldr	w9, [x19, #24]
	str	w9, [x0, #32]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x10, _BIO_ERROR@GOTPAGE
Lloh1:
	ldr	x10, [x10, _BIO_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	orr	w9, w10, w9
	str	w9, [x0, #32]
LBB0_2:
	ldr	x9, [x0, #16]
	ldr	x10, [x19, #16]
	sub	x9, x9, x10
	str	x9, [x0, #24]
	stp	xzr, x8, [x0]
	bl	_bufdone
	ldr	x21, [x19]
Lloh3:
	adrp	x22, _sw_dev_mtx@GOTPAGE
Lloh4:
	ldr	x22, [x22, _sw_dev_mtx@GOTPAGEOFF]
	mov	x0, x22
	bl	_mtx_lock
	mov	x0, x20
	mov	x1, x21
	bl	_swapgeom_release
	mov	x0, x22
	bl	_mtx_unlock
	mov	x0, x19
	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
	b	_g_destroy_bio
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BIO_ERROR,4,2                  ; @BIO_ERROR
	.comm	_sw_dev_mtx,4,2                 ; @sw_dev_mtx
	.no_dead_strip	_swapgeom_done
.subsections_via_symbols
