	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_amd7930_playback_prepare
_snd_amd7930_playback_prepare:          ## @snd_amd7930_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	movq	(%r14), %r12
	movq	%r14, %rdi
	callq	_snd_pcm_lib_buffer_bytes
	movl	%eax, %r15d
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_AMD7930_FLAG_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%rbx)
	movl	8(%r12), %eax
	movl	%eax, 12(%rbx)
	movl	%eax, 16(%rbx)
	movl	%r15d, (%rbx)
	movl	8(%rbx), %ecx
	movq	(%r12), %rdx
	movq	_SNDRV_PCM_FORMAT_A_LAW@GOTPCREL(%rip), %rsi
	movq	_AM_MAP_MMR1_ALAW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edi
	orl	%ecx, %edi
	notl	%eax
	andl	%ecx, %eax
	cmpq	(%rsi), %rdx
	cmovel	%edi, %eax
	cmpl	%ecx, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	___amd7930_update_map
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AMD7930_FLAG_PLAYBACK,4,2      ## @AMD7930_FLAG_PLAYBACK
	.comm	_SNDRV_PCM_FORMAT_A_LAW,8,3     ## @SNDRV_PCM_FORMAT_A_LAW
	.comm	_AM_MAP_MMR1_ALAW,4,2           ## @AM_MAP_MMR1_ALAW
	.no_dead_strip	_snd_amd7930_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_amd7930_playback_prepare
_snd_amd7930_playback_prepare:          ; @snd_amd7930_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	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x22, [x20]
	mov	x0, x20
	bl	_snd_pcm_lib_buffer_bytes
	mov	x21, x0
	add	x20, x19, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x8, _AMD7930_FLAG_PLAYBACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMD7930_FLAG_PLAYBACK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #20]
	orr	w8, w9, w8
	str	w8, [x19, #20]
	ldr	w8, [x22, #8]
	stp	w8, w8, [x19, #12]
	str	w21, [x19]
	ldr	w9, [x19, #8]
	ldr	x8, [x22]
Lloh3:
	adrp	x10, _SNDRV_PCM_FORMAT_A_LAW@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SNDRV_PCM_FORMAT_A_LAW@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _AM_MAP_MMR1_ALAW@GOTPAGE
Lloh7:
	ldr	x11, [x11, _AM_MAP_MMR1_ALAW@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	orr	w12, w11, w9
	bic	w11, w9, w11
	cmp	x8, x10
	csel	w8, w12, w11, eq
	cmp	w8, w9
	b.eq	LBB0_2
; %bb.1:
	str	w8, [x19, #8]
	mov	x0, x19
	bl	___amd7930_update_map
LBB0_2:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AMD7930_FLAG_PLAYBACK,4,2      ; @AMD7930_FLAG_PLAYBACK
	.comm	_SNDRV_PCM_FORMAT_A_LAW,8,3     ; @SNDRV_PCM_FORMAT_A_LAW
	.comm	_AM_MAP_MMR1_ALAW,4,2           ; @AM_MAP_MMR1_ALAW
	.no_dead_strip	_snd_amd7930_playback_prepare
.subsections_via_symbols
