	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_kvm_create_pic                 ## -- Begin function kvm_create_pic
	.p2align	4, 0x90
_kvm_create_pic:                        ## @kvm_create_pic
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	addq	$40, %rdi
	callq	_spin_lock_init
	movq	%r14, 32(%rbx)
	movq	8(%rbx), %rax
	movl	$248, (%rax)
	movl	$222, 16(%rax)
	movq	_pic_irq_request@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rbx)
	movq	%r14, 16(%rbx)
	movq	%rbx, 8(%rax)
	movq	%rbx, 24(%rax)
	movl	$255, 4(%rax)
	movl	$255, 20(%rax)
	movq	_picdev_ops@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_kvm_iodevice_init
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_KVM_PIO_BUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_kvm_io_bus_register_dev
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_mutex_unlock
	testl	%r15d, %r15d
	jns	LBB0_4
## %bb.2:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_3:
	xorl	%ebx, %ebx
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_pic_irq_request,4,2            ## @pic_irq_request
	.comm	_picdev_ops,4,2                 ## @picdev_ops
	.comm	_KVM_PIO_BUS,4,2                ## @KVM_PIO_BUS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function kvm_create_pic
lCPI0_0:
	.long	248                             ; 0xf8
	.long	255                             ; 0xff
lCPI0_1:
	.long	222                             ; 0xde
	.long	255                             ; 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_kvm_create_pic
	.p2align	2
_kvm_create_pic:                        ; @kvm_create_pic
	.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	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
	add	x0, x19, #40
	bl	_spin_lock_init
	str	x20, [x19, #32]
	ldr	x8, [x19, #8]
	str	x20, [x19, #16]
	str	x19, [x8, #8]
	str	x19, [x8, #24]
Lloh3:
	adrp	x9, lCPI0_0@PAGE
Lloh4:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
Lloh5:
	adrp	x9, _pic_irq_request@GOTPAGE
Lloh6:
	ldr	x9, [x9, _pic_irq_request@GOTPAGEOFF]
	str	d0, [x8]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x19, #24]
Lloh8:
	adrp	x9, lCPI0_1@PAGE
Lloh9:
	ldr	d0, [x9, lCPI0_1@PAGEOFF]
	str	d0, [x8, #16]
Lloh10:
	adrp	x1, _picdev_ops@GOTPAGE
Lloh11:
	ldr	x1, [x1, _picdev_ops@GOTPAGEOFF]
	mov	x0, x19
	bl	_kvm_iodevice_init
	mov	x0, x20
	bl	_mutex_lock
Lloh12:
	adrp	x8, _KVM_PIO_BUS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KVM_PIO_BUS@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_kvm_io_bus_register_dev
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	tbz	w21, #31, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_kfree
	mov	x19, #0
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_pic_irq_request,4,2            ; @pic_irq_request
	.comm	_picdev_ops,4,2                 ; @picdev_ops
	.comm	_KVM_PIO_BUS,4,2                ; @KVM_PIO_BUS
.subsections_via_symbols
