	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _extend_sdma_tx_descs
__extend_sdma_tx_descs:                 ## @_extend_sdma_tx_descs
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_MAX_DESC@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	decl	%eax
	xorl	%edi, %edi
	cmpl	%eax, (%rsi)
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	40(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.2:
	xorl	%r15d, %r15d
	cmpq	$0, 32(%rbx)
	jne	LBB0_9
## %bb.3:
	addq	$4, %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, 32(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	$0, 24(%rbx)
	jmp	LBB0_9
LBB0_5:
	movl	(%rbx), %eax
	xorl	%edi, %edi
	cmpl	(%r15), %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	___sdma_txclean
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_7:
	movl	(%r15), %eax
	movl	%eax, 4(%rbx)
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	(%r15), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kmalloc_array
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.11:
	movl	(%r15), %ecx
	decl	%ecx
	movl	%ecx, 4(%rbx)
	cmpl	$0, (%rbx)
	jle	LBB0_8
## %bb.12:
	movq	8(%rbx), %rcx
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,4), %esi
	movl	%esi, (%rax,%rdx,4)
	incq	%rdx
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_13
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_DESC,4,2                   ## @MAX_DESC
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	__extend_sdma_tx_descs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _extend_sdma_tx_descs
__extend_sdma_tx_descs:                 ; @_extend_sdma_tx_descs
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x21, _MAX_DESC@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAX_DESC@GOTPAGEOFF]
	ldr	w9, [x21]
	sub	w9, w9, #1
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x9, [x19, #32]
	cbz	x9, LBB0_7
LBB0_3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	ldr	w8, [x19]
	ldr	w9, [x21]
	cmp	w8, w9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_10
LBB0_5:
	mov	x0, x20
	mov	x1, x19
	bl	___sdma_txclean
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_6:
	mov	w0, #0
	ldr	w8, [x21]
	str	w8, [x19, #4]
	b	LBB0_9
LBB0_7:
	add	x0, x8, #4
Lloh5:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_kmalloc
	str	x0, [x19, #32]
	cbz	x0, LBB0_5
; %bb.8:
	mov	w0, #0
	str	xzr, [x19, #24]
LBB0_9:
	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
LBB0_10:
	ldr	w0, [x21]
Lloh8:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_kmalloc_array
	str	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.11:
	ldr	w8, [x21]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.12:
	mov	x8, #0
	ldr	x9, [x19, #8]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x9, x10]
	str	w11, [x0, x10]
	add	x8, x8, #1
	ldrsw	x10, [x19]
	cmp	x8, x10
	b.lt	LBB0_13
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_DESC,4,2                   ; @MAX_DESC
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	__extend_sdma_tx_descs
.subsections_via_symbols
