	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_au1000_capture_prepare
_snd_au1000_capture_prepare:            ## @snd_au1000_capture_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rbx
	cmpl	$1, (%r14)
	movq	_AC97_SLOT_4@GOTPCREL(%rip), %rax
	movl	$0, %esi
	je	LBB0_2
## %bb.1:
	movq	_AC97_SLOT_3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_2:
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_au1000_set_ac97_recv_slots
	movl	(%rbx), %edi
	movq	_AC97_PCM_LR_ADC_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	callq	_snd_ac97_set_rate
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_SLOT_4,4,2                ## @AC97_SLOT_4
	.comm	_AC97_SLOT_3,4,2                ## @AC97_SLOT_3
	.comm	_AC97_PCM_LR_ADC_RATE,4,2       ## @AC97_PCM_LR_ADC_RATE
	.no_dead_strip	_snd_au1000_capture_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_au1000_capture_prepare
_snd_au1000_capture_prepare:            ; @snd_au1000_capture_prepare
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	x20, x8, [x0]
	ldr	x19, [x8]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _AC97_SLOT_3@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AC97_SLOT_3@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _AC97_SLOT_4@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AC97_SLOT_4@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, #1
	csel	w8, wzr, w9, eq
	orr	w1, w10, w8
	mov	x0, x19
	bl	_au1000_set_ac97_recv_slots
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _AC97_PCM_LR_ADC_RATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC97_PCM_LR_ADC_RATE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x20, #4]
	bl	_snd_ac97_set_rate
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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	_AC97_SLOT_4,4,2                ; @AC97_SLOT_4
	.comm	_AC97_SLOT_3,4,2                ; @AC97_SLOT_3
	.comm	_AC97_PCM_LR_ADC_RATE,4,2       ; @AC97_PCM_LR_ADC_RATE
	.no_dead_strip	_snd_au1000_capture_prepare
.subsections_via_symbols
