	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_io_bus_unregister_dev      ## -- Begin function kvm_io_bus_unregister_dev
	.p2align	4, 0x90
_kvm_io_bus_unregister_dev:             ## @kvm_io_bus_unregister_dev
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	8(%r14), %rax
	movl	%r15d, %r15d
	movq	(%rax,%r15,8), %rsi
	movq	%r12, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	$16, %edx
	callq	_memcpy
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:
	movq	8(%r12), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rcx,%rdx,8)
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_4
LBB0_8:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.9:
	negl	%r13d
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_10
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_10
LBB0_5:
	leal	-1(%rax), %esi
	movl	%esi, (%r12)
	cltq
	movq	-8(%rcx,%rax,8), %rax
	movq	%rax, (%rcx,%rdx,8)
LBB0_6:
	movq	8(%r14), %rax
	movq	(%rax,%r15,8), %rdi
	movq	%r12, %rsi
	callq	_rcu_assign_pointer
	movq	%r14, %rdi
	callq	_synchronize_srcu_expedited
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_kfree
	xorl	%r13d, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENOENT,4,2                     ## @ENOENT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_io_bus_unregister_dev      ; -- Begin function kvm_io_bus_unregister_dev
	.p2align	2
_kvm_io_bus_unregister_dev:             ; @kvm_io_bus_unregister_dev
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x23, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x22, [x8, w21, uxtw #3]
	mov	x1, x22
	mov	w2, #16
	bl	_memcpy
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x20]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.2:
	ldr	x10, [x20, #8]
	mov	x12, x9
	mov	x11, x10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11]
	cmp	x13, x23
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x11, x11, #8
	subs	x12, x12, #1
	b.ne	LBB0_3
LBB0_5:
	cbz	w8, LBB0_9
; %bb.6:
	neg	w19, w8
	mov	x0, x20
	bl	_kfree
	b	LBB0_10
LBB0_7:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_10
LBB0_8:
	sub	w8, w9, #1
	str	w8, [x20]
	ldr	x8, [x10, w8, sxtw #3]
	str	x8, [x11]
LBB0_9:
	mov	w8, w21
	ldr	x9, [x19, #8]
	ldr	x0, [x9, x8, lsl #3]
	mov	x1, x20
	bl	_rcu_assign_pointer
	mov	x0, x19
	bl	_synchronize_srcu_expedited
	mov	x0, x22
	bl	_kfree
	mov	w19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENOENT,4,2                     ; @ENOENT
.subsections_via_symbols
