	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_SPLevelMenu_SetBots
_UI_SPLevelMenu_SetBots:                ## @UI_SPLevelMenu_SetBots
	.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
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_INFO_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_levelMenuInfo@GOTPCREL(%rip), %r14
	movl	$0, (%r14)
	movq	_selectedArenaSet@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_currentSet@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jg	LBB0_17
## %bb.1:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_Info_ValueForKey
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	%ebx, %edx
	callq	_Q_strncpyz
	movb	(%r12), %al
	testb	%al, %al
	je	LBB0_17
## %bb.2:
	cmpl	$6, (%r14)
	jg	LBB0_17
## %bb.3:
	leaq	L_.str.2(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
                                        ##     Child Loop BB0_8 Depth 2
	movq	%r12, %rbx
	cmpb	$32, %al
	jne	LBB0_6
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	1(%rbx), %eax
	incq	%rbx
	cmpb	$32, %al
	je	LBB0_19
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	1(%rbx), %r12
	testb	%al, %al
	je	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$32, %al
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movzbl	(%r12), %eax
	incq	%r12
	testb	%al, %al
	jne	LBB0_8
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	decq	%r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movb	$0, -1(%r12)
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_UI_GetBotInfoByName
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r13
	movq	%rax, %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Info_ValueForKey
	movq	%rax, %rdi
	callq	_PlayerIconHandle
	movq	24(%r14), %rcx
	movslq	(%r14), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	16(%r14), %rax
	movq	(%rax,%rdx,8), %rbx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_Info_ValueForKey
	movq	%rbx, %rdi
	movq	%rax, %rsi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r14), %rax
	movslq	(%r14), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	16(%r14), %rax
	movq	(%rax,%rcx,8), %rdi
	movq	%rbx, %rsi
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$10, %edx
	callq	_Q_strncpyz
	movq	16(%r14), %rax
	movslq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_Q_CleanStr
	movl	(%r14), %ecx
	leal	1(%rcx), %eax
	movl	%eax, (%r14)
	movb	(%r12), %al
	testb	%al, %al
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$6, %ecx
	jl	LBB0_4
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.18:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_INFO_STRING,4,2            ## @MAX_INFO_STRING
	.comm	_levelMenuInfo,32,3             ## @levelMenuInfo
	.comm	_selectedArenaSet,8,3           ## @selectedArenaSet
	.comm	_currentSet,8,3                 ## @currentSet
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bots"

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

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

	.no_dead_strip	_UI_SPLevelMenu_SetBots
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_SPLevelMenu_SetBots
_UI_SPLevelMenu_SetBots:                ; @UI_SPLevelMenu_SetBots
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _MAX_INFO_STRING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_INFO_STRING@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	mov	x9, x20
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x20, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh8:
	adrp	x24, _levelMenuInfo@GOTPAGE
Lloh9:
	ldr	x24, [x24, _levelMenuInfo@GOTPAGEOFF]
Lloh10:
	adrp	x8, _selectedArenaSet@GOTPAGE
Lloh11:
	ldr	x8, [x8, _selectedArenaSet@GOTPAGEOFF]
	str	wzr, [x24]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _currentSet@GOTPAGE
Lloh14:
	ldr	x9, [x9, _currentSet@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.gt	LBB0_15
; %bb.1:
	ldr	x0, [x24, #8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Info_ValueForKey
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_Q_strncpyz
	ldrb	w8, [x19]
	ldr	w9, [x24]
	cmp	w8, #0
	ccmp	w9, #6, #0, ne
	b.gt	LBB0_15
; %bb.2:
Lloh18:
	adrp	x20, l_.str.1@PAGE
Lloh19:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh20:
	adrp	x21, l_.str.2@PAGE
Lloh21:
	add	x21, x21, l_.str.2@PAGEOFF
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_6 Depth 2
	mov	x22, x19
	cmp	w8, #32
	b.ne	LBB0_5
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x22, #1]!
	cmp	w8, #32
	b.eq	LBB0_4
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x19, x22, #1
	cbz	w8, LBB0_8
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	cmp	w8, #32
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldrb	w8, [x19], #1
	cbnz	w8, LBB0_6
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x19, x19, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	sturb	wzr, [x19, #-1]
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_UI_GetBotInfoByName
	cbz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x23, x0
	mov	x1, x20
	bl	_Info_ValueForKey
	bl	_PlayerIconHandle
	ldrsw	x8, [x24]
	lsl	x8, x8, #3
	ldp	x10, x9, [x24, #16]
	str	x0, [x9, x8]
	ldr	x22, [x10, x8]
	mov	x0, x23
	mov	x1, x21
	bl	_Info_ValueForKey
	mov	x1, x0
	mov	x0, x22
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrsw	x8, [x24]
	lsl	x8, x8, #3
	ldp	x10, x9, [x24, #16]
	str	xzr, [x9, x8]
	ldr	x0, [x10, x8]
	mov	x1, x22
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w2, #10
	bl	_Q_strncpyz
	ldr	x8, [x24, #16]
	ldrsw	x9, [x24]
	ldr	x0, [x8, x9, lsl #3]
	bl	_Q_CleanStr
	ldr	w9, [x24]
	add	w8, w9, #1
	str	w8, [x24]
	ldrb	w8, [x19]
	cbz	w8, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	cmp	w9, #6
	b.lt	LBB0_3
LBB0_15:
	ldur	x8, [x29, #-56]
Lloh22:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh23:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_INFO_STRING,4,2            ; @MAX_INFO_STRING
	.comm	_levelMenuInfo,32,3             ; @levelMenuInfo
	.comm	_selectedArenaSet,8,3           ; @selectedArenaSet
	.comm	_currentSet,8,3                 ; @currentSet
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bots"

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

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

	.no_dead_strip	_UI_SPLevelMenu_SetBots
.subsections_via_symbols
