	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cas_rxmac_interrupt
_cas_rxmac_interrupt:                   ## @cas_rxmac_interrupt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	_REG_MAC_RX_STATUS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	24(%rsi), %rdi
	callq	_readl
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	%eax, %ebx
	movq	_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	movl	%ebx, %r8d
	callq	_netif_dbg
	movq	(%r14), %rdi
	callq	_spin_lock
	movq	_MAC_RX_ALIGN_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	8(%r14), %rax
	addl	$65536, (%rax)                  ## imm = 0x10000
LBB0_3:
	movq	_MAC_RX_CRC_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	8(%r14), %rax
	addl	$65536, 4(%rax)                 ## imm = 0x10000
LBB0_5:
	movq	_MAC_RX_LEN_ERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_7
## %bb.6:
	movq	8(%r14), %rax
	addl	$65536, 8(%rax)                 ## imm = 0x10000
LBB0_7:
	movq	_MAC_RX_OVERFLOW@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_9
## %bb.8:
	movq	8(%r14), %rax
	incl	16(%rax)
	incl	12(%rax)
LBB0_9:
	movq	(%r14), %rdi
	callq	_spin_unlock
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MAC_RX_STATUS,8,3          ## @REG_MAC_RX_STATUS
	.comm	_intr,4,2                       ## @intr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rxmac interrupt, stat: 0x%x\n"

	.comm	_MAC_RX_ALIGN_ERR,4,2           ## @MAC_RX_ALIGN_ERR
	.comm	_MAC_RX_CRC_ERR,4,2             ## @MAC_RX_CRC_ERR
	.comm	_MAC_RX_LEN_ERR,4,2             ## @MAC_RX_LEN_ERR
	.comm	_MAC_RX_OVERFLOW,4,2            ## @MAC_RX_OVERFLOW
	.no_dead_strip	_cas_rxmac_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cas_rxmac_interrupt
_cas_rxmac_interrupt:                   ; @cas_rxmac_interrupt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	x8, [x1, #24]
Lloh0:
	adrp	x9, _REG_MAC_RX_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _REG_MAC_RX_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	cbz	w0, LBB0_10
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _intr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _intr@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
Lloh6:
	adrp	x3, l_.str@PAGE
Lloh7:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_netif_dbg
	ldr	x0, [x19]
	bl	_spin_lock
Lloh8:
	adrp	x8, _MAC_RX_ALIGN_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAC_RX_ALIGN_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	add	w9, w9, #16, lsl #12            ; =65536
	str	w9, [x8]
LBB0_3:
Lloh11:
	adrp	x8, _MAC_RX_CRC_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAC_RX_CRC_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #4]
	add	w9, w9, #16, lsl #12            ; =65536
	str	w9, [x8, #4]
LBB0_5:
Lloh14:
	adrp	x8, _MAC_RX_LEN_ERR@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MAC_RX_LEN_ERR@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #8]
	add	w9, w9, #16, lsl #12            ; =65536
	str	w9, [x8, #8]
LBB0_7:
Lloh17:
	adrp	x8, _MAC_RX_OVERFLOW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MAC_RX_OVERFLOW@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	ldur	d0, [x8, #12]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	stur	d0, [x8, #12]
LBB0_9:
	ldr	x0, [x19]
	bl	_spin_unlock
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MAC_RX_STATUS,8,3          ; @REG_MAC_RX_STATUS
	.comm	_intr,4,2                       ; @intr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rxmac interrupt, stat: 0x%x\n"

	.comm	_MAC_RX_ALIGN_ERR,4,2           ; @MAC_RX_ALIGN_ERR
	.comm	_MAC_RX_CRC_ERR,4,2             ; @MAC_RX_CRC_ERR
	.comm	_MAC_RX_LEN_ERR,4,2             ; @MAC_RX_LEN_ERR
	.comm	_MAC_RX_OVERFLOW,4,2            ; @MAC_RX_OVERFLOW
	.no_dead_strip	_cas_rxmac_interrupt
.subsections_via_symbols
