	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_init_ring_data
_hns_nic_init_ring_data:                ## @hns_nic_init_ring_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	24(%rdi), %r13
	movl	16(%rdi), %edi
	callq	_AE_IS_VER1
	movl	(%r13), %edx
	movq	_NIC_MAX_Q_PER_VF@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edx
	jle	LBB0_2
## %bb.1:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_netdev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_10
LBB0_2:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %edi
	movl	$32, %esi
	movl	$2, %edx
	callq	_array3_size
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, 8(%r12)
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movl	(%r13), %edx
	testl	%edx, %edx
	jle	LBB0_11
## %bb.4:
	movq	%rax, %r15
	movl	$16, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%rbx), %rsi
	movl	%r14d, -16(%r15,%rbx)
	movq	8(%r13), %rax
	movq	(%rax,%r14,8), %rax
	addq	$8, %rax
	movq	%rax, -8(%r15,%rbx)
	movq	_hns_nic_tx_poll_one@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15,%rbx)
	movq	_hns_nic_tx_fini_pro@GOTPCREL(%rip), %rax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_hns_nic_tx_fini_pro_v2@GOTPCREL(%rip), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rax), %eax
	movl	%eax, 4(%r15,%rbx)
	movl	(%r12), %edi
	movq	_hns_nic_common_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_netif_napi_add
	movq	_RCB_IRQ_NOT_INITED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-8(%r15,%rbx), %rcx
	movq	%rax, (%rcx)
	incq	%r14
	movslq	(%r13), %rdx
	cmpq	%rdx, %r14
	jge	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	8(%r12), %r15
	addq	$32, %rbx
	jmp	LBB0_5
LBB0_11:
	leal	(%rdx,%rdx), %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	jge	LBB0_17
## %bb.12:
	movslq	%edx, %r15
	movq	%r15, %rbx
	shlq	$5, %rbx
	orq	$16, %rbx
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movl	(%rax), %eax
	movl	%eax, 4(%r14,%rbx)
	movl	(%r12), %edi
	movq	_hns_nic_common_poll@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NAPI_POLL_WEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_netif_napi_add
	movq	_RCB_IRQ_NOT_INITED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-8(%r14,%rbx), %rcx
	movq	%rax, (%rcx)
	incq	%r15
	movslq	(%r13), %rdx
	movq	%rdx, %rcx
	addq	%rdx, %rcx
	addq	$32, %rbx
	cmpq	%rcx, %r15
	jge	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %r14
	movl	%r15d, %ecx
	subl	%edx, %ecx
	leaq	(%r14,%rbx), %rsi
	movl	%ecx, -16(%r14,%rbx)
	movq	8(%r13), %rax
	movslq	%ecx, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -8(%r14,%rbx)
	movq	_hns_nic_rx_poll_one@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r14,%rbx)
	movq	_hns_nic_rx_up_pro@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14,%rbx)
	movq	_hns_nic_rx_fini_pro@GOTPCREL(%rip), %rax
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	_hns_nic_rx_fini_pro_v2@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_10:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_NIC_MAX_Q_PER_VF,4,2           ## @NIC_MAX_Q_PER_VF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"too much queue (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_hns_nic_tx_poll_one,4,2        ## @hns_nic_tx_poll_one
	.comm	_hns_nic_tx_fini_pro,4,2        ## @hns_nic_tx_fini_pro
	.comm	_hns_nic_tx_fini_pro_v2,4,2     ## @hns_nic_tx_fini_pro_v2
	.comm	_hns_nic_common_poll,4,2        ## @hns_nic_common_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ## @NAPI_POLL_WEIGHT
	.comm	_RCB_IRQ_NOT_INITED,8,3         ## @RCB_IRQ_NOT_INITED
	.comm	_hns_nic_rx_poll_one,4,2        ## @hns_nic_rx_poll_one
	.comm	_hns_nic_rx_up_pro,4,2          ## @hns_nic_rx_up_pro
	.comm	_hns_nic_rx_fini_pro,4,2        ## @hns_nic_rx_fini_pro
	.comm	_hns_nic_rx_fini_pro_v2,4,2     ## @hns_nic_rx_fini_pro_v2
	.no_dead_strip	_hns_nic_init_ring_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_nic_init_ring_data
_hns_nic_init_ring_data:                ; @hns_nic_init_ring_data
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, [x0, #24]
	ldr	w0, [x0, #16]
	bl	_AE_IS_VER1
	ldr	w2, [x21]
Lloh0:
	adrp	x8, _NIC_MAX_Q_PER_VF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NIC_MAX_Q_PER_VF@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w2, w8
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_netdev_err
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_13
LBB0_2:
	mov	x20, x0
	mov	x0, x2
	mov	w1, #32
	mov	w2, #2
	bl	_array3_size
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.3:
Lloh10:
	adrp	x11, _hns_nic_common_poll@GOTPAGE
Lloh11:
	ldr	x11, [x11, _hns_nic_common_poll@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh12:
	adrp	x10, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh13:
	ldr	x10, [x10, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
Lloh14:
	adrp	x24, _RCB_IRQ_NOT_INITED@GOTPAGE
Lloh15:
	ldr	x24, [x24, _RCB_IRQ_NOT_INITED@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x25, #0
	mov	x26, #0
Lloh16:
	adrp	x27, _hns_nic_tx_poll_one@GOTPAGE
Lloh17:
	ldr	x27, [x27, _hns_nic_tx_poll_one@GOTPAGEOFF]
Lloh18:
	adrp	x28, _hns_nic_tx_fini_pro@GOTPAGE
Lloh19:
	ldr	x28, [x28, _hns_nic_tx_fini_pro@GOTPAGEOFF]
Lloh20:
	adrp	x22, _hns_nic_tx_fini_pro_v2@GOTPAGE
Lloh21:
	ldr	x22, [x22, _hns_nic_tx_fini_pro_v2@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x23, x0, x25
	str	w26, [x23]
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x26, lsl #3]
	add	x8, x8, #8
	str	x8, [x23, #8]
	ldr	w8, [x27]
	str	w8, [x23, #28]
	cmp	w20, #0
	csel	x8, x22, x28, eq
	ldr	w8, [x8]
	str	w8, [x23, #20]
	ldr	w0, [x19]
	add	x1, x23, #16
	ldr	w2, [x11]
	ldr	w3, [x10]
	bl	_netif_napi_add
	mov	x8, x24
	ldr	x8, [x24]
	ldr	x9, [x23, #8]
	str	x8, [x9]
	add	x26, x26, #1
	ldrsw	x8, [x21]
	cmp	x26, x8
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [x19, #8]
	add	x25, x25, #32
Lloh22:
	adrp	x11, _hns_nic_common_poll@GOTPAGE
Lloh23:
	ldr	x11, [x11, _hns_nic_common_poll@GOTPAGEOFF]
Lloh24:
	adrp	x10, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
	b	LBB0_5
LBB0_7:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
Lloh26:
	adrp	x11, _hns_nic_common_poll@GOTPAGE
Lloh27:
	ldr	x11, [x11, _hns_nic_common_poll@GOTPAGEOFF]
Lloh28:
	adrp	x10, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh29:
	ldr	x10, [x10, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
LBB0_8:
	cmp	w8, w8, lsl #1
	b.ge	LBB0_11
; %bb.9:
	mov	x9, x8
	sxtw	x25, w9
	sbfiz	x26, x9, #5, #32
Lloh30:
	adrp	x28, _hns_nic_rx_up_pro@GOTPAGE
Lloh31:
	ldr	x28, [x28, _hns_nic_rx_up_pro@GOTPAGEOFF]
Lloh32:
	adrp	x27, _hns_nic_rx_fini_pro@GOTPAGE
Lloh33:
	ldr	x27, [x27, _hns_nic_rx_fini_pro@GOTPAGEOFF]
Lloh34:
	adrp	x22, _hns_nic_rx_fini_pro_v2@GOTPAGE
Lloh35:
	ldr	x22, [x22, _hns_nic_rx_fini_pro_v2@GOTPAGEOFF]
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	sub	w8, w25, w8
	add	x23, x9, x26
	str	w8, [x23]
	ldr	x9, [x21, #8]
	ldr	x8, [x9, w8, sxtw #3]
	str	x8, [x23, #8]
Lloh36:
	adrp	x8, _hns_nic_rx_poll_one@GOTPAGE
Lloh37:
	ldr	x8, [x8, _hns_nic_rx_poll_one@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	str	w8, [x23, #28]
	ldr	w8, [x28]
	str	w8, [x23, #24]
	cmp	w20, #0
	csel	x8, x22, x27, eq
	ldr	w8, [x8]
	str	w8, [x23, #20]
	ldr	w0, [x19]
	add	x1, x23, #16
	ldr	w2, [x11]
	ldr	w3, [x10]
	bl	_netif_napi_add
	mov	x8, x24
Lloh39:
	adrp	x10, _NAPI_POLL_WEIGHT@GOTPAGE
Lloh40:
	ldr	x10, [x10, _NAPI_POLL_WEIGHT@GOTPAGEOFF]
Lloh41:
	adrp	x11, _hns_nic_common_poll@GOTPAGE
Lloh42:
	ldr	x11, [x11, _hns_nic_common_poll@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x9, [x23, #8]
	str	x8, [x9]
	add	x25, x25, #1
	ldrsw	x8, [x21]
	add	x26, x26, #32
	cmp	x25, x8, lsl #1
	b.lt	LBB0_10
LBB0_11:
	mov	w0, #0
	b	LBB0_14
LBB0_12:
Lloh43:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_NIC_MAX_Q_PER_VF,4,2           ; @NIC_MAX_Q_PER_VF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"too much queue (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_hns_nic_tx_poll_one,4,2        ; @hns_nic_tx_poll_one
	.comm	_hns_nic_tx_fini_pro,4,2        ; @hns_nic_tx_fini_pro
	.comm	_hns_nic_tx_fini_pro_v2,4,2     ; @hns_nic_tx_fini_pro_v2
	.comm	_hns_nic_common_poll,4,2        ; @hns_nic_common_poll
	.comm	_NAPI_POLL_WEIGHT,4,2           ; @NAPI_POLL_WEIGHT
	.comm	_RCB_IRQ_NOT_INITED,8,3         ; @RCB_IRQ_NOT_INITED
	.comm	_hns_nic_rx_poll_one,4,2        ; @hns_nic_rx_poll_one
	.comm	_hns_nic_rx_up_pro,4,2          ; @hns_nic_rx_up_pro
	.comm	_hns_nic_rx_fini_pro,4,2        ; @hns_nic_rx_fini_pro
	.comm	_hns_nic_rx_fini_pro_v2,4,2     ; @hns_nic_rx_fini_pro_v2
	.no_dead_strip	_hns_nic_init_ring_data
.subsections_via_symbols
