	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sxgbe_rx
_sxgbe_rx:                              ## @sxgbe_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
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	testl	%esi, %esi
	je	LBB0_15
## %bb.1:
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	(%r14), %r12
	movl	8(%r14), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	24(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movl	(%rax), %r13d
	leaq	(,%r13,4), %r15
	addq	16(%rax), %r15
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	callq	*16(%rax)
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	leaq	40(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	12(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %rax
	movq	(%rax,%r12,8), %rcx
	movl	(%rcx), %eax
	incl	%eax
	movl	%eax, (%rcx)
	xorl	%edx, %edx
	divl	-64(%rbp)                       ## 4-byte Folded Reload
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	leaq	(,%rdx,4), %rdi
	addq	16(%rcx), %rdi
	callq	_prefetch
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	leaq	-44(%rbp), %rdx
	callq	*(%rax)
	shrl	$31, %eax
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	cmpl	$0, 36(%r14)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r14), %rax
	movq	(%rax,%r12,8), %rax
	movq	8(%rax), %rax
	movq	(%rax,%r13,8), %r12
	xorl	%edi, %edi
	testq	%r12, %r12
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	32(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rdi
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	subq	(%rax), %rdi
	sarq	$2, %rdi
	callq	_prefetch
	movq	24(%r14), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rax
	movq	8(%rax), %rax
	movq	$0, (%rax,%r13,8)
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	%r15, %rdi
	callq	*8(%rax)
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_skb_put
	movl	-44(%rbp), %eax
	movl	%eax, (%r12)
	movl	-44(%rbp), %eax
	movq	_CHECKSUM_NONE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_netif_receive_skb
	jmp	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_napi_gro_receive
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%ebx, -60(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	movq	(%rcx,%r12,8), %rcx
	movl	-96(%rbp), %r13d                ## 4-byte Reload
	leaq	(,%r13,4), %r15
	addq	16(%rcx), %r15
	movq	(%rax), %rax
	movq	%r15, %rdi
	callq	*16(%rax)
	incl	%ebx
	testq	%rax, %rax
	je	LBB0_3
	jmp	LBB0_15
LBB0_13:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ebx
LBB0_15:
	movq	%r14, %rdi
	callq	_sxgbe_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	_CHECKSUM_NONE,4,2              ## @CHECKSUM_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx descriptor is not consistent\n"

	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.no_dead_strip	_sxgbe_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sxgbe_rx
_sxgbe_rx:                              ; @sxgbe_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
	mov	x20, x1
	mov	x19, x0
	cbz	w1, LBB0_15
; %bb.1:
	ldr	x26, [x19]
	ldp	x9, x8, [x19, #16]
	ldr	x8, [x8, x26, lsl #3]
	ldr	w27, [x19, #8]
	ldr	w22, [x8]
	ldr	x8, [x8, #16]
	add	x24, x8, x22, lsl #2
	ldr	x8, [x9]
	ldr	x8, [x8, #16]
	mov	x0, x24
	blr	x8
	cbz	x0, LBB0_3
; %bb.2:
	mov	w20, #0
	b	LBB0_15
LBB0_3:
	add	x21, x19, #40
	add	x8, x19, #12
	str	x8, [sp]                        ; 8-byte Folded Spill
	mov	w28, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x26, lsl #3]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	udiv	w10, w9, w27
	msub	w23, w10, w27, w9
	ldr	x8, [x8, #16]
	add	x0, x8, w23, uxtw #2
	bl	_prefetch
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8]
	add	x2, sp, #12
	mov	x0, x24
	mov	x1, x21
	blr	x8
	lsr	w0, w0, #31
	bl	_unlikely
	cbnz	x0, LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #36]
	cmp	w8, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x8, _CHECKSUM_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #12]
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x8, [x8, #8]
	ldr	x25, [x8, x22, lsl #3]
	cmp	x25, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #32]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x25, #8]
Lloh5:
	adrp	x9, _NET_IP_ALIGN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	sub	x8, x8, x9
	asr	x0, x8, #2
	bl	_prefetch
	ldr	x8, [x19, #24]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x8, [x8, #8]
	str	xzr, [x8, x22, lsl #3]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	mov	x0, x24
	blr	x8
	mov	x1, x0
	mov	x0, x25
	bl	_skb_put
	ldr	w8, [sp, #12]
	str	w8, [x25]
	ldr	w8, [sp, #12]
Lloh8:
	adrp	x9, _CHECKSUM_NONE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CHECKSUM_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x25
	bl	_netif_receive_skb
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w20, w28
	b.eq	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [x19, #16]
	ldr	x8, [x8, x26, lsl #3]
	ldr	x8, [x8, #16]
	add	x24, x8, w23, uxtw #2
	ldr	x8, [x9]
	ldr	x8, [x8, #16]
	mov	x0, x24
	blr	x8
	add	w28, w28, #1
	mov	x22, x23
	cbz	x0, LBB0_4
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x1, x25
	bl	_napi_gro_receive
	cmp	w20, w28
	b.ne	LBB0_12
	b	LBB0_15
LBB0_14:
	sub	w20, w28, #1
LBB0_15:
	mov	x0, x19
	bl	_sxgbe_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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_CHECKSUM_NONE,4,2              ; @CHECKSUM_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx descriptor is not consistent\n"

	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.no_dead_strip	_sxgbe_rx
.subsections_via_symbols
