	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm2835_intc_intr
_bcm2835_intc_intr:                     ## @bcm2835_intc_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, %r12
	callq	_bcm2835_intc_active_intr
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.1:
	movq	_curthread@GOTPCREL(%rip), %r14
	leaq	L_.str(%rip), %r15
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_arm_irq_memory_barrier
	movq	%r12, %rdi
	callq	_bcm2835_intc_active_intr
	movl	%eax, %r13d
	cmpl	$-1, %eax
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %rbx
	shlq	$2, %rbx
	movq	8(%r12), %rdi
	addq	%rbx, %rdi
	movq	(%r14), %rax
	movl	(%rax), %esi
	callq	_intr_isrc_dispatch
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	8(%r12), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_bcm_intc_isrc_mask
	movl	(%r12), %edi
	movq	%r15, %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_device_printf
	jmp	LBB0_4
LBB0_5:
	cmpl	$-1, -44(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_8
## %bb.6:
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.7:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	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	_curthread,8,3                  ## @curthread
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Stray irq %u disabled\n"

	.comm	_bootverbose,8,3                ## @bootverbose
L_.str.1:                               ## @.str.1
	.asciz	"Spurious interrupt detected\n"

	.comm	_FILTER_HANDLED,4,2             ## @FILTER_HANDLED
	.no_dead_strip	_bcm2835_intc_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm2835_intc_intr
_bcm2835_intc_intr:                     ; @bcm2835_intc_intr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_bcm2835_intc_active_intr
	mov	x20, x0
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.1:
Lloh0:
	adrp	x23, _curthread@GOTPAGE
Lloh1:
	ldr	x23, [x23, _curthread@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
	mov	x22, x20
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #0
	bl	_arm_irq_memory_barrier
	mov	x0, x19
	bl	_bcm2835_intc_active_intr
	mov	x22, x0
	cmn	w0, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, w22, sxtw #2
	ldr	x8, [x23]
	ldr	w1, [x8]
	bl	_intr_isrc_dispatch
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sxtw	x22, w22
	ldr	x8, [x19, #8]
	add	x1, x8, x22, lsl #2
	mov	x0, x19
	bl	_bcm_intc_isrc_mask
	ldr	w0, [x19]
	str	x22, [sp]
	mov	x1, x21
	bl	_device_printf
	b	LBB0_2
LBB0_5:
	cmn	w20, #1
	b.ne	LBB0_8
; %bb.6:
Lloh4:
	adrp	x8, _bootverbose@GOTPAGE
Lloh5:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w0, [x19]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_device_printf
LBB0_8:
Lloh9:
	adrp	x8, _FILTER_HANDLED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FILTER_HANDLED@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_curthread,8,3                  ; @curthread
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Stray irq %u disabled\n"

	.comm	_bootverbose,8,3                ; @bootverbose
l_.str.1:                               ; @.str.1
	.asciz	"Spurious interrupt detected\n"

	.comm	_FILTER_HANDLED,4,2             ; @FILTER_HANDLED
	.no_dead_strip	_bcm2835_intc_intr
.subsections_via_symbols
