	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HDLC_irq
_HDLC_irq:                              ## @HDLC_irq
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	32(%rdi), %r15
	movq	8(%r15), %rax
	movl	(%rdi), %edx
	movl	%edx, %ebx
	notl	%ebx
	andl	$1, %ebx
	shlq	$4, %rbx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rbx), %r12
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_pr_debug
	movq	_HDLC_INT_RPR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_11
## %bb.1:
	movq	_HDLC_STAT_RDO@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax,%rbx)
	movq	_HDLC_CMD_RRS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_write_ctrl
	movq	_HDLC_CMD_RRS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r12)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_write_ctrl
	movq	24(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
LBB0_10:
	xorl	%esi, %esi
	callq	_skb_trim
	jmp	LBB0_11
LBB0_3:
	movq	_HDLC_STAT_RML_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movl	%eax, %ecx
	sarl	$8, %ecx
	cmpl	$256, %eax                      ## imm = 0x100
	movl	$32, %esi
	cmovael	%ecx, %esi
	movq	%r13, %rdi
	callq	_hdlc_empty_fifo
	cmpq	$0, 24(%r13)
	je	LBB0_11
## %bb.4:
	movq	_HDLC_STAT_RME@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_FLG_TRANSPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r13), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_11
LBB0_6:
	movq	_HDLC_STAT_CRCVFRRAB@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r14d, %eax
	movq	_HDLC_STAT_CRCVFR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_8
## %bb.7:
	movq	_FLG_TRANSPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r13), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_recv_Bchannel
LBB0_11:
	movq	_HDLC_INT_XDU@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_21
## %bb.12:
	movq	16(%r13), %rax
	movl	(%r15), %esi
	movl	(%r13), %edx
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	(%rax), %rcx
	movq	8(%r13), %r8
	movl	4(%r13), %r9d
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_15
LBB0_21:
	movq	_HDLC_INT_XPR@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_20
## %bb.22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	4(%r13), %ecx
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_15:
	movq	16(%r13), %rax
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.17:
	movq	_FLG_TRANSPARENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r13), %rsi
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	$0, 8(%r13)
LBB0_19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%rax,%rbx)
	movq	_HDLC_CMD_XRS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	orl	%eax, (%r12)
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_write_ctrl
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, (%r12)
LBB0_20:
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HDLC_irq_xpr                   ## TAILCALL
LBB0_9:
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	24(%r13), %rdi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: ch%d stat %#x\n"

	.comm	_HDLC_INT_RPR,4,2               ## @HDLC_INT_RPR
	.comm	_HDLC_STAT_RDO,4,2              ## @HDLC_STAT_RDO
	.comm	_HDLC_CMD_RRS,4,2               ## @HDLC_CMD_RRS
	.comm	_HDLC_STAT_RML_MASK,4,2         ## @HDLC_STAT_RML_MASK
	.comm	_HDLC_STAT_RME,4,2              ## @HDLC_STAT_RME
	.comm	_FLG_TRANSPARENT,4,2            ## @FLG_TRANSPARENT
	.comm	_HDLC_STAT_CRCVFRRAB,4,2        ## @HDLC_STAT_CRCVFRRAB
	.comm	_HDLC_STAT_CRCVFR,4,2           ## @HDLC_STAT_CRCVFR
L_.str.1:                               ## @.str.1
	.asciz	"%s: got invalid frame\n"

	.comm	_HDLC_INT_XDU,4,2               ## @HDLC_INT_XDU
L_.str.2:                               ## @.str.2
	.asciz	"%s: ch%d XDU len(%d) idx(%d) Flags(%lx)\n"

L_.str.3:                               ## @.str.3
	.asciz	"%s: ch%d XDU no tx_skb Flags(%lx)\n"

	.comm	_HDLC_CMD_XRS,4,2               ## @HDLC_CMD_XRS
	.comm	_HDLC_INT_XPR,4,2               ## @HDLC_INT_XPR
	.no_dead_strip	_HDLC_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HDLC_irq
_HDLC_irq:                              ; @HDLC_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x19, x0
	ldr	x24, [x0, #32]
	ldr	x22, [x24, #8]
	ldr	w8, [x0]
	mvn	w9, w8
	and	x23, x9, #0x1
	add	x21, x22, x23, lsl #4
	ldr	w1, [x24]
	stp	x8, x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh2:
	adrp	x8, _HDLC_INT_RPR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HDLC_INT_RPR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.1:
Lloh5:
	adrp	x8, _HDLC_STAT_RDO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HDLC_STAT_RDO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
	add	x8, x22, x23, lsl #4
	str	xzr, [x8, #8]
Lloh8:
	adrp	x25, _HDLC_CMD_RRS@GOTPAGE
Lloh9:
	ldr	x25, [x25, _HDLC_CMD_RRS@GOTPAGEOFF]
	ldr	w8, [x25]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	x0, x19
	mov	w1, #1
	bl	_write_ctrl
	ldr	w8, [x25]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	mov	x0, x19
	mov	w1, #1
	bl	_write_ctrl
	ldr	x0, [x19, #24]
	cbz	x0, LBB0_10
LBB0_3:
	mov	w1, #0
	bl	_skb_trim
	b	LBB0_10
LBB0_4:
Lloh10:
	adrp	x8, _HDLC_STAT_RML_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HDLC_STAT_RML_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	and	w8, w8, w20
	asr	w9, w8, #8
	mov	w10, #32
	cmp	w8, #256
	csel	w1, w10, w9, lo
	mov	x0, x19
	bl	_hdlc_empty_fifo
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_10
; %bb.5:
Lloh13:
	adrp	x8, _HDLC_STAT_RME@GOTPAGE
Lloh14:
	ldr	x8, [x8, _HDLC_STAT_RME@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_7
; %bb.6:
Lloh16:
	adrp	x8, _FLG_TRANSPARENT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _FLG_TRANSPARENT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	cbz	x0, LBB0_10
LBB0_7:
Lloh19:
	adrp	x8, _HDLC_STAT_CRCVFRRAB@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HDLC_STAT_CRCVFRRAB@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh22:
	adrp	x9, _HDLC_STAT_CRCVFR@GOTPAGE
Lloh23:
	ldr	x9, [x9, _HDLC_STAT_CRCVFR@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.8:
Lloh25:
	adrp	x8, _FLG_TRANSPARENT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FLG_TRANSPARENT@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	cbz	x0, LBB0_22
LBB0_9:
	mov	x0, x19
	mov	w1, #0
	bl	_recv_Bchannel
LBB0_10:
Lloh28:
	adrp	x8, _HDLC_INT_XDU@GOTPAGE
Lloh29:
	ldr	x8, [x8, _HDLC_INT_XDU@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.11:
	ldr	x9, [x19, #16]
	ldr	w1, [x24]
	ldr	w8, [x19]
	cbz	x9, LBB0_15
; %bb.12:
	ldr	x9, [x9]
	ldr	x10, [x19, #8]
	ldr	w11, [x19, #4]
	stp	x10, x11, [sp, #16]
	stp	x8, x9, [sp]
Lloh31:
	adrp	x0, l_.str.2@PAGE
Lloh32:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_13:
Lloh33:
	adrp	x8, _HDLC_INT_XPR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HDLC_INT_XPR@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_21
; %bb.14:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_15:
	ldr	w9, [x19, #4]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x9, [sp]
Lloh36:
	adrp	x0, l_.str.3@PAGE
Lloh37:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_16:
	bl	_pr_debug
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_20
; %bb.17:
	ldr	x8, [x8]
	cbz	x8, LBB0_20
; %bb.18:
Lloh38:
	adrp	x8, _FLG_TRANSPARENT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FLG_TRANSPARENT@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	cbnz	x0, LBB0_20
; %bb.19:
	str	xzr, [x19, #8]
LBB0_20:
	add	x8, x22, x23, lsl #4
	str	xzr, [x8, #8]
Lloh41:
	adrp	x20, _HDLC_CMD_XRS@GOTPAGE
Lloh42:
	ldr	x20, [x20, _HDLC_CMD_XRS@GOTPAGEOFF]
	ldr	w8, [x20]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	mov	x0, x19
	mov	w1, #1
	bl	_write_ctrl
	ldr	w8, [x20]
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
LBB0_21:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_HDLC_irq_xpr
LBB0_22:
	ldr	w1, [x24]
Lloh43:
	adrp	x0, l_.str.1@PAGE
Lloh44:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	ldr	x0, [x19, #24]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: ch%d stat %#x\n"

	.comm	_HDLC_INT_RPR,4,2               ; @HDLC_INT_RPR
	.comm	_HDLC_STAT_RDO,4,2              ; @HDLC_STAT_RDO
	.comm	_HDLC_CMD_RRS,4,2               ; @HDLC_CMD_RRS
	.comm	_HDLC_STAT_RML_MASK,4,2         ; @HDLC_STAT_RML_MASK
	.comm	_HDLC_STAT_RME,4,2              ; @HDLC_STAT_RME
	.comm	_FLG_TRANSPARENT,4,2            ; @FLG_TRANSPARENT
	.comm	_HDLC_STAT_CRCVFRRAB,4,2        ; @HDLC_STAT_CRCVFRRAB
	.comm	_HDLC_STAT_CRCVFR,4,2           ; @HDLC_STAT_CRCVFR
l_.str.1:                               ; @.str.1
	.asciz	"%s: got invalid frame\n"

	.comm	_HDLC_INT_XDU,4,2               ; @HDLC_INT_XDU
l_.str.2:                               ; @.str.2
	.asciz	"%s: ch%d XDU len(%d) idx(%d) Flags(%lx)\n"

l_.str.3:                               ; @.str.3
	.asciz	"%s: ch%d XDU no tx_skb Flags(%lx)\n"

	.comm	_HDLC_CMD_XRS,4,2               ; @HDLC_CMD_XRS
	.comm	_HDLC_INT_XPR,4,2               ; @HDLC_INT_XPR
	.no_dead_strip	_HDLC_irq
.subsections_via_symbols
