	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_set_rss
_hns3_set_rss:                          ## @hns3_set_rss
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_hns3_get_handle
	movq	(%rax), %rcx
	movq	(%rcx), %rcx
	movq	(%rcx), %r8
	testq	%r8, %r8
	je	LBB0_8
## %bb.1:
	movq	8(%rax), %rcx
	cmpl	$32, (%rcx)
	movq	_ETH_RSS_HASH_TOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	jne	LBB0_3
## %bb.2:
	cmpl	%r14d, %ecx
	jne	LBB0_6
LBB0_3:
	movq	_ETH_RSS_HASH_NO_CHANGE@GOTPCREL(%rip), %rdx
	cmpl	%r14d, (%rdx)
	je	LBB0_9
## %bb.4:
	cmpl	%r14d, %ecx
	je	LBB0_9
## %bb.5:
	movq	_ETH_RSS_HASH_XOR@GOTPCREL(%rip), %rcx
	cmpl	%r14d, (%rcx)
	je	LBB0_9
LBB0_6:
	leaq	L_.str(%rip), %rsi
LBB0_7:
	movq	%rbx, %rdi
	callq	_netdev_err
LBB0_8:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testq	%r12, %r12
	je	LBB0_10
## %bb.11:
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%r8                            ## TAILCALL
LBB0_10:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_ETH_RSS_HASH_TOP,4,2           ## @ETH_RSS_HASH_TOP
	.comm	_ETH_RSS_HASH_NO_CHANGE,4,2     ## @ETH_RSS_HASH_NO_CHANGE
	.comm	_ETH_RSS_HASH_XOR,4,2           ## @ETH_RSS_HASH_XOR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hash func not supported\n"

L_.str.1:                               ## @.str.1
	.asciz	"set rss failed for indir is empty\n"

	.no_dead_strip	_hns3_set_rss
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_set_rss
_hns3_set_rss:                          ; @hns3_set_rss
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_hns3_get_handle
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x4, [x8]
	cbz	x4, LBB0_7
; %bb.1:
	ldr	x8, [x0, #8]
	ldr	w9, [x8]
Lloh0:
	adrp	x8, _ETH_RSS_HASH_TOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETH_RSS_HASH_TOP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w9, #32
	ccmp	w8, w19, #4, eq
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, _ETH_RSS_HASH_NO_CHANGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_RSS_HASH_NO_CHANGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _ETH_RSS_HASH_XOR@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ETH_RSS_HASH_XOR@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w19
	ccmp	w8, w19, #4, ne
	ccmp	w10, w19, #4, ne
	b.ne	LBB0_5
; %bb.3:
	cbz	x22, LBB0_8
; %bb.4:
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	br	x4
LBB0_5:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x0, x20
	bl	_netdev_err
LBB0_7:
Lloh11:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_ETH_RSS_HASH_TOP,4,2           ; @ETH_RSS_HASH_TOP
	.comm	_ETH_RSS_HASH_NO_CHANGE,4,2     ; @ETH_RSS_HASH_NO_CHANGE
	.comm	_ETH_RSS_HASH_XOR,4,2           ; @ETH_RSS_HASH_XOR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hash func not supported\n"

l_.str.1:                               ; @.str.1
	.asciz	"set rss failed for indir is empty\n"

	.no_dead_strip	_hns3_set_rss
.subsections_via_symbols
