	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brain_server_get_client_idx    ## -- Begin function brain_server_get_client_idx
	.p2align	4, 0x90
_brain_server_get_client_idx:           ## @brain_server_get_client_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_BRAIN_SERVER_CLIENTS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, %eax
	cmpl	$2, %ecx
	jl	LBB0_5
## %bb.1:
	movq	(%rdi), %rsi
	movl	$1, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, (%rsi,%rdx,4)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_2
LBB0_5:
	popq	%rbp
	retq
LBB0_3:
	movl	$1, (%rsi,%rdx,4)
	movl	%edx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRAIN_SERVER_CLIENTS_MAX,4,2   ## @BRAIN_SERVER_CLIENTS_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_brain_server_get_client_idx    ; -- Begin function brain_server_get_client_idx
	.p2align	2
_brain_server_get_client_idx:           ; @brain_server_get_client_idx
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _BRAIN_SERVER_CLIENTS_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BRAIN_SERVER_CLIENTS_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.1:
	ldr	x9, [x0]
	mov	w0, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9, x0, lsl #2]
	cbz	w10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x0, #1
	cmp	x8, x0
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #-1
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_5:
	mov	w8, #1
	str	w8, [x9, x0, lsl #2]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BRAIN_SERVER_CLIENTS_MAX,4,2   ; @BRAIN_SERVER_CLIENTS_MAX
.subsections_via_symbols
