	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_tea575x_val_to_freq
_snd_tea575x_val_to_freq:               ## @snd_tea575x_val_to_freq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	_TEA575X_BIT_FREQ_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	je	LBB0_9
## %bb.1:
	movslq	(%rdi), %rax
	cmpq	$128, %rax
	je	LBB0_5
## %bb.2:
	cmpl	$130, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.4:
	imull	$125, %esi, %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rsi         ## imm = 0x66666667
	movq	%rsi, %rcx
	shrq	$63, %rcx
	sarq	$34, %rsi
	addl	%ecx, %esi
	movq	_TEA575X_FMIF@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_9:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_5:
	imull	$125, %esi, %ecx
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rsi         ## imm = 0x66666667
	movq	%rsi, %rcx
	shrq	$63, %rcx
	sarq	$34, %rsi
	addl	%ecx, %esi
	movq	_TEA575X_FMIF@GOTPCREL(%rip), %rcx
	addl	(%rcx), %esi
	jmp	LBB0_8
LBB0_6:
	movq	_TEA575X_AMIF@GOTPCREL(%rip), %rcx
LBB0_7:
	subl	(%rcx), %esi
LBB0_8:
	shll	$4, %esi
	movq	_bands@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,8), %edx
	movl	4(%rcx,%rax,8), %eax
	movl	%esi, %edi
	movl	%eax, %esi
	popq	%rbp
	jmp	_clamp                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TEA575X_BIT_FREQ_MASK,4,2      ## @TEA575X_BIT_FREQ_MASK
	.comm	_TEA575X_FMIF,4,2               ## @TEA575X_FMIF
	.comm	_TEA575X_AMIF,4,2               ## @TEA575X_AMIF
	.comm	_bands,8,3                      ## @bands
	.no_dead_strip	_snd_tea575x_val_to_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_tea575x_val_to_freq
_snd_tea575x_val_to_freq:               ; @snd_tea575x_val_to_freq
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _TEA575X_BIT_FREQ_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEA575X_BIT_FREQ_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w9, w8, w1
	b.eq	LBB0_5
; %bb.1:
	ldr	w10, [x0]
	sxtw	x8, w10
	cmp	w10, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w10, #130
	b.eq	LBB0_7
; %bb.3:
	cmp	w10, #129
	b.ne	LBB0_8
; %bb.4:
	mov	w10, #125
	mul	w9, w9, w10
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #34
Lloh3:
	adrp	x11, _TEA575X_FMIF@GOTPAGE
Lloh4:
	ldr	x11, [x11, _TEA575X_FMIF@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	add	w9, w9, w10
	sub	w9, w9, w11
	b	LBB0_8
LBB0_5:
	mov	w0, #0
	ret
LBB0_6:
	mov	w10, #125
	mul	w9, w9, w10
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #34
Lloh6:
	adrp	x11, _TEA575X_FMIF@GOTPAGE
Lloh7:
	ldr	x11, [x11, _TEA575X_FMIF@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	add	w9, w9, w10
	add	w9, w11, w9
	b	LBB0_8
LBB0_7:
Lloh9:
	adrp	x10, _TEA575X_AMIF@GOTPAGE
Lloh10:
	ldr	x10, [x10, _TEA575X_AMIF@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	sub	w9, w9, w10
LBB0_8:
	lsl	w0, w9, #4
Lloh12:
	adrp	x9, _bands@GOTPAGE
Lloh13:
	ldr	x9, [x9, _bands@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x8, x9, x8, lsl #3
	ldp	w2, w1, [x8]
	b	_clamp
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TEA575X_BIT_FREQ_MASK,4,2      ; @TEA575X_BIT_FREQ_MASK
	.comm	_TEA575X_FMIF,4,2               ; @TEA575X_FMIF
	.comm	_TEA575X_AMIF,4,2               ; @TEA575X_AMIF
	.comm	_bands,8,3                      ; @bands
	.no_dead_strip	_snd_tea575x_val_to_freq
.subsections_via_symbols
