	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_enet_process_ring
_xgene_enet_process_ring:               ## @xgene_enet_process_ring
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_netdev_priv
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rax
	decq	%rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	decl	%r14d
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(,%r12,4), %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	24(%rax), %r14
	movq	%r14, %rdi
	callq	_xgene_enet_is_desc_slot_empty
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	movq	_NV@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_le64_to_cpu
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_GET_BIT
	testq	%rax, %rax
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%r12
	andq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	leaq	(,%r12,4), %r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	24(%rax), %r15
	movq	%r15, %rdi
	callq	_xgene_enet_is_desc_slot_empty
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%eax, %eax
	callq	_dma_rmb
	incl	%r13d
	movl	$2, -52(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, -52(%rbp)                   ## 4-byte Folded Spill
	xorl	%r15d, %r15d
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_is_rx_desc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_xgene_enet_rx_frame
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	_xgene_enet_tx_completion
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_xgene_enet_mark_desc_slot_empty
	testq	%r15, %r15
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_xgene_enet_mark_desc_slot_empty
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	incq	%r12
	testq	%rbx, %rbx
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	addl	%edx, (%rax,%rcx,4)
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	andq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	incl	%r13d
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leal	1(%rax), %ebx
	cmpl	$0, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	%eax, -68(%rbp)                 ## 4-byte Folded Reload
	movl	%ebx, %r15d
	jne	LBB0_1
	jmp	LBB0_17
LBB0_2:
	movl	%r15d, %ebx
	jmp	LBB0_17
LBB0_6:
	decq	%r12
	andq	-64(%rbp), %r12                 ## 8-byte Folded Reload
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ebx
LBB0_17:
	movl	%r13d, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_20
## %bb.18:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	negl	%r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	*(%rax)
	movq	%r12, (%r14)
	movq	16(%r14), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	___netif_subqueue_stopped
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_netif_start_subqueue
LBB0_20:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV,4,2                         ## @NV
	.no_dead_strip	_xgene_enet_process_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_enet_process_ring
_xgene_enet_process_ring:               ; @xgene_enet_process_ring
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x23, x1
	mov	x20, x0
	ldr	x0, [x0, #32]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	bl	_netdev_priv
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	mov	w21, #0
	mov	w28, #0
	ldp	x27, x8, [x20]
	sub	x19, x8, #1
	sub	w8, w23, #1
	str	w8, [sp, #28]                   ; 4-byte Folded Spill
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	add	x23, x8, x27, lsl #2
	mov	x0, x23
	bl	_xgene_enet_is_desc_slot_empty
	bl	_unlikely
	cbnz	x0, LBB0_16
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_dma_rmb
Lloh0:
	adrp	x8, _NV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	ldr	w0, [x23]
	bl	_le64_to_cpu
	mov	x1, x0
	mov	x0, x24
	bl	_GET_BIT
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x27, #1
	and	x27, x8, x19
	ldr	x8, [x20, #24]
	add	x24, x8, x27, lsl #2
	mov	x0, x24
	bl	_xgene_enet_is_desc_slot_empty
	bl	_unlikely
	cbnz	x0, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_dma_rmb
	add	w21, w21, #1
	mov	w22, #2
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x24, #0
	mov	w22, #1
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x23
	bl	_is_rx_desc
	mov	x26, x0
	cbz	x0, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_xgene_enet_rx_frame
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_xgene_enet_tx_completion
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x25, x0
	mov	x0, x23
	bl	_xgene_enet_mark_desc_slot_empty
	cbz	x24, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x24
	bl	_xgene_enet_mark_desc_slot_empty
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	cbnz	x26, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x9, [x20, #16]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	add	w10, w10, w22
	str	w10, [x8, x9]
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x27, #1
	and	x27, x8, x19
	add	w21, w21, #1
	add	w23, w28, #1
	cbnz	w25, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, w28
	mov	x28, x23
	b.ne	LBB0_1
	b	LBB0_17
LBB0_15:
	sub	x8, x27, #1
	and	x27, x8, x19
LBB0_16:
	mov	x23, x28
LBB0_17:
	mov	x0, x21
	bl	_likely
	cbz	x0, LBB0_20
; %bb.18:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	neg	w1, w21
	mov	x0, x20
	blr	x8
	str	x27, [x20]
	ldr	x1, [x20, #16]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	___netif_subqueue_stopped
	cbz	x0, LBB0_20
; %bb.19:
	ldr	x1, [x20, #16]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_netif_start_subqueue
LBB0_20:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NV,4,2                         ; @NV
	.no_dead_strip	_xgene_enet_process_ring
.subsections_via_symbols
