	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cmd_Follow_f                   ## -- Begin function Cmd_Follow_f
	.p2align	4, 0x90
_Cmd_Follow_f:                          ## @Cmd_Follow_f
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	_MAX_TOKEN_CHARS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	xorl	%eax, %eax
	callq	_trap_Argc
	cmpl	$2, %eax
	jne	LBB0_1
## %bb.4:
	movl	$1, %edi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_trap_Argv
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_ClientNumberFromString
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.5:
	movl	%eax, %r14d
	movq	_level@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movslq	%r14d, %rax
	leaq	(%rax,%rax,2), %rsi
	leaq	(%rdx,%rsi,8), %rcx
	movq	(%r15), %rax
	cmpq	%rax, %rcx
	je	LBB0_13
## %bb.6:
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, 8(%rdx,%rsi,8)
	je	LBB0_13
## %bb.7:
	movq	_g_gametype@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	_GT_TOURNAMENT@GOTPCREL(%rip), %rdi
	movq	8(%rax), %rdx
	cmpq	(%rdi), %rsi
	jne	LBB0_10
## %bb.8:
	movq	_TEAM_FREE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_10
## %bb.9:
	incl	20(%rax)
LBB0_10:
	cmpq	%rcx, %rdx
	je	LBB0_12
## %bb.11:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_SetTeam
	movq	(%r15), %rax
LBB0_12:
	movq	_SPECTATOR_FOLLOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rax)
	movl	%r14d, 16(%rax)
	jmp	LBB0_13
LBB0_1:
	movq	(%r15), %rax
	movq	(%rax), %rax
	movq	_SPECTATOR_FOLLOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_15
## %bb.3:
	movq	%r15, %rdi
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_StopFollowing                  ## TAILCALL
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	leaq	-24(%rbp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TOKEN_CHARS,4,2            ## @MAX_TOKEN_CHARS
	.comm	_SPECTATOR_FOLLOW,8,3           ## @SPECTATOR_FOLLOW
	.comm	_level,8,3                      ## @level
	.comm	_TEAM_SPECTATOR,8,3             ## @TEAM_SPECTATOR
	.comm	_g_gametype,8,3                 ## @g_gametype
	.comm	_GT_TOURNAMENT,8,3              ## @GT_TOURNAMENT
	.comm	_TEAM_FREE,8,3                  ## @TEAM_FREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"spectator"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cmd_Follow_f                   ; -- Begin function Cmd_Follow_f
	.p2align	2
_Cmd_Follow_f:                          ; @Cmd_Follow_f
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAX_TOKEN_CHARS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_TOKEN_CHARS@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x21, x8, x9
	mov	sp, x21
	bl	_trap_Argc
	cmp	w0, #2
	b.ne	LBB0_9
; %bb.1:
	mov	w0, #1
	mov	x1, x21
	mov	x2, x20
	bl	_trap_Argv
	mov	x0, x19
	mov	x1, x21
	bl	_ClientNumberFromString
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.2:
	mov	x20, x0
Lloh8:
	adrp	x8, _level@GOTPAGE
Lloh9:
	ldr	x8, [x8, _level@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x8]
	mov	w8, #24
	smaddl	x10, w0, w8, x9
	ldr	x8, [x19]
	cmp	x10, x8
	b.eq	LBB0_12
; %bb.3:
	sxtw	x10, w20
	mov	w11, #24
	madd	x9, x10, x11, x9
	ldr	x10, [x9, #8]
Lloh11:
	adrp	x9, _TEAM_SPECTATOR@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x10, x9
	b.eq	LBB0_12
; %bb.4:
Lloh14:
	adrp	x10, _g_gametype@GOTPAGE
Lloh15:
	ldr	x10, [x10, _g_gametype@GOTPAGEOFF]
Lloh16:
	ldr	x11, [x10]
Lloh17:
	adrp	x10, _GT_TOURNAMENT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _GT_TOURNAMENT@GOTPAGEOFF]
Lloh19:
	ldr	x12, [x10]
	ldr	x10, [x8, #8]
Lloh20:
	adrp	x13, _TEAM_FREE@GOTPAGE
Lloh21:
	ldr	x13, [x13, _TEAM_FREE@GOTPAGEOFF]
Lloh22:
	ldr	x13, [x13]
	cmp	x11, x12
	ccmp	x10, x13, #0, eq
	b.ne	LBB0_6
; %bb.5:
	ldr	w11, [x8, #20]
	add	w11, w11, #1
	str	w11, [x8, #20]
LBB0_6:
	cmp	x10, x9
	b.eq	LBB0_8
; %bb.7:
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_SetTeam
	ldr	x8, [x19]
LBB0_8:
Lloh25:
	adrp	x9, _SPECTATOR_FOLLOW@GOTPAGE
Lloh26:
	ldr	x9, [x9, _SPECTATOR_FOLLOW@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	str	x9, [x8]
	str	w20, [x8, #16]
	b	LBB0_12
LBB0_9:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh28:
	adrp	x9, _SPECTATOR_FOLLOW@GOTPAGE
Lloh29:
	ldr	x9, [x9, _SPECTATOR_FOLLOW@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.10:
	ldur	x8, [x29, #-40]
Lloh31:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh32:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.11:
	mov	x0, x19
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_StopFollowing
LBB0_12:
	ldur	x8, [x29, #-40]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TOKEN_CHARS,4,2            ; @MAX_TOKEN_CHARS
	.comm	_SPECTATOR_FOLLOW,8,3           ; @SPECTATOR_FOLLOW
	.comm	_level,8,3                      ; @level
	.comm	_TEAM_SPECTATOR,8,3             ; @TEAM_SPECTATOR
	.comm	_g_gametype,8,3                 ; @g_gametype
	.comm	_GT_TOURNAMENT,8,3              ; @GT_TOURNAMENT
	.comm	_TEAM_FREE,8,3                  ; @TEAM_FREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"spectator"

.subsections_via_symbols
