	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function freq_to_fnum
_freq_to_fnum:                          ## @freq_to_fnum
	.cfi_startproc
## %bb.0:
	testl	%edi, %edi
	je	LBB0_1
## %bb.2:
	movl	$5, %eax
	cmpl	$260, %edi                      ## imm = 0x104
	jg	LBB0_5
## %bb.3:
	movl	%edi, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	decl	%eax
	addl	%ecx, %ecx
	cmpl	$261, %ecx                      ## imm = 0x105
	jl	LBB0_4
	jmp	LBB0_8
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	cmpl	$494, %edi                      ## imm = 0x1EE
	jb	LBB0_8
## %bb.6:
	movl	$5, %eax
	movl	%edi, %r8d
	movl	%edi, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	incl	%eax
	sarl	%ecx
	cmpl	$987, %r8d                      ## imm = 0x3DB
	movl	%ecx, %r8d
	jg	LBB0_7
LBB0_8:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$7, %eax
	movl	$7, %r8d
	cmovll	%eax, %r8d
	movb	$20, %cl
	subb	%r8b, %cl
	shll	%cl, %edi
	movslq	%edi, %rax
	imulq	$707707219, %rax, %rax          ## imm = 0x2A2EC153
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$45, %rax
	addl	%ecx, %eax
	movl	%eax, (%rdx)
	movl	%r8d, (%rsi)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_freq_to_fnum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function freq_to_fnum
_freq_to_fnum:                          ; @freq_to_fnum
	.cfi_startproc
; %bb.0:
	cbz	w0, LBB0_4
; %bb.1:
	mov	w8, #5
	cmp	w0, #260
	b.gt	LBB0_5
; %bb.2:
	mov	x9, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w8, #1
	lsl	w9, w9, #1
	cmp	w9, #261
	b.lt	LBB0_3
	b	LBB0_8
LBB0_4:
	mov	w8, #0
	b	LBB0_8
LBB0_5:
	cmp	w0, #494
	b.lo	LBB0_8
; %bb.6:
	mov	x9, x0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w8, #1
	asr	w10, w9, #1
	cmp	w9, #987
	mov	x9, x10
	b.gt	LBB0_7
LBB0_8:
	mov	w9, #7
	cmp	w8, #7
	csel	w8, w8, w9, lt
	mov	w9, #20
	sub	w9, w9, w8
	lsl	w9, w0, w9
	mov	w10, #49491
	movk	w10, #10798, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #45
	add	w9, w9, w10
	str	w9, [x2]
	str	w8, [x1]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_freq_to_fnum
.subsections_via_symbols
