	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_cle_set_rss_idt
_xgene_cle_set_rss_idt:                 ## @xgene_cle_set_rss_idt
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_XGENE_CLE_IDT_ENTRIES@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_7
## %bb.1:
	leaq	4(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	cltd
	idivl	(%r15)
	movl	%edx, %r14d
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movq	8(%rax), %rax
	movl	(%rax), %edi
	callq	_xgene_enet_get_fpsel
	movq	%rax, %r13
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %rdi
	callq	_xgene_enet_dst_ring_num
	movq	%rax, %r12
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rax), %edi
	callq	_xgene_enet_get_fpsel
	movq	%rax, %rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, -56(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	leaq	-56(%rbp), %r14
	movq	%r14, %r8
	callq	_xgene_cle_idt_to_hw
	movq	_RSS_IDT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_CLE_CMD_WR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	$1, %edx
	movl	%ebx, %ecx
	callq	_xgene_cle_dram_wr
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movq	_XGENE_CLE_IDT_ENTRIES@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_3
LBB0_7:
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_xgene_cle_set_rss_skeys
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGENE_CLE_IDT_ENTRIES,4,2      ## @XGENE_CLE_IDT_ENTRIES
	.comm	_RSS_IDT,4,2                    ## @RSS_IDT
	.comm	_CLE_CMD_WR,4,2                 ## @CLE_CMD_WR
	.no_dead_strip	_xgene_cle_set_rss_idt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_cle_set_rss_idt
_xgene_cle_set_rss_idt:                 ; @xgene_cle_set_rss_idt
	.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	x19, x0
Lloh0:
	adrp	x24, _XGENE_CLE_IDT_ENTRIES@GOTPAGE
Lloh1:
	ldr	x24, [x24, _XGENE_CLE_IDT_ENTRIES@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w20, #0
	add	x21, x19, #4
Lloh2:
	adrp	x25, _RSS_IDT@GOTPAGE
Lloh3:
	ldr	x25, [x25, _RSS_IDT@GOTPAGEOFF]
Lloh4:
	adrp	x26, _CLE_CMD_WR@GOTPAGE
Lloh5:
	ldr	x26, [x26, _CLE_CMD_WR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	sdiv	w9, w20, w8
	msub	w8, w9, w8, w20
	ldr	x9, [x19, #8]
	lsl	x27, x8, #3
	ldr	x8, [x9, x27]
	ldr	x8, [x8, #8]
	ldr	w0, [x8]
	bl	_xgene_enet_get_fpsel
	mov	x22, x0
	ldr	x8, [x19, #8]
	ldr	x0, [x8, x27]
	bl	_xgene_enet_dst_ring_num
	mov	x23, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x27]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x8]
	bl	_xgene_enet_get_fpsel
	mov	x3, x0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x3, #0
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	xzr, [sp, #8]
	add	x4, sp, #8
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_xgene_cle_idt_to_hw
	ldr	w4, [x25]
	ldr	w5, [x26]
	add	x1, sp, #8
	mov	x0, x21
	mov	w2, #1
	mov	x3, x20
	bl	_xgene_cle_dram_wr
	cbnz	w0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w20, w20, #1
	ldr	w8, [x24]
	cmp	w20, w8
	b.lt	LBB0_2
LBB0_7:
	add	x0, x19, #4
	bl	_xgene_cle_set_rss_skeys
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_XGENE_CLE_IDT_ENTRIES,4,2      ; @XGENE_CLE_IDT_ENTRIES
	.comm	_RSS_IDT,4,2                    ; @RSS_IDT
	.comm	_CLE_CMD_WR,4,2                 ; @CLE_CMD_WR
	.no_dead_strip	_xgene_cle_set_rss_idt
.subsections_via_symbols
