	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_rme32_playback_prepare
_snd_rme32_playback_prepare:            ## @snd_rme32_playback_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	addq	$16, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_RME32_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	%r15, %rdi
	callq	_snd_pcm_lib_buffer_bytes
	movl	%eax, 16(%rbx)
	jmp	LBB0_3
LBB0_2:
	movq	_RME32_IO_RESET_POS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
LBB0_3:
	movl	(%rbx), %edi
	movq	_RME32_WCR_SEL@GOTPCREL(%rip), %rax
	testl	%edi, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_RME32_WCR_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edi
	movl	%edi, (%rbx)
LBB0_5:
	movq	_RME32_IO_CONTROL_REGISTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RME32_BUFFER_SIZE,4,2          ## @RME32_BUFFER_SIZE
	.comm	_RME32_IO_RESET_POS,8,3         ## @RME32_IO_RESET_POS
	.comm	_RME32_WCR_SEL,4,2              ## @RME32_WCR_SEL
	.comm	_RME32_WCR_MUTE,4,2             ## @RME32_WCR_MUTE
	.comm	_RME32_IO_CONTROL_REGISTER,8,3  ## @RME32_IO_CONTROL_REGISTER
	.no_dead_strip	_snd_rme32_playback_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_rme32_playback_prepare
_snd_rme32_playback_prepare:            ; @snd_rme32_playback_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	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x20, #16
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _RME32_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RME32_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	mov	x0, x21
	bl	_snd_pcm_lib_buffer_bytes
	str	w0, [x20, #16]
	b	LBB0_3
LBB0_2:
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _RME32_IO_RESET_POS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RME32_IO_RESET_POS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
LBB0_3:
	ldr	w0, [x20]
Lloh6:
	adrp	x8, _RME32_WCR_SEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RME32_WCR_SEL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _RME32_WCR_MUTE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RME32_WCR_MUTE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w0, w0, w8
	str	w0, [x20]
LBB0_5:
	ldr	x8, [x20, #8]
Lloh12:
	adrp	x9, _RME32_IO_CONTROL_REGISTER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RME32_IO_CONTROL_REGISTER@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	w0, #0
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_RME32_BUFFER_SIZE,4,2          ; @RME32_BUFFER_SIZE
	.comm	_RME32_IO_RESET_POS,8,3         ; @RME32_IO_RESET_POS
	.comm	_RME32_WCR_SEL,4,2              ; @RME32_WCR_SEL
	.comm	_RME32_WCR_MUTE,4,2             ; @RME32_WCR_MUTE
	.comm	_RME32_IO_CONTROL_REGISTER,8,3  ; @RME32_IO_CONTROL_REGISTER
	.no_dead_strip	_snd_rme32_playback_prepare
.subsections_via_symbols
