	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns3_set_channels              ## -- Begin function hns3_set_channels
	.p2align	4, 0x90
_hns3_set_channels:                     ## @hns3_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
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_hns3_get_handle
	movq	%rax, %r14
	movq	%r13, %rdi
	callq	_netif_is_rxfh_configured
	movl	%eax, %r15d
	movl	(%rbx), %r12d
	movq	%r13, %rdi
	callq	_hns3_nic_resetting
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	cmpq	$0, 16(%rbx)
	jne	LBB0_4
## %bb.3:
	cmpq	$0, 8(%rbx)
	jne	LBB0_4
## %bb.7:
	movq	%r14, %rdi
	callq	_hns3_get_max_available_channels
	testl	%r12d, %r12d
	jle	LBB0_15
## %bb.8:
	cmpl	%eax, %r12d
	jg	LBB0_15
## %bb.9:
	xorl	%ebx, %ebx
	cmpl	%r12d, (%r14)
	je	LBB0_6
## %bb.10:
	movq	_drv@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	movq	%r13, %rdx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	callq	_netif_dbg
	movq	_HNAE3_DOWN_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hns3_reset_notify
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.11:
	movq	_HNAE3_UNINIT_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hns3_reset_notify
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.12:
	movl	4(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_hns3_change_channels
	movl	$0, %ebx
	testl	%eax, %eax
	je	LBB0_6
## %bb.13:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_warn
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r15d, %edx
	callq	_hns3_change_channels
	testl	%eax, %eax
	je	LBB0_16
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_netdev_err
	jmp	LBB0_6
LBB0_15:
	movq	%r14, %rdi
	callq	_hns3_get_max_available_channels
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	callq	_dev_err
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	%r12d, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Change tqps fail, the tqp range is from 1 to %d"

	.comm	_drv,4,2                        ## @drv
L_.str.1:                               ## @.str.1
	.asciz	"set channels: tqp_num=%u, rxfh=%d\n"

	.comm	_HNAE3_DOWN_CLIENT,4,2          ## @HNAE3_DOWN_CLIENT
	.comm	_HNAE3_UNINIT_CLIENT,4,2        ## @HNAE3_UNINIT_CLIENT
L_.str.2:                               ## @.str.2
	.asciz	"Change channels fail, revert to old value\n"

L_.str.3:                               ## @.str.3
	.asciz	"revert to old channel fail\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hns3_set_channels              ; -- Begin function hns3_set_channels
	.p2align	2
_hns3_set_channels:                     ; @hns3_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, x1
	mov	x19, x0
	bl	_hns3_get_handle
	mov	x20, x0
	mov	x0, x19
	bl	_netif_is_rxfh_configured
	mov	x21, x0
	ldr	w22, [x23]
	mov	x0, x19
	bl	_hns3_nic_resetting
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	ldr	x8, [x23, #16]
	cbnz	x8, LBB0_9
; %bb.3:
	ldr	x8, [x23, #8]
	cbnz	x8, LBB0_9
; %bb.4:
	mov	x0, x20
	bl	_hns3_get_max_available_channels
	cmp	w22, #1
	b.lt	LBB0_8
; %bb.5:
	cmp	w22, w0
	b.gt	LBB0_8
; %bb.6:
	ldr	w8, [x20]
	cmp	w8, w22
	b.ne	LBB0_12
; %bb.7:
	mov	w23, #0
	b	LBB0_11
LBB0_8:
	mov	x0, x20
	bl	_hns3_get_max_available_channels
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_9:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_11:
	mov	x0, x23
	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_12:
Lloh6:
	adrp	x8, _drv@GOTPAGE
Lloh7:
	ldr	x8, [x8, _drv@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	mov	x4, x22
	mov	x5, x21
	bl	_netif_dbg
Lloh11:
	adrp	x8, _HNAE3_DOWN_CLIENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HNAE3_DOWN_CLIENT@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hns3_reset_notify
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.13:
Lloh14:
	adrp	x8, _HNAE3_UNINIT_CLIENT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HNAE3_UNINIT_CLIENT@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_hns3_reset_notify
	mov	x23, x0
	cbnz	w0, LBB0_11
; %bb.14:
	ldr	w24, [x20, #4]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_hns3_change_channels
	mov	x23, x0
	cbz	w0, LBB0_11
; %bb.15:
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_netdev_warn
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	bl	_hns3_change_channels
	cbz	w0, LBB0_11
; %bb.16:
	mov	x20, x0
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_netdev_err
	mov	x23, x20
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Change tqps fail, the tqp range is from 1 to %d"

	.comm	_drv,4,2                        ; @drv
l_.str.1:                               ; @.str.1
	.asciz	"set channels: tqp_num=%u, rxfh=%d\n"

	.comm	_HNAE3_DOWN_CLIENT,4,2          ; @HNAE3_DOWN_CLIENT
	.comm	_HNAE3_UNINIT_CLIENT,4,2        ; @HNAE3_UNINIT_CLIENT
l_.str.2:                               ; @.str.2
	.asciz	"Change channels fail, revert to old value\n"

l_.str.3:                               ; @.str.3
	.asciz	"revert to old channel fail\n"

.subsections_via_symbols
