	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SelectRandomFurthestSpawnPoint ## -- Begin function SelectRandomFurthestSpawnPoint
	.p2align	4, 0x90
_SelectRandomFurthestSpawnPoint:        ## @SelectRandomFurthestSpawnPoint
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SPAWN_POINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	shlq	$3, %rbx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_classname@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_FOFS
	leaq	L_.str(%rip), %rdx
	xorl	%r15d, %r15d
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_G_Find
	testq	%rax, %rax
	je	LBB0_26
## %bb.1:
	movq	%rax, %r12
	leaq	L_.str(%rip), %rbx
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
	movl	%r15d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	(%r14), %edi
	callq	_FOFS
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_G_Find
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_9
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_SpotWouldTelefrag
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	(%r12), %eax
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_FL_NO_BOTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=2
	testq	%r13, %r13
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_FL_NO_HUMANS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	jne	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r12), %edi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	callq	_VectorSubtract
	callq	_VectorLength
	testl	%r15d, %r15d
	jle	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	ucomiss	(%rdi,%rax,4), %xmm0
	ja	LBB0_14
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=2
	incq	%rax
	cmpq	%rax, %r9
	jne	LBB0_13
	jmp	LBB0_21
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	jmp	LBB0_21
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_SPAWN_POINTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	-1(%rcx), %r9d
	cmpl	%ecx, %r15d
	cmovll	%r15d, %r9d
	cmpl	%eax, %r9d
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	jle	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r9d, %rdx
	movl	%r9d, %esi
	subl	%eax, %esi
	movq	%rdx, %rcx
	testb	$1, %sil
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-1(%rdx), %rcx
	movss	-4(%rdi,%rdx,4), %xmm1          ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, (%rdi,%rdx,4)
	movq	-8(%r8,%rdx,8), %rsi
	movq	%rsi, (%r8,%rdx,8)
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	decq	%rdx
	cmpq	%rax, %rdx
	je	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	-4(%rdi,%rcx,4), %xmm1          ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, (%rdi,%rcx,4)
	movq	-8(%r8,%rcx,8), %rdx
	movq	%rdx, (%r8,%rcx,8)
	movss	-8(%rdi,%rcx,4), %xmm1          ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, -4(%rdi,%rcx,4)
	movq	-16(%r8,%rcx,8), %rdx
	movq	%rdx, -8(%r8,%rcx,8)
	leaq	-2(%rcx), %rdx
	movq	%rdx, %rcx
	cmpq	%rax, %rdx
	jg	LBB0_18
LBB0_19:                                ##   in Loop: Header=BB0_2 Depth=1
	movss	%xmm0, (%rdi,%rax,4)
	movq	%r12, (%r8,%rax,8)
	incl	%r9d
	movl	%eax, %r15d
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%r9d, %r15d
	jl	LBB0_24
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_MAX_SPAWN_POINTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r9d
	jge	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r9d, %rax
	movss	%xmm0, (%rdi,%rax,4)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r12, (%rcx,%rax,8)
	incl	%r9d
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r9, %r15
	movl	(%r14), %edi
	callq	_FOFS
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	_G_Find
	movq	%rax, %r12
	movq	%r15, %rcx
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_25
LBB0_9:
	movl	%r15d, %ecx
LBB0_25:
	testl	%ecx, %ecx
	je	LBB0_26
## %bb.28:
	xorl	%eax, %eax
	movq	%rcx, %rbx
	callq	_random
	movl	%ebx, %ecx
	shrl	$31, %ecx
	addl	%ebx, %ecx
	sarl	%ecx
	imull	%eax, %ecx
	movslq	%ecx, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx,%rax,8), %r14
	jmp	LBB0_29
LBB0_26:
	movl	(%r14), %edi
	callq	_FOFS
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_G_Find
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_29
## %bb.27:
	leaq	L_.str.1(%rip), %rdi
	callq	_G_Error
LBB0_29:
	movl	8(%r14), %edi
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_VectorCopy
	addl	$9, 8(%rbx)
	movl	4(%r14), %edi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	callq	_VectorCopy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_31
## %bb.30:
	movq	%r14, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SPAWN_POINTS,4,2           ## @MAX_SPAWN_POINTS
	.comm	_classname,4,2                  ## @classname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info_player_deathmatch"

	.comm	_FL_NO_BOTS,4,2                 ## @FL_NO_BOTS
	.comm	_FL_NO_HUMANS,4,2               ## @FL_NO_HUMANS
L_.str.1:                               ## @.str.1
	.asciz	"Couldn't find a spawn point"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SelectRandomFurthestSpawnPoint ; -- Begin function SelectRandomFurthestSpawnPoint
	.p2align	2
_SelectRandomFurthestSpawnPoint:        ; @SelectRandomFurthestSpawnPoint
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x21, x3
	mov	x22, x2
	mov	x20, 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, #-88]
Lloh3:
	adrp	x8, _MAX_SPAWN_POINTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_SPAWN_POINTS@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x27, x9, x8
	mov	sp, x27
	lsl	x8, x12, #3
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x24, x9, x8
	mov	sp, x24
Lloh10:
	adrp	x28, _classname@GOTPAGE
Lloh11:
	ldr	x28, [x28, _classname@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_FOFS
	mov	x1, x0
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_G_Find
	cbz	x0, LBB0_25
; %bb.1:
	mov	x23, x0
	stp	x22, x24, [x29, #-104]          ; 16-byte Folded Spill
	stur	x19, [x29, #-112]               ; 8-byte Folded Spill
	mov	w26, #0
Lloh14:
	adrp	x25, _FL_NO_BOTS@GOTPAGE
Lloh15:
	ldr	x25, [x25, _FL_NO_BOTS@GOTPAGEOFF]
Lloh16:
	adrp	x22, _FL_NO_HUMANS@GOTPAGE
Lloh17:
	ldr	x22, [x22, _FL_NO_HUMANS@GOTPAGEOFF]
Lloh18:
	adrp	x24, l_.str@PAGE
Lloh19:
	add	x24, x24, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
	mov	w19, w26
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w0, [x28]
	bl	_FOFS
	mov	x1, x0
	mov	x0, x23
	mov	x2, x24
	bl	_G_Find
	mov	x23, x0
	cbz	x0, LBB0_22
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x23
	bl	_SpotWouldTelefrag
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w8, [x23]
	cbz	x21, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w9, [x25]
	and	w9, w9, w8
	cbnz	w9, LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=2
	cbnz	x21, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	w9, [x22]
	and	w8, w9, w8
	cbnz	w8, LBB0_3
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x23, #8]
	ldur	x1, [x29, #-112]                ; 8-byte Folded Reload
	bl	_VectorSubtract
	bl	_VectorLength
	cmp	w26, #0
	b.le	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x8, #0
LBB0_11:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s1, [x27, x8, lsl #2]
	fcmp	s0, s1
	b.gt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x8, x8, #1
	cmp	x19, x8
	b.ne	LBB0_11
	b	LBB0_18
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w26, #0
	b	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
Lloh20:
	adrp	x9, _MAX_SPAWN_POINTS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MAX_SPAWN_POINTS@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	sub	w10, w9, #1
	cmp	w26, w9
	csel	w9, w26, w10, lt
	cmp	w9, w8
	ldur	x15, [x29, #-96]                ; 8-byte Folded Reload
	b.le	LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x10, w9
	add	x14, x27, w9, sxtw #2
	add	x13, x15, w9, sxtw #3
	mov	x11, x14
	mov	x12, x13
LBB0_16:                                ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x10, x10, #1
	ldr	s1, [x11, #-4]!
	str	s1, [x14]
	ldr	x14, [x12, #-8]!
	str	x14, [x13]
	mov	x13, x12
	mov	x14, x11
	cmp	x10, x8
	b.gt	LBB0_16
LBB0_17:                                ;   in Loop: Header=BB0_2 Depth=1
	str	s0, [x27, x8, lsl #2]
	str	x23, [x15, x8, lsl #3]
	add	w19, w9, #1
	mov	x26, x8
LBB0_18:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w26, w19
	b.lt	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_2 Depth=1
Lloh23:
	adrp	x8, _MAX_SPAWN_POINTS@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX_SPAWN_POINTS@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ge	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_2 Depth=1
	str	s0, [x27, w19, sxtw #2]
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	str	x23, [x8, w19, sxtw #3]
	add	w19, w19, #1
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x28]
	bl	_FOFS
	mov	x1, x0
	mov	x0, x23
	mov	x2, x24
	bl	_G_Find
	mov	x23, x0
	mov	x26, x19
	cbnz	x0, LBB0_2
	b	LBB0_23
LBB0_22:
	mov	x19, x26
LBB0_23:
	ldp	x22, x21, [x29, #-104]          ; 16-byte Folded Reload
	cbz	w19, LBB0_25
; %bb.24:
	bl	_random
	cmp	w19, #0
	cinc	w8, w19, lt
	asr	w8, w8, #1
	mul	w8, w0, w8
	ldr	x21, [x21, w8, sxtw #3]
	b	LBB0_27
LBB0_25:
	ldr	w0, [x28]
	bl	_FOFS
	mov	x1, x0
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_G_Find
	mov	x21, x0
	cbnz	x0, LBB0_27
; %bb.26:
Lloh28:
	adrp	x0, l_.str.1@PAGE
Lloh29:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_G_Error
LBB0_27:
	ldr	w0, [x21, #8]
	mov	x1, x20
	bl	_VectorCopy
	ldr	w8, [x20, #8]
	add	w8, w8, #9
	str	w8, [x20, #8]
	ldr	w0, [x21, #4]
	mov	x1, x22
	bl	_VectorCopy
	ldur	x8, [x29, #-88]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_29
; %bb.28:
	mov	x0, x21
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_29:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SPAWN_POINTS,4,2           ; @MAX_SPAWN_POINTS
	.comm	_classname,4,2                  ; @classname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info_player_deathmatch"

	.comm	_FL_NO_BOTS,4,2                 ; @FL_NO_BOTS
	.comm	_FL_NO_HUMANS,4,2               ; @FL_NO_HUMANS
l_.str.1:                               ; @.str.1
	.asciz	"Couldn't find a spawn point"

.subsections_via_symbols
