	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_GetSelectedPlayer           ## -- Begin function CG_GetSelectedPlayer
	.p2align	4, 0x90
_CG_GetSelectedPlayer:                  ## @CG_GetSelectedPlayer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_cg_currentSelectedPlayer@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	testq	%rax, %rax
	js	LBB0_3
## %bb.1:
	movq	_numSortedTeamPlayers@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jge	LBB0_3
## %bb.2:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_3:
	movq	$0, (%rcx)
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_currentSelectedPlayer,8,3   ## @cg_currentSelectedPlayer
	.comm	_numSortedTeamPlayers,8,3       ## @numSortedTeamPlayers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_GetSelectedPlayer           ; -- Begin function CG_GetSelectedPlayer
	.p2align	2
_CG_GetSelectedPlayer:                  ; @CG_GetSelectedPlayer
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _cg_currentSelectedPlayer@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg_currentSelectedPlayer@GOTPAGEOFF]
	ldr	x0, [x8]
	tbnz	x0, #63, LBB0_3
; %bb.1:
Lloh2:
	adrp	x9, _numSortedTeamPlayers@GOTPAGE
Lloh3:
	ldr	x9, [x9, _numSortedTeamPlayers@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x0, x9
	b.ge	LBB0_3
; %bb.2:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_3:
	mov	x0, #0
	str	xzr, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_currentSelectedPlayer,8,3   ; @cg_currentSelectedPlayer
	.comm	_numSortedTeamPlayers,8,3       ; @numSortedTeamPlayers
.subsections_via_symbols
