	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sedlbauer_interrupt_ipac
_sedlbauer_interrupt_ipac:              ## @sedlbauer_interrupt_ipac
	.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
	leaq	4(%rsi), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movl	8(%r12), %esi
	movl	12(%r12), %edi
	movq	_IPAC_ISTA@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	callq	_readreg
	movl	%eax, %ebx
	movl	$-5, %eax
	movq	_L1_DEB_IPAC@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %r15d
	movl	(%r14), %eax
	testl	%eax, (%r12)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_debugl1
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	$15, %bl
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	12(%r12), %edi
	movl	16(%r12), %esi
	movq	_HSCX_ISTA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	addl	$64, %edx
	callq	_readreg
	movl	%ebx, %ecx
	andl	$1, %ecx
	movl	%ebx, %esi
	shrl	%esi
	movl	%esi, %edx
	andl	$2, %edx
	orl	%ecx, %edx
	andl	$4, %esi
	orl	%edx, %esi
	orl	%eax, %esi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_hscx_int_main
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	$32, %bl
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r12), %esi
	movl	12(%r12), %edi
	movq	_ISAC_ISTA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$128, %eax
	orl	%eax, %edx
	callq	_readreg
	andl	$254, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_isac_interrupt
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	$16, %bl
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_isac_interrupt
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%r12), %esi
	movl	12(%r12), %edi
	movl	(%r13), %edx
	callq	_readreg
	movl	%eax, %ebx
	testb	$63, %bl
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r15), %eax
	testl	%r15d, %r15d
	jne	LBB0_1
LBB0_13:
	testl	%r15d, %r15d
	jne	LBB0_16
## %bb.14:
	movq	_L1_DEB_ISAC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_16
## %bb.15:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_debugl1
LBB0_16:
	movl	8(%r12), %esi
	movl	12(%r12), %edi
	movq	_IPAC_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movl	$255, %ecx
	callq	_writereg
	movl	8(%r12), %esi
	movl	12(%r12), %edi
	movl	(%rbx), %edx
	movl	$192, %ecx
	callq	_writereg
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	movq	_IRQ_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	_IPAC_ISTA,4,2                  ## @IPAC_ISTA
	.comm	_L1_DEB_IPAC,4,2                ## @L1_DEB_IPAC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IPAC ISTA %02X"

	.comm	_HSCX_ISTA,4,2                  ## @HSCX_ISTA
	.comm	_ISAC_ISTA,4,2                  ## @ISAC_ISTA
	.comm	_L1_DEB_ISAC,4,2                ## @L1_DEB_ISAC
L_.str.1:                               ## @.str.1
	.asciz	"Sedlbauer IRQ LOOP"

	.comm	_IPAC_MASK,4,2                  ## @IPAC_MASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_sedlbauer_interrupt_ipac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sedlbauer_interrupt_ipac
_sedlbauer_interrupt_ipac:              ; @sedlbauer_interrupt_ipac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	add	x19, x1, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldp	w1, w0, [x20, #8]
Lloh0:
	adrp	x23, _IPAC_ISTA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IPAC_ISTA@GOTPAGEOFF]
	ldr	w2, [x23]
	bl	_readreg
	mov	x22, x0
	mov	w8, #-5
Lloh2:
	adrp	x24, _L1_DEB_IPAC@GOTPAGE
Lloh3:
	ldr	x24, [x24, _L1_DEB_IPAC@GOTPAGEOFF]
Lloh4:
	adrp	x25, _ISAC_ISTA@GOTPAGE
Lloh5:
	ldr	x25, [x25, _ISAC_ISTA@GOTPAGEOFF]
Lloh6:
	adrp	x26, _HSCX_ISTA@GOTPAGE
Lloh7:
	ldr	x26, [x26, _HSCX_ISTA@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w1, w0, [x20, #8]
	ldr	w2, [x23]
	bl	_readreg
	mov	x22, x0
	and	w9, w0, #0x3f
	add	w8, w27, #1
	cmp	w9, #0
	ccmp	w27, #0, #4, ne
	b.eq	LBB0_12
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x27, x8
	ldr	w8, [x20]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	str	x22, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_debugl1
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	tst	w22, #0xf
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w0, w1, [x20, #12]
	ldr	w8, [x26]
	add	w2, w8, #64
	bl	_readreg
	lsr	w8, w22, #1
	and	w9, w8, #0x2
	and	w8, w8, #0x4
	bfxil	w9, w22, #0, #1
	orr	w8, w9, w8
	orr	w1, w8, w0
	cbz	w1, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_hscx_int_main
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	tbz	w22, #5, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w1, w0, [x20, #8]
	ldr	w8, [x25]
	orr	w2, w8, #0x80
	bl	_readreg
	ands	w1, w0, #0xfe
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	bl	_isac_interrupt
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	tbz	w22, #4, LBB0_1
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x20
	mov	w1, #1
	bl	_isac_interrupt
	b	LBB0_1
LBB0_12:
	cbnz	w27, LBB0_15
; %bb.13:
	ldr	w8, [x20]
Lloh10:
	adrp	x9, _L1_DEB_ISAC@GOTPAGE
Lloh11:
	ldr	x9, [x9, _L1_DEB_ISAC@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_debugl1
LBB0_15:
	ldp	w1, w0, [x20, #8]
Lloh15:
	adrp	x21, _IPAC_MASK@GOTPAGE
Lloh16:
	ldr	x21, [x21, _IPAC_MASK@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	w3, #255
	bl	_writereg
	ldp	w1, w0, [x20, #8]
	ldr	w2, [x21]
	mov	w3, #192
	bl	_writereg
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh17:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_IPAC_ISTA,4,2                  ; @IPAC_ISTA
	.comm	_L1_DEB_IPAC,4,2                ; @L1_DEB_IPAC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IPAC ISTA %02X"

	.comm	_HSCX_ISTA,4,2                  ; @HSCX_ISTA
	.comm	_ISAC_ISTA,4,2                  ; @ISAC_ISTA
	.comm	_L1_DEB_ISAC,4,2                ; @L1_DEB_ISAC
l_.str.1:                               ; @.str.1
	.asciz	"Sedlbauer IRQ LOOP"

	.comm	_IPAC_MASK,4,2                  ; @IPAC_MASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_sedlbauer_interrupt_ipac
.subsections_via_symbols
