	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_intr                       ## -- Begin function cpu_intr
	.p2align	4, 0x90
_cpu_intr:                              ## @cpu_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
	xorl	%eax, %eax
	callq	_critical_enter
	xorl	%eax, %eax
	callq	_nlm_read_c0_eirr
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_nlm_read_c0_eimr
	andl	%ebx, %eax
	je	LBB0_9
## %bb.1:
	movq	_IRQ_TIMER@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	btl	%ecx, %eax
	jae	LBB0_2
## %bb.10:
	movq	_xlp_interrupts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rcx,8), %rdi
	movq	%r14, %rsi
	callq	_intr_event_handle
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_critical_exit                  ## TAILCALL
LBB0_2:
	movslq	%eax, %r15
	movl	$31, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$-1, %rbx
	jae	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %r12d
	movl	%ebx, %ecx
	shlq	%cl, %r12
	btq	%rbx, %r15
	jae	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_xlp_interrupts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%rbx,8), %r13
	movl	%ebx, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_mips_intr_counters@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_mips_intrcnt_inc
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_nlm_write_c0_eirr
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_intr_event_handle
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_printf
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_TIMER,4,2                  ## @IRQ_TIMER
	.comm	_xlp_interrupts,8,3             ## @xlp_interrupts
	.comm	_mips_intr_counters,8,3         ## @mips_intr_counters
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stray interrupt %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_intr                       ; -- Begin function cpu_intr
	.p2align	2
_cpu_intr:                              ; @cpu_intr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_critical_enter
	bl	_nlm_read_c0_eirr
	mov	x20, x0
	bl	_nlm_read_c0_eimr
	ands	w8, w0, w20
	b.eq	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, _IRQ_TIMER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IRQ_TIMER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsr	w10, w8, w9
	tbz	w10, #0, LBB0_4
; %bb.2:
	sxtw	x8, w9
Lloh3:
	adrp	x9, _xlp_interrupts@GOTPAGE
Lloh4:
	ldr	x9, [x9, _xlp_interrupts@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x0, [x9, x8, lsl #3]
	mov	x1, x19
	bl	_intr_event_handle
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_critical_exit
LBB0_4:
	sxtw	x24, w8
	mov	w20, #31
	mov	w25, #1
Lloh6:
	adrp	x26, _xlp_interrupts@GOTPAGE
Lloh7:
	ldr	x26, [x26, _xlp_interrupts@GOTPAGEOFF]
Lloh8:
	adrp	x27, _mips_intr_counters@GOTPAGE
Lloh9:
	ldr	x27, [x27, _mips_intr_counters@GOTPAGEOFF]
Lloh10:
	adrp	x21, l_.str@PAGE
Lloh11:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x20, x20, #1
	cmn	x20, #1
	b.eq	LBB0_3
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x22, x25, x20
	tst	x22, x24
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x26]
	ldr	x23, [x8, x20, lsl #3]
	and	w8, w20, #0xfffffffe
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x27]
	ldr	w0, [x8, x20, lsl #2]
	bl	_mips_intrcnt_inc
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	bl	_nlm_write_c0_eirr
	mov	x0, x23
	mov	x1, x19
	bl	_intr_event_handle
	cbz	x0, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_printf
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_TIMER,4,2                  ; @IRQ_TIMER
	.comm	_xlp_interrupts,8,3             ; @xlp_interrupts
	.comm	_mips_intr_counters,8,3         ; @mips_intr_counters
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stray interrupt %d\n"

.subsections_via_symbols
