	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_io_bus_register_dev        ## -- Begin function kvm_io_bus_register_dev
	.p2align	4, 0x90
_kvm_io_bus_register_dev:               ## @kvm_io_bus_register_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	8(%rdi), %rax
	movl	%esi, %r13d
	movq	(%rax,%r13,8), %r12
	movl	(%r12), %eax
	movq	_NR_IOBUS_DEVS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jge	LBB0_1
## %bb.3:
	movq	%rdx, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	$16, %edx
	callq	_memcpy
	movq	8(%rbx), %rax
	movslq	(%rbx), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rbx)
	movq	%r15, (%rax,%rcx,8)
	movq	8(%r14), %rax
	movq	(%rax,%r13,8), %rdi
	movq	%rbx, %rsi
	callq	_rcu_assign_pointer
	movq	%r14, %rdi
	callq	_synchronize_srcu_expedited
	movq	%r12, %rdi
	callq	_kfree
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOSPC@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_IOBUS_DEVS,4,2              ## @NR_IOBUS_DEVS
	.comm	_ENOSPC,4,2                     ## @ENOSPC
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_io_bus_register_dev        ; -- Begin function kvm_io_bus_register_dev
	.p2align	2
_kvm_io_bus_register_dev:               ; @kvm_io_bus_register_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
	ldr	x8, [x0, #8]
	ldr	x19, [x8, w1, uxtw #3]
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _NR_IOBUS_DEVS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NR_IOBUS_DEVS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ge	LBB0_3
; %bb.1:
	mov	x21, x2
	mov	x23, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_kzalloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	mov	w23, w23
	mov	x1, x19
	mov	w2, #16
	bl	_memcpy
	ldr	x8, [x22, #8]
	ldrsw	x9, [x22]
	add	w10, w9, #1
	str	w10, [x22]
	str	x21, [x8, x9, lsl #3]
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x23, lsl #3]
	mov	x1, x22
	bl	_rcu_assign_pointer
	mov	x0, x20
	bl	_synchronize_srcu_expedited
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _ENOSPC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOSPC@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_IOBUS_DEVS,4,2              ; @NR_IOBUS_DEVS
	.comm	_ENOSPC,4,2                     ; @ENOSPC
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
