	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SpectatorThink                 ## -- Begin function SpectatorThink
	.p2align	4, 0x90
_SpectatorThink:                        ## @SpectatorThink
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	movq	24(%rbx), %rax
	movq	_SPECTATOR_FOLLOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_PM_SPECTATOR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	8(%rbx), %r13
	movl	%eax, 16(%rbx)
	movl	$400, 8(%rbx)                   ## imm = 0x190
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	%r13, -48(%rbp)
	movq	_MASK_PLAYERSOLID@GOTPCREL(%rip), %rax
	movq	_CONTENTS_BODY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	(%rax), %ecx
	movl	(%r14), %eax
	movl	%eax, -52(%rbp)
	movl	%ecx, -64(%rbp)
	movq	_trap_Trace@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_trap_PointContents@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)
	movq	%r15, %rdi
	callq	_Pmove
	movl	12(%rbx), %edi
	movl	(%r12), %esi
	callq	_VectorCopy
	movq	%r12, %rdi
	callq	_G_TouchTriggers
	movq	%r12, %rdi
	callq	_trap_UnlinkEntity
LBB0_2:
	movl	4(%rbx), %eax
	movl	%eax, (%rbx)
	movl	(%r14), %edx
	movl	%edx, 4(%rbx)
	movq	_BUTTON_ATTACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%edx, %ecx
	je	LBB0_5
## %bb.3:
	andl	%eax, %ecx
	jne	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_Cmd_FollowCycle_f
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPECTATOR_FOLLOW,8,3           ## @SPECTATOR_FOLLOW
	.comm	_PM_SPECTATOR,4,2               ## @PM_SPECTATOR
	.comm	_MASK_PLAYERSOLID,4,2           ## @MASK_PLAYERSOLID
	.comm	_CONTENTS_BODY,4,2              ## @CONTENTS_BODY
	.comm	_trap_Trace,4,2                 ## @trap_Trace
	.comm	_trap_PointContents,4,2         ## @trap_PointContents
	.comm	_BUTTON_ATTACK,4,2              ## @BUTTON_ATTACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SpectatorThink                 ; -- Begin function SpectatorThink
	.p2align	2
_SpectatorThink:                        ; @SpectatorThink
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldr	x8, [x21, #24]
Lloh0:
	adrp	x9, _SPECTATOR_FOLLOW@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPECTATOR_FOLLOW@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PM_SPECTATOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PM_SPECTATOR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #400
	mov	x22, x21
	str	w9, [x22, #8]!
	str	w8, [x22, #8]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	str	x22, [sp, #24]
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _MASK_PLAYERSOLID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MASK_PLAYERSOLID@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _CONTENTS_BODY@GOTPAGE
Lloh10:
	ldr	x10, [x10, _CONTENTS_BODY@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	bic	w9, w9, w10
Lloh12:
	adrp	x10, _trap_Trace@GOTPAGE
Lloh13:
	ldr	x10, [x10, _trap_Trace@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	stp	w10, w8, [sp, #16]
Lloh15:
	adrp	x8, _trap_PointContents@GOTPAGE
Lloh16:
	ldr	x8, [x8, _trap_PointContents@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	stp	w9, w8, [sp, #8]
	add	x0, sp, #8
	bl	_Pmove
	ldr	w0, [x22, #4]
	ldr	w1, [x19]
	bl	_VectorCopy
	mov	x0, x19
	bl	_G_TouchTriggers
	mov	x0, x19
	bl	_trap_UnlinkEntity
LBB0_2:
	ldr	w8, [x21, #4]
	str	w8, [x21]
	ldr	w9, [x20]
Lloh18:
	adrp	x10, _BUTTON_ATTACK@GOTPAGE
Lloh19:
	ldr	x10, [x10, _BUTTON_ATTACK@GOTPAGEOFF]
	str	w9, [x21, #4]
Lloh20:
	ldr	w10, [x10]
	and	w9, w10, w9
	and	w8, w10, w8
	cmp	w9, #0
	ccmp	w8, #0, #0, ne
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #1
	bl	_Cmd_FollowCycle_f
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_SPECTATOR_FOLLOW,8,3           ; @SPECTATOR_FOLLOW
	.comm	_PM_SPECTATOR,4,2               ; @PM_SPECTATOR
	.comm	_MASK_PLAYERSOLID,4,2           ; @MASK_PLAYERSOLID
	.comm	_CONTENTS_BODY,4,2              ; @CONTENTS_BODY
	.comm	_trap_Trace,4,2                 ; @trap_Trace
	.comm	_trap_PointContents,4,2         ; @trap_PointContents
	.comm	_BUTTON_ATTACK,4,2              ; @BUTTON_ATTACK
.subsections_via_symbols
