	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_edma_alloc_desc
_fsl_edma_alloc_desc:                   ## @fsl_edma_alloc_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	%esi, %r15d
	movq	%rdi, %r14
	movq	_tcd@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_struct_size
	movq	_GFP_NOWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %r12
	movq	%r14, 16(%rax)
	movl	%r15d, (%rax)
	testl	%r15d, %r15d
	jle	LBB0_10
## %bb.2:
	movl	%r15d, %r13d
	movq	8(%r12), %rcx
	negq	%r13
	movl	$4, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edi
	movq	_GFP_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	(%rcx,%rbx), %rdx
	addq	$-4, %rdx
	callq	_dma_pool_alloc
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	decq	%r15
	addq	$8, %rbx
	cmpq	%r15, %r13
	jne	LBB0_3
	jmp	LBB0_10
LBB0_4:
	testl	%r15d, %r15d
	je	LBB0_7
## %bb.5:
	negq	%r15
	movl	(%r14), %edi
	movl	-12(%rcx,%rbx), %edx
	movl	-8(%rcx,%rbx), %esi
	callq	_dma_pool_free
	cmpq	$2, %r15
	jb	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%r14), %edi
	movl	-16(%rax,%r15,8), %edx
	movl	-12(%rax,%r15,8), %esi
	callq	_dma_pool_free
	decq	%r15
	cmpq	$1, %r15
	jg	LBB0_6
LBB0_7:
	movq	%r12, %rdi
	callq	_kfree
LBB0_8:
	xorl	%r12d, %r12d
LBB0_10:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tcd,4,2                        ## @tcd
	.comm	_GFP_NOWAIT,4,2                 ## @GFP_NOWAIT
	.no_dead_strip	_fsl_edma_alloc_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_edma_alloc_desc
_fsl_edma_alloc_desc:                   ; @fsl_edma_alloc_desc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _tcd@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tcd@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x2, x21
	bl	_struct_size
Lloh3:
	adrp	x23, _GFP_NOWAIT@GOTPAGE
Lloh4:
	ldr	x23, [x23, _GFP_NOWAIT@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_10
; %bb.1:
	str	x19, [x20, #16]
	str	w21, [x20]
	cmp	w21, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x22, #0
	mov	w24, w21
	ldr	x8, [x20, #8]
	mov	w21, #4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	ldr	w1, [x23]
	add	x8, x8, x21
	sub	x2, x8, #4
	bl	_dma_pool_alloc
	ldr	x8, [x20, #8]
	str	w0, [x8, x21]
	cbz	w0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	add	x21, x21, #8
	cmp	x24, x22
	b.ne	LBB0_3
	b	LBB0_10
LBB0_5:
	cbz	w22, LBB0_9
; %bb.6:
	ldr	w0, [x19]
	add	x8, x8, x21
	ldp	w2, w1, [x8, #-12]
	bl	_dma_pool_free
	cmp	x22, #2
	b.lo	LBB0_9
; %bb.7:
	sub	x21, x21, #4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	w0, [x19]
	add	x8, x8, x21
	ldp	w2, w1, [x8, #-16]
	bl	_dma_pool_free
	sub	x21, x21, #8
	sub	x22, x22, #1
	cmp	x22, #1
	b.gt	LBB0_8
LBB0_9:
	mov	x0, x20
	bl	_kfree
	mov	x20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_tcd,4,2                        ; @tcd
	.comm	_GFP_NOWAIT,4,2                 ; @GFP_NOWAIT
	.no_dead_strip	_fsl_edma_alloc_desc
.subsections_via_symbols
