	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wq_enet_desc_enc
_wq_enet_desc_enc:                      ## @wq_enet_desc_enc
	.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
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movl	16(%rbp), %r12d
	movl	56(%rbp), %r13d
	movl	%esi, %edi
	callq	_cpu_to_le64
	movl	%eax, 32(%rbx)
	movq	_WQ_ENET_LEN_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%rbx)
	movq	_WQ_ENET_MSS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	movq	_WQ_ENET_MSS_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r14d
	andl	$1, %r13d
	movq	_WQ_ENET_LOOPBACK_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r13d
	orl	%r14d, %r13d
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movq	%rbx, %r14
	movq	_WQ_ENET_FLAGS_OM_MASK@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	andl	(%rax), %esi
	movq	_WQ_ENET_HDRLEN_BITS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movq	_WQ_ENET_FLAGS_EOP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	_WQ_ENET_FLAGS_CQ_ENTRY_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movq	_WQ_ENET_HDRLEN_MASK@GOTPCREL(%rip), %rdx
	andl	$1, %r12d
	shll	%cl, %r12d
	movl	24(%rbp), %edi
	andl	$1, %edi
	movl	%eax, %ecx
	shll	%cl, %edi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	andl	(%rdx), %ebx
	movl	32(%rbp), %edx
	andl	$1, %edx
	movq	_WQ_ENET_FLAGS_FCOE_ENCAP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	orl	%ebx, %r12d
	movl	40(%rbp), %ebx
	andl	$1, %ebx
	movq	_WQ_ENET_FLAGS_VLAN_TAG_INSERT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%esi, %r12d
	orl	%edi, %edx
	orl	%edx, %ebx
	orl	%r12d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r14)
	movl	48(%rbp), %edi
	callq	_cpu_to_le16
	movq	%rax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WQ_ENET_LEN_MASK,4,2           ## @WQ_ENET_LEN_MASK
	.comm	_WQ_ENET_MSS_MASK,4,2           ## @WQ_ENET_MSS_MASK
	.comm	_WQ_ENET_MSS_SHIFT,4,2          ## @WQ_ENET_MSS_SHIFT
	.comm	_WQ_ENET_LOOPBACK_SHIFT,4,2     ## @WQ_ENET_LOOPBACK_SHIFT
	.comm	_WQ_ENET_HDRLEN_MASK,4,2        ## @WQ_ENET_HDRLEN_MASK
	.comm	_WQ_ENET_FLAGS_OM_MASK,4,2      ## @WQ_ENET_FLAGS_OM_MASK
	.comm	_WQ_ENET_HDRLEN_BITS,4,2        ## @WQ_ENET_HDRLEN_BITS
	.comm	_WQ_ENET_FLAGS_EOP_SHIFT,4,2    ## @WQ_ENET_FLAGS_EOP_SHIFT
	.comm	_WQ_ENET_FLAGS_CQ_ENTRY_SHIFT,4,2 ## @WQ_ENET_FLAGS_CQ_ENTRY_SHIFT
	.comm	_WQ_ENET_FLAGS_FCOE_ENCAP_SHIFT,4,2 ## @WQ_ENET_FLAGS_FCOE_ENCAP_SHIFT
	.comm	_WQ_ENET_FLAGS_VLAN_TAG_INSERT_SHIFT,4,2 ## @WQ_ENET_FLAGS_VLAN_TAG_INSERT_SHIFT
	.no_dead_strip	_wq_enet_desc_enc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wq_enet_desc_enc
_wq_enet_desc_enc:                      ; @wq_enet_desc_enc
	.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, x7
	mov	x22, x6
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x26, x2
	mov	x19, x0
	ldp	w28, w27, [x29, #16]
	ldr	w8, [x29, #24]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w20, [x29, #28]
	mov	x0, x1
	bl	_cpu_to_le64
	str	w0, [x19, #32]
Lloh0:
	adrp	x8, _WQ_ENET_LEN_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WQ_ENET_LEN_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w0, w8, w26
	bl	_cpu_to_le16
	str	x0, [x19, #24]
Lloh3:
	adrp	x8, _WQ_ENET_MSS_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WQ_ENET_MSS_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w25
Lloh6:
	adrp	x9, _WQ_ENET_MSS_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WQ_ENET_MSS_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	and	w9, w20, #0x1
Lloh9:
	adrp	x10, _WQ_ENET_LOOPBACK_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _WQ_ENET_LOOPBACK_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w0, w9, w8
	bl	_cpu_to_le16
Lloh12:
	adrp	x8, _WQ_ENET_HDRLEN_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _WQ_ENET_HDRLEN_MASK@GOTPAGEOFF]
	str	x0, [x19, #16]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w24
Lloh15:
	adrp	x9, _WQ_ENET_FLAGS_OM_MASK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WQ_ENET_FLAGS_OM_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w9, w9, w23
Lloh18:
	adrp	x10, _WQ_ENET_HDRLEN_BITS@GOTPAGE
Lloh19:
	ldr	x10, [x10, _WQ_ENET_HDRLEN_BITS@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
	and	w9, w22, #0x1
Lloh21:
	adrp	x10, _WQ_ENET_FLAGS_EOP_SHIFT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _WQ_ENET_FLAGS_EOP_SHIFT@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	and	w9, w21, #0x1
Lloh24:
	adrp	x10, _WQ_ENET_FLAGS_CQ_ENTRY_SHIFT@GOTPAGE
Lloh25:
	ldr	x10, [x10, _WQ_ENET_FLAGS_CQ_ENTRY_SHIFT@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	and	w9, w28, #0x1
Lloh27:
	adrp	x10, _WQ_ENET_FLAGS_FCOE_ENCAP_SHIFT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _WQ_ENET_FLAGS_FCOE_ENCAP_SHIFT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
	and	w9, w27, #0x1
Lloh30:
	adrp	x10, _WQ_ENET_FLAGS_VLAN_TAG_INSERT_SHIFT@GOTPAGE
Lloh31:
	ldr	x10, [x10, _WQ_ENET_FLAGS_VLAN_TAG_INSERT_SHIFT@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w0, w8, w9
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	ldr	w0, [sp, #12]                   ; 4-byte Folded Reload
	bl	_cpu_to_le16
	str	x0, [x19]
	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	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WQ_ENET_LEN_MASK,4,2           ; @WQ_ENET_LEN_MASK
	.comm	_WQ_ENET_MSS_MASK,4,2           ; @WQ_ENET_MSS_MASK
	.comm	_WQ_ENET_MSS_SHIFT,4,2          ; @WQ_ENET_MSS_SHIFT
	.comm	_WQ_ENET_LOOPBACK_SHIFT,4,2     ; @WQ_ENET_LOOPBACK_SHIFT
	.comm	_WQ_ENET_HDRLEN_MASK,4,2        ; @WQ_ENET_HDRLEN_MASK
	.comm	_WQ_ENET_FLAGS_OM_MASK,4,2      ; @WQ_ENET_FLAGS_OM_MASK
	.comm	_WQ_ENET_HDRLEN_BITS,4,2        ; @WQ_ENET_HDRLEN_BITS
	.comm	_WQ_ENET_FLAGS_EOP_SHIFT,4,2    ; @WQ_ENET_FLAGS_EOP_SHIFT
	.comm	_WQ_ENET_FLAGS_CQ_ENTRY_SHIFT,4,2 ; @WQ_ENET_FLAGS_CQ_ENTRY_SHIFT
	.comm	_WQ_ENET_FLAGS_FCOE_ENCAP_SHIFT,4,2 ; @WQ_ENET_FLAGS_FCOE_ENCAP_SHIFT
	.comm	_WQ_ENET_FLAGS_VLAN_TAG_INSERT_SHIFT,4,2 ; @WQ_ENET_FLAGS_VLAN_TAG_INSERT_SHIFT
	.no_dead_strip	_wq_enet_desc_enc
.subsections_via_symbols
