	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddTournamentPlayer            ## -- Begin function AddTournamentPlayer
	.p2align	4, 0x90
_AddTournamentPlayer:                   ## @AddTournamentPlayer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_level@GOTPCREL(%rip), %r8
	cmpl	$1, (%r8)
	jg	LBB0_13
## %bb.1:
	cmpq	$0, 24(%r8)
	jne	LBB0_13
## %bb.2:
	movl	4(%r8), %ecx
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.3:
	movq	16(%r8), %rsi
	movq	_CON_CONNECTED@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_SPECTATOR_SCOREBOARD@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r9
	xorl	%r10d, %r10d
	jmp	LBB0_4
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rsi, %r10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	addq	$40, %rsi
	decq	%rcx
	je	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdi, 32(%rsi)
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rax, (%rsi)
	jne	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%r9, 8(%rsi)
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 16(%rsi)
	js	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%r10, %r10
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%rsi), %rdx
	cmpq	24(%r10), %rdx
	jg	LBB0_10
	jmp	LBB0_11
LBB0_12:
	testq	%r10, %r10
	je	LBB0_13
## %bb.14:
	movl	$-1, 8(%r8)
	movq	_g_entities@GOTPCREL(%rip), %rax
	subq	16(%r8), %r10
	sarq	$3, %r10
	movabsq	$3689348814741910324, %rdi      ## imm = 0x3333333333333334
	imulq	%r10, %rdi
	addq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	popq	%rbp
	jmp	_SetTeam                        ## TAILCALL
LBB0_13:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_level,32,3                     ## @level
	.comm	_CON_CONNECTED,8,3              ## @CON_CONNECTED
	.comm	_TEAM_SPECTATOR,8,3             ## @TEAM_SPECTATOR
	.comm	_SPECTATOR_SCOREBOARD,8,3       ## @SPECTATOR_SCOREBOARD
	.comm	_g_entities,8,3                 ## @g_entities
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"f"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AddTournamentPlayer            ; -- Begin function AddTournamentPlayer
	.p2align	2
_AddTournamentPlayer:                   ; @AddTournamentPlayer
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _level@GOTPAGE
Lloh1:
	ldr	x8, [x8, _level@GOTPAGEOFF]
	ldr	w9, [x8]
	ldr	x10, [x8, #24]
	cmp	w9, #1
	ccmp	x10, #0, #0, le
	b.ne	LBB0_13
; %bb.1:
	ldr	w10, [x8, #4]
	cmp	w10, #1
	b.lt	LBB0_13
; %bb.2:
	mov	x9, #0
	ldr	x11, [x8, #16]
Lloh2:
	adrp	x12, _CON_CONNECTED@GOTPAGE
Lloh3:
	ldr	x12, [x12, _CON_CONNECTED@GOTPAGEOFF]
Lloh4:
	ldr	x12, [x12]
Lloh5:
	adrp	x13, _TEAM_SPECTATOR@GOTPAGE
Lloh6:
	ldr	x13, [x13, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh7:
	ldr	x13, [x13]
Lloh8:
	adrp	x14, _SPECTATOR_SCOREBOARD@GOTPAGE
Lloh9:
	ldr	x14, [x14, _SPECTATOR_SCOREBOARD@GOTPAGEOFF]
Lloh10:
	ldr	x14, [x14]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, x11
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x11, x11, #40
	subs	x10, x10, #1
	b.eq	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x15, [x11, #32]
	cmp	x15, x12
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x15, [x11]
	cmp	x15, x13
	b.ne	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x15, [x11, #8]
	cmp	x15, x14
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x15, [x11, #16]
	tbnz	x15, #63, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	x9, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	x15, [x11, #24]
	ldr	x16, [x9, #24]
	cmp	x15, x16
	b.gt	LBB0_3
	b	LBB0_4
LBB0_11:
	cbz	x9, LBB0_13
; %bb.12:
	mov	w10, #-1
	str	w10, [x8, #8]
Lloh11:
	adrp	x10, _g_entities@GOTPAGE
Lloh12:
	ldr	x10, [x10, _g_entities@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	ldr	x8, [x8, #16]
	sub	x8, x9, x8
	asr	x8, x8, #3
	mov	x9, #3689348814741910323
	movk	x9, #13108
	madd	x0, x8, x9, x10
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	b	_SetTeam
LBB0_13:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_level,32,3                     ; @level
	.comm	_CON_CONNECTED,8,3              ; @CON_CONNECTED
	.comm	_TEAM_SPECTATOR,8,3             ; @TEAM_SPECTATOR
	.comm	_SPECTATOR_SCOREBOARD,8,3       ; @SPECTATOR_SCOREBOARD
	.comm	_g_entities,8,3                 ; @g_entities
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"f"

.subsections_via_symbols
