	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_dma_alloc_chan_resources
_fsl_dma_alloc_chan_resources:          ## @fsl_dma_alloc_chan_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_to_fsl_chan
	movl	$1, %r14d
	cmpq	$0, 8(%rax)
	jne	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	$4, %edx
	movl	$32, %ecx
	xorl	%r8d, %r8d
	callq	_dma_pool_create
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movl	(%rbx), %edx
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	xorl	%r14d, %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"fsl_dma_engine_desc_pool"

L_.str.1:                               ## @.str.1
	.asciz	"No memory for channel %d descriptor dma pool.\n"

	.no_dead_strip	_fsl_dma_alloc_chan_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_dma_alloc_chan_resources
_fsl_dma_alloc_chan_resources:          ; @fsl_dma_alloc_chan_resources
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_to_fsl_chan
	ldr	x8, [x0, #8]
	cbnz	x8, LBB0_2
; %bb.1:
	mov	x19, x0
	ldr	w1, [x0, #4]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #4
	mov	w3, #32
	mov	w4, #0
	bl	_dma_pool_create
	str	x0, [x19, #8]
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldp	w2, w0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	w0, #0
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fsl_dma_engine_desc_pool"

l_.str.1:                               ; @.str.1
	.asciz	"No memory for channel %d descriptor dma pool.\n"

	.no_dead_strip	_fsl_dma_alloc_chan_resources
.subsections_via_symbols
