	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclgevf_set_channels
_hclgevf_set_channels:                  ## @hclgevf_set_channels
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_hclgevf_ae_get_hdev
	movq	%rax, %r13
	movl	(%rbx), %r12d
	movl	4(%rbx), %r15d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_hclgevf_update_rss_size
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_hclgevf_set_rss_tc_mode
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	movl	%r12d, %r15d
	movq	%r13, %r12
	je	LBB0_2
LBB0_8:
	movq	(%r12), %rdi
	movl	(%rbx), %ecx
	movl	8(%rbx), %r9d
	imull	%ecx, %r9d
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_dev_info
	xorl	%r14d, %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_HCLGEVF_RSS_IND_TBL_SIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	%rax, %r13
	cmpl	$0, (%r14)
	je	LBB0_6
## %bb.4:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	(%rbx)
	movl	%edx, (%r13,%rcx,4)
	incq	%rcx
	movl	(%r14), %eax
	cmpq	%rax, %rcx
	jb	LBB0_5
LBB0_6:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_hclgevf_set_rss
	testl	%eax, %eax
	je	LBB0_7
## %bb.11:
	movl	%eax, %r14d
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_9
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_9
LBB0_7:
	movq	%r13, %rdi
	callq	_kfree
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGEVF_RSS_IND_TBL_SIZE,4,2   ## @HCLGEVF_RSS_IND_TBL_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set rss indir table fail, ret=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Channels changed, rss_size from %u to %u, tqps from %u to %u"

	.no_dead_strip	_hclgevf_set_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclgevf_set_channels
_hclgevf_set_channels:                  ; @hclgevf_set_channels
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x2
	mov	x24, x1
	mov	x20, x0
	bl	_hclgevf_ae_get_hdev
	mov	x22, x0
	ldp	w21, w19, [x20]
	mov	x0, x20
	mov	x1, x24
	bl	_hclgevf_update_rss_size
	ldr	w1, [x20]
	mov	x0, x22
	bl	_hclgevf_set_rss_tc_mode
	mov	x24, x0
	cbnz	w0, LBB0_3
; %bb.1:
	cbz	w23, LBB0_4
LBB0_2:
	ldr	x0, [x22]
	ldr	w3, [x20]
	ldr	w8, [x20, #8]
	mul	w5, w8, w3
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	mov	x4, x19
	bl	_dev_info
	mov	w24, #0
LBB0_3:
	mov	x0, x24
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh2:
	adrp	x24, _HCLGEVF_RSS_IND_TBL_SIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _HCLGEVF_RSS_IND_TBL_SIZE@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kcalloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x23, x0
	ldr	w8, [x24]
	cbz	w8, LBB0_8
; %bb.6:
	mov	x8, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x20]
	udiv	w10, w8, w9
	msub	w9, w10, w9, w8
	str	w9, [x23, x8, lsl #2]
	add	x8, x8, #1
	ldr	w9, [x24]
	cmp	x8, x9
	b.lo	LBB0_7
LBB0_8:
	mov	x0, x20
	mov	x1, x23
	mov	x2, #0
	mov	w3, #0
	bl	_hclgevf_set_rss
	cbz	w0, LBB0_11
; %bb.9:
	mov	x24, x0
	ldr	x0, [x22]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x24
	bl	_dev_err
	mov	x0, x23
	bl	_kfree
	b	LBB0_3
LBB0_10:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_3
LBB0_11:
	mov	x0, x23
	bl	_kfree
	b	LBB0_2
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGEVF_RSS_IND_TBL_SIZE,4,2   ; @HCLGEVF_RSS_IND_TBL_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set rss indir table fail, ret=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Channels changed, rss_size from %u to %u, tqps from %u to %u"

	.no_dead_strip	_hclgevf_set_channels
.subsections_via_symbols
