	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_test_ddr_dma
_be_test_ddr_dma:                       ## @be_test_ddr_dma
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$4, -32(%rbp)
	movq	(%rdi), %rdi
	leaq	-28(%rbp), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$4, %esi
	callq	_dma_alloc_coherent
	movl	%eax, -24(%rbp)
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	leaq	-32(%rbp), %rcx
	movq	%r14, %rdi
	movl	$1515870810, %esi               ## imm = 0x5A5A5A5A
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_be_cmd_ddr_dma_test
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	leaq	-32(%rbp), %rcx
	movq	%r14, %rdi
	movl	$-1515870811, %esi              ## imm = 0xA5A5A5A5
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_be_cmd_ddr_dma_test
	movl	%eax, %ebx
LBB0_3:
	movq	(%r14), %rdi
	movl	-24(%rbp), %edx
	movl	-32(%rbp), %esi
	movl	-28(%rbp), %ecx
	callq	_dma_free_coherent
	jmp	LBB0_4
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_be_test_ddr_dma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_test_ddr_dma
_be_test_ddr_dma:                       ; @be_test_ddr_dma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	mov	w8, #4
	str	w8, [sp]
	ldr	x0, [x0]
	mov	x8, sp
	orr	x2, x8, #0x4
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w1, #4
	bl	_dma_alloc_coherent
	str	w0, [sp, #8]
	cbz	w0, LBB0_4
; %bb.1:
	mov	x3, sp
	mov	x0, x19
	mov	w1, #23130
	movk	w1, #23130, lsl #16
	mov	w2, #4096
	bl	_be_cmd_ddr_dma_test
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x3, sp
	mov	x0, x19
	mov	w1, #42405
	movk	w1, #42405, lsl #16
	mov	w2, #4096
	bl	_be_cmd_ddr_dma_test
	mov	x20, x0
LBB0_3:
	ldr	x0, [x19]
	ldp	w3, w2, [sp, #4]
	ldr	w1, [sp]
	bl	_dma_free_coherent
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_be_test_ddr_dma
.subsections_via_symbols
