	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function enh_desc_prepare_tx_desc
_enh_desc_prepare_tx_desc:              ## @enh_desc_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movl	%edx, %r12d
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	callq	_le32_to_cpu
	movl	%eax, %r13d
	movq	_STMMAC_CHAIN_MODE@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r12d, %esi
	jne	LBB0_2
## %bb.1:
	callq	_enh_set_tx_desc_len_on_chain
	jmp	LBB0_3
LBB0_2:
	callq	_enh_set_tx_desc_len_on_ring
LBB0_3:
	movq	_ETDES0_FIRST_SEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%r14d, %edi
	callq	_likely
	movq	%rax, %rdx
	movq	_TX_CIC_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_ETDES0_CHECKSUM_INSERTION_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_ETDES0_LAST_SEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_ETDES0_OWN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.4:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	movl	%r13d, -52(%rbp)                ## 4-byte Spill
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%ecx, %r13d
	callq	_dma_wmb
	movl	%r13d, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	-52(%rbp), %r13d                ## 4-byte Reload
LBB0_6:
	movl	%r12d, %eax
	orl	%r13d, %eax
	notl	%r12d
	andl	%r13d, %r12d
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	cmovnel	%eax, %r12d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	movl	%r15d, %eax
	notl	%eax
	andl	%r12d, %eax
	orl	%r12d, %r15d
	testq	%rdx, %rdx
	cmovel	%eax, %r15d
	movl	16(%rbp), %eax
	testl	%eax, %eax
	cmovel	%eax, %r14d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	cmovel	%eax, %ebx
	orl	%r14d, %ebx
	orl	%r15d, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le32
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STMMAC_CHAIN_MODE,4,2          ## @STMMAC_CHAIN_MODE
	.comm	_ETDES0_FIRST_SEGMENT,4,2       ## @ETDES0_FIRST_SEGMENT
	.comm	_TX_CIC_FULL,4,2                ## @TX_CIC_FULL
	.comm	_ETDES0_CHECKSUM_INSERTION_SHIFT,4,2 ## @ETDES0_CHECKSUM_INSERTION_SHIFT
	.comm	_ETDES0_LAST_SEGMENT,4,2        ## @ETDES0_LAST_SEGMENT
	.comm	_ETDES0_OWN,4,2                 ## @ETDES0_OWN
	.no_dead_strip	_enh_desc_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 enh_desc_prepare_tx_desc
_enh_desc_prepare_tx_desc:              ; @enh_desc_prepare_tx_desc
	.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
	str	w6, [sp, #12]                   ; 4-byte Folded Spill
	mov	x20, x5
	mov	x26, x4
	mov	x24, x3
	mov	x25, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0]
	bl	_le32_to_cpu
	mov	x23, x0
Lloh0:
	adrp	x8, _STMMAC_CHAIN_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STMMAC_CHAIN_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x0, x19
	mov	x1, x25
	cmp	w8, w26
	b.ne	LBB0_2
; %bb.1:
	bl	_enh_set_tx_desc_len_on_chain
	b	LBB0_3
LBB0_2:
	bl	_enh_set_tx_desc_len_on_ring
LBB0_3:
Lloh3:
	adrp	x8, _ETDES0_FIRST_SEGMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETDES0_FIRST_SEGMENT@GOTPAGEOFF]
Lloh5:
	ldr	w25, [x8]
	mov	x0, x24
	bl	_likely
	mov	x24, x0
Lloh6:
	adrp	x8, _TX_CIC_FULL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_CIC_FULL@GOTPAGEOFF]
Lloh8:
	ldr	w28, [x8]
Lloh9:
	adrp	x8, _ETDES0_CHECKSUM_INSERTION_SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETDES0_CHECKSUM_INSERTION_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w21, [x8]
Lloh12:
	adrp	x8, _ETDES0_LAST_SEGMENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ETDES0_LAST_SEGMENT@GOTPAGEOFF]
Lloh14:
	ldr	w27, [x8]
Lloh15:
	adrp	x8, _ETDES0_OWN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ETDES0_OWN@GOTPAGEOFF]
Lloh17:
	ldr	w26, [x8]
	cbz	w22, LBB0_6
; %bb.4:
	cbz	w20, LBB0_6
; %bb.5:
	bl	_dma_wmb
LBB0_6:
	orr	w8, w25, w23
	bic	w9, w23, w25
	cmp	w22, #0
	csel	w8, w8, w9, ne
	lsl	w9, w28, w21
	bic	w10, w8, w9
	orr	w8, w9, w8
	cmp	x24, #0
	csel	w8, w10, w8, eq
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w9, #0
	csel	w9, wzr, w27, eq
	orr	w8, w9, w8
	cmp	w20, #0
	csel	w9, w26, wzr, ne
	orr	w0, w8, w9
	bl	_cpu_to_le32
	str	w0, [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	Lloh0, Lloh1, Lloh2
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_STMMAC_CHAIN_MODE,4,2          ; @STMMAC_CHAIN_MODE
	.comm	_ETDES0_FIRST_SEGMENT,4,2       ; @ETDES0_FIRST_SEGMENT
	.comm	_TX_CIC_FULL,4,2                ; @TX_CIC_FULL
	.comm	_ETDES0_CHECKSUM_INSERTION_SHIFT,4,2 ; @ETDES0_CHECKSUM_INSERTION_SHIFT
	.comm	_ETDES0_LAST_SEGMENT,4,2        ; @ETDES0_LAST_SEGMENT
	.comm	_ETDES0_OWN,4,2                 ; @ETDES0_OWN
	.no_dead_strip	_enh_desc_prepare_tx_desc
.subsections_via_symbols
