	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclgevf_get_rss_hash_key
_hclgevf_get_rss_hash_key:              ## @hclgevf_get_rss_hash_key
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HCLGEVF_RSS_KEY_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	7(%rax), %ecx
	leal	14(%rax), %r13d
	testl	%ecx, %ecx
	cmovnsl	%ecx, %r13d
	movl	$0, -84(%rbp)
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r12
	sarl	$3, %r13d
	leal	-1(%r13), %r15d
	leaq	-80(%rbp), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_HCLGE_MBX_GET_RSS_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	leaq	-84(%rbp), %rcx
	movl	$4, %r8d
	movl	$1, %r9d
	pushq	$8
	pushq	%r14
	callq	_hclgevf_send_mbx_msg
	addq	$16, %rsp
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	-84(%rbp), %rax
	leaq	(,%rax,8), %rcx
	movq	%rax, %rdi
	shlq	$5, %rdi
	addq	8(%r12), %rdi
	movq	_HCLGEVF_RSS_KEY_SIZE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	subl	%ecx, %edx
	cmpl	%r15d, %eax
	movl	$8, %eax
	cmovnel	%eax, %edx
	movq	%r14, %rsi
	callq	_memcpy
	movl	-84(%rbp), %eax
	incl	%eax
	movl	%eax, -84(%rbp)
	cmpl	%r13d, %eax
	jl	LBB0_2
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movl	%eax, %ebx
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGEVF_RSS_KEY_SIZE,4,2       ## @HCLGEVF_RSS_KEY_SIZE
	.comm	_HCLGE_MBX_GET_RSS_KEY,4,2      ## @HCLGE_MBX_GET_RSS_KEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VF get rss hash key from PF failed, ret=%d"

	.comm	_HCLGEVF_RSS_MBX_RESP_LEN,4,2   ## @HCLGEVF_RSS_MBX_RESP_LEN
	.no_dead_strip	_hclgevf_get_rss_hash_key
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclgevf_get_rss_hash_key
_hclgevf_get_rss_hash_key:              ; @hclgevf_get_rss_hash_key
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x21, _HCLGEVF_RSS_KEY_SIZE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _HCLGEVF_RSS_KEY_SIZE@GOTPAGEOFF]
	ldr	w9, [x21]
	add	w8, w9, #7
	add	w10, w9, #14
	cmp	w8, #0
	csel	w8, w10, w8, lt
	str	wzr, [sp, #4]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
	asr	w22, w8, #3
	sub	w23, w22, #1
Lloh5:
	adrp	x24, _HCLGE_MBX_GET_RSS_KEY@GOTPAGE
Lloh6:
	ldr	x24, [x24, _HCLGE_MBX_GET_RSS_KEY@GOTPAGEOFF]
	mov	w25, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	add	x3, sp, #4
	add	x6, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	w4, #4
	mov	w5, #1
	mov	w7, #8
	bl	_hclgevf_send_mbx_msg
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrsw	x8, [sp, #4]
	ldr	x9, [x19, #8]
	add	x0, x9, x8, lsl #5
	ldr	w9, [x21]
	sub	w9, w9, w8, lsl #3
	cmp	w8, w23
	csel	w2, w9, w25, eq
	add	x1, sp, #8
	bl	_memcpy
	ldr	w8, [sp, #4]
	add	w8, w8, #1
	str	w8, [sp, #4]
	cmp	w8, w22
	b.lt	LBB0_2
LBB0_4:
	mov	w20, #0
	b	LBB0_6
LBB0_5:
	mov	x20, x0
	ldr	x0, [x19]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_6:
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x20
	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
	add	sp, sp, #128
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGEVF_RSS_KEY_SIZE,4,2       ; @HCLGEVF_RSS_KEY_SIZE
	.comm	_HCLGE_MBX_GET_RSS_KEY,4,2      ; @HCLGE_MBX_GET_RSS_KEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VF get rss hash key from PF failed, ret=%d"

	.comm	_HCLGEVF_RSS_MBX_RESP_LEN,4,2   ; @HCLGEVF_RSS_MBX_RESP_LEN
	.no_dead_strip	_hclgevf_get_rss_hash_key
.subsections_via_symbols
