	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function hqdn3d_precalc_coef
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	0x3fde000000000000              ## double 0.46875
LCPI0_6:
	.quad	0x3fb0000000000000              ## double 0.0625
LCPI0_7:
	.quad	0x4070000000000000              ## double 256
LCPI0_9:
	.quad	0x0000000000000000              ## double 0
	.section	__TEXT,__literal16,16byte_literals
	.p2align	3
LCPI0_8:
	.quad	0x3fe0000000000000              ## double 0.5
	.quad	0xbfe0000000000000              ## double -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_hqdn3d_precalc_coef:                   ## @hqdn3d_precalc_coef
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	callq	_MIN
	divsd	LCPI0_1(%rip), %xmm0
	addsd	LCPI0_2(%rip), %xmm0
	addsd	LCPI0_3(%rip), %xmm0
	callq	_log
	movsd	LCPI0_4(%rip), %xmm1            ## xmm1 = mem[0],zero
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -40(%rbp)                ## 8-byte Spill
	xorl	%ebx, %ebx
	leaq	LCPI0_8(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	-4080(%rbx), %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	addsd	LCPI0_5(%rip), %xmm0
	mulsd	LCPI0_6(%rip), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	callq	_ABS
	divsd	LCPI0_1(%rip), %xmm0
	addsd	LCPI0_2(%rip), %xmm0
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	callq	_pow
	mulsd	LCPI0_7(%rip), %xmm0
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	xorl	%eax, %eax
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm0, %xmm1
	seta	%al
	addsd	(%r15,%rax,8), %xmm0
	cvttsd2si	%xmm0, %eax
	movw	%ax, 32(%r14,%rbx,2)
	incq	%rbx
	cmpq	$8161, %rbx                     ## imm = 0x1FE1
	jne	LBB0_1
## %bb.2:
	xorpd	%xmm0, %xmm0
	movsd	-32(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	cmpneqsd	%xmm0, %xmm1
	movq	%xmm1, %rax
	andl	$1, %eax
	movw	%ax, (%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hqdn3d_precalc_coef
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hqdn3d_precalc_coef
_hqdn3d_precalc_coef:                   ; @hqdn3d_precalc_coef
	.cfi_startproc
; %bb.0:
	stp	d15, d14, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d13, d12, [sp, #16]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	.cfi_offset b10, -88
	.cfi_offset b11, -96
	.cfi_offset b12, -104
	.cfi_offset b13, -112
	.cfi_offset b14, -120
	.cfi_offset b15, -128
	fmov	d8, d0
	mov	x19, x0
	mov	x8, #140737488355328
	movk	x8, #16495, lsl #48
	fmov	d1, x8
	bl	_MIN
	mov	x20, #246290604621824
	movk	x20, #49263, lsl #48
	fmov	d1, x20
	fdiv	d0, d0, d1
	fmov	d11, #1.00000000
	fadd	d0, d0, d11
	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
	mov	x21, #0
	mov	x8, #14831
	movk	x8, #65274, lsl #16
	movk	x8, #11842, lsl #32
	movk	x8, #49142, lsl #48
	fmov	d1, x8
	fmov	d12, #0.46875000
	mov	x22, #4589168020290535424
	mov	x23, #4643211215818981376
	fmov	d13, #0.50000000
	fmov	d14, #-0.50000000
	mov	w24, #8161
	fdiv	d9, d1, d0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	w8, w21, #4080
	scvtf	d0, w8
	fadd	d0, d0, d12
	fmov	d1, x22
	fmul	d10, d0, d1
	fmov	d0, d10
	bl	_ABS
	fmov	d1, x20
	fdiv	d0, d0, d1
	fadd	d0, d0, d11
	fmov	d1, d9
	bl	_pow
	fmov	d1, x23
	fmul	d0, d0, d1
	fmul	d0, d10, d0
	fcmp	d0, #0.0
	fcsel	d1, d14, d13, mi
	fadd	d0, d0, d1
	fcvtzs	w8, d0
	add	x9, x19, x21, lsl #1
	strh	w8, [x9, #32]
	add	x21, x21, #1
	cmp	x21, x24
	b.ne	LBB0_1
; %bb.2:
	fcmp	d8, #0.0
	cset	w8, ne
	strh	w8, [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	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #16]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp], #128            ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hqdn3d_precalc_coef
.subsections_via_symbols
