	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_lp_run_test
_hns3_lp_run_test:                      ## @hns3_lp_run_test
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_netdev_priv
	movq	%rax, %r14
	movq	_HNS3_NIC_LB_TEST_PACKET_SIZE@GOTPCREL(%rip), %rax
	movq	_ETH_HLEN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_alloc_skb
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r12, 8(%rax)
	movq	%rax, %rdi
	callq	_hns3_lp_setup_skb
	movq	_HNS3_NIC_LB_TEST_RING_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_HNS3_NIC_LB_TEST_PKT_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	jle	LBB0_3
## %bb.4:
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rbx, %rdi
	callq	_kfree_skb
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_netdev_err
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	_HNS3_NIC_LB_TEST_PKT_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpq	%r8, %r15
	jge	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_skb_get
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_hns3_nic_net_xmit
	movq	%rax, %r14
	movq	_NETDEV_TX_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r13
	jmp	LBB0_8
LBB0_1:
	movq	_HNS3_NIC_LB_TEST_NO_MEM_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_14
LBB0_3:
	xorl	%r13d, %r13d
LBB0_9:
	cmpq	%r8, %r13
	jne	LBB0_10
## %bb.11:
	movl	$200, %edi
	callq	_msleep
	movq	_HNS3_NIC_LB_TEST_PKT_NUM@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_hns3_lb_check_rx_ring
	movq	(%r14), %r8
	xorl	%r14d, %r14d
	cmpq	%r8, %rax
	movq	_HNS3_NIC_LB_TEST_RING_ID@GOTPCREL(%rip), %r13
	je	LBB0_13
## %bb.12:
	movq	_HNS3_NIC_LB_TEST_RX_CNT_ERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_netdev_err
	jmp	LBB0_13
LBB0_10:
	movq	_HNS3_NIC_LB_TEST_TX_CNT_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%r13, %rcx
	xorl	%eax, %eax
	callq	_netdev_err
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	_HNS3_NIC_LB_TEST_RING_ID@GOTPCREL(%rip), %r13
LBB0_13:
	movl	(%r13), %edx
	movq	_HNS3_NIC_LB_TEST_PKT_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rdi
	movl	%edx, %esi
	callq	_hns3_lb_clear_tx_ring
	movq	%rbx, %rdi
	callq	_kfree_skb
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS3_NIC_LB_TEST_PACKET_SIZE,8,3 ## @HNS3_NIC_LB_TEST_PACKET_SIZE
	.comm	_ETH_HLEN,8,3                   ## @ETH_HLEN
	.comm	_NET_IP_ALIGN,8,3               ## @NET_IP_ALIGN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_HNS3_NIC_LB_TEST_NO_MEM_ERR,4,2 ## @HNS3_NIC_LB_TEST_NO_MEM_ERR
	.comm	_HNS3_NIC_LB_TEST_RING_ID,4,2   ## @HNS3_NIC_LB_TEST_RING_ID
	.comm	_HNS3_NIC_LB_TEST_PKT_NUM,8,3   ## @HNS3_NIC_LB_TEST_PKT_NUM
	.comm	_NETDEV_TX_OK,8,3               ## @NETDEV_TX_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hns3_lb_run_test xmit failed: %d\n"

	.comm	_HNS3_NIC_LB_TEST_TX_CNT_ERR,4,2 ## @HNS3_NIC_LB_TEST_TX_CNT_ERR
L_.str.1:                               ## @.str.1
	.asciz	"mode %d sent fail, cnt=0x%x, budget=0x%x\n"

	.comm	_HNS3_NIC_LB_TEST_RX_CNT_ERR,4,2 ## @HNS3_NIC_LB_TEST_RX_CNT_ERR
L_.str.2:                               ## @.str.2
	.asciz	"mode %d recv fail, cnt=0x%x, budget=0x%x\n"

	.no_dead_strip	_hns3_lp_run_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_lp_run_test
_hns3_lp_run_test:                      ; @hns3_lp_run_test
	.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	x21, x1
	mov	x22, x0
	bl	_netdev_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _HNS3_NIC_LB_TEST_PACKET_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS3_NIC_LB_TEST_PACKET_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _ETH_HLEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ETH_HLEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _NET_IP_ALIGN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x0, x8, x10
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_alloc_skb
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	str	x22, [x0, #8]
	bl	_hns3_lp_setup_skb
Lloh12:
	adrp	x24, _HNS3_NIC_LB_TEST_RING_ID@GOTPAGE
Lloh13:
	ldr	x24, [x24, _HNS3_NIC_LB_TEST_RING_ID@GOTPAGEOFF]
	ldr	w8, [x24]
	str	w8, [x20]
Lloh14:
	adrp	x26, _HNS3_NIC_LB_TEST_PKT_NUM@GOTPAGE
Lloh15:
	ldr	x26, [x26, _HNS3_NIC_LB_TEST_PKT_NUM@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x27, #0
	mov	x28, #0
Lloh16:
	adrp	x25, _NETDEV_TX_OK@GOTPAGE
Lloh17:
	ldr	x25, [x25, _NETDEV_TX_OK@GOTPAGEOFF]
Lloh18:
	adrp	x23, l_.str@PAGE
Lloh19:
	add	x23, x23, l_.str@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x24, x0
	mov	x0, x20
	bl	_kfree_skb
	mov	x0, x22
	mov	x1, x23
	mov	x2, x24
	bl	_netdev_err
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #1
	ldr	x8, [x26]
	cmp	x28, x8
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_skb_get
	mov	x0, x20
	mov	x1, x22
	bl	_hns3_nic_net_xmit
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x27, x27, #1
	b	LBB0_4
LBB0_7:
Lloh20:
	adrp	x8, _HNS3_NIC_LB_TEST_NO_MEM_ERR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HNS3_NIC_LB_TEST_NO_MEM_ERR@GOTPAGEOFF]
Lloh22:
	ldr	w23, [x8]
	b	LBB0_16
LBB0_8:
Lloh23:
	adrp	x24, _HNS3_NIC_LB_TEST_RING_ID@GOTPAGE
Lloh24:
	ldr	x24, [x24, _HNS3_NIC_LB_TEST_RING_ID@GOTPAGEOFF]
	cmp	x27, x8
	b.ne	LBB0_12
LBB0_9:
	mov	w0, #200
	bl	_msleep
	ldr	x1, [x26]
	mov	x0, x19
	bl	_hns3_lb_check_rx_ring
	ldr	x8, [x26]
	cmp	x0, x8
	b.ne	LBB0_13
; %bb.10:
	mov	w23, #0
	b	LBB0_15
LBB0_11:
	mov	x27, #0
	cmp	x27, x8
	b.eq	LBB0_9
LBB0_12:
Lloh25:
	adrp	x9, _HNS3_NIC_LB_TEST_TX_CNT_ERR@GOTPAGE
Lloh26:
	ldr	x9, [x9, _HNS3_NIC_LB_TEST_TX_CNT_ERR@GOTPAGEOFF]
Lloh27:
	ldr	w23, [x9]
	stp	x27, x8, [sp]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh30:
	adrp	x9, _HNS3_NIC_LB_TEST_RX_CNT_ERR@GOTPAGE
Lloh31:
	ldr	x9, [x9, _HNS3_NIC_LB_TEST_RX_CNT_ERR@GOTPAGEOFF]
Lloh32:
	ldr	w23, [x9]
	stp	x0, x8, [sp]
Lloh33:
	adrp	x1, l_.str.2@PAGE
Lloh34:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_14:
	mov	x0, x22
	mov	x2, x21
	bl	_netdev_err
LBB0_15:
	ldr	w1, [x24]
	ldr	x3, [x26]
	mov	x0, x19
	mov	x2, x1
	bl	_hns3_lb_clear_tx_ring
	mov	x0, x20
	bl	_kfree_skb
LBB0_16:
	mov	x0, x23
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS3_NIC_LB_TEST_PACKET_SIZE,8,3 ; @HNS3_NIC_LB_TEST_PACKET_SIZE
	.comm	_ETH_HLEN,8,3                   ; @ETH_HLEN
	.comm	_NET_IP_ALIGN,8,3               ; @NET_IP_ALIGN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_HNS3_NIC_LB_TEST_NO_MEM_ERR,4,2 ; @HNS3_NIC_LB_TEST_NO_MEM_ERR
	.comm	_HNS3_NIC_LB_TEST_RING_ID,4,2   ; @HNS3_NIC_LB_TEST_RING_ID
	.comm	_HNS3_NIC_LB_TEST_PKT_NUM,8,3   ; @HNS3_NIC_LB_TEST_PKT_NUM
	.comm	_NETDEV_TX_OK,8,3               ; @NETDEV_TX_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hns3_lb_run_test xmit failed: %d\n"

	.comm	_HNS3_NIC_LB_TEST_TX_CNT_ERR,4,2 ; @HNS3_NIC_LB_TEST_TX_CNT_ERR
l_.str.1:                               ; @.str.1
	.asciz	"mode %d sent fail, cnt=0x%x, budget=0x%x\n"

	.comm	_HNS3_NIC_LB_TEST_RX_CNT_ERR,4,2 ; @HNS3_NIC_LB_TEST_RX_CNT_ERR
l_.str.2:                               ; @.str.2
	.asciz	"mode %d recv fail, cnt=0x%x, budget=0x%x\n"

	.no_dead_strip	_hns3_lp_run_test
.subsections_via_symbols
