	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_choose_cluster                 ## -- Begin function choose_cluster
	.p2align	4, 0x90
_choose_cluster:                        ## @choose_cluster
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_max_cluster@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$-1, %eax
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.1:
	movq	_Clusters@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	xorl	%edx, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rdx
	cmpq	%rdx, %r8
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi,%rdx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%rdi, (%rcx)
	jne	LBB0_2
## %bb.5:
	movq	_CC@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	movl	%edx, %eax
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_max_cluster,4,2                ## @max_cluster
	.comm	_Clusters,8,3                   ## @Clusters
	.comm	_CC,8,3                         ## @CC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_choose_cluster                 ; -- Begin function choose_cluster
	.p2align	2
_choose_cluster:                        ; @choose_cluster
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _max_cluster@GOTPAGE
Lloh1:
	ldr	x9, [x9, _max_cluster@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x8, x0
	mov	x0, #0
Lloh3:
	adrp	x10, _Clusters@GOTPAGE
Lloh4:
	ldr	x10, [x10, _Clusters@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x0, #1
	cmp	x9, x0
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10, x0, lsl #3]
	cbz	x11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x12, [x11]
	cmp	x12, x8
	b.ne	LBB0_2
; %bb.5:
Lloh6:
	adrp	x8, _CC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CC@GOTPAGEOFF]
Lloh8:
	str	x11, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_6:
	mov	w0, #-1
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_max_cluster,4,2                ; @max_cluster
	.comm	_Clusters,8,3                   ; @Clusters
	.comm	_CC,8,3                         ; @CC
.subsections_via_symbols
