	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_dma_tx_desc_resources
_alloc_dma_tx_desc_resources:           ## @alloc_dma_tx_desc_resources
	.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
	movq	24(%rdi), %rax
	movq	(%rax), %rcx
	xorl	%eax, %eax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	testq	%rcx, %rcx
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r12
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	$48, %r13d
	xorl	%eax, %eax
	movq	_DMA_TX_SIZE@GOTPCREL(%rip), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %r14
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%r14,%r13)
	movq	%r12, (%r14,%r13)
	movl	(%r15), %edi
	movl	(%rbx), %edx
	movl	$1, %esi
	callq	_kcalloc
	movq	%rax, -8(%r14,%r13)
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	movl	(%rbx), %edx
	movl	$8, %esi
	callq	_kcalloc
	movq	%rax, -16(%r14,%r13)
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rax
	movq	8(%r12), %r15
	movl	(%r12), %edi
	movq	%rax, %r12
	movl	(%rax), %esi
	shll	$2, %esi
	leaq	(%r14,%r13), %rdx
	addq	$-32, %rdx
	movl	(%rbx), %ecx
	callq	_dma_alloc_coherent
	testq	%r15, %r15
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -24(%r14,%r13)
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, -40(%r14,%r13)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	movq	%r12, %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	addq	$56, %r13
	cmpq	%rax, -64(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
## %bb.9:
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_10:
	movq	%r12, %rdi
	callq	_free_dma_tx_desc_resources
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DMA_TX_SIZE,4,2                ## @DMA_TX_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_alloc_dma_tx_desc_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_dma_tx_desc_resources
_alloc_dma_tx_desc_resources:           ; @alloc_dma_tx_desc_resources
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	ldr	x8, [x0, #24]
	ldr	x21, [x8]
	cbz	x21, LBB0_9
; %bb.1:
	mov	x20, x0
	mov	x22, #0
	mov	x23, #0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
Lloh3:
	adrp	x24, _DMA_TX_SIZE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _DMA_TX_SIZE@GOTPAGEOFF]
Lloh5:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [x26, #8]
	cbz	x0, LBB0_8
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	add	x22, x22, #56
	cmp	x21, x23
	b.eq	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x20, #16]
	add	x27, x26, x22
	str	x23, [x27]
	str	x20, [x27, #48]
	ldr	w0, [x24]
	ldr	w2, [x25]
	mov	w1, #1
	bl	_kcalloc
	str	x0, [x27, #40]
	cbz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	ldr	w2, [x25]
	mov	w1, #8
	bl	_kcalloc
	str	x0, [x27, #32]
	cbz	x0, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x27, [x20, #8]
	ldr	w0, [x20]
	ldr	w8, [x24]
	lsl	w1, w8, #2
	add	x26, x26, x22
	add	x2, x26, #16
	ldr	w3, [x25]
	bl	_dma_alloc_coherent
	cbz	x27, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [x26, #24]
	cbnz	x0, LBB0_3
LBB0_8:
	mov	x0, x20
	bl	_free_dma_tx_desc_resources
	b	LBB0_10
LBB0_9:
	mov	w19, #0
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DMA_TX_SIZE,4,2                ; @DMA_TX_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_alloc_dma_tx_desc_resources
.subsections_via_symbols
