	.file	"extr_g_active.c_SpectatorThink.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	SpectatorThink
	.type	SpectatorThink, @function
SpectatorThink:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 32[rbx]
	cmp	rax, QWORD PTR SPECTATOR_FOLLOW[rip]
	je	.L14
	cmp	rax, QWORD PTR SPECTATOR_FREE[rip]
	je	.L15
.L4:
	mov	eax, DWORD PTR PM_FREEZE[rip]
	mov	DWORD PTR 20[rbx], eax
.L6:
	mov	DWORD PTR 12[rbx], 400
	mov	r13, rsp
	mov	edx, 24
	xor	esi, esi
	mov	rdi, r13
	call	memset@PLT
	lea	rax, 8[rbx]
	mov	rdi, r13
	mov	QWORD PTR 16[rsp], rax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR CONTENTS_BODY[rip]
	not	eax
	and	eax, DWORD PTR MASK_PLAYERSOLID[rip]
	mov	DWORD PTR [rsp], eax
	mov	eax, DWORD PTR trap_Trace[rip]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR trap_PointContents[rip]
	mov	DWORD PTR 4[rsp], eax
	call	Pmove@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR 0[rbp]
	call	VectorCopy@PLT
	mov	rdi, rbp
	call	G_TouchTriggers@PLT
	mov	rdi, rbp
	call	trap_UnlinkEntity@PLT
.L3:
	mov	ecx, DWORD PTR 4[rbx]
	mov	eax, DWORD PTR [r12]
	mov	edx, DWORD PTR BUTTON_ATTACK[rip]
	mov	DWORD PTR [rbx], ecx
	mov	DWORD PTR 4[rbx], eax
	test	eax, edx
	je	.L1
	test	ecx, edx
	je	.L16
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edx, DWORD PTR 8[rbx]
	test	DWORD PTR PMF_FOLLOW[rip], edx
	jne	.L3
	cmp	rax, QWORD PTR SPECTATOR_FREE[rip]
	jne	.L4
.L15:
	cmp	QWORD PTR 24[rbx], 0
	je	.L5
	mov	eax, DWORD PTR PM_NOCLIP[rip]
	mov	DWORD PTR 20[rbx], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, 1
	mov	rdi, rbp
	call	Cmd_FollowCycle_f@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR PM_SPECTATOR[rip]
	mov	DWORD PTR 20[rbx], eax
	jmp	.L6
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	SpectatorThink, .-SpectatorThink
	.comm	trap_Trace,4,4
	.comm	trap_PointContents,4,4
	.comm	SPECTATOR_FREE,8,8
	.comm	SPECTATOR_FOLLOW,8,8
	.comm	PM_SPECTATOR,4,4
	.comm	PM_NOCLIP,4,4
	.comm	PM_FREEZE,4,4
	.comm	PMF_FOLLOW,4,4
	.comm	MASK_PLAYERSOLID,4,4
	.comm	CONTENTS_BODY,4,4
	.comm	BUTTON_ATTACK,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_active.c_SpectatorThink.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	SpectatorThink
	.syntax unified
	.arm
	.fpu softvfp
	.type	SpectatorThink, %function
SpectatorThink:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r2, .L18
	ldr	r4, [r0, #4]
	ldr	r2, [r2]
	ldr	r3, [r4, #28]
	sub	sp, sp, #24
	cmp	r3, r2
	ldr	r2, .L18+4
	mov	r5, r0
	mov	r6, r1
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	beq	.L14
	ldr	r2, .L18+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L15
.L4:
	ldr	r3, .L18+12
	ldr	r3, [r3]
	str	r3, [r4, #20]
.L6:
	mov	r2, #400
	ldr	r1, .L18+16
	ldr	r3, .L18+20
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r0, .L18+24
	bic	r3, r3, r1
	ldr	r1, .L18+28
	ldr	r0, [r0]
	str	r2, [r4, #12]
	ldr	r1, [r1]
	ldr	r2, [r6]
	str	r3, [sp]
	str	r0, [sp, #8]
	add	r3, r4, #8
	mov	r0, sp
	str	r2, [sp, #12]
	str	r3, [sp, #16]
	str	r1, [sp, #4]
	bl	Pmove
	ldr	r1, [r5]
	ldr	r0, [r4, #16]
	bl	VectorCopy
	mov	r0, r5
	bl	G_TouchTriggers
	mov	r0, r5
	bl	trap_UnlinkEntity
.L3:
	ldr	r2, .L18+32
	ldr	r3, [r6]
	ldr	r2, [r2]
	ldr	r1, [r4, #4]
	tst	r3, r2
	stm	r4, {r1, r3}
	beq	.L1
	tst	r1, r2
	beq	.L16
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r2, .L18+36
	ldr	r1, [r4, #8]
	ldr	r2, [r2]
	tst	r1, r2
	bne	.L3
	ldr	r2, .L18+8
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L4
.L15:
	ldr	r3, [r4, #24]
	cmp	r3, #0
	ldrne	r3, .L18+40
	ldreq	r3, .L18+44
	ldr	r3, [r3]
	str	r3, [r4, #20]
	b	.L6
.L16:
	mov	r0, r5
	mov	r1, #1
	bl	Cmd_FollowCycle_f
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	SPECTATOR_FOLLOW
	.word	.LC0
	.word	SPECTATOR_FREE
	.word	PM_FREEZE
	.word	CONTENTS_BODY
	.word	MASK_PLAYERSOLID
	.word	trap_Trace
	.word	trap_PointContents
	.word	BUTTON_ATTACK
	.word	PMF_FOLLOW
	.word	PM_NOCLIP
	.word	PM_SPECTATOR
	.size	SpectatorThink, .-SpectatorThink
	.comm	trap_Trace,4,4
	.comm	trap_PointContents,4,4
	.comm	SPECTATOR_FREE,4,4
	.comm	SPECTATOR_FOLLOW,4,4
	.comm	PM_SPECTATOR,4,4
	.comm	PM_NOCLIP,4,4
	.comm	PM_FREEZE,4,4
	.comm	PMF_FOLLOW,4,4
	.comm	MASK_PLAYERSOLID,4,4
	.comm	CONTENTS_BODY,4,4
	.comm	BUTTON_ATTACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
