	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_ParseTeamInfo
_CG_ParseTeamInfo:                      ## @CG_ParseTeamInfo
	.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
	movl	$1, %edi
	callq	_CG_Argv
	movl	%eax, %edi
	callq	_atoi
	movq	_numSortedTeamPlayers@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movq	_TEAM_MAXOVERLAY@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jl	LBB0_7
## %bb.2:
	testl	%eax, %eax
	je	LBB0_10
## %bb.3:
	movl	$7, %r14d
	xorl	%r12d, %r12d
	movq	_cgs@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	-5(%r14), %edi
	callq	_CG_Argv
	movl	%eax, %edi
	callq	_atoi
	movq	%rax, %rbx
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jle	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_sortedTeamPlayers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, (%rax,%r12,4)
	leal	-4(%r14), %edi
	callq	_CG_Argv
	movl	%eax, %edi
	callq	_atoi
	movq	(%r13), %rcx
	movslq	%ebx, %rdx
	shlq	$3, %rdx
	leaq	(%rdx,%rdx,4), %rbx
	movq	%rax, 32(%rcx,%rbx)
	leal	-3(%r14), %edi
	callq	_CG_Argv
	movl	%eax, %edi
	callq	_atoi
	movq	(%r13), %rcx
	movq	%rax, 24(%rcx,%rbx)
	leal	-2(%r14), %edi
	callq	_CG_Argv
	movl	%eax, %edi
	callq	_atoi
	movq	(%r13), %rcx
	movq	%rax, 16(%rcx,%rbx)
	leal	-1(%r14), %edi
	callq	_CG_Argv
	movl	%eax, %edi
	callq	_atoi
	movq	(%r13), %rcx
	movq	%rax, 8(%rcx,%rbx)
	movl	%r14d, %edi
	callq	_CG_Argv
	movl	%eax, %edi
	callq	_atoi
	movq	(%r13), %rcx
	movq	%rax, (%rcx,%rbx)
	incq	%r12
	movslq	(%r15), %rax
	addl	$6, %r14d
	cmpq	%rax, %r12
	jl	LBB0_4
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	jmp	LBB0_8
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_Error                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_numSortedTeamPlayers,4,2       ## @numSortedTeamPlayers
	.comm	_TEAM_MAXOVERLAY,4,2            ## @TEAM_MAXOVERLAY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CG_ParseTeamInfo: numSortedTeamPlayers out of range (%d)"

	.comm	_MAX_CLIENTS,4,2                ## @MAX_CLIENTS
L_.str.1:                               ## @.str.1
	.asciz	"CG_ParseTeamInfo: bad client number: %d"

	.comm	_sortedTeamPlayers,8,3          ## @sortedTeamPlayers
	.comm	_cgs,8,3                        ## @cgs
	.no_dead_strip	_CG_ParseTeamInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_ParseTeamInfo
_CG_ParseTeamInfo:                      ; @CG_ParseTeamInfo
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	w0, #1
	bl	_CG_Argv
	bl	_atoi
	mov	x1, x0
Lloh0:
	adrp	x21, _numSortedTeamPlayers@GOTPAGE
Lloh1:
	ldr	x21, [x21, _numSortedTeamPlayers@GOTPAGEOFF]
	str	w1, [x21]
	tbnz	w1, #31, LBB0_8
; %bb.1:
Lloh2:
	adrp	x8, _TEAM_MAXOVERLAY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TEAM_MAXOVERLAY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w1
	b.lt	LBB0_8
; %bb.2:
	cbz	w1, LBB0_7
; %bb.3:
	mov	x22, #0
	mov	w19, #7
Lloh5:
	adrp	x23, _MAX_CLIENTS@GOTPAGE
Lloh6:
	ldr	x23, [x23, _MAX_CLIENTS@GOTPAGEOFF]
Lloh7:
	adrp	x24, _sortedTeamPlayers@GOTPAGE
Lloh8:
	ldr	x24, [x24, _sortedTeamPlayers@GOTPAGEOFF]
Lloh9:
	adrp	x25, _cgs@GOTPAGE
Lloh10:
	ldr	x25, [x25, _cgs@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w0, w19, #5
	bl	_CG_Argv
	bl	_atoi
	mov	x20, x0
	tbnz	w20, #31, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	cmp	w8, w20
	b.le	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	str	w20, [x8, x22, lsl #2]
	sub	w0, w19, #4
	bl	_CG_Argv
	bl	_atoi
	ldr	x8, [x25]
	sxtw	x9, w20
	add	x9, x9, w20, sxtw #2
	lsl	x20, x9, #3
	add	x8, x8, x20
	str	x0, [x8, #32]
	sub	w0, w19, #3
	bl	_CG_Argv
	bl	_atoi
	ldr	x8, [x25]
	add	x8, x8, x20
	str	x0, [x8, #24]
	sub	w0, w19, #2
	bl	_CG_Argv
	bl	_atoi
	ldr	x8, [x25]
	add	x8, x8, x20
	str	x0, [x8, #16]
	sub	w0, w19, #1
	bl	_CG_Argv
	bl	_atoi
	ldr	x8, [x25]
	add	x8, x8, x20
	str	x0, [x8, #8]
	mov	x0, x19
	bl	_CG_Argv
	bl	_atoi
	ldr	x8, [x25]
	str	x0, [x8, x20]
	add	x22, x22, #1
	ldrsw	x8, [x21]
	add	w19, w19, #6
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_7:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	b	LBB0_10
LBB0_9:
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
LBB0_10:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_CG_Error
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_numSortedTeamPlayers,4,2       ; @numSortedTeamPlayers
	.comm	_TEAM_MAXOVERLAY,4,2            ; @TEAM_MAXOVERLAY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CG_ParseTeamInfo: numSortedTeamPlayers out of range (%d)"

	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
l_.str.1:                               ; @.str.1
	.asciz	"CG_ParseTeamInfo: bad client number: %d"

	.comm	_sortedTeamPlayers,8,3          ; @sortedTeamPlayers
	.comm	_cgs,8,3                        ; @cgs
	.no_dead_strip	_CG_ParseTeamInfo
.subsections_via_symbols
