	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_nic_set_real_num_queue
_hns3_nic_set_real_num_queue:           ## @hns3_nic_set_real_num_queue
	.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	%rdi, %r15
	callq	_hns3_get_handle
	movl	4(%rax), %esi
	movl	(%rax), %r14d
	imull	%esi, %r14d
	cmpl	$1, %esi
	ja	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_netdev_reset_tc
LBB0_8:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_netif_set_real_num_tx_queues
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_13
LBB0_2:
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_netdev_set_num_tc
	testl	%eax, %eax
	je	LBB0_3
## %bb.15:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_13
LBB0_10:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_netif_set_real_num_rx_queues
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.2(%rip), %rsi
LBB0_13:
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_netdev_err
LBB0_14:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_HNAE3_MAX_TC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	movl	$12, %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r12
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rdx
	cmpl	$0, (%rdx,%rbx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-4(%rdx,%rbx), %esi
	movl	-12(%rdx,%rbx), %ecx
	movl	-8(%rdx,%rbx), %edx
	movq	%r15, %rdi
	callq	_netdev_set_tc_queue
	movq	_HNAE3_MAX_TC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_11:
	xorl	%r12d, %r12d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"netdev_set_num_tc fail, ret=%d!\n"

	.comm	_HNAE3_MAX_TC,4,2               ## @HNAE3_MAX_TC
L_.str.1:                               ## @.str.1
	.asciz	"netif_set_real_num_tx_queues fail, ret=%d!\n"

L_.str.2:                               ## @.str.2
	.asciz	"netif_set_real_num_rx_queues fail, ret=%d!\n"

	.no_dead_strip	_hns3_nic_set_real_num_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_nic_set_real_num_queue
_hns3_nic_set_real_num_queue:           ; @hns3_nic_set_real_num_queue
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	bl	_hns3_get_handle
	ldp	w23, w20, [x0]
	cmp	w20, #1
	b.hi	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_netdev_reset_tc
LBB0_2:
	mul	w20, w20, w23
	mov	x0, x19
	mov	x1, x20
	bl	_netif_set_real_num_tx_queues
	cbz	w0, LBB0_6
; %bb.3:
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_netdev_set_num_tc
	cbz	w0, LBB0_10
; %bb.5:
	mov	x22, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_netif_set_real_num_rx_queues
	mov	x22, x0
	cbz	w0, LBB0_9
; %bb.7:
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	mov	x2, x22
	bl	_netdev_err
LBB0_9:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh6:
	adrp	x22, _HNAE3_MAX_TC@GOTPAGE
Lloh7:
	ldr	x22, [x22, _HNAE3_MAX_TC@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.11:
	mov	x24, #0
	mov	x25, #0
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x25, x25, #1
	add	x24, x24, #16
	cmp	x25, w8, sxtw
	b.ge	LBB0_2
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	add	x9, x9, x24
	ldr	w10, [x9, #12]
	cbz	w10, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldp	w2, w1, [x9, #4]
	ldr	w3, [x9]
	mov	x0, x19
	bl	_netdev_set_tc_queue
	ldr	w8, [x22]
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"netdev_set_num_tc fail, ret=%d!\n"

	.comm	_HNAE3_MAX_TC,4,2               ; @HNAE3_MAX_TC
l_.str.1:                               ; @.str.1
	.asciz	"netif_set_real_num_tx_queues fail, ret=%d!\n"

l_.str.2:                               ; @.str.2
	.asciz	"netif_set_real_num_rx_queues fail, ret=%d!\n"

	.no_dead_strip	_hns3_nic_set_real_num_queue
.subsections_via_symbols
