	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function percentages
_percentages:                           ## @percentages
	.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	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edi killed $edi def $rdi
	testl	%edi, %edi
	jle	LBB0_18
## %bb.1:
	leal	-1(%rdi), %r14d
	cmpl	$3, %r14d
	jae	LBB0_3
## %bb.2:
	xorl	%r10d, %r10d
LBB0_4:
	movq	%r8, %r11
	xorl	%r9d, %r9d
	movq	%rcx, %r15
	movq	%rdx, %rbx
LBB0_12:
	movl	%edi, %eax
	subl	%r10d, %eax
	movl	%r10d, %ecx
	notl	%ecx
	testb	$1, %al
	je	LBB0_14
## %bb.13:
	movq	(%rbx), %rdx
	subq	(%r15), %rdx
	movq	_INT64_MAX@GOTPCREL(%rip), %r14
	movq	%rdx, %rax
	sarq	$63, %rax
	andq	(%r14), %rax
	addq	%rdx, %rax
	movq	%rax, (%r11)
	addq	$8, %r11
	addq	%rax, %r9
	movq	(%rbx), %rax
	addq	$8, %rbx
	movq	%rax, (%r15)
	addq	$8, %r15
	incl	%r10d
LBB0_14:
	addl	%edi, %ecx
	je	LBB0_17
## %bb.15:
	movl	%edi, %r14d
	subl	%r10d, %r14d
	xorl	%eax, %eax
	movq	_INT64_MAX@GOTPCREL(%rip), %r10
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rbx,%rax,8), %rcx
	subq	(%r15,%rax,8), %rcx
	movq	%rcx, %rdx
	sarq	$63, %rdx
	andq	(%r10), %rdx
	addq	%rcx, %rdx
	movq	%rdx, (%r11,%rax,8)
	movq	(%rbx,%rax,8), %rcx
	movq	%rcx, (%r15,%rax,8)
	movq	8(%rbx,%rax,8), %rcx
	subq	8(%r15,%rax,8), %rcx
	addq	%r9, %rdx
	movq	%rcx, %r9
	sarq	$63, %r9
	andq	(%r10), %r9
	addq	%rcx, %r9
	movq	%r9, 8(%r11,%rax,8)
	addq	%rdx, %r9
	movq	8(%rbx,%rax,8), %rcx
	movq	%rcx, 8(%r15,%rax,8)
	addq	$2, %rax
	cmpl	%eax, %r14d
	jne	LBB0_16
	jmp	LBB0_17
LBB0_3:
	leaq	(%rcx,%r14,8), %rbx
	addq	$8, %rbx
	cmpq	%r8, %rbx
	seta	-45(%rbp)                       ## 1-byte Folded Spill
	leaq	(%r8,%r14,8), %rax
	addq	$8, %rax
	cmpq	%rcx, %rax
	seta	-44(%rbp)                       ## 1-byte Folded Spill
	leaq	(%rdx,%r14,8), %r10
	addq	$8, %r10
	cmpq	%r8, %r10
	seta	%r9b
	cmpq	%rdx, %rax
	seta	-43(%rbp)                       ## 1-byte Folded Spill
	movq	_INT64_MAX@GOTPCREL(%rip), %r11
	leaq	8(%r11), %r15
	cmpq	%r15, %r8
	setb	%r12b
	cmpq	%r11, %rax
	movq	%r11, %rax
	seta	%r13b
	cmpq	%rcx, %r10
	seta	%r11b
	cmpq	%rdx, %rbx
	seta	-42(%rbp)                       ## 1-byte Folded Spill
	cmpq	%r15, %rcx
	setb	%r15b
	cmpq	%rax, %rbx
	seta	-41(%rbp)                       ## 1-byte Folded Spill
	xorl	%r10d, %r10d
	movb	-44(%rbp), %bl                  ## 1-byte Reload
	testb	%bl, -45(%rbp)                  ## 1-byte Folded Reload
	jne	LBB0_4
## %bb.5:
	andb	-43(%rbp), %r9b                 ## 1-byte Folded Reload
	jne	LBB0_4
## %bb.6:
	andb	%r13b, %r12b
	jne	LBB0_4
## %bb.7:
	andb	-42(%rbp), %r11b                ## 1-byte Folded Reload
	jne	LBB0_4
## %bb.8:
	andb	-41(%rbp), %r15b                ## 1-byte Folded Reload
	jne	LBB0_4
## %bb.9:
	incq	%r14
	movq	%r14, %r10
	andq	$-4, %r10
	leaq	(%r8,%r10,8), %r11
	leaq	(%rcx,%r10,8), %r15
	leaq	(%rdx,%r10,8), %rbx
	movq	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	pshufd	$68, %xmm0, %xmm1               ## xmm1 = xmm0[0,1,0,1]
	pxor	%xmm0, %xmm0
	xorl	%eax, %eax
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rax,8), %xmm3
	movdqu	16(%rdx,%rax,8), %xmm4
	movdqu	(%rcx,%rax,8), %xmm5
	psubq	%xmm5, %xmm3
	movdqu	16(%rcx,%rax,8), %xmm5
	psubq	%xmm5, %xmm4
	movdqa	%xmm3, %xmm5
	psrad	$31, %xmm5
	pshufd	$245, %xmm5, %xmm5              ## xmm5 = xmm5[1,1,3,3]
	pand	%xmm1, %xmm5
	movdqa	%xmm4, %xmm6
	psrad	$31, %xmm6
	pshufd	$245, %xmm6, %xmm6              ## xmm6 = xmm6[1,1,3,3]
	pand	%xmm1, %xmm6
	paddq	%xmm3, %xmm5
	paddq	%xmm4, %xmm6
	movdqu	%xmm5, (%r8,%rax,8)
	movdqu	%xmm6, 16(%r8,%rax,8)
	paddq	%xmm5, %xmm0
	paddq	%xmm6, %xmm2
	movups	(%rdx,%rax,8), %xmm3
	movups	16(%rdx,%rax,8), %xmm4
	movups	%xmm3, (%rcx,%rax,8)
	movups	%xmm4, 16(%rcx,%rax,8)
	addq	$4, %rax
	cmpq	%rax, %r10
	jne	LBB0_10
## %bb.11:
	paddq	%xmm0, %xmm2
	pshufd	$238, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,2,3]
	paddq	%xmm2, %xmm0
	movq	%xmm0, %r9
	cmpq	%r10, %r14
	jne	LBB0_12
LBB0_17:
	testq	%r9, %r9
	jne	LBB0_19
LBB0_18:
	movl	$1, %r9d
LBB0_19:
	testl	%edi, %edi
	jle	LBB0_35
## %bb.20:
	movq	%r9, %r11
	shrq	$63, %r11
	addq	%r9, %r11
	sarq	%r11
	cmpl	$1, %edi
	je	LBB0_30
## %bb.21:
	movl	%edi, %r10d
	andl	$-2, %r10d
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_22 Depth=1
	cqto
	idivq	%r9
LBB0_28:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%rax, 8(%rsi,%rcx,8)
	addq	$-16, %rbx
	addq	$2, %rcx
	cmpl	%ecx, %r10d
	je	LBB0_29
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	imulq	$1000, (%r8,%rcx,8), %rax       ## imm = 0x3E8
	addq	%r11, %rax
	movq	%rax, %rdx
	orq	%r9, %rdx
	shrq	$32, %rdx
	je	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=1
	cqto
	idivq	%r9
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_22 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r9d
                                        ## kill: def $eax killed $eax def $rax
LBB0_25:                                ##   in Loop: Header=BB0_22 Depth=1
	movq	%rax, (%rsi,%rcx,8)
	imulq	$1000, 8(%r8,%rcx,8), %rax      ## imm = 0x3E8
	addq	%r11, %rax
	movq	%rax, %rdx
	orq	%r9, %rdx
	shrq	$32, %rdx
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_22 Depth=1
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r9d
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_28
LBB0_29:
	subq	%rbx, %rsi
	subq	%rbx, %r8
LBB0_30:
	testb	$1, %dil
	je	LBB0_35
## %bb.31:
	imulq	$1000, (%r8), %rax              ## imm = 0x3E8
	addq	%r11, %rax
	movq	%rax, %rcx
	orq	%r9, %rcx
	shrq	$32, %rcx
	je	LBB0_32
## %bb.33:
	cqto
	idivq	%r9
	jmp	LBB0_34
LBB0_32:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r9d
                                        ## kill: def $eax killed $eax def $rax
LBB0_34:
	movq	%rax, (%rsi)
LBB0_35:
	movl	%r9d, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
	.no_dead_strip	_percentages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function percentages
_percentages:                           ; @percentages
	.cfi_startproc
; %bb.0:
	subs	w11, w0, #1
	b.lt	LBB0_15
; %bb.1:
Lloh0:
	adrp	x9, _INT64_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT64_MAX@GOTPAGEOFF]
	cmp	w11, #7
	b.hs	LBB0_3
; %bb.2:
	mov	w10, #0
	mov	x8, #0
	b	LBB0_11
LBB0_3:
	mov	x8, #0
	mov	w10, #0
	lsl	x12, x11, #3
	add	x12, x12, #8
	add	x16, x3, x12
	add	x14, x2, x12
	cmp	x14, x4
	add	x17, x4, x12
	ccmp	x17, x2, #0, hi
	cset	w12, hi
	add	x15, x9, #8
	cmp	x4, x15
	ccmp	x17, x9, #0, lo
	cset	w13, hi
	cmp	x14, x3
	ccmp	x16, x2, #0, hi
	cset	w14, hi
	cmp	x3, x15
	ccmp	x16, x9, #0, lo
	cset	w15, hi
	cmp	x17, x3
	ccmp	x16, x4, #0, hi
	b.hi	LBB0_11
; %bb.4:
	tbnz	w12, #0, LBB0_11
; %bb.5:
	tbnz	w13, #0, LBB0_11
; %bb.6:
	tbnz	w14, #0, LBB0_11
; %bb.7:
	tbnz	w15, #0, LBB0_11
; %bb.8:
	add	x14, x11, #1
	and	x10, x14, #0x1fffffff8
	lsl	x8, x10, #3
	add	x11, x4, x8
	add	x12, x3, x8
	add	x13, x2, x8
	ld1r.2d	{ v0 }, [x9]
	add	x8, x4, #32
	add	x15, x2, #32
	add	x16, x3, #32
	movi.2d	v1, #0000000000000000
	mov	x17, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q5, q6, [x15, #-32]
	ldp	q7, q16, [x15], #64
	ldp	q17, q18, [x16, #-32]
	ldp	q19, q20, [x16]
	sub.2d	v17, v5, v17
	sub.2d	v18, v6, v18
	sub.2d	v19, v7, v19
	sub.2d	v20, v16, v20
	ldr	d21, [x9]
	dup.2d	v21, v21[0]
	cmlt.2d	v22, v17, #0
	and.16b	v22, v22, v0
	cmlt.2d	v23, v18, #0
	and.16b	v23, v23, v0
	cmlt.2d	v24, v19, #0
	and.16b	v24, v24, v0
	cmlt.2d	v25, v20, #0
	and.16b	v21, v25, v21
	add.2d	v17, v17, v22
	add.2d	v18, v18, v23
	add.2d	v19, v19, v24
	add.2d	v20, v20, v21
	stp	q17, q18, [x8, #-32]
	stp	q19, q20, [x8], #64
	add.2d	v1, v17, v1
	add.2d	v2, v18, v2
	add.2d	v3, v19, v3
	add.2d	v4, v20, v4
	stp	q5, q6, [x16, #-32]
	stp	q7, q16, [x16], #64
	subs	x17, x17, #8
	b.ne	LBB0_9
; %bb.10:
	add.2d	v0, v2, v1
	add.2d	v0, v3, v0
	add.2d	v0, v4, v0
	addp.2d	d0, v0
	fmov	x8, d0
	cmp	x14, x10
	b.ne	LBB0_12
	b	LBB0_14
LBB0_11:
	mov	x11, x4
	mov	x12, x3
	mov	x13, x2
LBB0_12:
	sub	w10, w0, w10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x13]
	ldr	x15, [x12]
	ldr	x16, [x9]
	sub	x14, x14, x15
	and	x15, x16, x14, asr #63
	add	x14, x14, x15
	str	x14, [x11], #8
	add	x8, x14, x8
	ldr	x14, [x13], #8
	str	x14, [x12], #8
	subs	w10, w10, #1
	b.ne	LBB0_13
LBB0_14:
	cbnz	x8, LBB0_16
LBB0_15:
	mov	w8, #1
LBB0_16:
	cmp	x8, #0
	cinc	x9, x8, lt
	cmp	w0, #1
	b.lt	LBB0_19
; %bb.17:
	asr	x9, x9, #1
	mov	w10, #1000
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x4], #8
	madd	x11, x11, x10, x9
	sdiv	x11, x11, x8
	str	x11, [x1], #8
	subs	w0, w0, #1
	b.ne	LBB0_18
LBB0_19:
	mov	x0, x8
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
	.no_dead_strip	_percentages
.subsections_via_symbols
