	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function a10_intr
_a10_intr:                              ## @a10_intr
	.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
	movq	%rdi, %r14
	callq	_a10_pending_irq
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.1:
	movq	_A10_INTR_MAX_NIRQS@GOTPCREL(%rip), %r12
	cmpl	(%r12), %ebx
	jg	LBB0_7
## %bb.2:
	movq	_curthread@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rdi
	shlq	$2, %rdi
	addq	8(%r14), %rdi
	movq	(%r13), %rax
	movl	(%rax), %esi
	callq	_intr_isrc_dispatch
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_a10_intr_mask
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_a10_intr_eoi
	movl	(%r14), %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_device_printf
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_arm_irq_memory_barrier
	movq	%r14, %rdi
	callq	_a10_pending_irq
	cmpl	$-1, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %ebx
	cmpl	(%r12), %eax
	jle	LBB0_3
LBB0_7:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_device_printf
LBB0_8:
	movq	_FILTER_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A10_INTR_MAX_NIRQS,4,2         ## @A10_INTR_MAX_NIRQS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Spurious interrupt %d\n"

	.comm	_FILTER_HANDLED,4,2             ## @FILTER_HANDLED
	.comm	_curthread,8,3                  ## @curthread
L_.str.1:                               ## @.str.1
	.asciz	"Stray interrupt %d disabled\n"

	.no_dead_strip	_a10_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function a10_intr
_a10_intr:                              ; @a10_intr
	.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, x0
	bl	_a10_pending_irq
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.1:
Lloh0:
	adrp	x22, _A10_INTR_MAX_NIRQS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _A10_INTR_MAX_NIRQS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w20, w8
	b.gt	LBB0_7
; %bb.2:
Lloh2:
	adrp	x23, _curthread@GOTPAGE
Lloh3:
	ldr	x23, [x23, _curthread@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str.1@PAGE
Lloh5:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, w20, sxtw #2
	ldr	x8, [x23]
	ldr	w1, [x8]
	bl	_intr_isrc_dispatch
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_a10_intr_mask
	mov	x0, x19
	mov	x1, x20
	bl	_a10_intr_eoi
	ldr	w0, [x19]
	mov	x1, x21
	mov	x2, x20
	bl	_device_printf
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_arm_irq_memory_barrier
	mov	x0, x19
	bl	_a10_pending_irq
	cmn	w0, #1
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x0
	ldr	w8, [x22]
	cmp	w0, w8
	b.le	LBB0_3
LBB0_7:
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_device_printf
LBB0_8:
Lloh8:
	adrp	x8, _FILTER_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FILTER_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_A10_INTR_MAX_NIRQS,4,2         ; @A10_INTR_MAX_NIRQS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Spurious interrupt %d\n"

	.comm	_FILTER_HANDLED,4,2             ; @FILTER_HANDLED
	.comm	_curthread,8,3                  ; @curthread
l_.str.1:                               ; @.str.1
	.asciz	"Stray interrupt %d disabled\n"

	.no_dead_strip	_a10_intr
.subsections_via_symbols
