	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_handle_irq
_cas_handle_irq:                        ## @cas_handle_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_INTR_ERROR_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_cas_abnormal_irq
LBB0_2:
	movq	_INTR_RX_BUF_UNAVAIL@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_cas_post_rxds_ringN
	movq	(%r15), %rdi
	callq	_spin_lock
	movq	8(%r15), %rax
	incl	(%rax)
	movq	(%r15), %rdi
	callq	_spin_unlock
	jmp	LBB0_6
LBB0_4:
	movq	_INTR_RX_BUF_AE@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	callq	_RX_DESC_RINGN_SIZE
	movq	%rax, %r12
	xorl	%edi, %edi
	callq	_RX_AE_FREEN_VAL
	subq	%rax, %r12
	movq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_cas_post_rxds_ringN
LBB0_6:
	movq	_INTR_RX_COMP_AF@GOTPCREL(%rip), %rax
	movq	_INTR_RX_COMP_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_7
## %bb.8:
	movq	%r14, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cas_post_rxcs_ringN            ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTR_ERROR_MASK,4,2            ## @INTR_ERROR_MASK
	.comm	_INTR_RX_BUF_UNAVAIL,4,2        ## @INTR_RX_BUF_UNAVAIL
	.comm	_INTR_RX_BUF_AE,4,2             ## @INTR_RX_BUF_AE
	.comm	_INTR_RX_COMP_AF,4,2            ## @INTR_RX_COMP_AF
	.comm	_INTR_RX_COMP_FULL,4,2          ## @INTR_RX_COMP_FULL
	.no_dead_strip	_cas_handle_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_handle_irq
_cas_handle_irq:                        ; @cas_handle_irq
	.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	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _INTR_ERROR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTR_ERROR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x21
	bl	_cas_abnormal_irq
LBB0_2:
Lloh3:
	adrp	x8, _INTR_RX_BUF_UNAVAIL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INTR_RX_BUF_UNAVAIL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	mov	x2, #0
	bl	_cas_post_rxds_ringN
	ldr	x0, [x19]
	bl	_spin_lock
	ldp	x0, x8, [x19]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	bl	_spin_unlock
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _INTR_RX_BUF_AE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INTR_RX_BUF_AE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #0
	bl	_RX_DESC_RINGN_SIZE
	mov	x22, x0
	mov	w0, #0
	bl	_RX_AE_FREEN_VAL
	sub	x2, x22, x0
	mov	x0, x19
	mov	w1, #0
	bl	_cas_post_rxds_ringN
LBB0_6:
Lloh9:
	adrp	x8, _INTR_RX_COMP_AF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _INTR_RX_COMP_AF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _INTR_RX_COMP_FULL@GOTPAGE
Lloh13:
	ldr	x9, [x9, _INTR_RX_COMP_FULL@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w21
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	mov	w2, #0
	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	_cas_post_rxcs_ringN
LBB0_8:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_INTR_ERROR_MASK,4,2            ; @INTR_ERROR_MASK
	.comm	_INTR_RX_BUF_UNAVAIL,4,2        ; @INTR_RX_BUF_UNAVAIL
	.comm	_INTR_RX_BUF_AE,4,2             ; @INTR_RX_BUF_AE
	.comm	_INTR_RX_COMP_AF,4,2            ; @INTR_RX_COMP_AF
	.comm	_INTR_RX_COMP_FULL,4,2          ; @INTR_RX_COMP_FULL
	.no_dead_strip	_cas_handle_irq
.subsections_via_symbols
