	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avm_a1_interrupt
_avm_a1_interrupt:                      ## @avm_a1_interrupt
	.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	20(%r12), %edi
	callq	_bytein
	movl	%eax, %ebx
	andl	$15, %eax
	cmpl	$7, %eax
	jne	LBB0_1
LBB0_13:
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movq	_HSCX_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$255, %edx
	callq	_writereg
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	movl	(%r14), %esi
	movl	$255, %edx
	callq	_writereg
	movl	16(%r12), %edi
	movq	_ISAC_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$255, %edx
	callq	_writereg
	movl	16(%r12), %edi
	movl	(%rbx), %esi
	xorl	%edx, %edx
	callq	_writereg
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	xorl	%edx, %edx
	callq	_writereg
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	movl	(%r14), %esi
	xorl	%edx, %edx
	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
LBB0_1:
	movq	_AVM_A1_STAT_TIMER@GOTPCREL(%rip), %r13
	movq	_AVM_A1_STAT_HSCX@GOTPCREL(%rip), %r14
	movq	_AVM_A1_STAT_ISAC@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%r12), %edi
	callq	_bytein
	movl	%eax, %ebx
	andl	$15, %eax
	cmpl	$7, %eax
	je	LBB0_13
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, (%r13)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_L1_DEB_INTSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_debugl1
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, (%r14)
	jne	LBB0_9
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	20(%r12), %edi
	movl	$30, %esi
	callq	_byteout
	movl	20(%r12), %edi
	callq	_bytein
	movl	%eax, %ebx
	testl	%ebx, (%r14)
	jne	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	movq	_HSCX_ISTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_readreg
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_hscx_int_main
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, (%r15)
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r12), %edi
	movq	_ISAC_ISTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_readreg
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_isac_interrupt
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_AVM_A1_STAT_TIMER,4,2          ## @AVM_A1_STAT_TIMER
	.comm	_L1_DEB_INTSTAT,4,2             ## @L1_DEB_INTSTAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"avm IntStatus %x"

	.comm	_AVM_A1_STAT_HSCX,4,2           ## @AVM_A1_STAT_HSCX
	.comm	_HSCX_ISTA,4,2                  ## @HSCX_ISTA
	.comm	_AVM_A1_STAT_ISAC,4,2           ## @AVM_A1_STAT_ISAC
	.comm	_ISAC_ISTA,4,2                  ## @ISAC_ISTA
	.comm	_HSCX_MASK,4,2                  ## @HSCX_MASK
	.comm	_ISAC_MASK,4,2                  ## @ISAC_MASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_avm_a1_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avm_a1_interrupt
_avm_a1_interrupt:                      ; @avm_a1_interrupt
	.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	x20, x1
	add	x19, x1, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	w0, [x20, #20]
	bl	_bytein
	and	w8, w0, #0xf
	cmp	w8, #7
	b.ne	LBB0_2
LBB0_1:
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x21, _HSCX_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HSCX_MASK@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #255
	bl	_writereg
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x21]
	mov	w2, #255
	bl	_writereg
	ldr	w0, [x20, #16]
Lloh2:
	adrp	x22, _ISAC_MASK@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ISAC_MASK@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	w2, #255
	bl	_writereg
	ldr	w0, [x20, #16]
	ldr	w1, [x22]
	mov	w2, #0
	bl	_writereg
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_writereg
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x21]
	mov	w2, #0
	bl	_writereg
	mov	x0, x19
	bl	_spin_unlock_irqrestore
Lloh4:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	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
	ret
LBB0_2:
	mov	x22, x0
Lloh7:
	adrp	x23, _AVM_A1_STAT_TIMER@GOTPAGE
Lloh8:
	ldr	x23, [x23, _AVM_A1_STAT_TIMER@GOTPAGEOFF]
Lloh9:
	adrp	x24, _AVM_A1_STAT_HSCX@GOTPAGE
Lloh10:
	ldr	x24, [x24, _AVM_A1_STAT_HSCX@GOTPAGEOFF]
Lloh11:
	adrp	x25, _HSCX_ISTA@GOTPAGE
Lloh12:
	ldr	x25, [x25, _HSCX_ISTA@GOTPAGEOFF]
Lloh13:
	adrp	x26, _AVM_A1_STAT_ISAC@GOTPAGE
Lloh14:
	ldr	x26, [x26, _AVM_A1_STAT_ISAC@GOTPAGEOFF]
Lloh15:
	adrp	x27, _ISAC_ISTA@GOTPAGE
Lloh16:
	ldr	x27, [x27, _ISAC_ISTA@GOTPAGEOFF]
Lloh17:
	adrp	x21, l_.str@PAGE
Lloh18:
	add	x21, x21, l_.str@PAGEOFF
Lloh19:
	adrp	x28, _L1_DEB_INTSTAT@GOTPAGE
Lloh20:
	ldr	x28, [x28, _L1_DEB_INTSTAT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #20]
	bl	_bytein
	mov	x22, x0
	and	w8, w0, #0xf
	cmp	w8, #7
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	tst	w8, w22
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	ldr	w9, [x28]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_debugl1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #20]
	mov	w1, #30
	bl	_byteout
	ldr	w0, [x20, #20]
	bl	_bytein
	mov	x22, x0
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x24]
	tst	w8, w22
	b.ne	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x8, #4]
	ldr	w1, [x25]
	bl	_readreg
	cbz	w0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_hscx_int_main
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
	tst	w8, w22
	b.ne	LBB0_3
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #16]
	ldr	w1, [x27]
	bl	_readreg
	cbz	w0, LBB0_3
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_isac_interrupt
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AVM_A1_STAT_TIMER,4,2          ; @AVM_A1_STAT_TIMER
	.comm	_L1_DEB_INTSTAT,4,2             ; @L1_DEB_INTSTAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"avm IntStatus %x"

	.comm	_AVM_A1_STAT_HSCX,4,2           ; @AVM_A1_STAT_HSCX
	.comm	_HSCX_ISTA,4,2                  ; @HSCX_ISTA
	.comm	_AVM_A1_STAT_ISAC,4,2           ; @AVM_A1_STAT_ISAC
	.comm	_ISAC_ISTA,4,2                  ; @ISAC_ISTA
	.comm	_HSCX_MASK,4,2                  ; @HSCX_MASK
	.comm	_ISAC_MASK,4,2                  ; @ISAC_MASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_avm_a1_interrupt
.subsections_via_symbols
