	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_fill_skb_desc
_hns3_fill_skb_desc:                    ## @hns3_fill_skb_desc
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	$0, -60(%rbp)
	movl	$0, -48(%rbp)
	movl	16(%rsi), %eax
	movl	%eax, -56(%rbp)
	movl	$0, -52(%rbp)
	callq	_hns3_handle_vtags
	movl	%eax, %r12d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_u64_stats_update_begin
	incl	16(%r15)
	jmp	LBB0_15
LBB0_2:
	movq	_HNS3_INNER_VLAN_TAG@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_skb_vlan_tag_get
	movl	(%rbx), %r13d
	movq	_VLAN_PRIO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r13d
	movq	_VLAN_PRIO_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r13d
	orl	%eax, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	movq	_HNS3_TXD_VLAN_B@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_HNS3_OUTER_VLAN_TAG@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	cmpl	(%rax), %r12d
	jne	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_skb_vlan_tag_get
	movl	(%rbx), %edx
	movq	_VLAN_PRIO_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_VLAN_PRIO_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	orl	%eax, %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movq	_HNS3_TXD_OVLAN_B@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	xorl	%edi, %edi
	movl	$1, %edx
	callq	_hns3_set_field
LBB0_7:
	movq	8(%rbx), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	movl	$0, %edi
	cmpq	(%rcx), %rax
	jne	LBB0_17
## %bb.8:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_skb_reset_mac_len
	leaq	-68(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_hns3_get_l4_protocol
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	callq	_u64_stats_update_begin
	leaq	12(%r15), %rax
	movl	%r14d, %r12d
	jmp	LBB0_14
LBB0_10:
	movl	-68(%rbp), %esi
	movl	-64(%rbp), %edx
	leaq	-48(%rbp), %rcx
	leaq	-60(%rbp), %r8
	movq	%rbx, %rdi
	callq	_hns3_set_l2l3l4
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r15, %rdi
	callq	_u64_stats_update_begin
	leaq	8(%r15), %rax
	movl	%r14d, %r12d
	jmp	LBB0_14
LBB0_12:
	leaq	-56(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_hns3_set_tso
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	%r15, %rdi
	callq	_u64_stats_update_begin
	leaq	4(%r15), %rax
	movl	%ebx, %r12d
LBB0_14:
	incl	(%rax)
LBB0_15:
	movq	%r15, %rdi
	callq	_u64_stats_update_end
LBB0_18:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movl	-60(%rbp), %edi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
LBB0_17:
	callq	_cpu_to_le32
	movq	%rax, 40(%r14)
	movl	-48(%rbp), %edi
	callq	_cpu_to_le32
	movq	%rax, 32(%r14)
	movl	-56(%rbp), %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%r14)
	movl	-52(%rbp), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r14)
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_cpu_to_le16
	movq	%rax, (%r14)
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS3_INNER_VLAN_TAG,4,2        ## @HNS3_INNER_VLAN_TAG
	.comm	_VLAN_PRIO_SHIFT,4,2            ## @VLAN_PRIO_SHIFT
	.comm	_VLAN_PRIO_MASK,4,2             ## @VLAN_PRIO_MASK
	.comm	_HNS3_TXD_VLAN_B,4,2            ## @HNS3_TXD_VLAN_B
	.comm	_HNS3_OUTER_VLAN_TAG,4,2        ## @HNS3_OUTER_VLAN_TAG
	.comm	_HNS3_TXD_OVLAN_B,4,2           ## @HNS3_TXD_OVLAN_B
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.no_dead_strip	_hns3_fill_skb_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_fill_skb_desc
_hns3_fill_skb_desc:                    ; @hns3_fill_skb_desc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	str	xzr, [sp, #24]
	ldr	w8, [x1, #16]
	stp	wzr, w8, [sp, #16]
	bl	_hns3_handle_vtags
	mov	x24, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_u64_stats_update_begin
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	b	LBB0_18
LBB0_2:
Lloh0:
	adrp	x8, _HNS3_INNER_VLAN_TAG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS3_INNER_VLAN_TAG@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_skb_vlan_tag_get
	mov	w22, #0
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _VLAN_PRIO_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VLAN_PRIO_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _VLAN_PRIO_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VLAN_PRIO_MASK@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh8:
	ldr	w9, [x10]
	and	w8, w8, w9
	orr	w23, w8, w0
Lloh9:
	adrp	x8, _HNS3_TXD_VLAN_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HNS3_TXD_VLAN_B@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh11:
	adrp	x8, _HNS3_OUTER_VLAN_TAG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HNS3_OUTER_VLAN_TAG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w24, w8
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_skb_vlan_tag_get
	mov	w23, #0
	ldr	w8, [x21]
Lloh14:
	adrp	x9, _VLAN_PRIO_SHIFT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VLAN_PRIO_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _VLAN_PRIO_MASK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _VLAN_PRIO_MASK@GOTPAGEOFF]
	lsl	w8, w8, w9
Lloh19:
	ldr	w9, [x10]
	and	w8, w8, w9
	orr	w22, w8, w0
Lloh20:
	adrp	x8, _HNS3_TXD_OVLAN_B@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HNS3_TXD_OVLAN_B@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	mov	w0, #0
	mov	w2, #1
	bl	_hns3_set_field
	b	LBB0_8
LBB0_7:
	mov	w23, #0
	mov	w22, #0
LBB0_8:
	ldr	x8, [x21, #8]
Lloh22:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh23:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x21
	bl	_skb_reset_mac_len
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x21
	bl	_hns3_get_l4_protocol
	mov	x24, x0
	bl	_unlikely
	cbz	x0, LBB0_13
; %bb.10:
	mov	x0, x20
	bl	_u64_stats_update_begin
	add	x8, x20, #12
	b	LBB0_17
LBB0_11:
	mov	w0, #0
LBB0_12:
	bl	_cpu_to_le32
	str	x0, [x19, #40]
	ldr	w0, [sp, #24]
	bl	_cpu_to_le32
	str	x0, [x19, #32]
	ldr	w0, [sp, #20]
	bl	_cpu_to_le32
	str	x0, [x19, #24]
	ldr	w0, [sp, #16]
	bl	_cpu_to_le16
	str	x0, [x19, #16]
	mov	x0, x23
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	mov	x0, x22
	bl	_cpu_to_le16
	mov	w24, #0
	str	x0, [x19]
	b	LBB0_19
LBB0_13:
	ldp	w2, w1, [sp, #8]
	add	x3, sp, #24
	add	x4, sp, #28
	mov	x0, x21
	bl	_hns3_set_l2l3l4
	mov	x24, x0
	bl	_unlikely
	cbz	x0, LBB0_15
; %bb.14:
	mov	x0, x20
	bl	_u64_stats_update_begin
	add	x8, x20, #8
	b	LBB0_17
LBB0_15:
	add	x1, sp, #20
	add	x2, sp, #16
	add	x3, sp, #24
	mov	x0, x21
	bl	_hns3_set_tso
	mov	x24, x0
	bl	_unlikely
	cbz	x0, LBB0_20
; %bb.16:
	mov	x0, x20
	bl	_u64_stats_update_begin
	add	x8, x20, #4
LBB0_17:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_18:
	mov	x0, x20
	bl	_u64_stats_update_end
LBB0_19:
	mov	x0, x24
	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
	add	sp, sp, #96
	ret
LBB0_20:
	ldr	w0, [sp, #28]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS3_INNER_VLAN_TAG,4,2        ; @HNS3_INNER_VLAN_TAG
	.comm	_VLAN_PRIO_SHIFT,4,2            ; @VLAN_PRIO_SHIFT
	.comm	_VLAN_PRIO_MASK,4,2             ; @VLAN_PRIO_MASK
	.comm	_HNS3_TXD_VLAN_B,4,2            ; @HNS3_TXD_VLAN_B
	.comm	_HNS3_OUTER_VLAN_TAG,4,2        ; @HNS3_OUTER_VLAN_TAG
	.comm	_HNS3_TXD_OVLAN_B,4,2           ; @HNS3_TXD_OVLAN_B
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.no_dead_strip	_hns3_fill_skb_desc
.subsections_via_symbols
