	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function make_tx_sdma_desc
_make_tx_sdma_desc:                     ## @make_tx_sdma_desc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rcx, %rax
	movq	(%rdi), %r8
	movq	8(%rdi), %rdi
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movq	(%rdi,%r8,8), %rdi
	movl	$0, (%rdi)
	movq	_SDMA_DESC1_GENERATION_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movq	_SDMA_DESC1_GENERATION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movl	%esi, 4(%rdi)
	xorl	%esi, %esi
	jmp	LBB0_3
LBB0_1:
	movq	_SDMA_DESC1_GENERATION_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	movq	_SDMA_DESC1_GENERATION_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	(%rdi,%r8,8), %rdi
	orl	%esi, 4(%rdi)
	movl	(%rdi), %esi
LBB0_3:
	movq	_SDMA_DESC0_PHY_ADDR_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	movq	_SDMA_DESC0_PHY_ADDR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_SDMA_DESC0_BYTE_COUNT_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movq	_SDMA_DESC0_BYTE_COUNT_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	orl	%esi, %eax
	movl	%eax, (%rdi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDMA_DESC1_GENERATION_MASK,4,2 ## @SDMA_DESC1_GENERATION_MASK
	.comm	_SDMA_DESC1_GENERATION_SHIFT,4,2 ## @SDMA_DESC1_GENERATION_SHIFT
	.comm	_SDMA_DESC0_PHY_ADDR_MASK,4,2   ## @SDMA_DESC0_PHY_ADDR_MASK
	.comm	_SDMA_DESC0_PHY_ADDR_SHIFT,4,2  ## @SDMA_DESC0_PHY_ADDR_SHIFT
	.comm	_SDMA_DESC0_BYTE_COUNT_MASK,4,2 ## @SDMA_DESC0_BYTE_COUNT_MASK
	.comm	_SDMA_DESC0_BYTE_COUNT_SHIFT,4,2 ## @SDMA_DESC0_BYTE_COUNT_SHIFT
	.no_dead_strip	_make_tx_sdma_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function make_tx_sdma_desc
_make_tx_sdma_desc:                     ; @make_tx_sdma_desc
	.cfi_startproc
; %bb.0:
	ldp	x10, x8, [x0]
	cbz	x10, LBB0_2
; %bb.1:
	mov	w9, #0
	ldr	x8, [x8, x10, lsl #3]
	str	wzr, [x8]
Lloh0:
	adrp	x10, _SDMA_DESC1_GENERATION_MASK@GOTPAGE
Lloh1:
	ldr	x10, [x10, _SDMA_DESC1_GENERATION_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	and	w10, w10, w1
Lloh3:
	adrp	x11, _SDMA_DESC1_GENERATION_SHIFT@GOTPAGE
Lloh4:
	ldr	x11, [x11, _SDMA_DESC1_GENERATION_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	lsl	w10, w10, w11
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x9, _SDMA_DESC1_GENERATION_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SDMA_DESC1_GENERATION_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w1
Lloh9:
	adrp	x11, _SDMA_DESC1_GENERATION_SHIFT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SDMA_DESC1_GENERATION_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	lsl	w11, w9, w11
	ldr	x8, [x8, x10, lsl #3]
	ldp	w9, w10, [x8]
	orr	w10, w10, w11
LBB0_3:
	str	w10, [x8, #4]
Lloh12:
	adrp	x10, _SDMA_DESC0_PHY_ADDR_MASK@GOTPAGE
Lloh13:
	ldr	x10, [x10, _SDMA_DESC0_PHY_ADDR_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	and	w10, w10, w2
Lloh15:
	adrp	x11, _SDMA_DESC0_PHY_ADDR_SHIFT@GOTPAGE
Lloh16:
	ldr	x11, [x11, _SDMA_DESC0_PHY_ADDR_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
	lsl	w10, w10, w11
Lloh18:
	adrp	x11, _SDMA_DESC0_BYTE_COUNT_MASK@GOTPAGE
Lloh19:
	ldr	x11, [x11, _SDMA_DESC0_BYTE_COUNT_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
Lloh21:
	adrp	x12, _SDMA_DESC0_BYTE_COUNT_SHIFT@GOTPAGE
Lloh22:
	ldr	x12, [x12, _SDMA_DESC0_BYTE_COUNT_SHIFT@GOTPAGEOFF]
	and	w11, w11, w3
Lloh23:
	ldr	w12, [x12]
	lsl	w11, w11, w12
	orr	w10, w11, w10
	orr	w9, w10, w9
	str	w9, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SDMA_DESC1_GENERATION_MASK,4,2 ; @SDMA_DESC1_GENERATION_MASK
	.comm	_SDMA_DESC1_GENERATION_SHIFT,4,2 ; @SDMA_DESC1_GENERATION_SHIFT
	.comm	_SDMA_DESC0_PHY_ADDR_MASK,4,2   ; @SDMA_DESC0_PHY_ADDR_MASK
	.comm	_SDMA_DESC0_PHY_ADDR_SHIFT,4,2  ; @SDMA_DESC0_PHY_ADDR_SHIFT
	.comm	_SDMA_DESC0_BYTE_COUNT_MASK,4,2 ; @SDMA_DESC0_BYTE_COUNT_MASK
	.comm	_SDMA_DESC0_BYTE_COUNT_SHIFT,4,2 ; @SDMA_DESC0_BYTE_COUNT_SHIFT
	.no_dead_strip	_make_tx_sdma_desc
.subsections_via_symbols
