	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ack_apic_level
_ack_apic_level:                        ## @ack_apic_level
	.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
	movl	%edi, %r14d
	callq	_irq_to_desc
	movq	%rax, -32(%rbp)
	leaq	-32(%rbp), %rdi
	callq	_irq_complete_move
	movq	-32(%rbp), %rax
	movq	8(%rax), %rax
	movl	(%rax), %ebx
	movq	_APIC_TMR@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	sarl	%ecx
	andl	$-16, %ecx
	movslq	%ecx, %rdi
	addq	(%rax), %rdi
	callq	_apic_read
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_ack_APIC_irq
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	cltq
	testq	%rax, %r15
	jne	LBB0_2
## %bb.1:
	movq	_irq_mis_count@GOTPCREL(%rip), %rdi
	callq	_atomic_inc
	movq	-32(%rbp), %rdi
	callq	_eoi_ioapic_irq
LBB0_2:
	xorl	%edi, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	-32(%rbp), %rax
	movq	8(%rax), %rdi
	callq	_io_apic_level_ack_pending
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	%r14d, %edi
	callq	_move_masked_irq
LBB0_5:
	movq	-32(%rbp), %rdi
	callq	_unmask_IO_APIC_irq_desc
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_APIC_TMR,8,3                   ## @APIC_TMR
	.comm	_irq_mis_count,4,2              ## @irq_mis_count
	.comm	_IRQ_MOVE_PENDING,4,2           ## @IRQ_MOVE_PENDING
	.no_dead_strip	_ack_apic_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ack_apic_level
_ack_apic_level:                        ; @ack_apic_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_irq_to_desc
	str	x0, [sp, #8]
	add	x0, sp, #8
	bl	_irq_complete_move
	ldr	x8, [sp, #8]
	ldr	x8, [x8, #8]
	ldr	w21, [x8]
Lloh0:
	adrp	x8, _APIC_TMR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _APIC_TMR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	asr	w9, w21, #1
	and	w9, w9, #0xfffffff0
	add	x0, x8, w9, sxtw
	bl	_apic_read
	mov	x20, x0
	bl	_ack_APIC_irq
	mov	w8, #1
	lsl	w8, w8, w21
	sxtw	x8, w8
	tst	x20, x8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, _irq_mis_count@GOTPAGE
Lloh4:
	ldr	x0, [x0, _irq_mis_count@GOTPAGEOFF]
	bl	_atomic_inc
	ldr	x0, [sp, #8]
	bl	_eoi_ioapic_irq
LBB0_2:
	mov	w0, #0
	bl	_unlikely
	cbz	x0, LBB0_6
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	x0, [x8, #8]
	bl	_io_apic_level_ack_pending
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_move_masked_irq
LBB0_5:
	ldr	x0, [sp, #8]
	bl	_unmask_IO_APIC_irq_desc
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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_APIC_TMR,8,3                   ; @APIC_TMR
	.comm	_irq_mis_count,4,2              ; @irq_mis_count
	.comm	_IRQ_MOVE_PENDING,4,2           ; @IRQ_MOVE_PENDING
	.no_dead_strip	_ack_apic_level
.subsections_via_symbols
