	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _ioapic_eoi_source
__ioapic_eoi_source:                    ## @_ioapic_eoi_source
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_lapic_eoi
	movq	_lapic_eoi_suppression@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.1:
	cmpq	$0, 16(%rbx)
	jne	LBB0_8
## %bb.2:
	movq	(%rbx), %r13
	cmpq	$0, 8(%r13)
	je	LBB0_4
## %bb.3:
	movq	(%r13), %rax
	movq	_IOAPIC_EOIR@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movl	%r13d, (%rax,%rcx)
	jmp	LBB0_8
LBB0_4:
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.5:
	movq	%r13, %rax
	shrq	$32, %rax
	jmp	LBB0_7
LBB0_6:
	movq	_icu_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock_spin
	movl	4(%rbx), %eax
LBB0_7:
	movq	_IOART_TRGRLVL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	notl	%r15d
	andl	%eax, %r15d
	movq	_IOART_TRGREDG@GOTPCREL(%rip), %rax
	movq	_IOART_INTMSET@GOTPCREL(%rip), %rcx
	orl	(%rax), %r15d
	orl	(%rcx), %r15d
	movq	(%r13), %r12
	movl	8(%rbx), %edi
	callq	_IOAPIC_REDTBL_LO
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	callq	_ioapic_write
	movq	(%r13), %r15
	movl	8(%rbx), %edi
	callq	_IOAPIC_REDTBL_LO
	movl	4(%rbx), %edx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ioapic_write
	testl	%r14d, %r14d
	je	LBB0_9
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	_icu_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock_spin                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_lapic_eoi_suppression,4,2      ## @lapic_eoi_suppression
	.comm	_IOAPIC_EOIR,4,2                ## @IOAPIC_EOIR
	.comm	_icu_lock,4,2                   ## @icu_lock
	.comm	_IOART_TRGRLVL,4,2              ## @IOART_TRGRLVL
	.comm	_IOART_TRGREDG,4,2              ## @IOART_TRGREDG
	.comm	_IOART_INTMSET,4,2              ## @IOART_INTMSET
	.no_dead_strip	__ioapic_eoi_source
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _ioapic_eoi_source
__ioapic_eoi_source:                    ; @_ioapic_eoi_source
	.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	x19, x1
	mov	x20, x0
	bl	_lapic_eoi
Lloh0:
	adrp	x8, _lapic_eoi_suppression@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lapic_eoi_suppression@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.1:
	ldr	x8, [x20, #16]
	cbnz	x8, LBB0_8
; %bb.2:
	ldr	x23, [x20]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x8, [x23]
Lloh3:
	adrp	x9, _IOAPIC_EOIR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IOAPIC_EOIR@GOTPAGEOFF]
Lloh5:
	ldrsw	x9, [x9]
	str	w23, [x8, x9]
	b	LBB0_8
LBB0_4:
	cbz	w19, LBB0_6
; %bb.5:
	lsr	x8, x23, #32
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x0, _icu_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _icu_lock@GOTPAGEOFF]
	bl	_mtx_lock_spin
	ldr	w8, [x20, #4]
LBB0_7:
Lloh8:
	adrp	x9, _IOART_TRGRLVL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IOART_TRGRLVL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	bic	w8, w8, w9
Lloh11:
	adrp	x9, _IOART_TRGREDG@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IOART_TRGREDG@GOTPAGEOFF]
Lloh13:
	adrp	x10, _IOART_INTMSET@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IOART_INTMSET@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	ldr	w10, [x10]
	orr	w8, w8, w9
	orr	w21, w8, w10
	ldr	x22, [x23]
	ldr	w0, [x20, #8]
	bl	_IOAPIC_REDTBL_LO
	mov	x1, x0
	mov	x0, x22
	mov	x2, x21
	bl	_ioapic_write
	ldr	x21, [x23]
	ldr	w0, [x20, #8]
	bl	_IOAPIC_REDTBL_LO
	mov	x1, x0
	ldr	w2, [x20, #4]
	mov	x0, x21
	bl	_ioapic_write
	cbz	w19, LBB0_9
LBB0_8:
	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
LBB0_9:
Lloh17:
	adrp	x0, _icu_lock@GOTPAGE
Lloh18:
	ldr	x0, [x0, _icu_lock@GOTPAGEOFF]
	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
	b	_mtx_unlock_spin
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_lapic_eoi_suppression,4,2      ; @lapic_eoi_suppression
	.comm	_IOAPIC_EOIR,4,2                ; @IOAPIC_EOIR
	.comm	_icu_lock,4,2                   ; @icu_lock
	.comm	_IOART_TRGRLVL,4,2              ; @IOART_TRGRLVL
	.comm	_IOART_TRGREDG,4,2              ; @IOART_TRGREDG
	.comm	_IOART_INTMSET,4,2              ; @IOART_INTMSET
	.no_dead_strip	__ioapic_eoi_source
.subsections_via_symbols
