	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpmac_rx_one
_cpmac_rx_one:                          ## @cpmac_rx_one
	.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, %r13
	movq	%rdi, %r14
	callq	_netif_msg_hw
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rdi
	movq	%r13, %rsi
	callq	_cpmac_dump_desc
LBB0_2:
	movl	8(%r14), %ebx
	xorl	%edi, %edi
	callq	_CPMAC_RX_ACK
	movq	40(%r13), %rdx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_cpmac_write
	xorl	%edi, %edi
	cmpq	$0, 32(%r13)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	callq	_netif_msg_rx_err
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_15
## %bb.5:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_warn
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_6:
	movq	(%r14), %rdi
	movq	_CPMAC_SKB_SIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	24(%r13), %rdi
	movq	32(%r13), %rsi
	callq	_skb_put
	movq	24(%r13), %rdi
	movq	(%r14), %rsi
	callq	_eth_type_trans
	movq	24(%r13), %rdi
	movl	%eax, 4(%rdi)
	callq	_skb_checksum_none_assert
	movq	(%r14), %rdi
	incl	8(%rdi)
	movl	32(%r13), %eax
	addl	%eax, 4(%rdi)
	movq	8(%r13), %rsi
	movq	24(%r13), %r15
	addq	$12, %rdi
	movl	(%rbx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_single
	movq	%r12, 24(%r13)
	movq	(%r14), %rdi
	addq	$12, %rdi
	movl	(%r12), %esi
	movq	%rbx, %r12
	movl	(%rbx), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_map_single
	movq	%rax, 8(%r13)
	movq	%rax, 16(%r13)
	movq	%r14, %rdi
	callq	_netif_msg_pktdata
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_netdev_dbg
	movq	(%r14), %rdi
	movq	%r15, %rsi
	callq	_cpmac_dump_skb
LBB0_13:
	movq	%r12, %rbx
	jmp	LBB0_14
LBB0_9:
	movq	%r14, %rdi
	callq	_netif_msg_rx_err
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_netdev_warn
LBB0_12:
	movq	(%r14), %rax
	incl	(%rax)
	xorl	%r15d, %r15d
LBB0_14:
	movl	(%rbx), %eax
	movl	%eax, 4(%r13)
	movq	_CPMAC_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
LBB0_15:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx: spurious interrupt\n"

	.comm	_CPMAC_SKB_SIZE,4,2             ## @CPMAC_SKB_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
L_.str.1:                               ## @.str.1
	.asciz	"received packet:\n"

L_.str.2:                               ## @.str.2
	.asciz	"low on skbs, dropping packet\n"

	.comm	_CPMAC_OWN,4,2                  ## @CPMAC_OWN
	.no_dead_strip	_cpmac_rx_one
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpmac_rx_one
_cpmac_rx_one:                          ; @cpmac_rx_one
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_netif_msg_hw
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
	mov	x1, x19
	bl	_cpmac_dump_desc
LBB0_2:
	ldr	w21, [x20, #8]
	mov	w0, #0
	bl	_CPMAC_RX_ACK
	mov	x1, x0
	ldr	x2, [x19, #40]
	mov	x0, x21
	bl	_cpmac_write
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_6
; %bb.4:
	bl	_net_ratelimit
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x0, [x20]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_warn
	mov	x21, #0
	b	LBB0_15
LBB0_6:
	mov	x21, #0
	b	LBB0_15
LBB0_7:
	ldr	x0, [x20]
Lloh2:
	adrp	x23, _CPMAC_SKB_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _CPMAC_SKB_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_netdev_alloc_skb_ip_align
	mov	x22, x0
	bl	_likely
	cbz	x0, LBB0_10
; %bb.8:
	add	x21, x19, #32
	ldp	x0, x1, [x19, #24]
	bl	_skb_put
	ldr	x0, [x19, #24]
	ldr	x1, [x20]
	bl	_eth_type_trans
	ldr	x8, [x19, #24]
	str	w0, [x8, #4]
	mov	x0, x8
	bl	_skb_checksum_none_assert
	ldr	x8, [x20]
	ldur	d0, [x8, #4]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x21]
	add.2s	v0, v0, v1
	stur	d0, [x8, #4]
	ldr	x21, [x19, #24]
	add	x0, x8, #12
	ldr	x1, [x19, #8]
	ldr	w2, [x23]
Lloh4:
	adrp	x24, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w3, [x24]
	bl	_dma_unmap_single
	str	x22, [x19, #24]
	ldr	x8, [x20]
	add	x0, x8, #12
	ldr	w1, [x22]
	ldr	w2, [x23]
	ldr	w3, [x24]
	bl	_dma_map_single
	stp	x0, x0, [x19, #8]
	mov	x0, x20
	bl	_netif_msg_pktdata
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.9:
	ldr	x0, [x20]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_netdev_dbg
	ldr	x0, [x20]
	mov	x1, x21
	bl	_cpmac_dump_skb
	b	LBB0_14
LBB0_10:
	mov	x0, x20
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_13
; %bb.11:
	bl	_net_ratelimit
	cbz	x0, LBB0_13
; %bb.12:
	ldr	x0, [x20]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_netdev_warn
LBB0_13:
	mov	x21, #0
	ldr	x8, [x20]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_14:
	ldr	w8, [x23]
Lloh10:
	adrp	x9, _CPMAC_OWN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _CPMAC_OWN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	stp	w9, w8, [x19]
LBB0_15:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx: spurious interrupt\n"

	.comm	_CPMAC_SKB_SIZE,4,2             ; @CPMAC_SKB_SIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
l_.str.1:                               ; @.str.1
	.asciz	"received packet:\n"

l_.str.2:                               ; @.str.2
	.asciz	"low on skbs, dropping packet\n"

	.comm	_CPMAC_OWN,4,2                  ; @CPMAC_OWN
	.no_dead_strip	_cpmac_rx_one
.subsections_via_symbols
