	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function init_sample_rate
LCPI0_0:
	.quad	0xbee0000000000000              ## double -7.62939453125E-6
LCPI0_1:
	.quad	0x3feb333333333333              ## double 0.84999999999999998
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_3:
	.quad	0x3ee179ec9cbd821e              ## double 8.3333333333333337E-6
LCPI0_4:
	.quad	0x3fd0000000000000              ## double 0.25
LCPI0_5:
	.quad	0x3fe91eb851eb851f              ## double 0.78500000000000003
LCPI0_6:
	.quad	0x3ee069de41a2d800              ## double 7.8265894000000003E-6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_init_sample_rate:                      ## @init_sample_rate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movb	$2, %cl
	subb	(%rdi), %cl
	movl	$1, %edi
	shll	%cl, %edi
	callq	_sqrt
	mulsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movl	4(%r12), %eax
	cltd
	idivl	8(%r12)
	movl	%eax, %r14d
	leaq	48(%r12), %r15
	movq	%r15, %rdi
	callq	_ff_mdct_end
	movl	12(%r12), %esi
	addl	$6, %esi
	movq	%r15, %rdi
	movl	$1, %edx
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_ff_mdct_init
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	12(%r12), %ecx
	movl	$32, %eax
	shll	%cl, %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movq	_ff_dca_long_window@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	40(%r12), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movb	$2, %al
	subb	%cl, %al
	movl	%edi, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	movslq	%ebx, %rax
	movl	(%rdx,%rax,4), %eax
	movl	%eax, (%rsi,%rdi,4)
	movl	12(%r12), %ecx
	movl	$32, %eax
	shll	%cl, %eax
	incq	%rdi
	cltq
	cmpq	%rax, %rdi
	jl	LBB0_4
LBB0_5:
	cmpl	$14000, %r14d                   ## imm = 0x36B0
	jge	LBB0_7
## %bb.6:
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	cmpl	$0, 16(%r12)
	jg	LBB0_11
	jmp	LBB0_19
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_20
LBB0_7:
	cmpl	$31999, %r14d                   ## imm = 0x7CFF
	ja	LBB0_8
## %bb.9:
	addl	$-14000, %r14d                  ## imm = 0xC950
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r14d, %xmm0
	mulsd	LCPI0_3(%rip), %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	cmpl	$0, 16(%r12)
	jg	LBB0_11
	jmp	LBB0_19
LBB0_8:
	movsd	LCPI0_2(%rip), %xmm0            ## xmm0 = mem[0],zero
	cmpl	$0, 16(%r12)
	jle	LBB0_19
LBB0_11:
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	(%rax), %xmm1
	movq	24(%r12), %rax
	movl	$0, (%rax)
	cmpl	$2, 16(%r12)
	jl	LBB0_18
## %bb.12:
	movl	$0, 4(%rax)
	cmpl	$3, 16(%r12)
	jl	LBB0_18
## %bb.13:
	mulsd	%xmm1, %xmm0
	movl	$2, %ecx
	movsd	LCPI0_4(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	LCPI0_5(%rip), %xmm2            ## xmm2 = mem[0],zero
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	movapd	%xmm2, %xmm3
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	mulsd	%xmm0, %xmm3
	cvttsd2si	%xmm3, %edx
	movl	%edx, (%rax,%rcx,4)
	incq	%rcx
	movslq	16(%r12), %rdx
	cmpq	%rdx, %rcx
	jge	LBB0_18
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%rcx), %edx
	xorps	%xmm3, %xmm3
	cvtsi2sd	%edx, %xmm3
	mulsd	%xmm1, %xmm3
	cmpq	$5, %rcx
	jae	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	mulsd	%xmm2, %xmm3
	jmp	LBB0_17
LBB0_18:
	movl	12(%r12), %ecx
LBB0_19:
	movl	$16, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	LCPI0_6(%rip), %xmm0
	cvttsd2si	%xmm0, %eax
	movl	%eax, 32(%r12)
	xorl	%eax, %eax
LBB0_20:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ff_dca_long_window,8,3         ## @ff_dca_long_window
	.comm	_INT_MAX,8,3                    ## @INT_MAX
	.no_dead_strip	_init_sample_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_sample_rate
_init_sample_rate:                      ; @init_sample_rate
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #2
	sub	w8, w9, w8
	mov	w9, #1
	lsl	w0, w9, w8
	bl	_sqrt
	mov	x8, #-4692750811720056832
	fmov	d1, x8
	fmul	d8, d0, d1
	ldp	w21, w22, [x19, #4]
	add	x20, x19, #48
	mov	x0, x20
	bl	_ff_mdct_end
	ldr	w8, [x19, #12]
	add	w1, w8, #6
	mov	x0, x20
	mov	w2, #1
	fmov	d0, d8
	bl	_ff_mdct_init
	tbnz	x0, #63, LBB0_14
; %bb.1:
	ldr	w8, [x19, #12]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	mov	w10, #32
	lsl	w11, w10, w8
	sdiv	w9, w21, w22
	cmp	w11, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x11, #0
Lloh0:
	adrp	x12, _ff_dca_long_window@GOTPAGE
Lloh1:
	ldr	x12, [x12, _ff_dca_long_window@GOTPAGEOFF]
Lloh2:
	ldr	x12, [x12]
	ldr	x13, [x19, #40]
	mov	w14, #2
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w14, w8
	lsl	w8, w11, w8
	ldr	w8, [x12, w8, sxtw #2]
	str	w8, [x13, x11, lsl #2]
	add	x11, x11, #1
	ldr	w8, [x19, #12]
	lsl	w15, w10, w8
	cmp	x11, w15, sxtw
	b.lt	LBB0_3
LBB0_4:
	mov	x10, #3689348814741910323
	movk	x10, #16363, lsl #48
	fmov	d1, x10
	mov	w10, #14000
	fmov	d0, #1.00000000
	lsr	w11, w9, #8
	cmp	w11, #124
	mov	w11, #-14000
	add	w11, w9, w11
	scvtf	d2, w11
	mov	x11, #3689348814741910323
	movk	x11, #16363, lsl #48
	fmov	d3, x11
	mov	x11, #33310
	movk	x11, #40125, lsl #16
	movk	x11, #31212, lsl #32
	movk	x11, #16097, lsl #48
	fmov	d4, x11
	fmadd	d2, d2, d4, d3
	fcsel	d2, d0, d2, hi
	cmp	w9, w10
	fcsel	d1, d1, d2, lt
	ldr	w9, [x19, #16]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.5:
Lloh3:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh5:
	ldr	d2, [x8]
	ldr	x8, [x19, #24]
	str	wzr, [x8]
	ldr	w9, [x19, #16]
	cmp	w9, #2
	b.lt	LBB0_12
; %bb.6:
	str	wzr, [x8, #4]
	ldr	w9, [x19, #16]
	cmp	w9, #3
	b.lt	LBB0_12
; %bb.7:
	fdiv	d0, d0, d2
	fmul	d0, d1, d0
	mov	x9, #34079
	movk	x9, #20971, lsl #16
	movk	x9, #7864, lsl #32
	movk	x9, #16329, lsl #48
	fmov	d1, x9
	fmul	d1, d0, d1
	fcvtzs	w9, d1
	str	w9, [x8, #8]
	ldr	w9, [x19, #16]
	cmp	w9, #4
	b.lt	LBB0_12
; %bb.8:
	mov	x9, #34079
	movk	x9, #20971, lsl #16
	movk	x9, #7864, lsl #32
	movk	x9, #16345, lsl #48
	fmov	d1, x9
	fmul	d1, d0, d1
	fcvtzs	w9, d1
	str	w9, [x8, #12]
	ldr	w9, [x19, #16]
	cmp	w9, #5
	b.lt	LBB0_12
; %bb.9:
	mov	x9, #41943
	movk	x9, #15728, lsl #16
	movk	x9, #55050, lsl #32
	movk	x9, #16354, lsl #48
	fmov	d1, x9
	fmul	d1, d0, d1
	fcvtzs	w9, d1
	str	w9, [x8, #16]
	ldr	w9, [x19, #16]
	cmp	w9, #6
	b.lt	LBB0_12
; %bb.10:
	mov	x9, #34079
	movk	x9, #20971, lsl #16
	movk	x9, #7864, lsl #32
	movk	x9, #16361, lsl #48
	fmov	d1, x9
	fmul	d0, d0, d1
	fcvtzs	w9, d0
	mov	w10, #5
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	str	w9, [x8, x10, lsl #2]
	ldrsw	x11, [x19, #16]
	add	x10, x10, #1
	cmp	x10, x11
	b.lt	LBB0_11
LBB0_12:
	ldr	w8, [x19, #12]
LBB0_13:
	mov	w0, #0
	mov	w9, #16
	lsl	w8, w9, w8
	scvtf	d0, w8
	mov	x8, #55296
	movk	x8, #16802, lsl #16
	movk	x8, #27102, lsl #32
	movk	x8, #16096, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	fcvtzs	w8, d0
	str	w8, [x19, #32]
	b	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ff_dca_long_window,8,3         ; @ff_dca_long_window
	.comm	_INT_MAX,8,3                    ; @INT_MAX
	.no_dead_strip	_init_sample_rate
.subsections_via_symbols
