	.file	"extr_g_misc.c_TeleportPlayer.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	TeleportPlayer
	.type	TeleportPlayer, @function
TeleportPlayer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	movsd	xmm1, QWORD PTR [rdx]
	mov	rax, QWORD PTR [rdi]
	mov	rcx, QWORD PTR TEAM_SPECTATOR[rip]
	movsd	QWORD PTR 8[rsp], xmm1
	cmp	QWORD PTR [rax], rcx
	je	.L2
	mov	rdi, QWORD PTR 8[rax]
	mov	esi, DWORD PTR EV_PLAYER_TELEPORT_OUT[rip]
	call	G_TempEntity@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR EV_PLAYER_TELEPORT_IN[rip]
	mov	rdi, r13
	mov	DWORD PTR 16[rax], edx
	call	G_TempEntity@PLT
	mov	edx, DWORD PTR 16[rbp]
	mov	DWORD PTR 16[rax], edx
.L2:
	mov	rdi, rbp
	call	trap_UnlinkEntity@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, r13
	mov	rsi, QWORD PTR 8[rax]
	call	VectorCopy@PLT
	mov	rdi, QWORD PTR 0[rbp]
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	xmm2, QWORD PTR 8[rsp]
	comisd	xmm2, QWORD PTR .LC1[rip]
	mov	rax, QWORD PTR 8[rdi]
	addsd	xmm0, QWORD PTR 16[rax]
	movsd	QWORD PTR 16[rax], xmm0
	jbe	.L8
.L3:
	mov	eax, DWORD PTR EF_TELEPORT_BIT[rip]
	xor	DWORD PTR 20[rdi], eax
	mov	rax, QWORD PTR TEAM_SPECTATOR[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L4
	mov	rdi, rbp
	call	G_KillBox@PLT
	mov	rdi, QWORD PTR 0[rbp]
.L4:
	mov	edx, DWORD PTR qtrue[rip]
	lea	rsi, 16[rbp]
	add	rdi, 8
	call	BG_PlayerStateToEntityState@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rsi, QWORD PTR 8[rbp]
	mov	rdi, QWORD PTR 8[rax]
	call	VectorCopy@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rcx, QWORD PTR TEAM_SPECTATOR[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.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
.L9:
	.cfi_restore_state
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	trap_LinkEntity@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	esi, DWORD PTR 28[rdi]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, r12
	call	AngleVectors@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, 400
	mov	edi, DWORD PTR 28[rax]
	mov	edx, edi
	call	VectorScale@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	rsi, r12
	mov	edx, DWORD PTR PMF_TIME_KNOCKBACK[rip]
	or	DWORD PTR 24[rax], edx
	mov	DWORD PTR 16[rax], 160
	call	SetClientViewAngle@PLT
	mov	rdi, QWORD PTR 0[rbp]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	TeleportPlayer, .-TeleportPlayer
	.comm	qtrue,4,4
	.comm	TEAM_SPECTATOR,8,8
	.comm	PMF_TIME_KNOCKBACK,4,4
	.comm	EV_PLAYER_TELEPORT_OUT,4,4
	.comm	EV_PLAYER_TELEPORT_IN,4,4
	.comm	EF_TELEPORT_BIT,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC1:
	.long	0
	.long	1093567614
	.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_misc.c_TeleportPlayer.c"
	.text
	.global	__aeabi_dadd
	.global	__aeabi_dcmpgt
	.align	2
	.global	TeleportPlayer
	.syntax unified
	.arm
	.fpu softvfp
	.type	TeleportPlayer, %function
TeleportPlayer:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r2
	ldr	r3, [r0]
	ldr	r7, .L9
	mov	r4, r0
	ldmia	r6, {r8-r9}
	ldr	r0, [r3]
	ldr	r2, [r7]
	mov	r5, r1
	cmp	r0, r2
	beq	.L2
	ldr	r2, .L9+4
	ldr	r0, [r3, #4]
	ldr	r1, [r2]
	bl	G_TempEntity
	ldr	r3, .L9+8
	ldr	r2, [r4, #8]
	ldr	r1, [r3]
	str	r2, [r0, #8]
	mov	r0, r5
	bl	G_TempEntity
	ldr	r3, [r4, #8]
	str	r3, [r0, #8]
.L2:
	mov	r0, r4
	bl	trap_UnlinkEntity
	ldr	r3, [r4]
	mov	r0, r5
	ldr	r1, [r3, #4]
	bl	VectorCopy
	ldr	r5, [r4]
	mov	r2, #0
	ldr	r10, [r5, #4]
	ldr	r3, .L9+12
	add	r1, r10, #16
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	ldr	r3, .L9+16
	str	r0, [r10, #16]
	str	r1, [r10, #20]
	mov	r2, #0
	mov	r0, r8
	mov	r1, r9
	bl	__aeabi_dcmpgt
	subs	r3, r0, #0
	beq	.L8
.L3:
	ldr	r2, .L9+20
	ldr	r3, [r5, #12]
	ldr	r2, [r2]
	ldr	r1, [r5]
	eor	r3, r3, r2
	ldr	r2, [r7]
	str	r3, [r5, #12]
	cmp	r1, r2
	beq	.L4
	mov	r0, r4
	bl	G_KillBox
	ldr	r5, [r4]
.L4:
	ldr	r3, .L9+24
	add	r1, r4, #8
	ldr	r2, [r3]
	add	r0, r5, #4
	bl	BG_PlayerStateToEntityState
	ldr	r3, [r4]
	ldr	r1, [r4, #4]
	ldr	r0, [r3, #4]
	bl	VectorCopy
	ldr	r2, [r4]
	ldr	r3, [r7]
	ldr	r2, [r2]
	cmp	r2, r3
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	trap_LinkEntity
.L8:
	mov	r2, r3
	ldr	r1, [r5, #20]
	mov	r0, r6
	bl	AngleVectors
	ldr	r3, [r4]
	mov	r1, #400
	ldr	r2, [r3, #20]
	mov	r0, r2
	bl	VectorScale
	mov	r0, #160
	ldr	r3, [r4]
	ldr	r1, .L9+28
	ldr	r2, [r3, #16]
	ldr	ip, [r1]
	str	r0, [r3, #8]
	orr	r2, r2, ip
	mov	r1, r6
	mov	r0, r4
	str	r2, [r3, #16]
	bl	SetClientViewAngle
	ldr	r5, [r4]
	b	.L3
.L10:
	.align	2
.L9:
	.word	TEAM_SPECTATOR
	.word	EV_PLAYER_TELEPORT_OUT
	.word	EV_PLAYER_TELEPORT_IN
	.word	1072693248
	.word	1093567614
	.word	EF_TELEPORT_BIT
	.word	qtrue
	.word	PMF_TIME_KNOCKBACK
	.size	TeleportPlayer, .-TeleportPlayer
	.comm	qtrue,4,4
	.comm	TEAM_SPECTATOR,4,4
	.comm	PMF_TIME_KNOCKBACK,4,4
	.comm	EV_PLAYER_TELEPORT_OUT,4,4
	.comm	EV_PLAYER_TELEPORT_IN,4,4
	.comm	EF_TELEPORT_BIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
