	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_new_centroids
_get_new_centroids:                     ## @get_new_centroids
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rdi, %r12
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ecx, %ecx
	movq	_INT_MAX@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %eax
	movl	%eax, (%r15,%rcx,4)
	movl	$0, (%r14,%rcx,4)
	incq	%rcx
	movslq	(%r12), %rax
	cmpq	%rax, %rcx
	jl	LBB0_2
LBB0_3:
	movq	16(%r12), %rcx
	movslq	%esi, %rdx
	movq	(%rcx,%rdx,8), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r13), %r13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	testq	%r13, %r13
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15,%rbx,4), %edi
	movq	8(%r12), %rcx
	movslq	(%r13), %rdx
	cltq
	imulq	%rdx, %rax
	addq	%rbx, %rax
	movl	(%rcx,%rax,4), %esi
	callq	_FFMIN
	movl	%eax, (%r15,%rbx,4)
	movl	(%r14,%rbx,4), %edi
	movq	8(%r12), %rax
	movslq	(%r13), %rcx
	movslq	(%r12), %rdx
	imulq	%rcx, %rdx
	addq	%rbx, %rdx
	movl	(%rax,%rdx,4), %esi
	callq	_FFMAX
	movl	%eax, (%r14,%rbx,4)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_7
	jmp	LBB0_8
LBB0_9:
	testl	%eax, %eax
	jle	LBB0_12
## %bb.10:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%rax,4), %ecx
	movl	(%r14,%rax,4), %edx
	subl	%ecx, %edx
	movslq	%edx, %rdx
	imulq	$1431655766, %rdx, %rsi         ## imm = 0x55555556
	movq	%rsi, %rdi
	shrq	$63, %rdi
	shrq	$32, %rsi
	addl	%edi, %esi
	addl	%ecx, %esi
	addl	%edx, %edx
	movslq	%edx, %rdx
	imulq	$1431655766, %rdx, %rdx         ## imm = 0x55555556
	movq	%rdx, %rdi
	shrq	$63, %rdi
	shrq	$32, %rdx
	addl	%edi, %edx
	addl	%ecx, %edx
	movl	%esi, (%r15,%rax,4)
	movl	%edx, (%r14,%rax,4)
	incq	%rax
	movslq	(%r12), %rcx
	cmpq	%rcx, %rax
	jl	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_get_new_centroids
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_new_centroids
_get_new_centroids:                     ; @get_new_centroids
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x8, #0
Lloh0:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	lsl	x11, x8, #2
	str	w10, [x20, x11]
	str	wzr, [x19, x11]
	add	x8, x8, #1
	ldrsw	x10, [x21]
	cmp	x8, x10
	b.lt	LBB0_2
; %bb.3:
	mov	x8, x10
LBB0_4:
	ldr	x9, [x21, #16]
	ldr	x22, [x9, w1, sxtw #3]
	cbnz	x22, LBB0_12
; %bb.5:
	mov	x9, x8
LBB0_6:
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x8, #0
	mov	w9, #21846
	movk	w9, #21845, lsl #16
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x10, x8, #2
	ldr	w11, [x20, x10]
	ldr	w12, [x19, x10]
	sub	w12, w12, w11
	smull	x13, w12, w9
	lsr	x14, x13, #63
	lsr	x13, x13, #32
	add	w13, w13, w14
	add	w13, w13, w11
	lsl	w12, w12, #1
	smull	x12, w12, w9
	lsr	x14, x12, #63
	lsr	x12, x12, #32
	str	w13, [x20, x10]
	add	w12, w12, w14
	add	w11, w12, w11
	str	w11, [x19, x10]
	add	x8, x8, #1
	ldrsw	x10, [x21]
	cmp	x8, x10
	b.lt	LBB0_8
LBB0_9:
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x9, x8
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	x22, [x22, #8]
	mov	x8, x9
	cbz	x22, LBB0_6
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x23, #0
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x24, x23, #2
	ldr	w0, [x20, x24]
	ldr	x9, [x21, #8]
	ldrsw	x10, [x22]
	sxtw	x8, w8
	madd	x8, x10, x8, x23
	ldr	w1, [x9, x8, lsl #2]
	bl	_FFMIN
	str	w0, [x20, x24]
	ldr	w0, [x19, x24]
	ldr	x8, [x21, #8]
	ldrsw	x9, [x22]
	ldrsw	x10, [x21]
	madd	x9, x10, x9, x23
	ldr	w1, [x8, x9, lsl #2]
	bl	_FFMAX
	str	w0, [x19, x24]
	add	x23, x23, #1
	ldrsw	x9, [x21]
	mov	x8, x9
	cmp	x23, x9
	b.lt	LBB0_14
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_get_new_centroids
.subsections_via_symbols
