	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function speedfax_irq
_speedfax_irq:                          ## @speedfax_irq
	.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	%rsi, %r12
	movq	_irqloops@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rsi, %rdi
	callq	_spin_lock
	movq	_TIGER_AUX_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%r12), %rdi
	callq	_inb
	movq	_SFAX_TIGER_IRQ_BIT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_2:
	incl	16(%r12)
	movq	_ISAR_IRQBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ReadISAR_IND
	leaq	12(%r12), %r14
	leaq	8(%r12), %r15
	movq	_ISAR_IRQSTA@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %ecx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_mISDNisar_irq
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ISAC_ISTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ReadISAC_IND
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mISDNisac_irq
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_ISAR_IRQBIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ReadISAR_IND
	movl	(%r13), %ecx
	testl	%eax, %ecx
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	addl	$-1, %ebx
	jb	LBB0_3
## %bb.9:
	movl	$-1, %ebx
LBB0_10:
	movq	_irqloops@GOTPCREL(%rip), %r13
	movl	(%r13), %r14d
	movl	%r14d, %r15d
	subl	%ebx, %r15d
	jle	LBB0_12
## %bb.11:
	movl	4(%r12), %r14d
	xorl	%eax, %eax
	callq	_smp_processor_id
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_pr_debug
	movl	(%r13), %r14d
LBB0_12:
	testl	%r14d, %r14d
	je	LBB0_15
## %bb.13:
	testl	%ebx, %ebx
	jne	LBB0_15
## %bb.14:
	movl	4(%r12), %r15d
	xorl	%eax, %eax
	callq	_smp_processor_id
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movl	%eax, %ecx
	callq	_pr_notice
LBB0_15:
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_irqloops,4,2                   ## @irqloops
	.comm	_TIGER_AUX_STATUS,8,3           ## @TIGER_AUX_STATUS
	.comm	_SFAX_TIGER_IRQ_BIT,4,2         ## @SFAX_TIGER_IRQ_BIT
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_ISAR_IRQBIT,4,2                ## @ISAR_IRQBIT
	.comm	_ISAR_IRQSTA,4,2                ## @ISAR_IRQSTA
	.comm	_ISAC_ISTA,4,2                  ## @ISAC_ISTA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: %d irqloops cpu%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: %d IRQ LOOP cpu%d\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_speedfax_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function speedfax_irq
_speedfax_irq:                          ; @speedfax_irq
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
Lloh0:
	adrp	x23, _irqloops@GOTPAGE
Lloh1:
	ldr	x23, [x23, _irqloops@GOTPAGEOFF]
	ldr	w22, [x23]
	mov	x0, x1
	bl	_spin_lock
	ldr	x8, [x19, #24]
Lloh2:
	adrp	x9, _TIGER_AUX_STATUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TIGER_AUX_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
Lloh5:
	adrp	x8, _SFAX_TIGER_IRQ_BIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SFAX_TIGER_IRQ_BIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_spin_unlock
Lloh8:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_14
LBB0_2:
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
Lloh10:
	adrp	x24, _ISAR_IRQBIT@GOTPAGE
Lloh11:
	ldr	x24, [x24, _ISAR_IRQBIT@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ReadISAR_IND
	add	x20, x19, #12
	add	x21, x19, #8
Lloh12:
	adrp	x25, _ISAR_IRQSTA@GOTPAGE
Lloh13:
	ldr	x25, [x25, _ISAR_IRQSTA@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh14:
	adrp	x26, _ISAC_ISTA@GOTPAGE
Lloh15:
	ldr	x26, [x26, _ISAC_ISTA@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_mISDNisar_irq
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	bl	_ReadISAC_IND
	cbz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x0
	mov	x0, x21
	bl	_mISDNisac_irq
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	bl	_ReadISAR_IND
	ldr	w8, [x25]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w22, w22, #1
	cmn	w22, #1
	b.ne	LBB0_3
LBB0_9:
	ldr	w20, [x23]
	subs	w21, w20, w22
	b.le	LBB0_11
; %bb.10:
	ldr	w20, [x19, #4]
	bl	_smp_processor_id
	mov	x3, x0
Lloh16:
	adrp	x0, l_.str@PAGE
Lloh17:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_pr_debug
	ldr	w20, [x23]
LBB0_11:
	cmp	w20, #0
	ccmp	w22, #0, #0, ne
	b.ne	LBB0_13
; %bb.12:
	ldr	w21, [x19, #4]
	bl	_smp_processor_id
	mov	x3, x0
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_pr_notice
LBB0_13:
	mov	x0, x19
	bl	_spin_unlock
Lloh20:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_14:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_irqloops,4,2                   ; @irqloops
	.comm	_TIGER_AUX_STATUS,8,3           ; @TIGER_AUX_STATUS
	.comm	_SFAX_TIGER_IRQ_BIT,4,2         ; @SFAX_TIGER_IRQ_BIT
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_ISAR_IRQBIT,4,2                ; @ISAR_IRQBIT
	.comm	_ISAR_IRQSTA,4,2                ; @ISAR_IRQSTA
	.comm	_ISAC_ISTA,4,2                  ; @ISAC_ISTA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %d irqloops cpu%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: %d IRQ LOOP cpu%d\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_speedfax_irq
.subsections_via_symbols
