	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nixlf_rss_ctx_init
_nixlf_rss_ctx_init:                    ## @nixlf_rss_ctx_init
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%eax, %eax
	testl	%r8d, %r8d
	je	LBB0_6
## %bb.1:
	movl	%r9d, %ebx
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	16(%rbp), %ecx
	movl	%r9d, %r13d
	imull	%r8d, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	movq	%rdx, %rsi
	movl	%r13d, %edx
	callq	_qmem_alloc
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movl	%r14d, %edi
	callq	_NIX_AF_LFX_RSS_BASE
	movq	(%r12), %rcx
	movl	(%rcx), %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_rvu_write64
	movl	%r14d, %edi
	callq	_NIX_AF_LFX_RSS_CFG
	movl	%r15d, -68(%rbp)                ## 4-byte Spill
	movl	%eax, %r15d
	movl	$36, %edi
	callq	_BIT_ULL
	movl	%eax, %r12d
	movl	$4, %edi
	callq	_BIT_ULL
	orl	%eax, %r12d
	movq	_MAX_RSS_INDIR_TBL_SIZE@GOTPCREL(%rip), %rcx
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	cltd
	idivl	(%rcx)
	movl	%eax, %edi
	callq	_ilog2
	orl	%eax, %r12d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	callq	_rvu_write64
	movl	$0, %eax
	testl	%ebx, %ebx
	jle	LBB0_6
## %bb.3:
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_NIX_AF_LFX_RSS_GRPX
	movl	%r14d, %ebx
	movl	%eax, %r14d
	movl	%r13d, %edi
	callq	_ilog2
                                        ## kill: def $eax killed $eax def $rax
	shll	$16, %eax
	leal	-65536(%rax), %ecx
	orl	%r15d, %ecx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	movl	%ebx, %r14d
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	callq	_rvu_write64
	incl	%r12d
	addl	%r13d, %r15d
	cmpl	%r12d, %ebx
	jne	LBB0_4
## %bb.5:
	xorl	%eax, %eax
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_RSS_INDIR_TBL_SIZE,4,2     ## @MAX_RSS_INDIR_TBL_SIZE
	.no_dead_strip	_nixlf_rss_ctx_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nixlf_rss_ctx_init
_nixlf_rss_ctx_init:                    ; @nixlf_rss_ctx_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	w4, LBB0_5
; %bb.1:
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x25, x2
	mov	x22, x1
	mov	x23, x0
	mul	w24, w5, w4
	ldr	w0, [x0]
	mov	x1, x2
	mov	x2, x24
	mov	x3, x6
	bl	_qmem_alloc
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x21
	bl	_NIX_AF_LFX_RSS_BASE
	mov	x2, x0
	ldr	x8, [x25]
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x22
	bl	_rvu_write64
	mov	x0, x21
	bl	_NIX_AF_LFX_RSS_CFG
	mov	x25, x0
	mov	w0, #36
	bl	_BIT_ULL
	mov	x26, x0
	mov	w0, #4
	bl	_BIT_ULL
	orr	w26, w0, w26
Lloh0:
	adrp	x8, _MAX_RSS_INDIR_TBL_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_RSS_INDIR_TBL_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sdiv	w0, w24, w8
	bl	_ilog2
	orr	w3, w26, w0
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	bl	_rvu_write64
	cmp	w19, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w26, #0
	mov	w24, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_NIX_AF_LFX_RSS_GRPX
	mov	x25, x0
	mov	x0, x20
	bl	_ilog2
	lsl	w8, w0, #16
	sub	w8, w8, #16, lsl #12            ; =65536
	orr	w3, w8, w26
	mov	x0, x23
	mov	x1, x22
	mov	x2, x25
	bl	_rvu_write64
	add	w24, w24, #1
	add	w26, w26, w20
	cmp	w19, w24
	b.ne	LBB0_4
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_RSS_INDIR_TBL_SIZE,4,2     ; @MAX_RSS_INDIR_TBL_SIZE
	.no_dead_strip	_nixlf_rss_ctx_init
.subsections_via_symbols
