	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$1, %esi
	callq	_read_status
	movq	_HDLC_INT_MASK@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.1:
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_Sel_BCS
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_HDLC_irq
	jmp	LBB0_4
LBB0_3:
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
LBB0_4:
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_read_status
	testl	%eax, (%r12)
	je	LBB0_7
## %bb.5:
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_Sel_BCS
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%rax, %rdi
	movl	%ebx, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HDLC_irq                       ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_debug                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDLC_INT_MASK,4,2              ## @HDLC_INT_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: spurious ch1 IRQ\n"

L_.str.1:                               ## @.str.1
	.asciz	"%s: spurious ch2 IRQ\n"

	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	mov	w1, #1
	bl	_read_status
Lloh0:
	adrp	x21, _HDLC_INT_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HDLC_INT_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #1
	bl	_Sel_BCS
	cbz	x0, LBB0_3
; %bb.2:
	mov	x1, x20
	bl	_HDLC_irq
	b	LBB0_4
LBB0_3:
	ldr	w1, [x19]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_4:
	mov	x0, x19
	mov	w1, #2
	bl	_read_status
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.5:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #2
	bl	_Sel_BCS
	cbz	x0, LBB0_8
; %bb.6:
	mov	x1, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_HDLC_irq
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w1, [x19]
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_pr_debug
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HDLC_INT_MASK,4,2              ; @HDLC_INT_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: spurious ch1 IRQ\n"

l_.str.1:                               ; @.str.1
	.asciz	"%s: spurious ch2 IRQ\n"

	.no_dead_strip	_HDLC_irq_main
.subsections_via_symbols
