	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_qdma_prep_status_queue
_fsl_qdma_prep_status_queue:            ## @fsl_qdma_prep_status_queue
	.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	%rdi, %r14
	movq	(%rdi), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-28(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_2:
	movl	-28(%rbp), %eax
	movq	_FSL_QDMA_CIRCULAR_DESC_SIZE_MAX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	ja	LBB0_7
## %bb.3:
	movq	_FSL_QDMA_CIRCULAR_DESC_SIZE_MIN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jb	LBB0_7
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%rax, %rbx
	movl	-28(%rbp), %esi
	shll	$2, %esi
	movq	%rax, %rdx
	addq	$40, %rdx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	callq	_dma_alloc_coherent
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movl	-28(%rbp), %ecx
	movl	%ecx, (%rbx)
	movq	%rax, 32(%rbx)
	movq	%rax, 24(%rbx)
	movq	$0, 8(%rbx)
	jmp	LBB0_10
LBB0_7:
	leaq	L_.str.2(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	callq	_dev_err
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_devm_kfree
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"status-sizes"

L_.str.1:                               ## @.str.1
	.asciz	"Can't get status-sizes.\n"

	.comm	_FSL_QDMA_CIRCULAR_DESC_SIZE_MAX,4,2 ## @FSL_QDMA_CIRCULAR_DESC_SIZE_MAX
	.comm	_FSL_QDMA_CIRCULAR_DESC_SIZE_MIN,4,2 ## @FSL_QDMA_CIRCULAR_DESC_SIZE_MIN
L_.str.2:                               ## @.str.2
	.asciz	"Get wrong status_size.\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_fsl_qdma_prep_status_queue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_qdma_prep_status_queue
_fsl_qdma_prep_status_queue:            ; @fsl_qdma_prep_status_queue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x0, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	w0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:
	ldr	w8, [sp, #12]
Lloh4:
	adrp	x9, _FSL_QDMA_CIRCULAR_DESC_SIZE_MAX@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FSL_QDMA_CIRCULAR_DESC_SIZE_MAX@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _FSL_QDMA_CIRCULAR_DESC_SIZE_MIN@GOTPAGE
Lloh8:
	ldr	x10, [x10, _FSL_QDMA_CIRCULAR_DESC_SIZE_MIN@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #0, ls
	b.hs	LBB0_7
; %bb.3:
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
LBB0_5:
	mov	x20, #0
LBB0_6:
	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
	add	sp, sp, #64
	ret
LBB0_7:
Lloh12:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.8:
	ldr	w8, [sp, #12]
	lsl	w1, w8, #2
	add	x2, x20, #40
	ldr	w3, [x21]
	mov	x0, x19
	bl	_dma_alloc_coherent
	str	x0, [x20, #16]
	cbz	x0, LBB0_10
; %bb.9:
	ldr	w8, [sp, #12]
	str	w8, [x20]
	stp	x0, x0, [x20, #24]
	str	xzr, [x20, #8]
	b	LBB0_6
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_devm_kfree
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"status-sizes"

l_.str.1:                               ; @.str.1
	.asciz	"Can't get status-sizes.\n"

	.comm	_FSL_QDMA_CIRCULAR_DESC_SIZE_MAX,4,2 ; @FSL_QDMA_CIRCULAR_DESC_SIZE_MAX
	.comm	_FSL_QDMA_CIRCULAR_DESC_SIZE_MIN,4,2 ; @FSL_QDMA_CIRCULAR_DESC_SIZE_MIN
l_.str.2:                               ; @.str.2
	.asciz	"Get wrong status_size.\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_fsl_qdma_prep_status_queue
.subsections_via_symbols
