	.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	$808, %rsp                      ## imm = 0x328
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -840(%rbp)                ## 8-byte Spill
	movq	%rsi, -832(%rbp)                ## 8-byte Spill
	movq	%rdi, -824(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%ebx, %ebx
	movq	_classname@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r13
	xorl	%r14d, %r14d
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_10 Depth 2
	movl	%r14d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r15), %edi
	callq	_FOFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_G_Find
	testq	%rax, %rax
	je	LBB0_18
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_SpotWouldTelefrag
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	4(%rbx), %edi
	movq	-824(%rbp), %rsi                ## 8-byte Reload
	callq	_VectorSubtract
	callq	_VectorLength
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jle	LBB0_14
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	ucomiss	-304(%rbp,%rax,4), %xmm0
	ja	LBB0_6
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=2
	incq	%rax
	cmpq	%rax, %r12
	jne	LBB0_5
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%r14d, %eax
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %r14d
	cmpl	%r14d, %eax
	jge	LBB0_16
	jmp	LBB0_1
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$63, %r14d
	movl	$63, %ecx
	cmovgel	%ecx, %r14d
	cmpl	%eax, %r14d
	jle	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r14d, %rdx
	movl	%r14d, %esi
	subl	%eax, %esi
	movq	%rdx, %rcx
	testb	$1, %sil
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-1(%rdx), %rcx
	movss	-308(%rbp,%rdx,4), %xmm1        ## xmm1 = mem[0],zero,zero,zero
	movss	%xmm1, -304(%rbp,%rdx,4)
	movq	-824(%rbp,%rdx,8), %rsi
	movq	%rsi, -816(%rbp,%rdx,8)
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	decq	%rdx
	cmpq	%rax, %rdx
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-312(%rbp,%rcx,4), %rdx
	movq	%rdx, -308(%rbp,%rcx,4)
	movups	-832(%rbp,%rcx,8), %xmm1
	movups	%xmm1, -824(%rbp,%rcx,8)
	leaq	-2(%rcx), %rdx
	movq	%rdx, %rcx
	cmpq	%rax, %rdx
	jg	LBB0_10
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movss	%xmm0, -304(%rbp,%rax,4)
	movq	%rbx, -816(%rbp,%rax,8)
	incl	%r14d
	cmpl	%r14d, %eax
	jl	LBB0_1
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$63, %r14d
	jg	LBB0_1
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r14d, %rax
	movss	%xmm0, -304(%rbp,%rax,4)
	movq	%rbx, -816(%rbp,%rax,8)
	incl	%r14d
	jmp	LBB0_1
LBB0_18:
	testl	%r14d, %r14d
	je	LBB0_19
## %bb.21:
	xorl	%eax, %eax
	callq	_random
	movl	%r14d, %ecx
	shrl	$31, %ecx
	addl	%r14d, %ecx
	sarl	%ecx
	imull	%eax, %ecx
	movslq	%ecx, %rax
	movq	-816(%rbp,%rax,8), %r14
	jmp	LBB0_22
LBB0_19:
	movl	(%r15), %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_22
## %bb.20:
	leaq	L_.str.1(%rip), %rdi
	callq	_G_Error
LBB0_22:
	movl	4(%r14), %edi
	movq	-832(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_VectorCopy
	addl	$9, 8(%rbx)
	movl	(%r14), %edi
	movq	-840(%rbp), %rsi                ## 8-byte Reload
	callq	_VectorCopy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_24
## %bb.23:
	movq	%r14, %rax
	addq	$808, %rsp                      ## imm = 0x328
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_classname,4,2                  ## @classname
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info_player_deathmatch"

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, #784
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
	mov	w28, #0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x24, _classname@GOTPAGE
Lloh4:
	ldr	x24, [x24, _classname@GOTPAGEOFF]
	stur	x8, [x29, #-96]
Lloh5:
	adrp	x23, l_.str@PAGE
Lloh6:
	add	x23, x23, l_.str@PAGEOFF
	add	x25, sp, #512
	mov	x27, sp
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_13 Depth 2
	mov	w26, w28
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x24]
	bl	_FOFS
	mov	x1, x0
	mov	x0, x22
	mov	x2, x23
	bl	_G_Find
	cbz	x0, LBB0_17
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x22, x0
	bl	_SpotWouldTelefrag
	cbnz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x22, #4]
	mov	x1, x21
	bl	_VectorSubtract
	bl	_VectorLength
	cmp	w28, #0
	b.le	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, #0
LBB0_6:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s1, [x25, x8, lsl #2]
	fcmp	s0, s1
	b.gt	LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x8, x8, #1
	cmp	x26, x8
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x8, x28
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	w8, #0
LBB0_10:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x28, x26
	cmp	w8, w28
	b.ge	LBB0_15
	b	LBB0_1
LBB0_11:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w28, #63
	mov	w9, #63
	csel	w9, w28, w9, lt
	cmp	w9, w8
	b.le	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	sxtw	x10, w9
	add	x14, x25, w9, sxtw #2
	add	x13, x27, w9, sxtw #3
	mov	x11, x14
	mov	x12, x13
LBB0_13:                                ;   Parent Loop BB0_1 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_13
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	str	s0, [x25, x8, lsl #2]
	str	x22, [x27, x8, lsl #3]
	add	w28, w9, #1
	cmp	w8, w28
	b.lt	LBB0_1
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	w28, #63
	b.gt	LBB0_1
; %bb.16:                               ;   in Loop: Header=BB0_1 Depth=1
	str	s0, [x25, w28, sxtw #2]
	str	x22, [x27, w28, sxtw #3]
	add	w28, w28, #1
	b	LBB0_1
LBB0_17:
	cbz	w28, LBB0_19
; %bb.18:
	bl	_random
	cmp	w28, #0
	cinc	w8, w28, lt
	asr	w8, w8, #1
	mul	w8, w0, w8
	mov	x9, sp
	ldr	x21, [x9, w8, sxtw #3]
	b	LBB0_21
LBB0_19:
	ldr	w0, [x24]
	bl	_FOFS
	mov	x1, x0
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_G_Find
	mov	x21, x0
	cbnz	x0, LBB0_21
; %bb.20:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_G_Error
LBB0_21:
	ldr	w0, [x21, #4]
	mov	x1, x20
	bl	_VectorCopy
	ldr	w8, [x20, #8]
	add	w8, w8, #9
	str	w8, [x20, #8]
	ldr	w0, [x21]
	mov	x1, x19
	bl	_VectorCopy
	ldur	x8, [x29, #-96]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.22:
	mov	x0, x21
	add	sp, sp, #784
	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_23:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_classname,4,2                  ; @classname
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info_player_deathmatch"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't find a spawn point"

.subsections_via_symbols
