	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_pcm_preallocate_dma_buffer
_atmel_pcm_preallocate_dma_buffer:      ## @atmel_pcm_preallocate_dma_buffer
	.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
	movq	8(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_atmel_pcm_hardware@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_SNDRV_DMA_TYPE_DEV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movl	%edi, 32(%rbx)
	movq	$0, 24(%rbx)
	leaq	16(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_dma_alloc_coherent
	movq	%rax, 8(%rbx)
	movq	16(%rbx), %rdx
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rsi
	movq	%r14, %rcx
	callq	_pr_debug
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	%r14, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_atmel_pcm_hardware,8,3         ## @atmel_pcm_hardware
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ## @SNDRV_DMA_TYPE_DEV
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atmel-pcm:preallocate_dma_buffer: area=%p, addr=%p, size=%d\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_atmel_pcm_preallocate_dma_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_pcm_preallocate_dma_buffer
_atmel_pcm_preallocate_dma_buffer:      ; @atmel_pcm_preallocate_dma_buffer
	.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
	ldp	x9, x8, [x0]
	ldr	x20, [x8, w1, sxtw #3]
Lloh0:
	adrp	x8, _atmel_pcm_hardware@GOTPAGE
Lloh1:
	ldr	x8, [x8, _atmel_pcm_hardware@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x8, _SNDRV_DMA_TYPE_DEV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_DMA_TYPE_DEV@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w0, [x9]
	stp	w0, w8, [x20, #32]
	str	xzr, [x20, #24]
	add	x2, x20, #16
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x1, x19
	bl	_dma_alloc_coherent
	mov	x1, x0
	str	x0, [x20, #8]
	ldr	x2, [x20, #16]
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x19
	bl	_pr_debug
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w0, #0
	str	x19, [x20]
	b	LBB0_3
LBB0_2:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_atmel_pcm_hardware,8,3         ; @atmel_pcm_hardware
	.comm	_SNDRV_DMA_TYPE_DEV,4,2         ; @SNDRV_DMA_TYPE_DEV
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atmel-pcm:preallocate_dma_buffer: area=%p, addr=%p, size=%d\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_atmel_pcm_preallocate_dma_buffer
.subsections_via_symbols
