	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function SelectRandomTeamSpawnPoint
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SelectRandomTeamSpawnPoint
	.p2align	4, 0x90
_SelectRandomTeamSpawnPoint:            ## @SelectRandomTeamSpawnPoint
	.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	%rdx, %r14
	movq	_TEAM_BEGIN@GOTPCREL(%rip), %rcx
	movq	_TEAM_RED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	%edi, (%rcx)
	jne	LBB0_3
## %bb.1:
	cmpq	%rsi, %rax
	jne	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %r12
	jmp	LBB0_9
LBB0_3:
	cmpq	%rsi, %rax
	jne	LBB0_7
## %bb.4:
	leaq	L_.str.2(%rip), %r12
	jmp	LBB0_9
LBB0_5:
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_11
## %bb.6:
	leaq	L_.str.1(%rip), %r12
	jmp	LBB0_9
LBB0_7:
	movq	_TEAM_BLUE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_11
## %bb.8:
	leaq	L_.str.3(%rip), %r12
LBB0_9:
	movq	%r12, %rdi
	callq	_FOFS
	xorl	%ecx, %ecx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_G_Find
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movq	_FL_NO_BOTS@GOTPCREL(%rip), %r13
	movq	_FL_NO_HUMANS@GOTPCREL(%rip), %r15
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_16
LBB0_11:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:                                ##   in Loop: Header=BB0_16 Depth=1
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	-52(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	%xmm0, %xmm1
	movss	%xmm1, -52(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	callq	_random
	mulss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmovaeq	%rbx, %rax
LBB0_14:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%r12, %rdi
	callq	_FOFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r12, %rdx
	callq	_G_Find
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_12
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	testq	%r14, %r14
	je	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%r13), %ecx
	andl	%eax, %ecx
	jne	LBB0_15
LBB0_18:                                ##   in Loop: Header=BB0_16 Depth=1
	testq	%r14, %r14
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	andl	(%r15), %eax
	jne	LBB0_15
LBB0_20:                                ##   in Loop: Header=BB0_16 Depth=1
	movq	%rbx, %rdi
	callq	_SpotWouldTelefrag
	testq	%rax, %rax
	je	LBB0_13
## %bb.21:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	cmoveq	%rbx, %rax
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_TEAM_BEGIN,4,2                 ## @TEAM_BEGIN
	.comm	_TEAM_RED,8,3                   ## @TEAM_RED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"team_CTF_redplayer"

	.comm	_TEAM_BLUE,8,3                  ## @TEAM_BLUE
L_.str.1:                               ## @.str.1
	.asciz	"team_CTF_blueplayer"

L_.str.2:                               ## @.str.2
	.asciz	"team_CTF_redspawn"

L_.str.3:                               ## @.str.3
	.asciz	"team_CTF_bluespawn"

	.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	_SelectRandomTeamSpawnPoint     ; -- Begin function SelectRandomTeamSpawnPoint
	.p2align	2
_SelectRandomTeamSpawnPoint:            ; @SelectRandomTeamSpawnPoint
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x2
Lloh0:
	adrp	x8, _TEAM_BEGIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TEAM_BEGIN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _TEAM_RED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TEAM_RED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	w9, w0
	b.ne	LBB0_3
; %bb.1:
	cmp	x8, x1
	b.ne	LBB0_5
; %bb.2:
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_9
LBB0_3:
	cmp	x8, x1
	b.ne	LBB0_7
; %bb.4:
Lloh8:
	adrp	x20, l_.str.2@PAGE
Lloh9:
	add	x20, x20, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_5:
Lloh10:
	adrp	x8, _TEAM_BLUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TEAM_BLUE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_11
; %bb.6:
Lloh13:
	adrp	x20, l_.str.1@PAGE
Lloh14:
	add	x20, x20, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh15:
	adrp	x8, _TEAM_BLUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TEAM_BLUE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_11
; %bb.8:
Lloh18:
	adrp	x20, l_.str.3@PAGE
Lloh19:
	add	x20, x20, l_.str.3@PAGEOFF
LBB0_9:
	mov	x0, x20
	bl	_FOFS
	mov	x1, x0
	mov	x0, #0
	mov	x2, x20
	bl	_G_Find
	cbz	x0, LBB0_11
; %bb.10:
	mov	x22, x0
	mov	x21, #0
	movi	d8, #0000000000000000
Lloh20:
	adrp	x23, _FL_NO_BOTS@GOTPAGE
Lloh21:
	ldr	x23, [x23, _FL_NO_BOTS@GOTPAGEOFF]
Lloh22:
	adrp	x24, _FL_NO_HUMANS@GOTPAGE
Lloh23:
	ldr	x24, [x24, _FL_NO_HUMANS@GOTPAGEOFF]
	fmov	s9, #1.00000000
	b	LBB0_15
LBB0_11:
	mov	x21, #0
LBB0_12:
	mov	x0, x21
	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	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	fadd	s8, s8, s9
	bl	_random
	fmul	s0, s8, s0
	fcmp	s0, s9
	csel	x21, x21, x22, hi
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x20
	bl	_FOFS
	mov	x1, x0
	mov	x0, x22
	mov	x2, x20
	bl	_G_Find
	mov	x22, x0
	cbz	x0, LBB0_12
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cbz	x19, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x23]
	and	w9, w9, w8
	cbnz	w9, LBB0_14
LBB0_17:                                ;   in Loop: Header=BB0_15 Depth=1
	cbnz	x19, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w9, [x24]
	and	w8, w9, w8
	cbnz	w8, LBB0_14
LBB0_19:                                ;   in Loop: Header=BB0_15 Depth=1
	mov	x0, x22
	bl	_SpotWouldTelefrag
	cbz	x0, LBB0_13
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	x21, #0
	csel	x21, x22, x21, eq
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_TEAM_BEGIN,4,2                 ; @TEAM_BEGIN
	.comm	_TEAM_RED,8,3                   ; @TEAM_RED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"team_CTF_redplayer"

	.comm	_TEAM_BLUE,8,3                  ; @TEAM_BLUE
l_.str.1:                               ; @.str.1
	.asciz	"team_CTF_blueplayer"

l_.str.2:                               ; @.str.2
	.asciz	"team_CTF_redspawn"

l_.str.3:                               ; @.str.3
	.asciz	"team_CTF_bluespawn"

	.comm	_FL_NO_BOTS,4,2                 ; @FL_NO_BOTS
	.comm	_FL_NO_HUMANS,4,2               ; @FL_NO_HUMANS
.subsections_via_symbols
