	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ioapic_service
_ioapic_service:                        ## @ioapic_service
	.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
	movq	(%rdi), %r14
	movl	%esi, %ebx
	shlq	$4, %rbx
	movl	$-1, %eax
	cmpl	$0, 12(%r14,%rbx)
	je	LBB0_1
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	callq	_ioapic_deliver
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	(%r14,%rbx), %rcx
	movq	_IOAPIC_LEVEL_TRIG@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.4:
	movl	$1, 8(%r14,%rbx)
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_IOAPIC_LEVEL_TRIG,8,3          ## @IOAPIC_LEVEL_TRIG
	.no_dead_strip	_ioapic_service
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ioapic_service
_ioapic_service:                        ; @ioapic_service
	.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	x20, [x0]
	add	x8, x20, w1, uxtw #4
	ldr	w8, [x8, #12]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w0, #-1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x1
	bl	_ioapic_deliver
	cbz	w0, LBB0_2
; %bb.4:
	mov	w8, w19
	lsl	x9, x8, #4
	ldr	x9, [x20, x9]
Lloh0:
	adrp	x10, _IOAPIC_LEVEL_TRIG@GOTPAGE
Lloh1:
	ldr	x10, [x10, _IOAPIC_LEVEL_TRIG@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.5:
	add	x8, x20, x8, lsl #4
	mov	w9, #1
	str	w9, [x8, #8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IOAPIC_LEVEL_TRIG,8,3          ; @IOAPIC_LEVEL_TRIG
	.no_dead_strip	_ioapic_service
.subsections_via_symbols
