	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ndesc_prepare_tx_desc
_ndesc_prepare_tx_desc:                 ## @ndesc_prepare_tx_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r14d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	16(%rbp), %ebx
	movl	4(%rdi), %edi
	callq	_le32_to_cpu
	movq	_TDES1_FIRST_SEGMENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	movl	%r12d, %ecx
	orl	%eax, %ecx
	notl	%r12d
	andl	%eax, %r12d
	testl	%r15d, %r15d
	cmovnel	%ecx, %r12d
	movl	%r14d, %edi
	callq	_likely
	movq	_TX_CIC_FULL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_TDES1_CHECKSUM_INSERTION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movl	%edx, %ecx
	orl	%r12d, %ecx
	notl	%edx
	andl	%r12d, %edx
	testq	%rax, %rax
	cmovnel	%ecx, %edx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_TDES1_LAST_SEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_2:
	orl	%edx, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movl	%eax, 4(%r13)
	movq	_STMMAC_CHAIN_MODE@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%ecx, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_norm_set_tx_desc_len_on_chain
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_6
	jmp	LBB0_7
LBB0_4:
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_norm_set_tx_desc_len_on_ring
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_7
LBB0_6:
	movq	_TDES0_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	orl	%eax, (%r13)
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDES1_FIRST_SEGMENT,4,2        ## @TDES1_FIRST_SEGMENT
	.comm	_TX_CIC_FULL,4,2                ## @TX_CIC_FULL
	.comm	_TDES1_CHECKSUM_INSERTION_SHIFT,4,2 ## @TDES1_CHECKSUM_INSERTION_SHIFT
	.comm	_TDES1_LAST_SEGMENT,4,2         ## @TDES1_LAST_SEGMENT
	.comm	_STMMAC_CHAIN_MODE,4,2          ## @STMMAC_CHAIN_MODE
	.comm	_TDES0_OWN,4,2                  ## @TDES0_OWN
	.no_dead_strip	_ndesc_prepare_tx_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ndesc_prepare_tx_desc
_ndesc_prepare_tx_desc:                 ; @ndesc_prepare_tx_desc
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x6
	mov	x20, x5
	mov	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x25, x1
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_le32_to_cpu
Lloh0:
	adrp	x8, _TDES1_FIRST_SEGMENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TDES1_FIRST_SEGMENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w9, w8, w0
	bic	w8, w0, w8
	cmp	w25, #0
	csel	w25, w8, w9, eq
	mov	x0, x24
	bl	_likely
Lloh3:
	adrp	x8, _TX_CIC_FULL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TX_CIC_FULL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TDES1_CHECKSUM_INSERTION_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TDES1_CHECKSUM_INSERTION_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	orr	w9, w8, w25
	bic	w8, w25, w8
	cmp	x0, #0
	csel	w8, w8, w9, eq
Lloh9:
	adrp	x9, _TDES1_LAST_SEGMENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TDES1_LAST_SEGMENT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w22, #0
	csel	w9, wzr, w9, eq
	orr	w0, w9, w8
	bl	_cpu_to_le32
	str	w0, [x19, #4]
Lloh12:
	adrp	x8, _STMMAC_CHAIN_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STMMAC_CHAIN_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mov	x0, x19
	mov	x1, x21
	cmp	w8, w23
	b.ne	LBB0_2
; %bb.1:
	bl	_norm_set_tx_desc_len_on_chain
	cbnz	w20, LBB0_3
	b	LBB0_4
LBB0_2:
	bl	_norm_set_tx_desc_len_on_ring
	cbz	w20, LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _TDES0_OWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TDES0_OWN@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.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
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TDES1_FIRST_SEGMENT,4,2        ; @TDES1_FIRST_SEGMENT
	.comm	_TX_CIC_FULL,4,2                ; @TX_CIC_FULL
	.comm	_TDES1_CHECKSUM_INSERTION_SHIFT,4,2 ; @TDES1_CHECKSUM_INSERTION_SHIFT
	.comm	_TDES1_LAST_SEGMENT,4,2         ; @TDES1_LAST_SEGMENT
	.comm	_STMMAC_CHAIN_MODE,4,2          ; @STMMAC_CHAIN_MODE
	.comm	_TDES0_OWN,4,2                  ; @TDES0_OWN
	.no_dead_strip	_ndesc_prepare_tx_desc
.subsections_via_symbols
