	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function norm_set_tx_desc_len_on_ring
_norm_set_tx_desc_len_on_ring:          ## @norm_set_tx_desc_len_on_ring
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_BUF_SIZE_2KiB@GOTPCREL(%rip), %r15
	xorl	%edi, %edi
	cmpl	%esi, (%r15)
	setl	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %eax
	decl	%eax
	movq	_TDES1_BUFFER1_SIZE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	subl	%eax, %ebx
	movq	_TDES1_BUFFER2_SIZE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	movq	_TDES1_BUFFER2_SIZE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	orl	%eax, %ebx
	jmp	LBB0_3
LBB0_2:
	movq	_TDES1_BUFFER1_SIZE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
LBB0_3:
	movl	%ebx, %edi
	callq	_cpu_to_le32
	orl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUF_SIZE_2KiB,4,2              ## @BUF_SIZE_2KiB
	.comm	_TDES1_BUFFER1_SIZE_MASK,4,2    ## @TDES1_BUFFER1_SIZE_MASK
	.comm	_TDES1_BUFFER2_SIZE_SHIFT,4,2   ## @TDES1_BUFFER2_SIZE_SHIFT
	.comm	_TDES1_BUFFER2_SIZE_MASK,4,2    ## @TDES1_BUFFER2_SIZE_MASK
	.no_dead_strip	_norm_set_tx_desc_len_on_ring
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function norm_set_tx_desc_len_on_ring
_norm_set_tx_desc_len_on_ring:          ; @norm_set_tx_desc_len_on_ring
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _BUF_SIZE_2KiB@GOTPAGE
Lloh1:
	ldr	x21, [x21, _BUF_SIZE_2KiB@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, w1
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x21]
	sub	w8, w8, #1
Lloh2:
	adrp	x9, _TDES1_BUFFER1_SIZE_MASK@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TDES1_BUFFER1_SIZE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	and	w8, w8, w9
	sub	w9, w20, w8
Lloh5:
	adrp	x10, _TDES1_BUFFER2_SIZE_SHIFT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _TDES1_BUFFER2_SIZE_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	lsl	w9, w9, w10
Lloh8:
	adrp	x10, _TDES1_BUFFER2_SIZE_MASK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TDES1_BUFFER2_SIZE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	and	w9, w9, w10
	orr	w0, w9, w8
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _TDES1_BUFFER1_SIZE_MASK@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TDES1_BUFFER1_SIZE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	and	w0, w8, w20
LBB0_3:
	bl	_cpu_to_le32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_BUF_SIZE_2KiB,4,2              ; @BUF_SIZE_2KiB
	.comm	_TDES1_BUFFER1_SIZE_MASK,4,2    ; @TDES1_BUFFER1_SIZE_MASK
	.comm	_TDES1_BUFFER2_SIZE_SHIFT,4,2   ; @TDES1_BUFFER2_SIZE_SHIFT
	.comm	_TDES1_BUFFER2_SIZE_MASK,4,2    ; @TDES1_BUFFER2_SIZE_MASK
	.no_dead_strip	_norm_set_tx_desc_len_on_ring
.subsections_via_symbols
