	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_ResetPlayerEntity           ## -- Begin function CG_ResetPlayerEntity
	.p2align	4, 0x90
_CG_ResetPlayerEntity:                  ## @CG_ResetPlayerEntity
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	$-99999, (%rdi)                 ## imm = 0xFFFE7961
	movq	_qfalse@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	%rax, 136(%rdi)
	movq	_cgs@GOTPCREL(%rip), %r13
	movq	72(%rdi), %rdi
	shlq	$2, %rdi
	addq	(%r13), %rdi
	leaq	8(%rbx), %r14
	leaq	40(%rbx), %r15
	movl	96(%rbx), %edx
	movq	%r15, %rsi
	callq	_CG_ClearLerpFrame
	movq	72(%rbx), %rdi
	shlq	$2, %rdi
	addq	(%r13), %rdi
	movl	92(%rbx), %edx
	movq	%r14, %rsi
	callq	_CG_ClearLerpFrame
	leaq	88(%rbx), %rdi
	movq	_cg@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	128(%rbx), %edx
	callq	_BG_EvaluateTrajectory
	leaq	84(%rbx), %rdi
	movl	(%r13), %esi
	movl	112(%rbx), %edx
	callq	_BG_EvaluateTrajectory
	movl	128(%rbx), %edi
	movq	120(%rbx), %rsi
	callq	_VectorCopy
	movl	112(%rbx), %edi
	movq	104(%rbx), %rsi
	callq	_VectorCopy
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	104(%rbx), %rax
	movq	_YAW@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	%rax, 40(%rbx)
	movq	(%r12), %rax
	movq	%rax, 64(%rbx)
	movq	$0, 56(%rbx)
	movq	%rax, 48(%rbx)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	104(%rbx), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdx
	movq	%rdx, 8(%rbx)
	movq	(%r12), %rcx
	movq	%rcx, 32(%rbx)
	movq	_PITCH@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rax,%rsi,8), %rax
	movq	%rax, 24(%rbx)
	movq	%rcx, 16(%rbx)
	movq	_cg_debugPosition@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movl	80(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_Printf                      ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qfalse,8,3                     ## @qfalse
	.comm	_cgs,8,3                        ## @cgs
	.comm	_cg,4,2                         ## @cg
	.comm	_YAW,8,3                        ## @YAW
	.comm	_PITCH,8,3                      ## @PITCH
	.comm	_cg_debugPosition,8,3           ## @cg_debugPosition
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%i ResetPlayerEntity yaw=%f\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_ResetPlayerEntity           ; -- Begin function CG_ResetPlayerEntity
	.p2align	2
_CG_ResetPlayerEntity:                  ; @CG_ResetPlayerEntity
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [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 w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	mov	w8, #31073
	movk	w8, #65534, lsl #16
	str	w8, [x0]
Lloh0:
	adrp	x22, _qfalse@GOTPAGE
Lloh1:
	ldr	x22, [x22, _qfalse@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [x0, #136]
Lloh2:
	adrp	x23, _cgs@GOTPAGE
Lloh3:
	ldr	x23, [x23, _cgs@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x0, #72]
	add	x0, x8, x9, lsl #2
	add	x20, x19, #8
	add	x21, x19, #40
	ldr	w2, [x19, #96]
	mov	x1, x21
	bl	_CG_ClearLerpFrame
	ldr	x8, [x23]
	ldr	x9, [x19, #72]
	add	x0, x8, x9, lsl #2
	ldr	w2, [x19, #92]
	mov	x1, x20
	bl	_CG_ClearLerpFrame
	add	x0, x19, #88
Lloh4:
	adrp	x23, _cg@GOTPAGE
Lloh5:
	ldr	x23, [x23, _cg@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x19, #128]
	bl	_BG_EvaluateTrajectory
	add	x0, x19, #84
	ldr	w1, [x23]
	ldr	w2, [x19, #112]
	bl	_BG_EvaluateTrajectory
	ldr	w0, [x19, #128]
	ldr	x1, [x19, #120]
	bl	_VectorCopy
	ldr	w0, [x19, #112]
	ldr	x1, [x19, #104]
	bl	_VectorCopy
	mov	x0, x21
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x19, #104]
Lloh6:
	adrp	x21, _YAW@GOTPAGE
Lloh7:
	ldr	x21, [x21, _YAW@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x22]
	stp	xzr, x9, [x19, #56]
	stp	x8, x9, [x19, #40]
	mov	x0, x20
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	x8, [x19, #104]
	ldr	x9, [x21]
	ldr	x2, [x8, x9, lsl #3]
	ldr	x9, [x22]
	str	x2, [x19, #8]
Lloh8:
	adrp	x10, _PITCH@GOTPAGE
Lloh9:
	ldr	x10, [x10, _PITCH@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	ldr	x8, [x8, x10, lsl #3]
	stp	x8, x9, [x19, #24]
	str	x9, [x19, #16]
Lloh11:
	adrp	x8, _cg_debugPosition@GOTPAGE
Lloh12:
	ldr	x8, [x8, _cg_debugPosition@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x19, #80]
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_CG_Printf
LBB0_2:
	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	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_qfalse,8,3                     ; @qfalse
	.comm	_cgs,8,3                        ; @cgs
	.comm	_cg,4,2                         ; @cg
	.comm	_YAW,8,3                        ; @YAW
	.comm	_PITCH,8,3                      ; @PITCH
	.comm	_cg_debugPosition,8,3           ; @cg_debugPosition
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%i ResetPlayerEntity yaw=%f\n"

.subsections_via_symbols
