	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_precision
_calc_precision:                        ## @calc_precision
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	(%rdx), %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	(%r15), %eax
	cmpl	$2, %eax
	jl	LBB0_5
## %bb.1:
	movl	$1, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	subq	-8(%rax,%rbx,8), %rdi
	callq	_FFABS
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decl	%eax
	movq	8(%r14), %rcx
	movq	-8(%rcx,%rbx,8), %rdx
	xorl	%r12d, %r12d
	cmpq	(%rcx,%rbx,8), %rdx
	setg	%r12b
	movl	%eax, %edi
	movl	$5, %esi
	callq	_FFMIN
	movq	(%r14), %rcx
	movl	%ebx, %edx
	subl	%r12d, %edx
	movslq	%edx, %rdx
	addq	%rax, (%rcx,%rdx,8)
	jmp	LBB0_4
LBB0_5:
	movl	4(%r15), %ecx
	testl	%ecx, %ecx
	je	LBB0_13
## %bb.6:
	testl	%eax, %eax
	jle	LBB0_36
## %bb.7:
	movq	(%r14), %r8
	movq	8(%r14), %r9
	movq	16(%r14), %rdi
	movq	8(%r15), %r10
	movl	%eax, %r11d
	xorl	%esi, %esi
	jmp	LBB0_8
LBB0_30:                                ##   in Loop: Header=BB0_8 Depth=1
	shrq	$2, %rbx
LBB0_31:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rbx, (%rdi,%rsi,8)
LBB0_32:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%rsi
	cmpq	%rsi, %r11
	je	LBB0_33
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r9,%rsi,8), %rdx
	movq	%rdx, (%rdi,%rsi,8)
	movq	(%r8,%rsi,8), %rbx
	subq	(%r10,%rsi,8), %rbx
	addq	%rdx, %rbx
	movq	%rbx, (%rdi,%rsi,8)
	js	LBB0_32
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$3, %ecx
	je	LBB0_30
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$2, %ecx
	je	LBB0_29
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$1, %ecx
	jne	LBB0_32
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	shrq	%rbx
	jmp	LBB0_31
LBB0_29:                                ##   in Loop: Header=BB0_8 Depth=1
	leaq	(%rbx,%rbx,2), %rbx
	sarq	$3, %rbx
	jmp	LBB0_31
LBB0_13:
	testl	%eax, %eax
	jle	LBB0_36
## %bb.14:
	movq	8(%r14), %r11
	movq	16(%r14), %rcx
	movq	8(%r15), %rsi
	movl	%eax, %r8d
	cmpl	$4, %eax
	jae	LBB0_16
## %bb.15:
	xorl	%edi, %edi
LBB0_25:
	movq	%rdi, %r9
	notq	%r9
	addq	%r8, %r9
	movq	%r8, %rbx
	andq	$3, %rbx
	je	LBB0_27
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r11,%rdi,8), %rdx
	subq	(%rsi,%rdi,8), %rdx
	movq	%rdx, (%rcx,%rdi,8)
	incq	%rdi
	decq	%rbx
	jne	LBB0_26
LBB0_27:
	cmpq	$3, %r9
	jb	LBB0_33
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r11,%rdi,8), %rdx
	subq	(%rsi,%rdi,8), %rdx
	movq	%rdx, (%rcx,%rdi,8)
	movq	8(%r11,%rdi,8), %rdx
	subq	8(%rsi,%rdi,8), %rdx
	movq	%rdx, 8(%rcx,%rdi,8)
	movq	16(%r11,%rdi,8), %rdx
	subq	16(%rsi,%rdi,8), %rdx
	movq	%rdx, 16(%rcx,%rdi,8)
	movq	24(%r11,%rdi,8), %rdx
	subq	24(%rsi,%rdi,8), %rdx
	movq	%rdx, 24(%rcx,%rdi,8)
	addq	$4, %rdi
	cmpq	%rdi, %r8
	jne	LBB0_28
	jmp	LBB0_33
LBB0_16:
	movq	%rcx, %rbx
	subq	%r11, %rbx
	xorl	%edi, %edi
	cmpq	$32, %rbx
	jb	LBB0_25
## %bb.17:
	movq	%rcx, %rdx
	subq	%rsi, %rdx
	cmpq	$32, %rdx
	jb	LBB0_25
## %bb.18:
	movl	%r8d, %edi
	andl	$-4, %edi
	leaq	-4(%rdi), %rdx
	movq	%rdx, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.20:
	movq	%r9, %r10
	andq	$-2, %r10
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%r11,%rbx,8), %xmm0
	movdqu	16(%r11,%rbx,8), %xmm1
	movdqu	(%rsi,%rbx,8), %xmm2
	psubq	%xmm2, %xmm0
	movdqu	16(%rsi,%rbx,8), %xmm2
	psubq	%xmm2, %xmm1
	movdqu	%xmm0, (%rcx,%rbx,8)
	movdqu	%xmm1, 16(%rcx,%rbx,8)
	movdqu	32(%r11,%rbx,8), %xmm0
	movdqu	48(%r11,%rbx,8), %xmm1
	movdqu	32(%rsi,%rbx,8), %xmm2
	psubq	%xmm2, %xmm0
	movdqu	48(%rsi,%rbx,8), %xmm2
	psubq	%xmm2, %xmm1
	movdqu	%xmm0, 32(%rcx,%rbx,8)
	movdqu	%xmm1, 48(%rcx,%rbx,8)
	addq	$8, %rbx
	addq	$-2, %r10
	jne	LBB0_21
## %bb.22:
	testb	$1, %r9b
	je	LBB0_24
LBB0_23:
	movdqu	(%r11,%rbx,8), %xmm0
	movdqu	16(%r11,%rbx,8), %xmm1
	movdqu	(%rsi,%rbx,8), %xmm2
	psubq	%xmm2, %xmm0
	movdqu	16(%rsi,%rbx,8), %xmm2
	psubq	%xmm2, %xmm1
	movdqu	%xmm0, (%rcx,%rbx,8)
	movdqu	%xmm1, 16(%rcx,%rbx,8)
LBB0_24:
	cmpq	%r8, %rdi
	jne	LBB0_25
LBB0_33:
	testl	%eax, %eax
	jle	LBB0_36
## %bb.34:
	movq	16(%r14), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_35:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rbx,8), %rdi
	movl	$1, %esi
	callq	_FFMAX
	movq	16(%r14), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_35
LBB0_36:
	movl	16(%r15), %ecx
	testl	%ecx, %ecx
	jle	LBB0_47
## %bb.37:
	movq	16(%r14), %rdx
	cmpl	$4, %ecx
	jae	LBB0_40
## %bb.38:
	xorl	%esi, %esi
	jmp	LBB0_39
LBB0_40:
	movl	%ecx, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rdi
	movq	%rdi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdi, %rdi
	je	LBB0_41
## %bb.42:
	movq	%r8, %rbx
	andq	$-2, %rbx
	xorl	%edi, %edi
	pcmpeqd	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_43:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rdi,8), %xmm1
	movdqu	16(%rdx,%rdi,8), %xmm2
	movdqu	32(%rdx,%rdi,8), %xmm3
	movdqu	48(%rdx,%rdi,8), %xmm4
	psubq	%xmm0, %xmm1
	psubq	%xmm0, %xmm2
	movdqu	%xmm1, (%rdx,%rdi,8)
	movdqu	%xmm2, 16(%rdx,%rdi,8)
	psubq	%xmm0, %xmm3
	psubq	%xmm0, %xmm4
	movdqu	%xmm3, 32(%rdx,%rdi,8)
	movdqu	%xmm4, 48(%rdx,%rdi,8)
	addq	$8, %rdi
	addq	$-2, %rbx
	jne	LBB0_43
## %bb.44:
	testb	$1, %r8b
	je	LBB0_46
LBB0_45:
	movdqu	(%rdx,%rdi,8), %xmm0
	movdqu	16(%rdx,%rdi,8), %xmm1
	pcmpeqd	%xmm2, %xmm2
	psubq	%xmm2, %xmm0
	psubq	%xmm2, %xmm1
	movdqu	%xmm0, (%rdx,%rdi,8)
	movdqu	%xmm1, 16(%rdx,%rdi,8)
LBB0_46:
	cmpq	%rcx, %rsi
	je	LBB0_47
	.p2align	4, 0x90
LBB0_39:                                ## =>This Inner Loop Header: Depth=1
	incq	(%rdx,%rsi,8)
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_39
LBB0_47:
	testl	%eax, %eax
	jle	LBB0_52
## %bb.48:
	movq	16(%r14), %rax
	movq	24(%r14), %rcx
	xorl	%edx, %edx
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_51:                                ##   in Loop: Header=BB0_49 Depth=1
	incq	%rdx
	movslq	(%r15), %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_52
LBB0_49:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, (%rcx,%rdx,4)
	movq	(%rax,%rdx,8), %rsi
	cmpq	$16, %rsi
	jl	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_49 Depth=1
	addl	$-15, %esi
	movl	%esi, (%rcx,%rdx,4)
	movq	$15, (%rax,%rdx,8)
	jmp	LBB0_51
LBB0_52:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	xorl	%edi, %edi
	testb	$1, %r8b
	jne	LBB0_45
	jmp	LBB0_46
LBB0_19:
	xorl	%ebx, %ebx
	testb	$1, %r9b
	jne	LBB0_23
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_precision
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_precision
_calc_precision:                        ; @calc_precision
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x19, x1
	ldr	x0, [x2]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	ldr	w8, [x19]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x19]
	add	x9, x21, #2
	add	x21, x21, #1
	cmp	x9, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x8, x8, x21, lsl #3
	ldp	x8, x9, [x8]
	sub	x0, x9, x8
	bl	_FFABS
	cmp	w0, #2
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w0, w0, #1
	ldr	x8, [x20, #8]
	add	x8, x8, x21, lsl #3
	ldp	x9, x8, [x8]
	cmp	x9, x8
	cset	w22, gt
	mov	w1, #5
	bl	_FFMIN
	ldr	x8, [x20]
	sub	w9, w21, w22
	add	w9, w9, #1
	sbfiz	x9, x9, #3, #32
	ldr	x10, [x8, x9]
	add	x10, x10, x0
	str	x10, [x8, x9]
	b	LBB0_2
LBB0_5:
	ldr	w9, [x19, #4]
	cbz	w9, LBB0_17
; %bb.6:
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.7:
	ldp	x11, x10, [x20, #8]
	ldr	x12, [x20]
	mov	w13, w8
	ldr	x14, [x19, #8]
	b	LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=1
	lsr	x15, x15, #2
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	str	x15, [x10]
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x14, x14, #8
	add	x12, x12, #8
	add	x10, x10, #8
	add	x11, x11, #8
	subs	x13, x13, #1
	b.eq	LBB0_27
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x11]
	str	x15, [x10]
	ldr	x16, [x12]
	ldr	x17, [x14]
	sub	x16, x16, x17
	adds	x15, x16, x15
	str	x15, [x10]
	b.mi	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w9, #3
	b.eq	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w9, #2
	b.eq	LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w9, #1
	b.ne	LBB0_10
; %bb.15:                               ;   in Loop: Header=BB0_11 Depth=1
	lsr	x15, x15, #1
	b	LBB0_9
LBB0_16:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x15, x15, x15, lsl #1
	asr	x15, x15, #3
	b	LBB0_9
LBB0_17:
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.18:
	ldr	x10, [x19, #8]
	mov	w9, w8
	ldp	x11, x12, [x20, #8]
	cmp	w8, #8
	b.hs	LBB0_20
; %bb.19:
	mov	x13, #0
	b	LBB0_25
LBB0_20:
	mov	x13, #0
	sub	x14, x12, x11
	cmp	x14, #64
	b.lo	LBB0_25
; %bb.21:
	sub	x14, x12, x10
	cmp	x14, #64
	b.lo	LBB0_25
; %bb.22:
	and	x13, x9, #0xfffffff8
	add	x14, x12, #32
	add	x15, x11, #32
	add	x16, x10, #32
	mov	x17, x13
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x15, #-32]
	ldp	q2, q3, [x15], #64
	ldp	q4, q5, [x16, #-32]
	ldp	q6, q7, [x16], #64
	sub.2d	v0, v0, v4
	sub.2d	v1, v1, v5
	sub.2d	v2, v2, v6
	sub.2d	v3, v3, v7
	stp	q0, q1, [x14, #-32]
	stp	q2, q3, [x14], #64
	subs	x17, x17, #8
	b.ne	LBB0_23
; %bb.24:
	cmp	x13, x9
	b.eq	LBB0_27
LBB0_25:
	lsl	x14, x13, #3
	add	x12, x12, x14
	add	x10, x10, x14
	add	x11, x11, x14
	sub	x9, x9, x13
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x11], #8
	ldr	x14, [x10], #8
	sub	x13, x13, x14
	str	x13, [x12], #8
	subs	x9, x9, #1
	b.ne	LBB0_26
LBB0_27:
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.28:
	mov	x21, #0
	ldr	x8, [x20, #16]
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	lsl	x22, x21, #3
	ldr	x0, [x8, x22]
	mov	w1, #1
	bl	_FFMAX
	ldr	x8, [x20, #16]
	str	x0, [x8, x22]
	add	x21, x21, #1
	ldrsw	x9, [x19]
	cmp	x21, x9
	b.lt	LBB0_29
; %bb.30:
	mov	x8, x9
LBB0_31:
	ldr	w9, [x19, #16]
	cmp	w9, #1
	b.lt	LBB0_39
; %bb.32:
	ldr	x10, [x20, #16]
	cmp	w9, #8
	b.hs	LBB0_34
; %bb.33:
	mov	x11, #0
	b	LBB0_37
LBB0_34:
	and	x11, x9, #0xfffffff8
	add	x12, x10, #32
	mov	w13, #1
	dup.2d	v0, x13
	mov	x13, x11
LBB0_35:                                ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x12, #-32]
	ldp	q3, q4, [x12]
	add.2d	v1, v1, v0
	add.2d	v2, v2, v0
	add.2d	v3, v3, v0
	add.2d	v4, v4, v0
	stp	q1, q2, [x12, #-32]
	stp	q3, q4, [x12], #64
	subs	x13, x13, #8
	b.ne	LBB0_35
; %bb.36:
	cmp	x11, x9
	b.eq	LBB0_39
LBB0_37:
	add	x10, x10, x11, lsl #3
	sub	x9, x9, x11
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	add	x11, x11, #1
	str	x11, [x10], #8
	subs	x9, x9, #1
	b.ne	LBB0_38
LBB0_39:
	cmp	w8, #1
	b.lt	LBB0_44
; %bb.40:
	mov	x8, #0
	ldp	x10, x9, [x20, #16]
	mov	w11, #15
	b	LBB0_42
LBB0_41:                                ;   in Loop: Header=BB0_42 Depth=1
	add	x8, x8, #1
	ldrsw	x12, [x19]
	cmp	x8, x12
	b.ge	LBB0_44
LBB0_42:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [x9, x8, lsl #2]
	ldr	x12, [x10, x8, lsl #3]
	cmp	x12, #16
	b.lt	LBB0_41
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=1
	sub	w12, w12, #15
	str	w12, [x9, x8, lsl #2]
	str	x11, [x10, x8, lsl #3]
	b	LBB0_41
LBB0_44:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_precision
.subsections_via_symbols
