	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es1968_calc_bob_rate
_snd_es1968_calc_bob_rate:              ## @snd_es1968_calc_bob_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rsi), %edi
	movq	_ESS_FMT_STEREO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%edi, %eax
	cmpl	$1, %eax
	movb	$3, %cl
	sbbb	$0, %cl
	movl	(%rdx), %eax
	shll	%cl, %eax
	movq	_ESS_FMT_16BIT@GOTPCREL(%rip), %rcx
	testl	%edi, (%rcx)
	setne	%cl
	shll	%cl, %eax
	cltd
	idivl	4(%rsi)
	movq	_ESM_BOB_FREQ@GOTPCREL(%rip), %rdx
	movq	_ESM_BOB_FREQ_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovll	%eax, %ecx
	movl	(%rdx), %edx
	cmpl	%edx, %eax
	cmovll	%edx, %ecx
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESS_FMT_STEREO,4,2             ## @ESS_FMT_STEREO
	.comm	_ESS_FMT_16BIT,4,2              ## @ESS_FMT_16BIT
	.comm	_ESM_BOB_FREQ,4,2               ## @ESM_BOB_FREQ
	.comm	_ESM_BOB_FREQ_MAX,4,2           ## @ESM_BOB_FREQ_MAX
	.no_dead_strip	_snd_es1968_calc_bob_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es1968_calc_bob_rate
_snd_es1968_calc_bob_rate:              ; @snd_es1968_calc_bob_rate
	.cfi_startproc
; %bb.0:
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _ESS_FMT_STEREO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ESS_FMT_STEREO@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldp	w10, w11, [x1]
	tst	w9, w10
	mov	w9, #2
	cinc	w9, w9, ne
	lsl	w8, w8, w9
Lloh3:
	adrp	x9, _ESS_FMT_16BIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ESS_FMT_16BIT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w10
	cset	w9, ne
	lsl	w8, w8, w9
	sdiv	w8, w8, w11
Lloh6:
	adrp	x9, _ESM_BOB_FREQ@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ESM_BOB_FREQ@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _ESM_BOB_FREQ_MAX@GOTPAGE
Lloh10:
	ldr	x10, [x10, _ESM_BOB_FREQ_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	w8, w10
	csel	w10, w8, w10, lt
	cmp	w8, w9
	csel	w0, w9, w10, lt
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ESS_FMT_STEREO,4,2             ; @ESS_FMT_STEREO
	.comm	_ESS_FMT_16BIT,4,2              ; @ESS_FMT_16BIT
	.comm	_ESM_BOB_FREQ,4,2               ; @ESM_BOB_FREQ
	.comm	_ESM_BOB_FREQ_MAX,4,2           ; @ESM_BOB_FREQ_MAX
	.no_dead_strip	_snd_es1968_calc_bob_rate
.subsections_via_symbols
