	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bf5xx_pcm_preallocate_dma_buffer
_bf5xx_pcm_preallocate_dma_buffer:      ## @bf5xx_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	8(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	_bf5xx_pcm_hardware@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	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	(,%r15,4), %rsi
	leaq	16(%rbx), %rdx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_alloc_coherent
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r15, (%rbx)
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rdx
	movq	_sport_handle@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	%r14d, (%rdx)
	jne	LBB0_4
## %bb.3:
	movq	%rax, 8(%rcx)
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	movq	%rax, (%rcx)
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bf5xx_pcm_hardware,8,3         ## @bf5xx_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	"Failed to allocate dma memory \t\t\tPlease increase uncached DMA memory region\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_sport_handle,8,3               ## @sport_handle
	.no_dead_strip	_bf5xx_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 bf5xx_pcm_preallocate_dma_buffer
_bf5xx_pcm_preallocate_dma_buffer:      ; @bf5xx_pcm_preallocate_dma_buffer
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	ldp	x9, x8, [x0]
	ldr	x20, [x8, w1, sxtw #3]
Lloh0:
	adrp	x8, _bf5xx_pcm_hardware@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bf5xx_pcm_hardware@GOTPAGEOFF]
Lloh2:
	ldr	x21, [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]
	lsl	x1, x21, #2
	add	x2, x20, #16
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	bl	_dma_alloc_coherent
	str	x0, [x20, #8]
	cbz	x0, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
	str	x21, [x20]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _sport_handle@GOTPAGE
Lloh13:
	ldr	x9, [x9, _sport_handle@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	w8, w19
	b.ne	LBB0_4
; %bb.2:
	mov	w8, #0
	str	x0, [x9, #8]
	b	LBB0_5
LBB0_3:
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w8, w8
	b	LBB0_5
LBB0_4:
	mov	w8, #0
	str	x0, [x9]
LBB0_5:
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_bf5xx_pcm_hardware,8,3         ; @bf5xx_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	"Failed to allocate dma memory \t\t\tPlease increase uncached DMA memory region\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_sport_handle,8,3               ; @sport_handle
	.no_dead_strip	_bf5xx_pcm_preallocate_dma_buffer
.subsections_via_symbols
