	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avm_fritz_interrupt
_avm_fritz_interrupt:                   ## @avm_fritz_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_spin_lock
	movq	16(%rbx), %rdi
	addq	$2, %rdi
	callq	_inb
	movl	%eax, %r14d
	movl	12(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	callq	_pr_debug
	movq	_AVM_STATUS0_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	%r14d, %ecx
	notl	%ecx
	testl	%ecx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
	jmp	LBB0_6
LBB0_2:
	incl	8(%rbx)
	movq	_AVM_STATUS0_IRQ_ISAC@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_ISAC_ISTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ReadISAC_V1
	leaq	4(%rbx), %rdi
	movl	%eax, %esi
	callq	_mISDNisac_irq
LBB0_4:
	movq	_AVM_STATUS0_IRQ_HDLC@GOTPCREL(%rip), %rax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	testl	%r14d, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_HDLC_irq_main
LBB0_6:
	movq	%rbx, %rdi
	callq	_spin_unlock
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: irq stat0 %x\n"

	.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	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_avm_fritz_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avm_fritz_interrupt
_avm_fritz_interrupt:                   ; @avm_fritz_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
	ldr	x8, [x19, #16]
	add	x0, x8, #2
	bl	_inb
	mov	x20, x0
	ldr	w1, [x19, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_pr_debug
Lloh2:
	adrp	x8, _AVM_STATUS0_IRQ_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bics	wzr, w8, w20
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh6:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
Lloh7:
	adrp	x8, _AVM_STATUS0_IRQ_ISAC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_ISAC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_4
; %bb.3:
Lloh10:
	adrp	x8, _ISAC_ISTA@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ISAC_ISTA@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ReadISAC_V1
	mov	x1, x0
	add	x0, x19, #4
	bl	_mISDNisac_irq
LBB0_4:
Lloh13:
	adrp	x8, _AVM_STATUS0_IRQ_HDLC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_HDLC@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_HDLC_irq_main
LBB0_6:
Lloh16:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: irq stat0 %x\n"

	.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	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_avm_fritz_interrupt
.subsections_via_symbols
