	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv_cesa_dma_add_desc
_mv_cesa_dma_add_desc:                  ## @mv_cesa_dma_add_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	_cesa_dev@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	leaq	-20(%rbp), %rdx
	callq	_dma_pool_zalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	-20(%rbp), %edi
	movl	%edi, 12(%rax)
	cmpq	$0, (%r14)
	je	LBB0_4
## %bb.3:
	callq	_cpu_to_le32
	movq	(%r14), %rcx
	movl	%eax, 8(%rcx)
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	callq	_ERR_PTR
	movq	%rax, %rbx
	jmp	LBB0_6
LBB0_4:
	leaq	8(%r14), %rcx
LBB0_5:
	movq	%rbx, (%rcx)
	movq	%rbx, (%r14)
LBB0_6:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cesa_dev,8,3                   ## @cesa_dev
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mv_cesa_dma_add_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv_cesa_dma_add_desc
_mv_cesa_dma_add_desc:                  ; @mv_cesa_dma_add_desc
	.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
Lloh0:
	adrp	x8, _cesa_dev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cesa_dev@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w0, [x8]
	add	x2, sp, #12
	bl	_dma_pool_zalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	ldr	w0, [sp, #12]
	str	w0, [x20, #12]
	ldr	x8, [x19]
	cbz	x8, LBB0_4
; %bb.2:
	bl	_cpu_to_le32
	ldr	x8, [x19]
	str	w0, [x8, #8]
	b	LBB0_5
LBB0_3:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	bl	_ERR_PTR
	mov	x20, x0
	b	LBB0_6
LBB0_4:
	add	x8, x19, #8
LBB0_5:
	str	x20, [x8]
	str	x20, [x19]
LBB0_6:
	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	_cesa_dev,8,3                   ; @cesa_dev
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mv_cesa_dma_add_desc
.subsections_via_symbols
