	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avm_pcipnp_interrupt
_avm_pcipnp_interrupt:                  ## @avm_pcipnp_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r14), %rdi
	addq	$2, %rdi
	callq	_inb
	movl	%eax, %ebx
	movq	_AVM_STATUS0_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	%ebx, %ecx
	notl	%ecx
	testl	%ecx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_7
LBB0_2:
	movq	_AVM_STATUS0_IRQ_ISAC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_ISAC_ISTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ReadISAC
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_isac_interrupt
LBB0_4:
	movq	_AVM_STATUS0_IRQ_HDLC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	_HDLC_irq_main
LBB0_6:
	movq	_ISAC_MASK@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$255, %edx
	callq	_WriteISAC
	movl	(%rbx), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_WriteISAC
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%rbx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVM_STATUS0_IRQ_MASK,4,2       ## @AVM_STATUS0_IRQ_MASK
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_AVM_STATUS0_IRQ_ISAC,4,2       ## @AVM_STATUS0_IRQ_ISAC
	.comm	_ISAC_ISTA,4,2                  ## @ISAC_ISTA
	.comm	_AVM_STATUS0_IRQ_HDLC,4,2       ## @AVM_STATUS0_IRQ_HDLC
	.comm	_ISAC_MASK,4,2                  ## @ISAC_MASK
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_avm_pcipnp_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avm_pcipnp_interrupt
_avm_pcipnp_interrupt:                  ; @avm_pcipnp_interrupt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x0, x1
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
	add	x0, x8, #2
	bl	_inb
Lloh0:
	adrp	x8, _AVM_STATUS0_IRQ_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bics	wzr, w8, w0
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	mov	x20, x0
Lloh5:
	adrp	x8, _AVM_STATUS0_IRQ_ISAC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_ISAC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _ISAC_ISTA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ISAC_ISTA@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ReadISAC
	mov	x1, x0
	mov	x0, x19
	bl	_isac_interrupt
LBB0_4:
Lloh11:
	adrp	x8, _AVM_STATUS0_IRQ_HDLC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_HDLC@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_HDLC_irq_main
LBB0_6:
Lloh14:
	adrp	x20, _ISAC_MASK@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ISAC_MASK@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #255
	bl	_WriteISAC
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_WriteISAC
Lloh16:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_AVM_STATUS0_IRQ_MASK,4,2       ; @AVM_STATUS0_IRQ_MASK
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_AVM_STATUS0_IRQ_ISAC,4,2       ; @AVM_STATUS0_IRQ_ISAC
	.comm	_ISAC_ISTA,4,2                  ; @ISAC_ISTA
	.comm	_AVM_STATUS0_IRQ_HDLC,4,2       ; @AVM_STATUS0_IRQ_HDLC
	.comm	_ISAC_MASK,4,2                  ; @ISAC_MASK
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_avm_pcipnp_interrupt
.subsections_via_symbols
