	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es1968_program_wavecache
_snd_es1968_program_wavecache:          ## @snd_es1968_program_wavecache
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	addl	$65520, %ecx                    ## imm = 0xFFF0
	andl	$65528, %ecx                    ## imm = 0xFFF8
	testl	%r8d, %r8d
	jne	LBB0_2
## %bb.1:
	movl	(%rsi), %r9d
	movq	_ESS_FMT_16BIT@GOTPCREL(%rip), %r8
	movl	%ecx, %eax
	orl	$4, %eax
	testl	%r9d, (%r8)
	cmovnel	%ecx, %eax
	movq	_ESS_FMT_STEREO@GOTPCREL(%rip), %r8
	movl	%eax, %ecx
	orl	$2, %ecx
	testl	%r9d, (%r8)
	cmovel	%eax, %ecx
LBB0_2:
	movq	8(%rsi), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	shll	$3, %esi
	movl	%ecx, %edx
	popq	%rbp
	jmp	_wave_set_register              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ESS_FMT_16BIT,4,2              ## @ESS_FMT_16BIT
	.comm	_ESS_FMT_STEREO,4,2             ## @ESS_FMT_STEREO
	.no_dead_strip	_snd_es1968_program_wavecache
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es1968_program_wavecache
_snd_es1968_program_wavecache:          ; @snd_es1968_program_wavecache
	.cfi_startproc
; %bb.0:
	mov	w8, #65520
	add	w8, w3, w8
	and	w8, w8, #0xfff8
	cbnz	w4, LBB0_2
; %bb.1:
	ldr	w9, [x1]
Lloh0:
	adrp	x10, _ESS_FMT_16BIT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ESS_FMT_16BIT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	orr	w11, w8, #0x4
	tst	w10, w9
	csel	w8, w11, w8, eq
Lloh3:
	adrp	x10, _ESS_FMT_STEREO@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ESS_FMT_STEREO@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w11, w8, #0x2
	tst	w10, w9
	csel	w8, w8, w11, eq
LBB0_2:
	ldr	x9, [x1, #8]
	ldr	w9, [x9, w2, sxtw #2]
	lsl	w1, w9, #3
	mov	x2, x8
	b	_wave_set_register
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ESS_FMT_16BIT,4,2              ; @ESS_FMT_16BIT
	.comm	_ESS_FMT_STEREO,4,2             ; @ESS_FMT_STEREO
	.no_dead_strip	_snd_es1968_program_wavecache
.subsections_via_symbols
