	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_set_rss_tc_mode
_hclge_set_rss_tc_mode:                 ## @hclge_set_rss_tc_mode
	.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	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_HCLGE_OPC_RSS_TC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	_HCLGE_MAX_TC_NUM@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	movq	-48(%rbp), %r14
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_HCLGE_RSS_TC_VALID_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx,%r13,4), %edx
	andl	$1, %edx
	xorl	%edi, %edi
	callq	_hnae3_set_bit
	movq	_HCLGE_RSS_TC_SIZE_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_RSS_TC_SIZE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12,%r13,4), %ecx
	xorl	%edi, %edi
	callq	_hnae3_set_field
	movq	_HCLGE_RSS_TC_OFFSET_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_RSS_TC_OFFSET_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r13,4), %ecx
	xorl	%edi, %edi
	callq	_hnae3_set_field
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	(%r14), %rcx
	movl	%eax, (%rcx,%r13,4)
	incq	%r13
	movslq	(%r15), %rax
	cmpq	%rax, %r13
	jl	LBB0_2
LBB0_3:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	8(%r14), %rdi
	leaq	-48(%rbp), %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_5:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_RSS_TC_MODE,4,2      ## @HCLGE_OPC_RSS_TC_MODE
	.comm	_HCLGE_MAX_TC_NUM,4,2           ## @HCLGE_MAX_TC_NUM
	.comm	_HCLGE_RSS_TC_VALID_B,4,2       ## @HCLGE_RSS_TC_VALID_B
	.comm	_HCLGE_RSS_TC_SIZE_M,4,2        ## @HCLGE_RSS_TC_SIZE_M
	.comm	_HCLGE_RSS_TC_SIZE_S,4,2        ## @HCLGE_RSS_TC_SIZE_S
	.comm	_HCLGE_RSS_TC_OFFSET_M,4,2      ## @HCLGE_RSS_TC_OFFSET_M
	.comm	_HCLGE_RSS_TC_OFFSET_S,4,2      ## @HCLGE_RSS_TC_OFFSET_S
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Configure rss tc mode fail, status = %d\n"

	.no_dead_strip	_hclge_set_rss_tc_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_set_rss_tc_mode
_hclge_set_rss_tc_mode:                 ; @hclge_set_rss_tc_mode
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	str	x0, [sp]                        ; 8-byte Folded Spill
Lloh0:
	adrp	x8, _HCLGE_OPC_RSS_TC_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_OPC_RSS_TC_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
Lloh3:
	adrp	x27, _HCLGE_MAX_TC_NUM@GOTPAGE
Lloh4:
	ldr	x27, [x27, _HCLGE_MAX_TC_NUM@GOTPAGEOFF]
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
	ldr	x25, [sp, #8]
Lloh5:
	adrp	x28, _HCLGE_RSS_TC_SIZE_S@GOTPAGE
Lloh6:
	ldr	x28, [x28, _HCLGE_RSS_TC_SIZE_S@GOTPAGEOFF]
Lloh7:
	adrp	x19, _HCLGE_RSS_TC_OFFSET_M@GOTPAGE
Lloh8:
	ldr	x19, [x19, _HCLGE_RSS_TC_OFFSET_M@GOTPAGEOFF]
Lloh9:
	adrp	x23, _HCLGE_RSS_TC_OFFSET_S@GOTPAGE
Lloh10:
	ldr	x23, [x23, _HCLGE_RSS_TC_OFFSET_S@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
Lloh11:
	adrp	x8, _HCLGE_RSS_TC_VALID_B@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HCLGE_RSS_TC_VALID_B@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	lsl	x26, x24, #2
	ldr	w8, [x22, x26]
	and	w2, w8, #0x1
	mov	w0, #0
	bl	_hnae3_set_bit
Lloh14:
	adrp	x8, _HCLGE_RSS_TC_SIZE_M@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HCLGE_RSS_TC_SIZE_M@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x28]
	ldr	w3, [x21, x26]
	mov	w0, #0
	bl	_hnae3_set_field
	ldr	w1, [x19]
	ldr	w2, [x23]
	ldr	w3, [x20, x26]
	mov	w0, #0
	bl	_hnae3_set_field
	mov	w0, #0
	bl	_cpu_to_le16
	ldr	x8, [x25]
	str	w0, [x8, x26]
	add	x24, x24, #1
	ldrsw	x8, [x27]
	cmp	x24, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x19, [sp]                       ; 8-byte Folded Reload
	add	x0, x19, #8
	add	x1, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x20, x0
	cbz	w0, LBB0_5
; %bb.4:
	ldr	x0, [x19]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	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	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_RSS_TC_MODE,4,2      ; @HCLGE_OPC_RSS_TC_MODE
	.comm	_HCLGE_MAX_TC_NUM,4,2           ; @HCLGE_MAX_TC_NUM
	.comm	_HCLGE_RSS_TC_VALID_B,4,2       ; @HCLGE_RSS_TC_VALID_B
	.comm	_HCLGE_RSS_TC_SIZE_M,4,2        ; @HCLGE_RSS_TC_SIZE_M
	.comm	_HCLGE_RSS_TC_SIZE_S,4,2        ; @HCLGE_RSS_TC_SIZE_S
	.comm	_HCLGE_RSS_TC_OFFSET_M,4,2      ; @HCLGE_RSS_TC_OFFSET_M
	.comm	_HCLGE_RSS_TC_OFFSET_S,4,2      ; @HCLGE_RSS_TC_OFFSET_S
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Configure rss tc mode fail, status = %d\n"

	.no_dead_strip	_hclge_set_rss_tc_mode
.subsections_via_symbols
