	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ClientNumberFromString         ## -- Begin function ClientNumberFromString
	.p2align	4, 0x90
_ClientNumberFromString:                ## @ClientNumberFromString
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_STRING_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movb	(%r15), %al
	addb	$-48, %al
	cmpb	$9, %al
	ja	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	callq	_atoi
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.2:
	movq	_level@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_3
## %bb.5:
	movq	8(%rax), %rax
	movl	%ebx, %ecx
	shlq	$4, %rcx
	movq	(%rax,%rcx), %rax
	movq	_CON_CONNECTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_15
## %bb.6:
	movq	_g_entities@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	subq	%rax, %r14
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_4
LBB0_7:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_SanitizeString
	movq	_level@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_13
## %bb.8:
	movq	_level@GOTPCREL(%rip), %rcx
	movq	8(%rcx), %r15
	addq	$8, %r15
	xorl	%ebx, %ebx
	movq	_CON_CONNECTED@GOTPCREL(%rip), %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_level@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incl	%ebx
	addq	$16, %r15
	cmpl	%eax, %ebx
	jge	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-8(%r15), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r15), %rdi
	movq	%r13, %rsi
	callq	_SanitizeString
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_11
	jmp	LBB0_15
LBB0_13:
	movq	_g_entities@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	subq	%rax, %rbx
	leaq	L_.str.2(%rip), %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_va
	movq	%rbx, %rdi
	jmp	LBB0_14
LBB0_3:
	movq	_g_entities@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	shlq	$2, %rax
	subq	%rax, %r14
	leaq	L_.str(%rip), %rdi
LBB0_4:
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_va
	movq	%r14, %rdi
LBB0_14:
	movl	%eax, %esi
	callq	_trap_SendServerCommand
	movl	$-1, %ebx
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_STRING_CHARS,4,2           ## @MAX_STRING_CHARS
	.comm	_level,16,3                     ## @level
	.comm	_g_entities,4,2                 ## @g_entities
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"print \"Bad client slot: %i\n\""

	.comm	_CON_CONNECTED,8,3              ## @CON_CONNECTED
L_.str.1:                               ## @.str.1
	.asciz	"print \"Client %i is not active\n\""

L_.str.2:                               ## @.str.2
	.asciz	"print \"User %s is not on the server\n\""

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ClientNumberFromString         ; -- Begin function ClientNumberFromString
	.p2align	2
_ClientNumberFromString:                ; @ClientNumberFromString
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #16
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _MAX_STRING_CHARS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_STRING_CHARS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x8, #15
	and	x12, x10, #0x1fffffff0
	sub	x22, x9, x12
	mov	sp, x22
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	sub	x23, x8, x12
	mov	sp, x23
	ldrb	w8, [x1]
	sub	w8, w8, #48
	cmp	w8, #9
	b.hi	LBB0_5
; %bb.1:
	mov	x0, x21
	bl	_atoi
	mov	x20, x0
	tbnz	w0, #31, LBB0_12
; %bb.2:
Lloh10:
	adrp	x8, _level@GOTPAGE
Lloh11:
	ldr	x8, [x8, _level@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w20, w9
	b.ge	LBB0_12
; %bb.3:
	ldr	x8, [x8, #8]
	mov	w9, w20
	lsl	x9, x9, #4
	ldr	x8, [x8, x9]
Lloh12:
	adrp	x9, _CON_CONNECTED@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CON_CONNECTED@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_14
; %bb.4:
Lloh15:
	adrp	x8, _g_entities@GOTPAGE
Lloh16:
	ldr	x8, [x8, _g_entities@GOTPAGEOFF]
Lloh17:
	ldrsw	x8, [x8]
	sub	x19, x19, x8, lsl #2
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp, #-16]!
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_5:
	mov	x0, x21
	mov	x1, x22
	bl	_SanitizeString
Lloh20:
	adrp	x24, _level@GOTPAGE
Lloh21:
	ldr	x24, [x24, _level@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.6:
	mov	w20, #0
	ldr	x9, [x24, #8]
	add	x25, x9, #8
Lloh22:
	adrp	x26, _CON_CONNECTED@GOTPAGE
Lloh23:
	ldr	x26, [x26, _CON_CONNECTED@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x24]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w20, w20, #1
	add	x25, x25, #16
	cmp	w20, w8
	b.ge	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x9, [x25, #-8]
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x0, [x25]
	mov	x1, x23
	bl	_SanitizeString
	mov	x0, x23
	mov	x1, x22
	bl	_strcmp
	cbnz	w0, LBB0_7
	b	LBB0_14
LBB0_11:
Lloh24:
	adrp	x8, _g_entities@GOTPAGE
Lloh25:
	ldr	x8, [x8, _g_entities@GOTPAGEOFF]
Lloh26:
	ldrsw	x8, [x8]
	sub	x19, x19, x8, lsl #2
	str	x21, [sp, #-16]!
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh29:
	adrp	x8, _g_entities@GOTPAGE
Lloh30:
	ldr	x8, [x8, _g_entities@GOTPAGEOFF]
Lloh31:
	ldrsw	x8, [x8]
	sub	x19, x19, x8, lsl #2
	str	x20, [sp, #-16]!
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
LBB0_13:
	bl	_va
	add	sp, sp, #16
	mov	x1, x0
	mov	x0, x19
	bl	_trap_SendServerCommand
	mov	w20, #-1
LBB0_14:
	ldur	x8, [x29, #-72]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x0, x20
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_STRING_CHARS,4,2           ; @MAX_STRING_CHARS
	.comm	_level,16,3                     ; @level
	.comm	_g_entities,4,2                 ; @g_entities
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"print \"Bad client slot: %i\n\""

	.comm	_CON_CONNECTED,8,3              ; @CON_CONNECTED
l_.str.1:                               ; @.str.1
	.asciz	"print \"Client %i is not active\n\""

l_.str.2:                               ; @.str.2
	.asciz	"print \"User %s is not on the server\n\""

.subsections_via_symbols
