	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_nic_init_vector_data
_hns3_nic_init_vector_data:             ## @hns3_nic_init_vector_data
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	32(%rdi), %r13
	callq	_hns3_nic_set_cpumask
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r15
	leaq	(%r15,%rbx), %rdi
	movq	%r12, %rsi
	callq	_hns3_vector_gl_rl_init_hw
	movq	$0, 48(%r15,%rbx)
	incq	%r14
	movslq	(%r12), %rcx
	addq	$56, %rbx
	cmpq	%rcx, %r14
	jl	LBB0_2
LBB0_3:
	movl	8(%r13), %edi
	testl	%edi, %edi
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_6
## %bb.4:
	movq	24(%r12), %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %eax
	cltd
	idivl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	movslq	%edi, %r14
	movq	8(%r12), %r15
	imulq	$56, %rdx, %r13
	leaq	(%r15,%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r13), %rdi
	addq	$16, %rdi
	movq	(%rsi,%rbx,8), %rsi
	callq	_hns3_add_ring_to_group
	leaq	(%r15,%r13), %rdi
	addq	$32, %rdi
	movq	24(%r12), %rax
	addq	%rbx, %r14
	movq	(%rax,%r14,8), %rsi
	callq	_hns3_add_ring_to_group
	movq	24(%r12), %rsi
	movq	(%rsi,%rbx,8), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	movq	(%rsi,%r14,8), %rax
	movq	%rcx, (%rax)
	incq	48(%r15,%r13)
	incq	%rbx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movslq	8(%rax), %rdi
	movl	(%r12), %ecx
	cmpq	%rdi, %rbx
	jl	LBB0_5
LBB0_6:
	testl	%ecx, %ecx
	jle	LBB0_16
## %bb.7:
	xorl	%r15d, %r15d
	leaq	-72(%rbp), %rbx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r14
	leaq	(%r14,%r15), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r14,%r15)
	movups	%xmm0, 16(%r14,%r15)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, 8(%r14,%r15)
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rsi
	callq	_hns3_get_vector_ring_chain
	testl	%eax, %eax
	jne	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	4(%r14,%r15), %esi
	movq	%r13, %rdi
	movq	%rbx, %rdx
	callq	*(%rax)
	movl	%eax, %r13d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %r14
	movq	%rbx, %rsi
	callq	_hns3_free_vector_ring_chain
	testl	%r13d, %r13d
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	16(%r12), %edi
	movq	_hns3_nic_common_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_netif_napi_add
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movslq	(%r12), %rax
	addq	$56, %r15
	cmpq	%rax, %rcx
	movq	%r14, %rbx
	jl	LBB0_8
LBB0_16:
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_9:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, %r13d
	testl	%ecx, %ecx
	jne	LBB0_11
	jmp	LBB0_17
LBB0_14:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testl	%ecx, %ecx
	je	LBB0_17
LBB0_11:
	addq	$-56, %r15
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rdi
	addq	%r15, %rdi
	callq	_netif_napi_del
	addq	$-56, %r15
	cmpq	$-56, %r15
	jne	LBB0_12
LBB0_17:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hns3_nic_common_poll,4,2       ## @hns3_nic_common_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
	.no_dead_strip	_hns3_nic_init_vector_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_nic_init_vector_data
_hns3_nic_init_vector_data:             ; @hns3_nic_init_vector_data
	.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	x19, x0
	ldr	x20, [x0, #32]
	bl	_hns3_nic_set_cpumask
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	x23, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x21, x8, x22
	mov	x0, x21
	mov	x1, x19
	bl	_hns3_vector_gl_rl_init_hw
	str	xzr, [x21, #48]
	add	x23, x23, #1
	ldrsw	x8, [x19]
	add	x22, x22, #56
	cmp	x23, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w23, [x20, #8]
	cmp	w23, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x21, #0
	ldr	x9, [x19, #24]
	mov	w22, #56
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sdiv	w10, w21, w8
	msub	w8, w10, w8, w21
	ldr	x10, [x19, #8]
	umaddl	x24, w8, w22, x10
	add	x0, x24, #16
	lsl	x25, x21, #3
	ldr	x1, [x9, x25]
	bl	_hns3_add_ring_to_group
	add	x0, x24, #32
	ldr	x8, [x19, #24]
	add	x9, x21, w23, sxtw
	lsl	x23, x9, #3
	ldr	x1, [x8, x23]
	bl	_hns3_add_ring_to_group
	ldr	x9, [x19, #24]
	ldr	x8, [x9, x25]
	str	x24, [x8]
	ldr	x8, [x9, x23]
	str	x24, [x8]
	ldr	x8, [x24, #48]
	add	x8, x8, #1
	str	x8, [x24, #48]
	add	x21, x21, #1
	ldrsw	x23, [x20, #8]
	ldr	w8, [x19]
	cmp	x21, x23
	b.lt	LBB0_5
LBB0_6:
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x23, #0
	mov	x24, #0
Lloh0:
	adrp	x25, _hns3_nic_common_poll@GOTPAGE
Lloh1:
	ldr	x25, [x25, _hns3_nic_common_poll@GOTPAGEOFF]
Lloh2:
	adrp	x26, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh3:
	ldr	x26, [x26, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #8]
	add	x22, x27, x23
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x22, #16]
	str	x20, [x22, #8]
	add	x1, sp, #8
	mov	x0, x22
	bl	_hns3_get_vector_ring_chain
	cbnz	w0, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x22, #4]
	add	x2, sp, #8
	mov	x0, x20
	blr	x8
	mov	x21, x0
	add	x1, sp, #8
	mov	x0, x22
	bl	_hns3_free_vector_ring_chain
	cbnz	w21, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x19, #16]
	add	x1, x27, x23
	ldr	w2, [x25]
	ldr	w3, [x26]
	bl	_netif_napi_add
	add	x24, x24, #1
	ldrsw	x8, [x19]
	add	x23, x23, #56
	cmp	x24, x8
	b.lt	LBB0_8
LBB0_11:
	mov	w21, #0
	b	LBB0_16
LBB0_12:
	mov	x21, x0
LBB0_13:
	cbz	w24, LBB0_16
; %bb.14:
	sub	x20, x23, #56
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x20
	bl	_netif_napi_del
	sub	x20, x20, #56
	cmn	x20, #56
	b.ne	LBB0_15
LBB0_16:
	mov	x0, x21
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_hns3_nic_common_poll,4,2       ; @hns3_nic_common_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
	.no_dead_strip	_hns3_nic_init_vector_data
.subsections_via_symbols
