	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function precalc_coefs
LCPI0_0:
	.quad	0x406f800000000000              ## double 252
LCPI0_1:
	.quad	0xc06fe00000000000              ## double -255
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_3:
	.quad	0xbee4f8b588e368f1              ## double -1.0000000000000001E-5
LCPI0_4:
	.quad	0xbff62e42fefa39ef              ## double -1.3862943611198906
LCPI0_5:
	.quad	0x3f60000000000000              ## double 0.001953125
LCPI0_7:
	.quad	0x4070000000000000              ## double 256
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_6:
	.quad	0x7fffffffffffffff              ## double NaN
	.quad	0x7fffffffffffffff              ## double NaN
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_precalc_coefs:                         ## @precalc_coefs
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movq	_LUT_BITS@GOTPCREL(%rip), %r14
	movb	(%r14), %cl
	movl	$2048, %edi                     ## imm = 0x800
	shll	%cl, %edi
	callq	_av_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_FFMIN
	divsd	LCPI0_1(%rip), %xmm0
	addsd	LCPI0_2(%rip), %xmm0
	addsd	LCPI0_3(%rip), %xmm0
	callq	_log
	movl	(%r14), %eax
	movl	$-256, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	movl	$256, %esi                      ## imm = 0x100
	shll	%cl, %esi
	cmpl	%esi, %edx
	jge	LBB0_4
## %bb.2:
	movsd	LCPI0_4(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -40(%rbp)                ## 8-byte Spill
	movslq	%edx, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movb	$9, %cl
	subb	%al, %cl
	movl	%ebx, %edx
	shll	%cl, %edx
	movb	$8, %cl
	subb	%al, %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	addl	%edx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	mulsd	LCPI0_5(%rip), %xmm0
	movapd	%xmm0, -64(%rbp)                ## 16-byte Spill
	andpd	LCPI0_6(%rip), %xmm0
	divsd	LCPI0_1(%rip), %xmm0
	addsd	LCPI0_2(%rip), %xmm0
	xorl	%edi, %edi
	callq	_FFMAX
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_pow
	mulsd	LCPI0_7(%rip), %xmm0
	mulsd	-64(%rbp), %xmm0                ## 16-byte Folded Reload
	callq	_lrint
	movzbl	(%r14), %ecx
	movl	$256, %edx                      ## imm = 0x100
	shll	%cl, %edx
	movslq	%edx, %rcx
	addq	%rbx, %rcx
	movl	%eax, (%r15,%rcx,4)
	movl	(%r14), %eax
	movl	$256, %edx                      ## imm = 0x100
	movl	%eax, %ecx
	shll	%cl, %edx
	incq	%rbx
	cmpl	%edx, %ebx
	jl	LBB0_3
LBB0_4:
	xorpd	%xmm0, %xmm0
	movsd	-32(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	cmpneqsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	andl	$1, %eax
	movl	%eax, (%r15)
LBB0_5:
	movq	%r15, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LUT_BITS,4,2                   ## @LUT_BITS
	.no_dead_strip	_precalc_coefs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function precalc_coefs
_precalc_coefs:                         ; @precalc_coefs
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	fmov	d8, d0
Lloh0:
	adrp	x20, _LUT_BITS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LUT_BITS@GOTPAGEOFF]
	ldr	w8, [x20]
	mov	w9, #2048
	lsl	w0, w9, w8
	bl	_av_malloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.1:
	mov	x8, #140737488355328
	movk	x8, #16495, lsl #48
	fmov	d1, x8
	fmov	d0, d8
	bl	_FFMIN
	mov	x8, #246290604621824
	movk	x8, #49263, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	fmov	d10, #1.00000000
	fadd	d0, d0, d10
	mov	x8, #26865
	movk	x8, #35043, lsl #16
	movk	x8, #63669, lsl #32
	movk	x8, #48868, lsl #48
	fmov	d1, x8
	fadd	d0, d0, d1
	bl	_log
	ldr	w8, [x20]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	mov	w9, #-256
	lsl	w9, w9, w8
	mov	w21, #256
	lsl	w10, w21, w8
	cmp	w9, w10
	b.ge	LBB0_4
; %bb.2:
	mov	x10, #14831
	movk	x10, #65274, lsl #16
	movk	x10, #11842, lsl #32
	movk	x10, #49142, lsl #48
	fmov	d1, x10
	sxtw	x22, w9
	mov	w23, #9
	mov	w24, #8
	mov	w25, #-1
	mov	x26, #4566650022153682944
	mov	x27, #246290604621824
	movk	x27, #49263, lsl #48
	mov	x28, #4643211215818981376
	fdiv	d9, d1, d0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	w9, w23, w8
	lsl	w9, w22, w9
	sub	w8, w24, w8
	lsl	w8, w25, w8
	mvn	w8, w8
	add	w8, w9, w8
	scvtf	d0, w8
	fmov	d1, x26
	fmul	d11, d0, d1
	fabs	d0, d11
	fmov	d1, x27
	fdiv	d0, d0, d1
	fadd	d0, d0, d10
	mov	w0, #0
	bl	_FFMAX
	fmov	d1, d9
	bl	_pow
	fmov	d1, x28
	fmul	d0, d0, d1
	fmul	d0, d11, d0
	bl	_lrint
	ldr	w8, [x20]
	lsl	w8, w21, w8
	add	x8, x22, w8, sxtw
	str	w0, [x19, x8, lsl #2]
	ldr	w8, [x20]
	lsl	w9, w21, w8
	add	x22, x22, #1
	cmp	w22, w9
	b.lt	LBB0_3
LBB0_4:
	fcmp	d8, #0.0
	cset	w8, ne
	str	w8, [x19]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_LUT_BITS,4,2                   ; @LUT_BITS
	.no_dead_strip	_precalc_coefs
.subsections_via_symbols
