	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ess_audio_prepare_for_input
_ess_audio_prepare_for_input:           ## @ess_audio_prepare_for_input
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_audio_devs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_ess_speed
	movq	_DSP_CMD_SPKOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sb_dsp_command
	movq	%rbx, %rdi
	movl	$184, %esi
	movl	$14, %edx
	callq	_ess_write
	movl	$3, %ecx
	subl	(%rbx), %ecx
	movq	%rbx, %rdi
	movl	$168, %esi
	movl	$3, %edx
	callq	_ess_change
	movq	%rbx, %rdi
	movl	$185, %esi
	movl	$2, %edx
	callq	_ess_write
	movq	_ess_inp_cmds@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ess_exec_commands
	movq	%rbx, %rdi
	movl	$177, %esi
	movl	$240, %edx
	movl	$80, %ecx
	callq	_ess_change
	movq	%rbx, %rdi
	movl	$178, %esi
	movl	$240, %edx
	movl	$80, %ecx
	callq	_ess_change
	movq	$0, 8(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_DSP_CMD_SPKOFF,4,2             ## @DSP_CMD_SPKOFF
	.comm	_ess_inp_cmds,4,2               ## @ess_inp_cmds
	.no_dead_strip	_ess_audio_prepare_for_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ess_audio_prepare_for_input
_ess_audio_prepare_for_input:           ; @ess_audio_prepare_for_input
	.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
Lloh0:
	adrp	x8, _audio_devs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _audio_devs@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x8, [x8, w0, sxtw #3]
	ldr	x19, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_ess_speed
Lloh3:
	adrp	x8, _DSP_CMD_SPKOFF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DSP_CMD_SPKOFF@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sb_dsp_command
	mov	x0, x19
	mov	w1, #184
	mov	w2, #14
	bl	_ess_write
	ldr	w8, [x19]
	mov	w9, #3
	sub	w3, w9, w8
	mov	x0, x19
	mov	w1, #168
	mov	w2, #3
	bl	_ess_change
	mov	x0, x19
	mov	w1, #185
	mov	w2, #2
	bl	_ess_write
Lloh6:
	adrp	x8, _ess_inp_cmds@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ess_inp_cmds@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ess_exec_commands
	mov	x0, x19
	mov	w1, #177
	mov	w2, #240
	mov	w3, #80
	bl	_ess_change
	mov	x0, x19
	mov	w1, #178
	mov	w2, #240
	mov	w3, #80
	bl	_ess_change
	str	xzr, [x19, #8]
	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	_audio_devs,8,3                 ; @audio_devs
	.comm	_DSP_CMD_SPKOFF,4,2             ; @DSP_CMD_SPKOFF
	.comm	_ess_inp_cmds,4,2               ; @ess_inp_cmds
	.no_dead_strip	_ess_audio_prepare_for_input
.subsections_via_symbols
