	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nfp_net_rss_init
_nfp_net_rss_init:                      ## @nfp_net_rss_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_NFP_NET_CFG_RSS_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_nn_readl
	movq	_NFP_NET_CFG_RSS_CAP_HFUNC@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movl	%eax, %esi
	callq	_FIELD_GET
	movq	%rax, -32(%rbp)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	movq	_NFP_NET_CFG_RSS_TOEPLITZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FIELD_GET
	movq	%rax, -32(%rbp)
LBB0_2:
	movq	_NFP_NET_CFG_RSS_HFUNCS@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	leaq	-32(%rbp), %rdi
	callq	_find_first_bit
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.3:
	movl	12(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	_ETH_RSS_HASH_TOP_BIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	movl	$1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	%edx, (%r15)
	movl	8(%r15), %r14d
	movq	%r15, %rdi
	callq	_nfp_net_rss_key_sz
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_netdev_rss_key_fill
	movq	%r15, %rdi
	callq	_nfp_net_rss_init_itbl
	movq	_NFP_NET_CFG_RSS_IPV4_TCP@GOTPCREL(%rip), %rax
	movq	_NFP_NET_CFG_RSS_IPV6_TCP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	_NFP_NET_CFG_RSS_HFUNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %esi
	callq	_FIELD_PREP
	orl	%ebx, %eax
	movq	_NFP_NET_CFG_RSS_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 4(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NFP_NET_CFG_RSS_CAP,4,2        ## @NFP_NET_CFG_RSS_CAP
	.comm	_NFP_NET_CFG_RSS_CAP_HFUNC,4,2  ## @NFP_NET_CFG_RSS_CAP_HFUNC
	.comm	_NFP_NET_CFG_RSS_TOEPLITZ,4,2   ## @NFP_NET_CFG_RSS_TOEPLITZ
	.comm	_NFP_NET_CFG_RSS_HFUNCS,8,3     ## @NFP_NET_CFG_RSS_HFUNCS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad RSS config, defaulting to Toeplitz hash\n"

	.comm	_ETH_RSS_HASH_TOP_BIT,8,3       ## @ETH_RSS_HASH_TOP_BIT
	.comm	_NFP_NET_CFG_RSS_IPV4_TCP,4,2   ## @NFP_NET_CFG_RSS_IPV4_TCP
	.comm	_NFP_NET_CFG_RSS_IPV6_TCP,4,2   ## @NFP_NET_CFG_RSS_IPV6_TCP
	.comm	_NFP_NET_CFG_RSS_HFUNC,4,2      ## @NFP_NET_CFG_RSS_HFUNC
	.comm	_NFP_NET_CFG_RSS_MASK,4,2       ## @NFP_NET_CFG_RSS_MASK
	.no_dead_strip	_nfp_net_rss_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nfp_net_rss_init
_nfp_net_rss_init:                      ; @nfp_net_rss_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _NFP_NET_CFG_RSS_CAP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NFP_NET_CFG_RSS_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_nn_readl
	mov	x1, x0
Lloh3:
	adrp	x20, _NFP_NET_CFG_RSS_CAP_HFUNC@GOTPAGE
Lloh4:
	ldr	x20, [x20, _NFP_NET_CFG_RSS_CAP_HFUNC@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_FIELD_GET
	str	x0, [sp, #8]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x20]
Lloh5:
	adrp	x8, _NFP_NET_CFG_RSS_TOEPLITZ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _NFP_NET_CFG_RSS_TOEPLITZ@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_FIELD_GET
	str	x0, [sp, #8]
LBB0_2:
Lloh8:
	adrp	x20, _NFP_NET_CFG_RSS_HFUNCS@GOTPAGE
Lloh9:
	ldr	x20, [x20, _NFP_NET_CFG_RSS_HFUNCS@GOTPAGEOFF]
	ldr	x1, [x20]
	add	x0, sp, #8
	bl	_find_first_bit
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	ldr	w0, [x19, #12]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
Lloh12:
	adrp	x8, _ETH_RSS_HASH_TOP_BIT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_RSS_HASH_TOP_BIT@GOTPAGEOFF]
Lloh14:
	ldr	x0, [x8]
LBB0_4:
	mov	w8, #1
	lsl	w8, w8, w0
	str	w8, [x19]
	ldr	w20, [x19, #8]
	mov	x0, x19
	bl	_nfp_net_rss_key_sz
	mov	x1, x0
	mov	x0, x20
	bl	_netdev_rss_key_fill
	mov	x0, x19
	bl	_nfp_net_rss_init_itbl
Lloh15:
	adrp	x8, _NFP_NET_CFG_RSS_IPV4_TCP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NFP_NET_CFG_RSS_IPV4_TCP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _NFP_NET_CFG_RSS_IPV6_TCP@GOTPAGE
Lloh19:
	ldr	x9, [x9, _NFP_NET_CFG_RSS_IPV6_TCP@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w20, w9, w8
Lloh21:
	adrp	x8, _NFP_NET_CFG_RSS_HFUNC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NFP_NET_CFG_RSS_HFUNC@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w1, [x19]
	bl	_FIELD_PREP
	orr	w8, w20, w0
Lloh24:
	adrp	x9, _NFP_NET_CFG_RSS_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _NFP_NET_CFG_RSS_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_NFP_NET_CFG_RSS_CAP,4,2        ; @NFP_NET_CFG_RSS_CAP
	.comm	_NFP_NET_CFG_RSS_CAP_HFUNC,4,2  ; @NFP_NET_CFG_RSS_CAP_HFUNC
	.comm	_NFP_NET_CFG_RSS_TOEPLITZ,4,2   ; @NFP_NET_CFG_RSS_TOEPLITZ
	.comm	_NFP_NET_CFG_RSS_HFUNCS,8,3     ; @NFP_NET_CFG_RSS_HFUNCS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad RSS config, defaulting to Toeplitz hash\n"

	.comm	_ETH_RSS_HASH_TOP_BIT,8,3       ; @ETH_RSS_HASH_TOP_BIT
	.comm	_NFP_NET_CFG_RSS_IPV4_TCP,4,2   ; @NFP_NET_CFG_RSS_IPV4_TCP
	.comm	_NFP_NET_CFG_RSS_IPV6_TCP,4,2   ; @NFP_NET_CFG_RSS_IPV6_TCP
	.comm	_NFP_NET_CFG_RSS_HFUNC,4,2      ; @NFP_NET_CFG_RSS_HFUNC
	.comm	_NFP_NET_CFG_RSS_MASK,4,2       ; @NFP_NET_CFG_RSS_MASK
	.no_dead_strip	_nfp_net_rss_init
.subsections_via_symbols
