	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eth_set_desc
_eth_set_desc:                          ## @eth_set_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	8(%rsi), %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movslq	%edx, %r15
	movl	(%rdi), %edi
	movq	_DMA_TO_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r8, %rsi
	movl	%r9d, %edx
	callq	_dma_map_single
	leaq	(%r15,%r15,2), %r14
	movl	%eax, (%r13,%r14,4)
	movl	24(%rbp), %ecx
	movl	%ecx, 4(%r13,%r14,4)
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%r15,4)
	movq	_TX_DESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	movl	$0, %r12d
	cmpl	%r15d, %eax
	jne	LBB0_2
## %bb.1:
	movq	_END_OF_RING@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_2:
	orl	16(%rbp), %ebx
	movl	$0, %eax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	jne	LBB0_4
## %bb.3:
	movq	_LAST_SEGMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%eax, %ebx
	orl	%ebx, %r12d
	xorl	%eax, %eax
	callq	_wmb
	movl	%r12d, 8(%r13,%r14,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_TO_DEVICE,4,2              ## @DMA_TO_DEVICE
	.comm	_TX_DESCS,4,2                   ## @TX_DESCS
	.comm	_END_OF_RING,4,2                ## @END_OF_RING
	.comm	_LAST_SEGMENT,4,2               ## @LAST_SEGMENT
	.no_dead_strip	_eth_set_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eth_set_desc
_eth_set_desc:                          ; @eth_set_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	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	ldr	x25, [x1, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _DMA_TO_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_TO_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x4
	mov	x2, x5
	bl	_dma_map_single
	mov	w8, #12
	smaddl	x25, w23, w8, x25
	stp	w0, w19, [x25]
	ldr	x8, [x24]
	str	w0, [x8, w23, sxtw #2]
	orr	w8, w20, w21
Lloh3:
	adrp	x9, _TX_DESCS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TX_DESCS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	sub	w9, w9, #1
Lloh6:
	adrp	x10, _END_OF_RING@GOTPAGE
Lloh7:
	ldr	x10, [x10, _END_OF_RING@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	w9, w23
	csel	w9, w10, wzr, eq
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _LAST_SEGMENT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LAST_SEGMENT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w23, w22
	csel	w9, w9, wzr, eq
	orr	w19, w8, w9
	bl	_wmb
	str	w19, [x25, #8]
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_TO_DEVICE,4,2              ; @DMA_TO_DEVICE
	.comm	_TX_DESCS,4,2                   ; @TX_DESCS
	.comm	_END_OF_RING,4,2                ; @END_OF_RING
	.comm	_LAST_SEGMENT,4,2               ; @LAST_SEGMENT
	.no_dead_strip	_eth_set_desc
.subsections_via_symbols
