	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ess_audio_prepare_for_output_audio2
_ess_audio_prepare_for_output_audio2:   ## @ess_audio_prepare_for_output_audio2
	.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	$120, %esi
	movl	$208, %edx
	movl	$208, %ecx
	callq	_ess_chgmixer
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_ess_speed
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_ess_getmixer
                                        ## kill: def $eax killed $eax def $rax
	andb	$24, %al
	leal	2(%rax), %ecx
	cmpl	$1, (%rbx)
	movzbl	%al, %eax
	movzbl	%cl, %ecx
	cmovel	%eax, %ecx
	movq	8(%rbx), %rax
	movq	_AFMT_U8@GOTPCREL(%rip), %rdx
	leal	5(%rcx), %esi
	cmpq	(%rdx), %rax
	movzbl	%sil, %eax
	cmovel	%ecx, %eax
	orb	$96, %al
	movzbl	%al, %edx
	movq	%rbx, %rdi
	movl	$122, %esi
	callq	_ess_setmixer
	movq	_SOUND_MIXER_PCM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ess_mixer_reload
	movq	$0, 16(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_audio_devs,8,3                 ## @audio_devs
	.comm	_AFMT_U8,8,3                    ## @AFMT_U8
	.comm	_SOUND_MIXER_PCM,4,2            ## @SOUND_MIXER_PCM
	.no_dead_strip	_ess_audio_prepare_for_output_audio2
.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_output_audio2
_ess_audio_prepare_for_output_audio2:   ; @ess_audio_prepare_for_output_audio2
	.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, #120
	mov	w2, #208
	mov	w3, #208
	bl	_ess_chgmixer
	mov	x0, x19
	mov	w1, #2
	bl	_ess_speed
	mov	x0, x19
	mov	w1, #122
	bl	_ess_getmixer
	and	w8, w0, #0x18
	ldr	w9, [x19]
	orr	w10, w8, #0x2
	cmp	w9, #1
	csel	w8, w8, w10, eq
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x10, _AFMT_U8@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AFMT_U8@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	mov	w11, #5
	orr	w11, w8, w11
	cmp	x9, x10
	csel	w8, w8, w11, eq
	orr	w2, w8, #0x60
	mov	x0, x19
	mov	w1, #122
	bl	_ess_setmixer
Lloh6:
	adrp	x8, _SOUND_MIXER_PCM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SOUND_MIXER_PCM@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ess_mixer_reload
	str	xzr, [x19, #16]
	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	_AFMT_U8,8,3                    ; @AFMT_U8
	.comm	_SOUND_MIXER_PCM,4,2            ; @SOUND_MIXER_PCM
	.no_dead_strip	_ess_audio_prepare_for_output_audio2
.subsections_via_symbols
