	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HDLC_irq_main
_HDLC_irq_main:                         ## @HDLC_irq_main
	.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	%rdi, %r14
	movq	(%rdi), %rax
	movq	_AVM_FRITZ_PCI@GOTPCREL(%rip), %r12
	movq	_HDLC_STATUS@GOTPCREL(%rip), %r15
	movq	(%r15), %rdx
	cmpq	(%r12), %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ReadHDLCPCI
	movl	%eax, %ebx
	jmp	LBB0_4
LBB0_2:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ReadHDLCPnP
	movl	%eax, %ebx
	movq	_HDLC_INT_RPR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	(%r15), %rdx
	incq	%rdx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_ReadHDLCPnP
	shll	$8, %eax
	orl	%eax, %ebx
LBB0_4:
	movq	_HDLC_INT_MASK@GOTPCREL(%rip), %r13
	testl	%ebx, (%r13)
	je	LBB0_9
## %bb.5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_Sel_BCS
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_HDLC_irq
	jmp	LBB0_9
LBB0_6:
	cmpq	$0, 8(%r14)
	je	LBB0_9
## %bb.7:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_debugl1
LBB0_9:
	movq	(%r14), %rax
	movq	(%r15), %rdx
	cmpq	(%r12), %rax
	jne	LBB0_11
## %bb.10:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ReadHDLCPCI
	movl	%eax, %ebx
	jmp	LBB0_13
LBB0_11:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ReadHDLCPnP
	movl	%eax, %ebx
	movq	_HDLC_INT_RPR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_13
## %bb.12:
	movq	(%r15), %rdx
	incq	%rdx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ReadHDLCPnP
	shll	$8, %eax
	orl	%eax, %ebx
LBB0_13:
	testl	%ebx, (%r13)
	je	LBB0_18
## %bb.14:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_Sel_BCS
	testq	%rax, %rax
	je	LBB0_15
## %bb.17:
	movq	%rax, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HDLC_irq                       ## TAILCALL
LBB0_15:
	cmpq	$0, 8(%r14)
	je	LBB0_18
## %bb.16:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_debugl1                        ## TAILCALL
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVM_FRITZ_PCI,8,3              ## @AVM_FRITZ_PCI
	.comm	_HDLC_STATUS,8,3                ## @HDLC_STATUS
	.comm	_HDLC_INT_RPR,4,2               ## @HDLC_INT_RPR
	.comm	_HDLC_INT_MASK,4,2              ## @HDLC_INT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hdlc spurious channel 0 IRQ"

L_.str.1:                               ## @.str.1
	.asciz	"hdlc spurious channel 1 IRQ"

	.no_dead_strip	_HDLC_irq_main
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HDLC_irq_main
_HDLC_irq_main:                         ; @HDLC_irq_main
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x23, _AVM_FRITZ_PCI@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AVM_FRITZ_PCI@GOTPAGEOFF]
	ldr	x9, [x23]
Lloh2:
	adrp	x21, _HDLC_STATUS@GOTPAGE
Lloh3:
	ldr	x21, [x21, _HDLC_STATUS@GOTPAGEOFF]
	ldr	x2, [x21]
Lloh4:
	adrp	x22, _HDLC_INT_RPR@GOTPAGE
Lloh5:
	ldr	x22, [x22, _HDLC_INT_RPR@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w1, #0
	bl	_ReadHDLCPCI
	mov	x20, x0
	b	LBB0_4
LBB0_2:
	mov	w1, #0
	bl	_ReadHDLCPnP
	mov	x20, x0
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x21]
	add	x2, x8, #1
	mov	x0, x19
	mov	w1, #0
	bl	_ReadHDLCPnP
	orr	w20, w20, w0, lsl #8
LBB0_4:
Lloh6:
	adrp	x24, _HDLC_INT_MASK@GOTPAGE
Lloh7:
	ldr	x24, [x24, _HDLC_INT_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_Sel_BCS
	cbz	x0, LBB0_7
; %bb.6:
	mov	x1, x20
	bl	_HDLC_irq
	b	LBB0_9
LBB0_7:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.8:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_debugl1
LBB0_9:
	ldr	x8, [x19]
	ldr	x9, [x23]
	ldr	x2, [x21]
	mov	x0, x19
	mov	w1, #1
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	bl	_ReadHDLCPCI
	mov	x20, x0
	b	LBB0_13
LBB0_11:
	bl	_ReadHDLCPnP
	mov	x20, x0
	ldr	w8, [x22]
	tst	w8, w0
	b.eq	LBB0_13
; %bb.12:
	ldr	x8, [x21]
	add	x2, x8, #1
	mov	x0, x19
	mov	w1, #1
	bl	_ReadHDLCPnP
	orr	w20, w20, w0, lsl #8
LBB0_13:
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_18
; %bb.14:
	mov	x0, x19
	mov	w1, #1
	bl	_Sel_BCS
	cbz	x0, LBB0_16
; %bb.15:
	mov	x1, 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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_HDLC_irq
LBB0_16:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_18
; %bb.17:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_debugl1
LBB0_18:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AVM_FRITZ_PCI,8,3              ; @AVM_FRITZ_PCI
	.comm	_HDLC_STATUS,8,3                ; @HDLC_STATUS
	.comm	_HDLC_INT_RPR,4,2               ; @HDLC_INT_RPR
	.comm	_HDLC_INT_MASK,4,2              ; @HDLC_INT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hdlc spurious channel 0 IRQ"

l_.str.1:                               ; @.str.1
	.asciz	"hdlc spurious channel 1 IRQ"

	.no_dead_strip	_HDLC_irq_main
.subsections_via_symbols
