	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_intel8x0m_pcm_prepare
_snd_intel8x0m_pcm_prepare:             ## @snd_intel8x0m_pcm_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	(%rbx), %r12
	movq	%rbx, %rdi
	callq	_get_ichdev
	movq	%rax, %r15
	movl	4(%r12), %eax
	movl	%eax, 12(%r15)
	movq	%rbx, %rdi
	callq	_snd_pcm_lib_buffer_bytes
	movl	%eax, 8(%r15)
	movq	%rbx, %rdi
	callq	_snd_pcm_lib_period_bytes
	movl	%eax, 4(%r15)
	movl	(%r15), %edi
	movq	_AC97_LINE1_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	callq	_snd_ac97_write
	movl	(%r15), %edi
	movq	_AC97_LINE1_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_snd_ac97_write
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_snd_intel8x0_setup_periods
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_LINE1_RATE,4,2            ## @AC97_LINE1_RATE
	.comm	_AC97_LINE1_LEVEL,4,2           ## @AC97_LINE1_LEVEL
	.no_dead_strip	_snd_intel8x0m_pcm_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_intel8x0m_pcm_prepare
_snd_intel8x0m_pcm_prepare:             ; @snd_intel8x0m_pcm_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
	ldr	x22, [x19]
	mov	x0, x19
	bl	_get_ichdev
	mov	x21, x0
	ldr	w8, [x22, #4]
	str	w8, [x0, #12]
	mov	x0, x19
	bl	_snd_pcm_lib_buffer_bytes
	str	w0, [x21, #8]
	mov	x0, x19
	bl	_snd_pcm_lib_period_bytes
	str	w0, [x21, #4]
	ldr	w0, [x21]
Lloh0:
	adrp	x8, _AC97_LINE1_RATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC97_LINE1_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x22]
	bl	_snd_ac97_write
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _AC97_LINE1_LEVEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC97_LINE1_LEVEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_snd_ac97_write
	mov	x0, x20
	mov	x1, x21
	bl	_snd_intel8x0_setup_periods
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_LINE1_RATE,4,2            ; @AC97_LINE1_RATE
	.comm	_AC97_LINE1_LEVEL,4,2           ; @AC97_LINE1_LEVEL
	.no_dead_strip	_snd_intel8x0m_pcm_prepare
.subsections_via_symbols
