	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_SelectRandomBotInfo          ## -- Begin function G_SelectRandomBotInfo
	.p2align	4, 0x90
_G_SelectRandomBotInfo:                 ## @G_SelectRandomBotInfo
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_BOTS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	cmpl	$-1, %ebx
	je	LBB0_1
## %bb.2:
	movl	$-1, %r14d
	xorl	%edi, %edi
	movl	$-1, %esi
	callq	_G_CountBotPlayersByName
	movq	_g_numBots@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovll	%r14d, %ebx
	jmp	LBB0_3
LBB0_1:
	movq	_g_numBots@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$-1, %ebx
LBB0_3:
	movl	$-1, %eax
	testl	%ecx, %ecx
	jle	LBB0_12
## %bb.4:
	movq	_MAX_CLIENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_g_botInfos@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	movq	_g_numBots@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_10
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r15,4), %edi
	leaq	L_.str(%rip), %rsi
	callq	_Info_ValueForKey
	cmpb	$0, (%rax)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movl	(%rax,%r15,4), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_Info_ValueForKey
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %rdi
	movl	%ebx, %esi
	callq	_G_CountBotPlayersByName
	cmpl	%r12d, %eax
	movl	$0, %ecx
	cmovll	%ecx, %r14d
	cmovll	%eax, %r12d
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r14d, %rax
	incl	%r14d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, (%rcx,%rax,4)
	movq	_MAX_BOTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_9
LBB0_10:
	testl	%r14d, %r14d
	movl	$-1, %eax
	jle	LBB0_12
## %bb.11:
	xorl	%eax, %eax
	callq	_random
	decl	%r14d
	imull	%eax, %r14d
	movslq	%r14d, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %eax
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_BOTS,4,2                   ## @MAX_BOTS
	.comm	_g_numBots,4,2                  ## @g_numBots
	.comm	_MAX_CLIENTS,4,2                ## @MAX_CLIENTS
	.comm	_g_botInfos,8,3                 ## @g_botInfos
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"funname"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_SelectRandomBotInfo          ; -- Begin function G_SelectRandomBotInfo
	.p2align	2
_G_SelectRandomBotInfo:                 ; @G_SelectRandomBotInfo
	.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, #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, #-88]
Lloh3:
	adrp	x23, _MAX_BOTS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _MAX_BOTS@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
Lloh7:
	adrp	x24, _g_numBots@GOTPAGE
Lloh8:
	ldr	x24, [x24, _g_numBots@GOTPAGEOFF]
	cmn	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x0, #0
	mov	w1, #-1
	bl	_G_CountBotPlayersByName
	ldr	w8, [x24]
	cmp	w0, w8
	csinv	w19, w19, wzr, ge
	cmp	w8, #1
	b.ge	LBB0_3
	b	LBB0_11
LBB0_2:
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_11
LBB0_3:
	mov	x25, #0
	mov	w26, #0
Lloh9:
	adrp	x8, _MAX_CLIENTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAX_CLIENTS@GOTPAGEOFF]
Lloh11:
	ldr	w27, [x8]
Lloh12:
	adrp	x28, _g_botInfos@GOTPAGE
Lloh13:
	ldr	x28, [x28, _g_botInfos@GOTPAGEOFF]
Lloh14:
	adrp	x20, l_.str@PAGE
Lloh15:
	add	x20, x20, l_.str@PAGEOFF
Lloh16:
	adrp	x21, l_.str.1@PAGE
Lloh17:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x24]
	cmp	x25, x8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	ldr	w0, [x8, x25, lsl #2]
	mov	x1, x20
	bl	_Info_ValueForKey
	ldrb	w8, [x0]
	cbnz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x28]
	ldr	w0, [x8, x25, lsl #2]
	mov	x1, x21
	bl	_Info_ValueForKey
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x19
	bl	_G_CountBotPlayersByName
	cmp	w0, w27
	csel	w26, wzr, w26, lt
	csel	w27, w0, w27, lt
	b.gt	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w25, [x22, w26, sxtw #2]
	add	w8, w26, #1
	ldr	w9, [x23]
	mov	x26, x8
	cmp	w8, w9
	b.ne	LBB0_4
LBB0_9:
	subs	w19, w26, #1
	b.lt	LBB0_11
; %bb.10:
	bl	_random
	mul	w8, w0, w19
	ldr	w0, [x22, w8, sxtw #2]
	b	LBB0_12
LBB0_11:
	mov	w0, #-1
LBB0_12:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_BOTS,4,2                   ; @MAX_BOTS
	.comm	_g_numBots,4,2                  ; @g_numBots
	.comm	_MAX_CLIENTS,4,2                ; @MAX_CLIENTS
	.comm	_g_botInfos,8,3                 ; @g_botInfos
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"funname"

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

.subsections_via_symbols
