	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SelectRandomDeathmatchSpawnPoint ## -- Begin function SelectRandomDeathmatchSpawnPoint
	.p2align	4, 0x90
_SelectRandomDeathmatchSpawnPoint:      ## @SelectRandomDeathmatchSpawnPoint
	.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	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_SPAWN_POINTS@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	_classname@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FOFS
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_G_Find
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.2:
	movq	%rax, %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_SpotWouldTelefrag
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx), %eax
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FL_NO_BOTS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	jne	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	testq	%r14, %r14
	jne	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_FL_NO_HUMANS@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_15
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_classname@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FOFS
	movq	%rbx, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_G_Find
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movslq	(%r12), %rax
	cmpq	%rax, %r13
	jl	LBB0_3
	jmp	LBB0_10
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax,%r13,8)
	incq	%r13
	jmp	LBB0_8
LBB0_10:
	testl	%r13d, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_11
## %bb.13:
	xorl	%eax, %eax
	callq	_rand
	cltd
	idivl	%r13d
	movslq	%edx, %rax
	movq	(%rbx,%rax,8), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.16:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_classname@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_FOFS
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.12:
	leaq	L_.str(%rip), %rdx
	xorl	%edi, %edi
	movl	%eax, %esi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_G_Find                         ## TAILCALL
LBB0_14:
	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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SelectRandomDeathmatchSpawnPoint ; -- Begin function SelectRandomDeathmatchSpawnPoint
	.p2align	2
_SelectRandomDeathmatchSpawnPoint:      ; @SelectRandomDeathmatchSpawnPoint
	.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, #16
	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	x23, _MAX_SPAWN_POINTS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_SPAWN_POINTS@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh7:
	adrp	x24, _classname@GOTPAGE
Lloh8:
	ldr	x24, [x24, _classname@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_FOFS
	mov	x1, x0
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	bl	_G_Find
	ldr	w8, [x23]
	cmp	x0, #0
	ccmp	w8, #1, #8, ne
	b.lt	LBB0_12
; %bb.1:
	mov	x20, x0
	mov	x25, #0
Lloh11:
	adrp	x26, _FL_NO_BOTS@GOTPAGE
Lloh12:
	ldr	x26, [x26, _FL_NO_BOTS@GOTPAGEOFF]
Lloh13:
	adrp	x27, _FL_NO_HUMANS@GOTPAGE
Lloh14:
	ldr	x27, [x27, _FL_NO_HUMANS@GOTPAGEOFF]
Lloh15:
	adrp	x21, l_.str@PAGE
Lloh16:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x20, [x22, x25, lsl #3]
	add	x25, x25, #1
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x24]
	bl	_FOFS
	mov	x1, x0
	mov	x0, x20
	mov	x2, x21
	bl	_G_Find
	mov	x20, x0
	ldrsw	x8, [x23]
	cmp	x0, #0
	ccmp	x25, x8, #0, ne
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_SpotWouldTelefrag
	cbnz	x0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	cbz	x19, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x26]
	and	w9, w9, w8
	cbnz	w9, LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x19, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x27]
	and	w8, w9, w8
	cbnz	w8, LBB0_3
	b	LBB0_2
LBB0_9:
	cbz	w25, LBB0_12
; %bb.10:
	bl	_rand
	sdiv	w8, w0, w25
	msub	w8, w8, w25, w0
	ldr	x0, [x22, w8, sxtw #3]
	ldur	x8, [x29, #-88]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.11:
	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_12:
	ldr	w0, [x24]
	bl	_FOFS
	ldur	x8, [x29, #-88]
Lloh20:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh21:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x1, x0
Lloh23:
	adrp	x2, l_.str@PAGE
Lloh24:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, #0
	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
	b	_G_Find
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.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
.subsections_via_symbols
