	.file	"extr_g_client.c_SelectRandomFurthestSpawnPoint.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"info_player_deathmatch"
.LC1:
	.string	"Couldn't find a spawn point"
	.text
	.p2align 4
	.globl	SelectRandomFurthestSpawnPoint
	.type	SelectRandomFurthestSpawnPoint, @function
SelectRandomFurthestSpawnPoint:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	xor	ebx, ebx
	sub	rsp, 808
	.cfi_def_cfa_offset 864
	mov	QWORD PTR 8[rsp], rdx
	lea	r13, 16[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 792[rsp], rax
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR classname[rip]
	call	FOFS@PLT
	mov	rdi, r15
	lea	rdx, .LC0[rip]
	mov	esi, eax
	call	G_Find@PLT
	mov	r15, rax
	test	rax, rax
	je	.L26
	mov	rdi, r15
	call	SpotWouldTelefrag@PLT
	test	rax, rax
	jne	.L2
	xor	r14d, r14d
	mov	edi, DWORD PTR 4[r15]
	mov	rsi, r12
	mov	rdx, r14
	call	VectorSubtract@PLT
	mov	rdi, r14
	call	VectorLength@PLT
	test	ebx, ebx
	je	.L4
	mov	rdx, r13
	xor	eax, eax
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L22:
	add	eax, 1
	add	rdx, 4
	cmp	ebx, eax
	je	.L27
.L10:
	comiss	xmm0, DWORD PTR [rdx]
	jbe	.L22
	cmp	ebx, 63
	mov	edx, 63
	cmovg	ebx, edx
	cmp	ebx, eax
	jle	.L7
	movsx	rcx, ebx
	lea	rsi, 0[0+rcx*4]
	lea	rcx, 272[rsp+rcx*8]
	lea	rdi, -4[r13+rsi]
	lea	rdx, 0[r13+rsi]
	lea	esi, -1[rbx]
	sub	esi, eax
	sal	rsi, 2
	sub	rdi, rsi
	.p2align 4,,10
	.p2align 3
.L8:
	movss	xmm1, DWORD PTR -4[rdx]
	mov	rsi, QWORD PTR -8[rcx]
	sub	rdx, 4
	sub	rcx, 8
	movss	DWORD PTR 4[rdx], xmm1
	mov	QWORD PTR 8[rcx], rsi
	cmp	rdx, rdi
	jne	.L8
.L7:
	movsx	rdx, eax
	add	ebx, 1
	mov	QWORD PTR 272[rsp+rdx*8], r15
	movss	DWORD PTR 16[rsp+rdx*4], xmm0
.L9:
	cmp	eax, 63
	mov	edx, 63
	cmovg	eax, edx
	cmp	ebx, eax
	jg	.L2
.L4:
	movsx	rax, ebx
	add	ebx, 1
	mov	QWORD PTR 272[rsp+rax*8], r15
	movss	DWORD PTR 16[rsp+rax*4], xmm0
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L27:
	mov	eax, ebx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L26:
	test	ebx, ebx
	je	.L28
	xor	eax, eax
	sar	ebx
	call	random@PLT
	imul	ebx, eax
	movsx	rbx, ebx
	mov	r12, QWORD PTR 272[rsp+rbx*8]
.L24:
	mov	edi, DWORD PTR 4[r12]
	mov	rsi, rbp
	call	VectorCopy@PLT
	add	DWORD PTR 8[rbp], 9
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR [r12]
	call	VectorCopy@PLT
	mov	rax, QWORD PTR 792[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 808
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	edi, DWORD PTR classname[rip]
	call	FOFS@PLT
	lea	rdx, .LC0[rip]
	xor	edi, edi
	mov	esi, eax
	call	G_Find@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L24
	lea	rdi, .LC1[rip]
	call	G_Error@PLT
	jmp	.L24
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	SelectRandomFurthestSpawnPoint, .-SelectRandomFurthestSpawnPoint
	.comm	classname,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_g_client.c_SelectRandomFurthestSpawnPoint.c"
	.text
	.global	__aeabi_fcmplt
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"info_player_deathmatch\000"
	.align	2
.LC1:
	.ascii	"Couldn't find a spawn point\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SelectRandomFurthestSpawnPoint
	.syntax unified
	.arm
	.fpu softvfp
	.type	SelectRandomFurthestSpawnPoint, %function
SelectRandomFurthestSpawnPoint:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, #0
	sub	sp, sp, #532
	ldr	r3, .L32
	str	r0, [sp]
	str	r2, [sp, #4]
	mov	r9, r1
	ldr	r3, [r3]
	str	r3, [sp, #524]
	mov	r3,#0
	mov	r5, r6
	ldr	r7, .L32+4
	ldr	r8, .L32+8
.L2:
	ldr	r0, [r7]
	bl	FOFS
	mov	r2, r8
	mov	r1, r0
	mov	r0, r5
	bl	G_Find
	subs	r5, r0, #0
	beq	.L28
	bl	SpotWouldTelefrag
	subs	r4, r0, #0
	bne	.L2
	mov	r10, #0
	ldr	r1, [sp]
	mov	r2, r10
	ldr	r0, [r5, #4]
	bl	VectorSubtract
	mov	r0, r10
	bl	VectorLength
	cmp	r6, r10
	mov	fp, r0
	beq	.L4
	add	r10, sp, #8
	b	.L10
.L23:
	add	r4, r4, #1
	cmp	r6, r4
	beq	.L29
.L10:
	mov	r1, fp
	ldr	r0, [r10, #4]!	@ float
	bl	__aeabi_fcmplt
	cmp	r0, #0
	beq	.L23
	cmp	r6, #63
	movge	r6, #63
	cmp	r6, r4
	lslle	lr, r4, #2
	ble	.L7
	add	r3, sp, #12
	add	r2, sp, #268
	add	r1, sp, #12
	add	r3, r3, r6, lsl #2
	add	r2, r2, r6, lsl #2
	lsl	lr, r4, #2
	add	ip, r1, r4, lsl #2
.L8:
	ldr	r0, [r3, #-4]	@ float
	ldr	r1, [r2, #-4]
	str	r0, [r3], #-4	@ float
	cmp	r3, ip
	str	r1, [r2], #-4
	bne	.L8
.L7:
	add	r3, sp, #528
	add	r3, r3, lr
	str	fp, [r3, #-516]	@ float
	str	r5, [r3, #-260]
	add	r6, r6, #1
.L9:
	cmp	r4, #63
	movge	r4, #63
	cmp	r6, r4
	bgt	.L2
.L4:
	add	r3, sp, #528
	add	r3, r3, r6, lsl #2
	str	fp, [r3, #-516]	@ float
	str	r5, [r3, #-260]
	add	r6, r6, #1
	b	.L2
.L29:
	mov	r4, r6
	b	.L9
.L28:
	cmp	r6, #0
	beq	.L30
	bl	random
	asr	r6, r6, #1
	mul	r6, r0, r6
	add	r3, sp, #528
	add	r6, r3, r6, lsl #2
	ldr	r4, [r6, #-260]
.L26:
	mov	r1, r9
	ldr	r0, [r4, #4]
	bl	VectorCopy
	ldr	r3, [r9, #8]
	ldr	r1, [sp, #4]
	add	r3, r3, #9
	str	r3, [r9, #8]
	ldr	r0, [r4]
	bl	VectorCopy
	ldr	r3, .L32
	ldr	r2, [r3]
	ldr	r3, [sp, #524]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L31
	mov	r0, r4
	add	sp, sp, #532
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L30:
	ldr	r0, [r7]
	bl	FOFS
	ldr	r2, .L32+8
	mov	r1, r0
	mov	r0, r6
	bl	G_Find
	subs	r4, r0, #0
	bne	.L26
	ldr	r0, .L32+12
	bl	G_Error
	b	.L26
.L31:
	bl	__stack_chk_fail
.L33:
	.align	2
.L32:
	.word	.LC2
	.word	classname
	.word	.LC0
	.word	.LC1
	.size	SelectRandomFurthestSpawnPoint, .-SelectRandomFurthestSpawnPoint
	.comm	classname,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
