	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gazel_interrupt_ipac
_gazel_interrupt_ipac:                  ## @gazel_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, %r14
	movq	%rsi, %rdi
	callq	_spin_lock_irqsave
	movq	_IPAC_ISTA@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	addq	$-128, %rsi
	movq	%r14, %rdi
	callq	_ReadISAC
	movl	%eax, %ebx
	movl	$1, %r12d
	movq	_MAXCOUNT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testb	$15, %bl
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_HSCX_ISTA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ReadHSCX
	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_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_hscx_int_main
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	$32, %bl
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_ISAC_ISTA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_ReadISAC
	andl	$254, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_isac_interrupt
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	testb	$16, %bl
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_isac_interrupt
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rsi
	addq	$-128, %rsi
	movq	%r14, %rdi
	callq	_ReadISAC
	movl	%eax, %ebx
	testb	$63, %bl
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%r12), %eax
	cmpl	(%r13), %r12d
	movl	%eax, %r12d
	jl	LBB0_1
LBB0_11:
	movq	_IPAC_MASK@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	$-128, %rsi
	movq	%r14, %rdi
	movl	$255, %edx
	callq	_WriteISAC
	movq	(%rbx), %rsi
	addq	$-128, %rsi
	movq	%r14, %rdi
	movl	$192, %edx
	callq	_WriteISAC
	movq	%r14, %rdi
	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,8,3                  ## @IPAC_ISTA
	.comm	_HSCX_ISTA,4,2                  ## @HSCX_ISTA
	.comm	_ISAC_ISTA,8,3                  ## @ISAC_ISTA
	.comm	_MAXCOUNT,4,2                   ## @MAXCOUNT
	.comm	_IPAC_MASK,8,3                  ## @IPAC_MASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_gazel_interrupt_ipac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gazel_interrupt_ipac
_gazel_interrupt_ipac:                  ; @gazel_interrupt_ipac
	.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
	mov	x0, x1
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x21, _IPAC_ISTA@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IPAC_ISTA@GOTPAGEOFF]
	ldr	x8, [x21]
	sub	x1, x8, #128
	mov	x0, x19
	bl	_ReadISAC
	mov	x20, x0
	mov	w22, #1
Lloh2:
	adrp	x23, _MAXCOUNT@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MAXCOUNT@GOTPAGEOFF]
Lloh4:
	adrp	x24, _ISAC_ISTA@GOTPAGE
Lloh5:
	ldr	x24, [x24, _ISAC_ISTA@GOTPAGEOFF]
Lloh6:
	adrp	x25, _HSCX_ISTA@GOTPAGE
Lloh7:
	ldr	x25, [x25, _HSCX_ISTA@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	sub	x1, x8, #128
	mov	x0, x19
	bl	_ReadISAC
	mov	x20, x0
	and	w8, w0, #0x3f
	ldr	w9, [x23]
	cmp	w8, #0
	ccmp	w22, w9, #0, ne
	add	w22, w22, #1
	b.ge	LBB0_10
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	tst	w20, #0xf
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	w1, #1
	bl	_ReadHSCX
	lsr	w8, w20, #1
	and	w9, w8, #0x2
	and	w8, w8, #0x4
	bfxil	w9, w20, #0, #1
	orr	w8, w9, w8
	orr	w1, w8, w0
	cbz	w1, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_hscx_int_main
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	tbz	w20, #5, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x1, [x24]
	mov	x0, x19
	bl	_ReadISAC
	ands	w1, w0, #0xfe
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_isac_interrupt
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	tbz	w20, #4, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	mov	w1, #1
	bl	_isac_interrupt
	b	LBB0_1
LBB0_10:
Lloh8:
	adrp	x20, _IPAC_MASK@GOTPAGE
Lloh9:
	ldr	x20, [x20, _IPAC_MASK@GOTPAGEOFF]
	ldr	x8, [x20]
	sub	x1, x8, #128
	mov	x0, x19
	mov	w2, #255
	bl	_WriteISAC
	ldr	x8, [x20]
	sub	x1, x8, #128
	mov	x0, x19
	mov	w2, #192
	bl	_WriteISAC
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh12:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IPAC_ISTA,8,3                  ; @IPAC_ISTA
	.comm	_HSCX_ISTA,4,2                  ; @HSCX_ISTA
	.comm	_ISAC_ISTA,8,3                  ; @ISAC_ISTA
	.comm	_MAXCOUNT,4,2                   ; @MAXCOUNT
	.comm	_IPAC_MASK,8,3                  ; @IPAC_MASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_gazel_interrupt_ipac
.subsections_via_symbols
