	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gem_rx
_gem_rx:                                ## @gem_rx
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	32(%r13), %rbx
	xorl	%eax, %eax
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rax
	incl	12(%rax)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	incl	4(%r13)
	movl	(%r12), %ecx
	addl	%ecx, 8(%rax)
	addl	%ecx, (%r13)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	callq	_gem_ptp_do_rxstamp
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_napi_gro_receive
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_16
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	24(%r13), %esi
	movq	%rbx, %rdi
	callq	_macb_rx_ring_wrap
	movl	%eax, %r15d
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_macb_rx_desc
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_rmb
	movl	(%r12), %r14d
	movq	_RX_USED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MACB_BIT
	movq	%rbx, %rdi
	movl	%eax, %ebx
	movq	%r12, %rsi
	callq	_macb_get_addr
	testl	%r14d, %ebx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_dma_rmb
	movl	4(%r12), %r14d
	incl	24(%r13)
	movq	_RX_SOF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MACB_BIT
	testl	%r14d, %eax
	je	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_RX_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_MACB_BIT
	testl	%r14d, %eax
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	16(%r13), %rax
	movl	%r15d, %ebx
	movq	(%rax,%rbx,8), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	16(%r13), %rax
	movq	$0, (%rax,%rbx,8)
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	movl	(%r13), %ebx
	andl	%r14d, %ebx
	movq	8(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	callq	_netdev_vdbg
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r13, %rbx
	callq	_skb_put
	movq	24(%r13), %rdi
	movl	16(%r13), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_dma_unmap_single
	movq	8(%r13), %rsi
	movq	%r12, %rdi
	callq	_eth_type_trans
	movl	%eax, 16(%r12)
	movq	%r12, %rdi
	callq	_skb_checksum_none_assert
	movq	8(%r13), %rax
	movq	_NETIF_F_RXCSUM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_IFF_PROMISC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 4(%rax)
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_RX_CSUM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r14d, %esi
	callq	_GEM_BFEXT
	movq	_GEM_RX_CSUM_CHECKED_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_CHECKSUM_UNNECESSARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r12)
	jmp	LBB0_15
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_17
LBB0_6:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_4:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_16:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_17
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_7:
	movq	8(%r14), %rdi
	callq	_netdev_err
	movq	8(%r14), %rax
	incl	16(%rax)
	incl	8(%r13)
	incl	%ebx
LBB0_17:
	movq	%r13, %rdi
	callq	_gem_rx_refill
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_USED,4,2                    ## @RX_USED
	.comm	_RX_SOF,4,2                     ## @RX_SOF
	.comm	_RX_EOF,4,2                     ## @RX_EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not whole frame pointed by descriptor\n"

L_.str.1:                               ## @.str.1
	.asciz	"inconsistent Rx descriptor chain\n"

L_.str.2:                               ## @.str.2
	.asciz	"gem_rx %u (len %u)\n"

	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_NETIF_F_RXCSUM,4,2             ## @NETIF_F_RXCSUM
	.comm	_IFF_PROMISC,4,2                ## @IFF_PROMISC
	.comm	_RX_CSUM,4,2                    ## @RX_CSUM
	.comm	_GEM_RX_CSUM_CHECKED_MASK,4,2   ## @GEM_RX_CSUM_CHECKED_MASK
	.comm	_CHECKSUM_UNNECESSARY,4,2       ## @CHECKSUM_UNNECESSARY
	.comm	_DUMP_PREFIX_ADDRESS,4,2        ## @DUMP_PREFIX_ADDRESS
	.comm	_KERN_DEBUG,4,2                 ## @KERN_DEBUG
	.no_dead_strip	_gem_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gem_rx
_gem_rx:                                ; @gem_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x19, x0
	cmp	w2, #1
	b.lt	LBB0_11
; %bb.1:
	mov	x23, x2
	mov	w20, #0
	ldr	x21, [x19, #32]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x21, #8]
	ldr	w9, [x19, #4]
	add	w9, w9, #1
	str	w9, [x19, #4]
	ldr	w9, [x27]
	movi.2s	v0, #1
	mov.s	v0[0], w9
	ldr	d1, [x8, #8]
	add.2s	v0, v1, v0
	str	d0, [x8, #8]
	ldr	w8, [x19]
	add	w8, w8, w9
	str	w8, [x19]
	mov	x0, x21
	mov	x1, x27
	mov	x2, x26
	bl	_gem_ptp_do_rxstamp
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x27
	bl	_napi_gro_receive
	cmp	w23, w20
	b.eq	LBB0_13
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19, #24]
	mov	x0, x21
	bl	_macb_rx_ring_wrap
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_macb_rx_desc
	mov	x26, x0
	bl	_rmb
	ldr	w24, [x26]
Lloh0:
	adrp	x8, _RX_USED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RX_USED@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_MACB_BIT
	and	w24, w0, w24
	mov	x0, x21
	mov	x1, x26
	bl	_macb_get_addr
	cbz	w24, LBB0_16
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	bl	_dma_rmb
	ldr	w28, [x26, #4]
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
	add	w20, w20, #1
Lloh3:
	adrp	x8, _RX_SOF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RX_SOF@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_MACB_BIT
	tst	w0, w28
	b.eq	LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x8, _RX_EOF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RX_EOF@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_MACB_BIT
	tst	w0, w28
	b.eq	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	ldr	x27, [x8, w22, uxtw #3]
	cmp	x27, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, w22
	ldr	x9, [x19, #16]
	str	xzr, [x9, x8, lsl #3]
	ldr	w8, [x21]
	and	w24, w8, w28
	ldr	x0, [x21, #8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x22
	mov	x3, x24
	bl	_netdev_vdbg
	mov	x0, x27
	mov	x1, x24
	bl	_skb_put
	ldr	x0, [x21, #24]
	ldr	w2, [x21, #16]
Lloh11:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w3, [x8]
	mov	x1, x25
	bl	_dma_unmap_single
	ldr	x1, [x21, #8]
	mov	x0, x27
	bl	_eth_type_trans
	str	w0, [x27, #16]
	mov	x0, x27
	bl	_skb_checksum_none_assert
	ldr	x8, [x21, #8]
	ldr	w9, [x8]
Lloh14:
	adrp	x10, _NETIF_F_RXCSUM@GOTPAGE
Lloh15:
	ldr	x10, [x10, _NETIF_F_RXCSUM@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x8, #4]
Lloh17:
	adrp	x9, _IFF_PROMISC@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IFF_PROMISC@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh20:
	adrp	x8, _RX_CSUM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RX_CSUM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	x1, x28
	bl	_GEM_BFEXT
Lloh23:
	adrp	x8, _GEM_RX_CSUM_CHECKED_MASK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GEM_RX_CSUM_CHECKED_MASK@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
Lloh26:
	adrp	x8, _CHECKSUM_UNNECESSARY@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CHECKSUM_UNNECESSARY@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	str	w8, [x27, #12]
	b	LBB0_2
LBB0_11:
	mov	w20, #0
	b	LBB0_16
LBB0_12:
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_15
LBB0_13:
	mov	x20, x23
	b	LBB0_16
LBB0_14:
Lloh31:
	adrp	x1, l_.str.1@PAGE
Lloh32:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_15:
	ldr	x0, [x21, #8]
	bl	_netdev_err
	ldr	x8, [x21, #8]
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_16:
	mov	x0, x19
	bl	_gem_rx_refill
	mov	x0, x20
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_USED,4,2                    ; @RX_USED
	.comm	_RX_SOF,4,2                     ; @RX_SOF
	.comm	_RX_EOF,4,2                     ; @RX_EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not whole frame pointed by descriptor\n"

l_.str.1:                               ; @.str.1
	.asciz	"inconsistent Rx descriptor chain\n"

l_.str.2:                               ; @.str.2
	.asciz	"gem_rx %u (len %u)\n"

	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_NETIF_F_RXCSUM,4,2             ; @NETIF_F_RXCSUM
	.comm	_IFF_PROMISC,4,2                ; @IFF_PROMISC
	.comm	_RX_CSUM,4,2                    ; @RX_CSUM
	.comm	_GEM_RX_CSUM_CHECKED_MASK,4,2   ; @GEM_RX_CSUM_CHECKED_MASK
	.comm	_CHECKSUM_UNNECESSARY,4,2       ; @CHECKSUM_UNNECESSARY
	.comm	_DUMP_PREFIX_ADDRESS,4,2        ; @DUMP_PREFIX_ADDRESS
	.comm	_KERN_DEBUG,4,2                 ; @KERN_DEBUG
	.no_dead_strip	_gem_rx
.subsections_via_symbols
