	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function avm_fritzv2_interrupt
_avm_fritzv2_interrupt:                 ## @avm_fritzv2_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	leaq	4(%rsi), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	8(%r15), %rdi
	addq	$2, %rdi
	callq	_inb
	movl	%eax, %ebx
	movl	16(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_AVM_STATUS0_IRQ_MASK@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_1
## %bb.2:
	incl	24(%r15)
	movq	_AVM_STATUS0_IRQ_HDLC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	_HDLC_irq_main
LBB0_4:
	movq	_AVM_STATUS0_IRQ_ISAC@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_ISACX_ISTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ReadISAC_V2
	leaq	20(%r15), %rdi
	movl	%eax, %esi
	callq	_mISDNisac_irq
LBB0_6:
	movq	_AVM_STATUS0_IRQ_TIMER@GOTPCREL(%rip), %rax
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r12
	testl	%ebx, (%rax)
	je	LBB0_8
## %bb.7:
	movl	16(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_AVM_STATUS0_RES_TIMER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	orl	(%r15), %edi
	movq	8(%r15), %rsi
	addq	$2, %rsi
	callq	_outb
	movl	$1, %edi
	callq	_udelay
	movl	(%r15), %edi
	movq	8(%r15), %rsi
	addq	$2, %rsi
	callq	_outb
	jmp	LBB0_8
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r12
LBB0_8:
	movq	%r14, %rdi
	callq	_spin_unlock
	movl	(%r12), %eax
	popq	%rbx
	popq	%r12
	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_HDLC,4,2       ## @AVM_STATUS0_IRQ_HDLC
	.comm	_AVM_STATUS0_IRQ_ISAC,4,2       ## @AVM_STATUS0_IRQ_ISAC
	.comm	_ISACX_ISTA,4,2                 ## @ISACX_ISTA
	.comm	_AVM_STATUS0_IRQ_TIMER,4,2      ## @AVM_STATUS0_IRQ_TIMER
L_.str.1:                               ## @.str.1
	.asciz	"%s: timer irq\n"

	.comm	_AVM_STATUS0_RES_TIMER,4,2      ## @AVM_STATUS0_RES_TIMER
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_avm_fritzv2_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function avm_fritzv2_interrupt
_avm_fritzv2_interrupt:                 ; @avm_fritzv2_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x1
	add	x19, x1, #4
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x20, #8]
	add	x0, x8, #2
	bl	_inb
	mov	x21, x0
	ldr	w1, [x20, #16]
	str	x21, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh2:
	adrp	x8, _AVM_STATUS0_IRQ_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.1:
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
Lloh5:
	adrp	x8, _AVM_STATUS0_IRQ_HDLC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_HDLC@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_HDLC_irq_main
LBB0_3:
Lloh8:
	adrp	x8, _AVM_STATUS0_IRQ_ISAC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_ISAC@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_5
; %bb.4:
Lloh11:
	adrp	x8, _ISACX_ISTA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ISACX_ISTA@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_ReadISAC_V2
	mov	x1, x0
	add	x0, x20, #20
	bl	_mISDNisac_irq
LBB0_5:
Lloh14:
	adrp	x8, _AVM_STATUS0_IRQ_TIMER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _AVM_STATUS0_IRQ_TIMER@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:
	ldr	w1, [x20, #16]
Lloh17:
	adrp	x0, l_.str.1@PAGE
Lloh18:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	w8, [x20]
Lloh19:
	adrp	x9, _AVM_STATUS0_RES_TIMER@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AVM_STATUS0_RES_TIMER@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x20, #8]
	add	x1, x8, #2
	bl	_outb
	mov	w0, #1
	bl	_udelay
	ldr	w0, [x20]
	ldr	x8, [x20, #8]
	add	x1, x8, #2
	bl	_outb
LBB0_7:
Lloh22:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh23:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh24:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh25:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.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_HDLC,4,2       ; @AVM_STATUS0_IRQ_HDLC
	.comm	_AVM_STATUS0_IRQ_ISAC,4,2       ; @AVM_STATUS0_IRQ_ISAC
	.comm	_ISACX_ISTA,4,2                 ; @ISACX_ISTA
	.comm	_AVM_STATUS0_IRQ_TIMER,4,2      ; @AVM_STATUS0_IRQ_TIMER
l_.str.1:                               ; @.str.1
	.asciz	"%s: timer irq\n"

	.comm	_AVM_STATUS0_RES_TIMER,4,2      ; @AVM_STATUS0_RES_TIMER
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_avm_fritzv2_interrupt
.subsections_via_symbols
