	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlvbd_release_gendisk
_xlvbd_release_gendisk:                 ## @xlvbd_release_gendisk
	.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
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	movq	_blkif_io_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	8(%rbx), %rdi
	callq	_blk_stop_queue
	leaq	16(%rbx), %rdi
	callq	_gnttab_cancel_free_callback
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	callq	_flush_scheduled_work
	movq	(%rbx), %rdi
	callq	_del_gendisk
	movq	(%rbx), %rax
	movl	(%rax), %edi
	movl	4(%rax), %esi
	callq	_xlbd_release_minors
	movq	8(%rbx), %rdi
	callq	_blk_cleanup_queue
	movq	$0, 8(%rbx)
	movq	(%rbx), %rdi
	callq	_put_disk
	movq	$0, (%rbx)
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_blkif_io_lock,4,2              ## @blkif_io_lock
	.no_dead_strip	_xlvbd_release_gendisk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xlvbd_release_gendisk
_xlvbd_release_gendisk:                 ; @xlvbd_release_gendisk
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _blkif_io_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _blkif_io_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x0, [x19, #8]
	bl	_blk_stop_queue
	add	x0, x19, #16
	bl	_gnttab_cancel_free_callback
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	bl	_flush_scheduled_work
	ldr	x0, [x19]
	bl	_del_gendisk
	ldr	x8, [x19]
	ldp	w0, w1, [x8]
	bl	_xlbd_release_minors
	ldr	x0, [x19, #8]
	bl	_blk_cleanup_queue
	str	xzr, [x19, #8]
	ldr	x0, [x19]
	bl	_put_disk
	str	xzr, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_blkif_io_lock,4,2              ; @blkif_io_lock
	.no_dead_strip	_xlvbd_release_gendisk
.subsections_via_symbols
