	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_lp_setup_skb
_hns3_lp_setup_skb:                     ## @hns3_lp_setup_skb
	.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, %r14
	movq	(%rdi), %r12
	movq	_NET_IP_ALIGN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_skb_reserve
	movq	%r14, %rdi
	movl	$16, %esi
	callq	_skb_put
	movq	%rax, %r15
	movq	_HNS3_NIC_LB_TEST_PACKET_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_skb_put
	movq	%rax, %rbx
	movq	8(%r15), %rdi
	movl	(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_hns3_get_handle
	movq	(%rax), %rax
	cmpl	$32, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	8(%r15), %rax
	addl	$31, 20(%rax)
LBB0_2:
	movl	4(%r15), %edi
	callq	_eth_zero_addr
	movq	_ETH_P_ARP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_skb_reset_mac_header
	cmpl	$0, (%r13)
	je	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movb	%al, (%rbx,%rax)
	incq	%rax
	movl	(%r13), %ecx
	cmpq	%rcx, %rax
	jb	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_IP_ALIGN,4,2               ## @NET_IP_ALIGN
	.comm	_HNS3_NIC_LB_TEST_PACKET_SIZE,4,2 ## @HNS3_NIC_LB_TEST_PACKET_SIZE
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_ETH_P_ARP,4,2                  ## @ETH_P_ARP
	.comm	_HNS3_NIC_LB_DST_MAC_ADDR,8,3   ## @HNS3_NIC_LB_DST_MAC_ADDR
	.no_dead_strip	_hns3_lp_setup_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_lp_setup_skb
_hns3_lp_setup_skb:                     ; @hns3_lp_setup_skb
	.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	x19, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _NET_IP_ALIGN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NET_IP_ALIGN@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_skb_reserve
	mov	x0, x19
	mov	w1, #16
	bl	_skb_put
	mov	x21, x0
Lloh3:
	adrp	x23, _HNS3_NIC_LB_TEST_PACKET_SIZE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _HNS3_NIC_LB_TEST_PACKET_SIZE@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_skb_put
	mov	x20, x0
	ldr	x0, [x21, #8]
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	bl	_memcpy
	mov	x0, x22
	bl	_hns3_get_handle
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #32
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x21, #8]
	ldr	w9, [x8, #20]
	add	w9, w9, #31
	str	w9, [x8, #20]
LBB0_2:
	ldr	w0, [x21, #4]
	bl	_eth_zero_addr
Lloh8:
	adrp	x8, _ETH_P_ARP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETH_P_ARP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_htons
	str	w0, [x21]
	mov	x0, x19
	bl	_skb_reset_mac_header
	ldr	w8, [x23]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x8, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	strb	w8, [x20, x8]
	add	x8, x8, #1
	ldr	w9, [x23]
	cmp	x8, x9
	b.lo	LBB0_4
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_IP_ALIGN,4,2               ; @NET_IP_ALIGN
	.comm	_HNS3_NIC_LB_TEST_PACKET_SIZE,4,2 ; @HNS3_NIC_LB_TEST_PACKET_SIZE
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_ETH_P_ARP,4,2                  ; @ETH_P_ARP
	.comm	_HNS3_NIC_LB_DST_MAC_ADDR,8,3   ; @HNS3_NIC_LB_DST_MAC_ADDR
	.no_dead_strip	_hns3_lp_setup_skb
.subsections_via_symbols
