	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function TeleportPlayer
LCPI0_0:
	.quad	0x412e847e00000000              ## double 999999
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_TeleportPlayer
	.p2align	4, 0x90
_TeleportPlayer:                        ## @TeleportPlayer
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movsd	(%rdx), %xmm0                   ## xmm0 = mem[0],zero
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rcx
	je	LBB0_2
## %bb.1:
	movq	8(%rax), %rdi
	movq	_EV_PLAYER_TELEPORT_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_G_TempEntity
	movl	16(%rbx), %ecx
	movl	%ecx, 16(%rax)
	movq	_EV_PLAYER_TELEPORT_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_G_TempEntity
	movl	16(%rbx), %ecx
	movl	%ecx, 16(%rax)
LBB0_2:
	movq	%rbx, %rdi
	callq	_trap_UnlinkEntity
	movq	(%rbx), %rax
	movq	8(%rax), %rsi
	movq	%r15, %rdi
	callq	_VectorCopy
	movsd	-40(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	movq	(%rbx), %rdi
	movq	8(%rdi), %rax
	movsd	16(%rax), %xmm0                 ## xmm0 = mem[0],zero
	addsd	LCPI0_1(%rip), %xmm0
	movsd	%xmm0, 16(%rax)
	ja	LBB0_4
## %bb.3:
	movl	28(%rdi), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_AngleVectors
	movq	(%rbx), %rax
	movl	28(%rax), %edi
	movl	$400, %esi                      ## imm = 0x190
	movl	%edi, %edx
	callq	_VectorScale
	movq	(%rbx), %rax
	movl	$160, 16(%rax)
	movq	_PMF_TIME_KNOCKBACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 24(%rax)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_SetClientViewAngle
	movq	(%rbx), %rdi
LBB0_4:
	movq	_EF_TELEPORT_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%eax, 20(%rdi)
	movq	(%rdi), %rax
	cmpq	(%r12), %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_G_KillBox
	movq	(%rbx), %rdi
LBB0_6:
	addq	$8, %rdi
	leaq	16(%rbx), %rsi
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_BG_PlayerStateToEntityState
	movq	(%rbx), %rax
	movq	8(%rbx), %rsi
	movq	8(%rax), %rdi
	callq	_VectorCopy
	movq	(%rbx), %rax
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jne	LBB0_8
## %bb.7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trap_LinkEntity                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TEAM_SPECTATOR,8,3             ## @TEAM_SPECTATOR
	.comm	_EV_PLAYER_TELEPORT_OUT,4,2     ## @EV_PLAYER_TELEPORT_OUT
	.comm	_EV_PLAYER_TELEPORT_IN,4,2      ## @EV_PLAYER_TELEPORT_IN
	.comm	_PMF_TIME_KNOCKBACK,4,2         ## @PMF_TIME_KNOCKBACK
	.comm	_EF_TELEPORT_BIT,4,2            ## @EF_TELEPORT_BIT
	.comm	_qtrue,4,2                      ## @qtrue
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TeleportPlayer                 ; -- Begin function TeleportPlayer
	.p2align	2
_TeleportPlayer:                        ; @TeleportPlayer
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	d8, [x2]
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x22, _TEAM_SPECTATOR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _TEAM_SPECTATOR@GOTPAGEOFF]
	ldr	x10, [x22]
	cmp	x9, x10
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x8, #8]
Lloh2:
	adrp	x8, _EV_PLAYER_TELEPORT_OUT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EV_PLAYER_TELEPORT_OUT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	bl	_G_TempEntity
	ldr	w8, [x19, #16]
	str	w8, [x0, #16]
Lloh5:
	adrp	x8, _EV_PLAYER_TELEPORT_IN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EV_PLAYER_TELEPORT_IN@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_G_TempEntity
	ldr	w8, [x19, #16]
	str	w8, [x0, #16]
LBB0_2:
	mov	x0, x19
	bl	_trap_UnlinkEntity
	ldr	x8, [x19]
	ldr	x1, [x8, #8]
	mov	x0, x21
	bl	_VectorCopy
	ldr	x8, [x19]
	ldr	x9, [x8, #8]
	ldr	d0, [x9, #16]
	fmov	d1, #1.00000000
	fadd	d0, d0, d1
	str	d0, [x9, #16]
	mov	x9, #145676700745728
	movk	x9, #16686, lsl #48
	fmov	d0, x9
	fcmp	d8, d0
	b.gt	LBB0_4
; %bb.3:
	ldr	w1, [x8, #28]
	mov	x0, x20
	mov	x2, #0
	mov	x3, #0
	bl	_AngleVectors
	ldr	x8, [x19]
	ldr	w0, [x8, #28]
	mov	w1, #400
	mov	x2, x0
	bl	_VectorScale
	ldr	x8, [x19]
	mov	w9, #160
	str	w9, [x8, #16]
Lloh8:
	adrp	x9, _PMF_TIME_KNOCKBACK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PMF_TIME_KNOCKBACK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w10, [x8, #24]
	orr	w9, w10, w9
	str	w9, [x8, #24]
	mov	x0, x19
	mov	x1, x20
	bl	_SetClientViewAngle
	ldr	x8, [x19]
LBB0_4:
Lloh11:
	adrp	x9, _EF_TELEPORT_BIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _EF_TELEPORT_BIT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	ldr	w10, [x8, #20]
	eor	w9, w10, w9
	str	w9, [x8, #20]
	ldr	x9, [x8]
	ldr	x10, [x22]
	cmp	x9, x10
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_G_KillBox
	ldr	x8, [x19]
LBB0_6:
	add	x0, x8, #8
	add	x1, x19, #16
Lloh14:
	adrp	x8, _qtrue@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_BG_PlayerStateToEntityState
	ldp	x8, x1, [x19]
	ldr	x0, [x8, #8]
	bl	_VectorCopy
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	b	_trap_LinkEntity
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_TEAM_SPECTATOR,8,3             ; @TEAM_SPECTATOR
	.comm	_EV_PLAYER_TELEPORT_OUT,4,2     ; @EV_PLAYER_TELEPORT_OUT
	.comm	_EV_PLAYER_TELEPORT_IN,4,2      ; @EV_PLAYER_TELEPORT_IN
	.comm	_PMF_TIME_KNOCKBACK,4,2         ; @PMF_TIME_KNOCKBACK
	.comm	_EF_TELEPORT_BIT,4,2            ; @EF_TELEPORT_BIT
	.comm	_qtrue,4,2                      ; @qtrue
.subsections_via_symbols
