	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioapic_deliver
_ioapic_deliver:                        ## @ioapic_deliver
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movslq	%esi, %rbx
	shlq	$5, %rbx
	movl	24(%r15,%rbx), %esi
	movq	8(%r15,%rbx), %rdx
	movl	16(%r15,%rbx), %r8d
	movl	(%r15,%rbx), %ecx
	movl	4(%r15,%rbx), %r9d
	leaq	L_.str(%rip), %rdi
	callq	_ioapic_debug
	movl	20(%r15,%rbx), %eax
	movl	%eax, -56(%rbp)
	movl	16(%r15,%rbx), %eax
	movl	%eax, -28(%rbp)
	movq	8(%r15,%rbx), %rax
	movq	%rax, -48(%rbp)
	movl	4(%r15,%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	(%r15,%rbx), %eax
	shll	$8, %eax
	movl	%eax, -64(%rbp)
	movl	$1, -60(%rbp)
	movq	$0, -40(%rbp)
	movq	(%r14), %rdi
	leaq	-64(%rbp), %rdx
	xorl	%esi, %esi
	callq	_kvm_irq_delivery_to_apic
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dest=%x dest_mode=%x delivery_mode=%x vector=%x trig_mode=%x\n"

	.no_dead_strip	_ioapic_deliver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioapic_deliver
_ioapic_deliver:                        ; @ioapic_deliver
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	sxtw	x9, w1
	add	x20, x8, x9, lsl #5
	ldr	w1, [x20, #24]
	ldr	x2, [x20, #8]
	ldr	w4, [x20, #16]
	ldp	w3, w5, [x20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ioapic_debug
	ldr	w8, [x20, #20]
	str	w8, [sp, #16]
	ldr	w8, [x20, #16]
	str	w8, [sp, #44]
	ldr	x8, [x20, #8]
	str	x8, [sp, #24]
	ldr	w8, [x20, #4]
	str	w8, [sp, #40]
	ldr	w8, [x20]
	lsl	w8, w8, #8
	mov	w9, #1
	stp	w8, w9, [sp, #8]
	str	xzr, [sp, #32]
	ldr	x0, [x19]
	add	x2, sp, #8
	mov	x1, #0
	bl	_kvm_irq_delivery_to_apic
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dest=%x dest_mode=%x delivery_mode=%x vector=%x trig_mode=%x\n"

	.no_dead_strip	_ioapic_deliver
.subsections_via_symbols
