	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function SelectRandomSpawnPoint
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x41100000                      ## float 9
LCPI0_2:
	.long	0x43b40000                      ## float 360
LCPI0_3:
	.long	0xbf000000                      ## float -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SelectRandomSpawnPoint
	.p2align	4, 0x90
_SelectRandomSpawnPoint:                ## @SelectRandomSpawnPoint
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movq	%rdi, %r13
	leaq	L_.str(%rip), %r14
	movq	%r14, %rdi
	callq	_FOFS
	xorl	%r12d, %r12d
	xorl	%edi, %edi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_G_Find
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %r14
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	_FL_NO_BOTS@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r13
	movq	_FL_NO_HUMANS@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_random
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmovaeq	%r14, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_FOFS
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_G_Find
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %ecx
	andl	%eax, %ecx
	jne	LBB0_6
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	(%r12), %eax
	jne	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	callq	_SpotWouldTelefrag
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	cmoveq	%r14, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_FOFS
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r13, %rdx
	callq	_G_Find
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_2
	jmp	LBB0_11
LBB0_7:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_8
LBB0_11:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	12(%r12), %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_VectorCopy
	movss	8(%rbx), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	addss	LCPI0_1(%rip), %xmm0
	movss	%xmm0, 8(%rbx)
	movl	8(%r12), %edi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_VectorCopy
	movss	4(%r12), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_random
	movss	-64(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	LCPI0_2(%rip), %xmm1
	jne	LBB0_14
	jp	LBB0_14
## %bb.12:
	mulss	LCPI0_2(%rip), %xmm0
	jmp	LBB0_15
LBB0_8:
	xorl	%r12d, %r12d
	jmp	LBB0_16
LBB0_14:
	addss	LCPI0_3(%rip), %xmm0
	mulss	4(%r12), %xmm0
	addss	4(%rbx), %xmm0
LBB0_15:
	movss	%xmm0, 4(%rbx)
LBB0_16:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SelectRandomSpawnPoint         ; -- Begin function SelectRandomSpawnPoint
	.p2align	2
_SelectRandomSpawnPoint:                ; @SelectRandomSpawnPoint
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	mov	x0, x20
	bl	_FOFS
	mov	x1, x0
	mov	x0, #0
	mov	x2, x20
	bl	_G_Find
	cbz	x0, LBB0_2
; %bb.1:
	mov	x24, x0
	mov	x20, #0
Lloh2:
	adrp	x25, _FL_NO_BOTS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _FL_NO_BOTS@GOTPAGEOFF]
	movi	d8, #0000000000000000
Lloh4:
	adrp	x23, l_.str@PAGE
Lloh5:
	add	x23, x23, l_.str@PAGEOFF
Lloh6:
	adrp	x26, _FL_NO_HUMANS@GOTPAGE
Lloh7:
	ldr	x26, [x26, _FL_NO_HUMANS@GOTPAGEOFF]
	fmov	s9, #1.00000000
	b	LBB0_5
LBB0_2:
	mov	x20, #0
	b	LBB0_16
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	fadd	s8, s8, s9
	bl	_random
	fmul	s0, s8, s0
	fcmp	s0, s9
	csel	x20, x20, x24, hi
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x23
	bl	_FOFS
	mov	x1, x0
	mov	x0, x24
	mov	x2, x23
	bl	_G_Find
	mov	x24, x0
	cbz	x0, LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24]
	cbz	x22, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x25]
	and	w9, w9, w8
	cbnz	w9, LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	cbnz	x22, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x26]
	and	w8, w9, w8
	cbnz	w8, LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x24
	bl	_SpotWouldTelefrag
	cbz	x0, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x20, #0
	csel	x20, x24, x20, eq
	mov	x0, x23
	bl	_FOFS
	mov	x1, x0
	mov	x0, x24
	mov	x2, x23
	bl	_G_Find
	mov	x24, x0
	cbnz	x0, LBB0_5
	b	LBB0_12
LBB0_11:
	cbz	x20, LBB0_16
LBB0_12:
	ldr	w0, [x20, #12]
	mov	x1, x21
	bl	_VectorCopy
	ldr	s0, [x21, #8]
	fmov	s1, #9.00000000
	fadd	s0, s0, s1
	str	s0, [x21, #8]
	ldr	w0, [x20, #8]
	mov	x1, x19
	bl	_VectorCopy
	ldr	s8, [x20, #4]
	bl	_random
	mov	w8, #1135869952
	fmov	s1, w8
	fcmp	s8, s1
	b.ne	LBB0_14
; %bb.13:
	mov	w8, #1135869952
	fmov	s1, w8
	fmul	s0, s0, s1
	b	LBB0_15
LBB0_14:
	fmov	s1, #-0.50000000
	fadd	s0, s0, s1
	ldr	s1, [x20, #4]
	fmul	s0, s0, s1
	ldr	s1, [x19, #4]
	fadd	s0, s1, s0
LBB0_15:
	str	s0, [x19, #4]
LBB0_16:
	mov	x0, x20
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.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
.subsections_via_symbols
