	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ucc_hdlc_irq_handler
_ucc_hdlc_irq_handler:                  ## @ucc_hdlc_irq_handler
	.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	%rsi, %r14
	movq	8(%rsi), %r13
	movq	24(%rsi), %r12
	movl	4(%r13), %edi
	callq	_ioread32be
	movl	%eax, %ebx
	movl	(%r13), %edi
	callq	_ioread32be
	movl	%eax, %r15d
	movl	4(%r13), %esi
	movl	%eax, %edi
	andl	%ebx, %edi
	callq	_iowrite32be
	andl	%r15d, %ebx
	je	LBB0_1
## %bb.2:
	sarl	$16, %ebx
	movq	_UCCE_HDLC_RX_EVENTS@GOTPCREL(%rip), %rcx
	movq	_UCCE_HDLC_TX_EVENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_napi_schedule_prep
	movq	_UCCE_HDLC_TX_EVENTS@GOTPCREL(%rip), %rdx
	movq	_UCCE_HDLC_RX_EVENTS@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	(%rdx), %eax
	orl	(%rcx), %eax
	shll	$16, %eax
	notl	%eax
	andl	%eax, %r15d
	movl	(%r13), %esi
	movl	%r15d, %edi
	callq	_iowrite32be
	movq	%r14, %rdi
	callq	___napi_schedule
LBB0_5:
	movq	_UCC_HDLC_UCCE_BSY@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	incl	4(%r12)
LBB0_7:
	movq	_UCC_HDLC_UCCE_TXE@GOTPCREL(%rip), %rcx
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	testl	%ebx, (%rcx)
	je	LBB0_9
## %bb.8:
	incl	(%r12)
	jmp	LBB0_9
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_UCCE_HDLC_RX_EVENTS,4,2        ## @UCCE_HDLC_RX_EVENTS
	.comm	_UCCE_HDLC_TX_EVENTS,4,2        ## @UCCE_HDLC_TX_EVENTS
	.comm	_UCC_HDLC_UCCE_BSY,4,2          ## @UCC_HDLC_UCCE_BSY
	.comm	_UCC_HDLC_UCCE_TXE,4,2          ## @UCC_HDLC_UCCE_TXE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ucc_hdlc_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ucc_hdlc_irq_handler
_ucc_hdlc_irq_handler:                  ; @ucc_hdlc_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	ldr	x22, [x1, #24]
	ldr	x23, [x1, #8]
	ldr	w0, [x23, #4]
	bl	_ioread32be
	mov	x21, x0
	ldr	w0, [x23]
	bl	_ioread32be
	mov	x20, x0
	and	w21, w0, w21
	ldr	w1, [x23, #4]
	mov	x0, x21
	bl	_iowrite32be
	cbz	w21, LBB0_9
; %bb.1:
	asr	w21, w21, #16
Lloh0:
	adrp	x24, _UCCE_HDLC_RX_EVENTS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _UCCE_HDLC_RX_EVENTS@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh2:
	adrp	x25, _UCCE_HDLC_TX_EVENTS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _UCCE_HDLC_TX_EVENTS@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_napi_schedule_prep
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	bic	w0, w20, w8, lsl #16
	ldr	w1, [x23]
	bl	_iowrite32be
	mov	x0, x19
	bl	___napi_schedule
LBB0_4:
Lloh4:
	adrp	x8, _UCC_HDLC_UCCE_BSY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _UCC_HDLC_UCCE_BSY@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x22, #4]
	add	w8, w8, #1
	str	w8, [x22, #4]
LBB0_6:
Lloh7:
	adrp	x8, _UCC_HDLC_UCCE_TXE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UCC_HDLC_UCCE_TXE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_8
; %bb.7:
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
LBB0_8:
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_UCCE_HDLC_RX_EVENTS,4,2        ; @UCCE_HDLC_RX_EVENTS
	.comm	_UCCE_HDLC_TX_EVENTS,4,2        ; @UCCE_HDLC_TX_EVENTS
	.comm	_UCC_HDLC_UCCE_BSY,4,2          ; @UCC_HDLC_UCCE_BSY
	.comm	_UCC_HDLC_UCCE_TXE,4,2          ; @UCC_HDLC_UCCE_TXE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ucc_hdlc_irq_handler
.subsections_via_symbols
