	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fill_desc
_fill_desc:                             ## @fill_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
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	movq	%rsi, %r12
	movl	16(%rbp), %r15d
	movq	16(%rdi), %rbx
	movq	(%rdi), %r14
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	leaq	(%r14,%r14,2), %rdx
	movq	%rsi, 16(%rax,%rdx,8)
	movl	%r13d, (%rax,%rdx,8)
	movl	%ecx, 8(%rax,%rdx,8)
	movl	%r15d, 4(%rax,%rdx,8)
	movl	%ecx, %edi
	callq	_cpu_to_le64
	shlq	$5, %r14
	movl	%eax, 24(%rbx,%r14)
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, 16(%rbx,%r14)
	movq	_HNS_TXD_VLD_B@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	$1, %r13d
	shll	%cl, %r13d
	movq	_HNS_TXD_BUFNUM_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DESC_TYPE_SKB@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	(%r12), %rax
	movq	_CHECKSUM_PARTIAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movq	8(%r12), %r15
	movq	_ETH_HLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r15
	jne	LBB0_4
## %bb.5:
	movq	_VLAN_HLEN@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_vlan_get_protocol
	movq	%rax, %r15
	movq	%rax, 8(%r12)
	jmp	LBB0_6
LBB0_1:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_4:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	8(%r12), %r15
LBB0_6:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movq	_ETH_P_IP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r15
	jne	LBB0_8
## %bb.7:
	movq	_HNS_TXD_L3CS_B@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %r13d
	movq	_HNS_TXD_L4CS_B@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %r13d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_10
LBB0_8:
	movq	8(%r12), %r15
	movq	_ETH_P_IPV6@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %r15
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	jne	LBB0_10
## %bb.9:
	movq	_HNS_TXD_L4CS_B@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %r13d
LBB0_10:
	movq	_HNS_TXD_IPOFFSET_S@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	shll	%cl, %eax
	orl	%eax, %r13d
LBB0_11:
	movl	%edx, %ecx
	shll	%cl, %edi
	movq	_HNS_TXD_FE_B@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r13d, %ebx
	callq	_cpu_to_le16
	movq	%rax, 8(%r12,%r14)
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r12,%r14)
	movq	_next_to_use@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ring_ptr_move_fw               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS_TXD_VLD_B,4,2              ## @HNS_TXD_VLD_B
	.comm	_HNS_TXD_BUFNUM_S,4,2           ## @HNS_TXD_BUFNUM_S
	.comm	_DESC_TYPE_SKB,4,2              ## @DESC_TYPE_SKB
	.comm	_CHECKSUM_PARTIAL,8,3           ## @CHECKSUM_PARTIAL
	.comm	_ETH_HLEN,4,2                   ## @ETH_HLEN
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_VLAN_HLEN,8,3                  ## @VLAN_HLEN
	.comm	_ETH_P_IP,4,2                   ## @ETH_P_IP
	.comm	_HNS_TXD_L3CS_B,4,2             ## @HNS_TXD_L3CS_B
	.comm	_HNS_TXD_L4CS_B,4,2             ## @HNS_TXD_L4CS_B
	.comm	_ETH_P_IPV6,4,2                 ## @ETH_P_IPV6
	.comm	_HNS_TXD_IPOFFSET_S,4,2         ## @HNS_TXD_IPOFFSET_S
	.comm	_HNS_TXD_FE_B,4,2               ## @HNS_TXD_FE_B
	.comm	_next_to_use,4,2                ## @next_to_use
	.no_dead_strip	_fill_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fill_desc
_fill_desc:                             ; @fill_desc
	.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	x23, x6
	mov	x21, x5
	mov	x20, x4
	mov	x24, x2
	mov	x22, x1
	mov	x19, x0
	ldp	x8, x25, [x0, #8]
	ldr	x26, [x0]
	mov	w9, #24
	madd	x8, x26, x9, x8
	str	x1, [x8, #16]
	stp	w6, w3, [x8, #4]
	str	w2, [x8]
	mov	x0, x3
	bl	_cpu_to_le64
	add	x25, x25, x26, lsl #5
	str	w0, [x25, #24]
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [x25, #16]
Lloh0:
	adrp	x8, _HNS_TXD_VLD_B@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS_TXD_VLD_B@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #1
Lloh3:
	adrp	x10, _HNS_TXD_BUFNUM_S@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HNS_TXD_BUFNUM_S@GOTPAGEOFF]
	lsl	w24, w9, w8
Lloh5:
	ldr	w26, [x10]
Lloh6:
	adrp	x8, _DESC_TYPE_SKB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DESC_TYPE_SKB@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_10
; %bb.1:
	ldr	x8, [x22]
Lloh9:
	adrp	x9, _CHECKSUM_PARTIAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CHECKSUM_PARTIAL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.2:
	ldr	x23, [x22, #8]
Lloh12:
	adrp	x8, _ETH_HLEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETH_HLEN@GOTPAGEOFF]
Lloh14:
	ldr	w27, [x8]
Lloh15:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_htons
	cmp	x23, x0
	b.ne	LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _VLAN_HLEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _VLAN_HLEN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	add	w27, w27, w8
	mov	x0, x22
	bl	_vlan_get_protocol
	mov	x23, x0
	str	x0, [x22, #8]
	b	LBB0_5
LBB0_4:
	ldr	x23, [x22, #8]
LBB0_5:
Lloh21:
	adrp	x8, _ETH_P_IP@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ETH_P_IP@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_htons
	cmp	x23, x0
	b.ne	LBB0_7
; %bb.6:
Lloh24:
	adrp	x8, _HNS_TXD_L3CS_B@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HNS_TXD_L3CS_B@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w8, w8, w24
Lloh27:
	adrp	x10, _HNS_TXD_L4CS_B@GOTPAGE
Lloh28:
	ldr	x10, [x10, _HNS_TXD_L4CS_B@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w24, w8, w9
	b	LBB0_9
LBB0_7:
	ldr	x22, [x22, #8]
Lloh30:
	adrp	x8, _ETH_P_IPV6@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ETH_P_IPV6@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_htons
	cmp	x22, x0
	b.ne	LBB0_9
; %bb.8:
Lloh33:
	adrp	x8, _HNS_TXD_L4CS_B@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HNS_TXD_L4CS_B@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w24, w8, w24
LBB0_9:
Lloh36:
	adrp	x8, _HNS_TXD_IPOFFSET_S@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HNS_TXD_IPOFFSET_S@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	lsl	w8, w27, w8
	orr	w24, w8, w24
LBB0_10:
	lsl	w0, w21, w26
Lloh39:
	adrp	x8, _HNS_TXD_FE_B@GOTPAGE
Lloh40:
	ldr	x8, [x8, _HNS_TXD_FE_B@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	lsl	w8, w20, w8
	orr	w20, w8, w24
	bl	_cpu_to_le16
	str	x0, [x25, #8]
	mov	x0, x20
	bl	_cpu_to_le32
	str	w0, [x25]
Lloh42:
	adrp	x8, _next_to_use@GOTPAGE
Lloh43:
	ldr	x8, [x8, _next_to_use@GOTPAGEOFF]
Lloh44:
	ldr	w1, [x8]
	mov	x0, x19
	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
	b	_ring_ptr_move_fw
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS_TXD_VLD_B,4,2              ; @HNS_TXD_VLD_B
	.comm	_HNS_TXD_BUFNUM_S,4,2           ; @HNS_TXD_BUFNUM_S
	.comm	_DESC_TYPE_SKB,4,2              ; @DESC_TYPE_SKB
	.comm	_CHECKSUM_PARTIAL,8,3           ; @CHECKSUM_PARTIAL
	.comm	_ETH_HLEN,4,2                   ; @ETH_HLEN
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_VLAN_HLEN,8,3                  ; @VLAN_HLEN
	.comm	_ETH_P_IP,4,2                   ; @ETH_P_IP
	.comm	_HNS_TXD_L3CS_B,4,2             ; @HNS_TXD_L3CS_B
	.comm	_HNS_TXD_L4CS_B,4,2             ; @HNS_TXD_L4CS_B
	.comm	_ETH_P_IPV6,4,2                 ; @ETH_P_IPV6
	.comm	_HNS_TXD_IPOFFSET_S,4,2         ; @HNS_TXD_IPOFFSET_S
	.comm	_HNS_TXD_FE_B,4,2               ; @HNS_TXD_FE_B
	.comm	_next_to_use,4,2                ; @next_to_use
	.no_dead_strip	_fill_desc
.subsections_via_symbols
