	.file	"extr_sv_rankings.c_SV_RankUserSpectate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SV_RankUserSpectate
	.type	SV_RankUserSpectate, @function
SV_RankUserSpectate:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR s_rankings_active[rip]
	test	eax, eax
	jne	.L8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	movsx	rbx, edi
	xor	edi, edi
	cmp	QWORD PTR s_ranked_players[rip], 0
	setne	dil
	call	assert@PLT
	mov	edi, ebx
	not	edi
	shr	edi, 31
	call	assert@PLT
	mov	rax, QWORD PTR sv_maxclients[rip]
	xor	edi, edi
	cmp	DWORD PTR [rax], ebx
	setg	dil
	call	assert@PLT
	mov	edx, DWORD PTR QGR_STATUS_SPECTATOR[rip]
	mov	rax, QWORD PTR s_ranked_players[rip]
	mov	DWORD PTR [rax+rbx*4], edx
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	SV_RankUserSpectate, .-SV_RankUserSpectate
	.comm	sv_maxclients,8,8
	.comm	s_rankings_active,4,4
	.comm	s_ranked_players,8,8
	.comm	QGR_STATUS_SPECTATOR,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_sv_rankings.c_SV_RankUserSpectate.c"
	.text
	.align	2
	.global	SV_RankUserSpectate
	.syntax unified
	.arm
	.fpu softvfp
	.type	SV_RankUserSpectate, %function
SV_RankUserSpectate:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r3, #0
	bxeq	lr
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r5, .L11+4
	ldr	r0, [r5]
	subs	r0, r0, #0
	movne	r0, #1
	bl	assert
	mvn	r0, r4
	lsr	r0, r0, #31
	bl	assert
	ldr	r3, .L11+8
	ldr	r3, [r3]
	ldr	r0, [r3]
	cmp	r0, r4
	movle	r0, #0
	movgt	r0, #1
	bl	assert
	ldr	r2, .L11+12
	ldr	r3, [r5]
	ldr	r2, [r2]
	str	r2, [r3, r4, lsl #2]
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	s_rankings_active
	.word	s_ranked_players
	.word	sv_maxclients
	.word	QGR_STATUS_SPECTATOR
	.size	SV_RankUserSpectate, .-SV_RankUserSpectate
	.comm	sv_maxclients,4,4
	.comm	s_rankings_active,4,4
	.comm	s_ranked_players,4,4
	.comm	QGR_STATUS_SPECTATOR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
