	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotSortTeamMatesByBaseTravelTime ## -- Begin function BotSortTeamMatesByBaseTravelTime
	.p2align	4, 0x90
_BotSortTeamMatesByBaseTravelTime:      ## @BotSortTeamMatesByBaseTravelTime
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_INFO_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_gametype@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_GT_CTF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r14d, %r14d
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rcx
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.1:
	movq	%r15, %rdi
	callq	_BotTeam
	movq	_TEAM_RED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	_ctf_redflag@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	_ctf_blueflag@GOTPCREL(%rip), %rax
LBB0_5:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_level@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_27
## %bb.6:
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_10 Depth=1
	xorl	%edx, %edx
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	movl	%edx, %ecx
	shlq	$2, %rcx
	movl	%eax, (%r12,%rcx)
	movl	%r15d, (%r13,%rcx)
	incl	%r14d
	cmpl	-60(%rbp), %r14d                ## 4-byte Folded Reload
	jge	LBB0_27
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incq	%r15
	movq	_level@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_27
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_17 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
	movq	_CS_PLAYERS@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	%r15, %rdi
	movq	%rbx, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_trap_GetConfigstring
	movq	%rbx, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_9
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_atoi
	movq	_TEAM_SPECTATOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	callq	_BotSameTeam
	testq	%rax, %rax
	je	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -80(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_9
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r15d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_BotClientTravelTimeToGoal
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	leal	-1(%r14), %edx
	incq	%rdx
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_17:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	(%r12,%rcx,4), %eax
	jl	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=2
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_17
	jmp	LBB0_8
LBB0_19:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%ecx, %r14d
	jle	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=1
	movslq	%r14d, %rsi
	movl	%r14d, %edi
	subl	%ecx, %edi
	movq	%rsi, %rdx
	testb	$1, %dil
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	leaq	-1(%rsi), %rdx
	movl	-4(%r12,%rsi,4), %edi
	movl	%edi, (%r12,%rsi,4)
	movl	-4(%r13,%rsi,4), %edi
	movl	%edi, (%r13,%rsi,4)
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	decq	%rsi
	cmpq	%rcx, %rsi
	je	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-4(%r12,%rdx,4), %esi
	movl	%esi, (%r12,%rdx,4)
	movl	-4(%r13,%rdx,4), %esi
	movl	%esi, (%r13,%rdx,4)
	movl	-8(%r12,%rdx,4), %esi
	movl	%esi, -4(%r12,%rdx,4)
	movl	-8(%r13,%rdx,4), %esi
	movl	%esi, -4(%r13,%rdx,4)
	leaq	-2(%rdx), %rsi
	movq	%rsi, %rdx
	cmpq	%rcx, %rsi
	jg	LBB0_24
LBB0_26:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	%rcx, %rdx
	jmp	LBB0_8
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_INFO_STRING,4,2            ## @MAX_INFO_STRING
	.comm	_MAX_CLIENTS,4,2                ## @MAX_CLIENTS
	.comm	_gametype,8,3                   ## @gametype
	.comm	_GT_CTF,8,3                     ## @GT_CTF
	.comm	_TEAM_RED,8,3                   ## @TEAM_RED
	.comm	_ctf_redflag,4,2                ## @ctf_redflag
	.comm	_ctf_blueflag,4,2               ## @ctf_blueflag
	.comm	_level,4,2                      ## @level
	.comm	_CS_PLAYERS,8,3                 ## @CS_PLAYERS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"n"

L_.str.1:                               ## @.str.1
	.asciz	"t"

	.comm	_TEAM_SPECTATOR,8,3             ## @TEAM_SPECTATOR
	.comm	_GT_1FCTF,8,3                   ## @GT_1FCTF
	.comm	_blueobelisk,4,2                ## @blueobelisk
	.comm	_redobelisk,4,2                 ## @redobelisk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotSortTeamMatesByBaseTravelTime ; -- Begin function BotSortTeamMatesByBaseTravelTime
	.p2align	2
_BotSortTeamMatesByBaseTravelTime:      ; @BotSortTeamMatesByBaseTravelTime
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	stur	w2, [x29, #-116]                ; 4-byte Folded Spill
	stur	x1, [x29, #-112]                ; 8-byte Folded Spill
	mov	x24, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_INFO_STRING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_INFO_STRING@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x9, x22
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x22, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
Lloh8:
	adrp	x8, _MAX_CLIENTS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MAX_CLIENTS@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh11:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh12:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh13:
	adrp	x8, _gametype@GOTPAGE
Lloh14:
	ldr	x8, [x8, _gametype@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x8]
Lloh16:
	adrp	x8, _GT_CTF@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GT_CTF@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	stp	x8, x9, [x29, #-104]            ; 16-byte Folded Spill
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_BotTeam
Lloh19:
	adrp	x8, _TEAM_RED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TEAM_RED@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _ctf_blueflag@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ctf_blueflag@GOTPAGEOFF]
Lloh24:
	adrp	x10, _ctf_redflag@GOTPAGE
Lloh25:
	ldr	x10, [x10, _ctf_redflag@GOTPAGEOFF]
	cmp	x0, x8
	csel	x8, x10, x9, eq
	stur	x8, [x29, #-128]                ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:
	stur	xzr, [x29, #-128]               ; 8-byte Folded Spill
LBB0_3:
Lloh26:
	adrp	x21, _level@GOTPAGE
Lloh27:
	ldr	x21, [x21, _level@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.4:
	mov	x26, #0
	mov	w25, #0
Lloh28:
	adrp	x20, _CS_PLAYERS@GOTPAGE
Lloh29:
	ldr	x20, [x20, _CS_PLAYERS@GOTPAGEOFF]
Lloh30:
	adrp	x27, l_.str@PAGE
Lloh31:
	add	x27, x27, l_.str@PAGEOFF
Lloh32:
	adrp	x28, l_.str.1@PAGE
Lloh33:
	add	x28, x28, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x9, #0
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ubfiz	x8, x9, #2, #32
	str	w0, [x19, x8]
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	str	w26, [x9, x8]
	add	w25, w25, #1
	ldur	w8, [x29, #-116]                ; 4-byte Folded Reload
	cmp	w25, w8
	b.ge	LBB0_22
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x21]
	cmp	x26, x8
	b.ge	LBB0_22
LBB0_8:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_15 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	ldr	x8, [x20]
	add	x0, x8, x26
	mov	x1, x23
	mov	x2, x22
	bl	_trap_GetConfigstring
	mov	x0, x23
	bl	_strlen
	cbz	w0, LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	mov	x1, x27
	bl	_Info_ValueForKey
	bl	_strlen
	cbz	w0, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x23
	mov	x1, x28
	bl	_Info_ValueForKey
	bl	_atoi
Lloh34:
	adrp	x8, _TEAM_SPECTATOR@GOTPAGE
Lloh35:
	ldr	x8, [x8, _TEAM_SPECTATOR@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	mov	x1, x26
	bl	_BotSameTeam
	cbz	x0, LBB0_7
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=1
	ldp	x9, x8, [x29, #-104]            ; 16-byte Folded Reload
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x26
	ldur	x1, [x29, #-128]                ; 8-byte Folded Reload
	bl	_BotClientTravelTimeToGoal
	subs	w9, w25, #1
	b.lt	LBB0_5
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x8, #0
	add	x9, x9, #1
	mov	w10, w25
LBB0_15:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x19, x8, lsl #2]
	cmp	w0, w11
	b.lt	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=2
	add	x8, x8, #1
	cmp	x10, x8
	b.ne	LBB0_15
	b	LBB0_6
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	cmp	w25, w8
	b.le	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	sxtw	x9, w25
	sbfiz	x10, x25, #2, #32
	add	x13, x19, x10
	ldur	x11, [x29, #-112]               ; 8-byte Folded Reload
	add	x12, x11, x10
	mov	x10, x13
	mov	x11, x12
LBB0_19:                                ;   Parent Loop BB0_8 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x9, x9, #1
	ldr	w14, [x10, #-4]!
	str	w14, [x13]
	ldr	w13, [x11, #-4]!
	str	w13, [x12]
	mov	x12, x11
	mov	x13, x10
	cmp	x9, x8
	b.gt	LBB0_19
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x9, x8
	b	LBB0_6
LBB0_21:
	mov	w25, #0
LBB0_22:
	ldur	x8, [x29, #-88]
Lloh37:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh38:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	mov	x0, x25
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_INFO_STRING,4,2            ; @MAX_INFO_STRING
	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
	.comm	_gametype,8,3                   ; @gametype
	.comm	_GT_CTF,8,3                     ; @GT_CTF
	.comm	_TEAM_RED,8,3                   ; @TEAM_RED
	.comm	_ctf_redflag,4,2                ; @ctf_redflag
	.comm	_ctf_blueflag,4,2               ; @ctf_blueflag
	.comm	_level,4,2                      ; @level
	.comm	_CS_PLAYERS,8,3                 ; @CS_PLAYERS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"n"

l_.str.1:                               ; @.str.1
	.asciz	"t"

	.comm	_TEAM_SPECTATOR,8,3             ; @TEAM_SPECTATOR
	.comm	_GT_1FCTF,8,3                   ; @GT_1FCTF
	.comm	_blueobelisk,4,2                ; @blueobelisk
	.comm	_redobelisk,4,2                 ; @redobelisk
.subsections_via_symbols
