	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_dbri_prepare
_snd_dbri_prepare:                      ## @snd_dbri_prepare
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_DBRI_STREAM
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_snd_pcm_lib_buffer_bytes
	movl	%eax, 4(%r15)
	movq	%rbx, %rdi
	callq	_DBRI_STREAMNO
	movq	_DBRI_PLAY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	leal	(%rdx,%rdx), %eax
	addl	$4, %eax
	movl	%eax, (%r15)
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movq	$0, 8(%r15)
	movq	%rbx, %rdi
	callq	_DBRI_STREAMNO
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_snd_pcm_lib_period_bytes
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_setup_descs
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movq	_D_USR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dprintk
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DBRI_PLAY,8,3                  ## @DBRI_PLAY
	.comm	_D_USR,4,2                      ## @D_USR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"prepare audio output. %d bytes\n"

	.no_dead_strip	_snd_dbri_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_dbri_prepare
_snd_dbri_prepare:                      ; @snd_dbri_prepare
	.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, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	mov	x1, x19
	bl	_DBRI_STREAM
	mov	x21, x0
	mov	x0, x19
	bl	_snd_pcm_lib_buffer_bytes
	str	w0, [x21, #4]
	mov	x0, x19
	bl	_DBRI_STREAMNO
Lloh0:
	adrp	x8, _DBRI_PLAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DBRI_PLAY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	mov	w8, #6
	mov	w9, #4
	csel	w8, w9, w8, eq
	str	w8, [x21]
	mov	x0, x20
	bl	_spin_lock_irq
	str	xzr, [x21, #8]
	mov	x0, x19
	bl	_DBRI_STREAMNO
	mov	x22, x0
	mov	x0, x19
	bl	_snd_pcm_lib_period_bytes
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	bl	_setup_descs
	mov	x19, x0
	mov	x0, x20
	bl	_spin_unlock_irq
Lloh3:
	adrp	x8, _D_USR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D_USR@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	w2, [x21, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DBRI_PLAY,8,3                  ; @DBRI_PLAY
	.comm	_D_USR,4,2                      ; @D_USR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"prepare audio output. %d bytes\n"

	.no_dead_strip	_snd_dbri_prepare
.subsections_via_symbols
