	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_BotSelectMenu_BuildList
_UI_BotSelectMenu_BuildList:            ## @UI_BotSelectMenu_BuildList
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_botSelectInfo@GOTPCREL(%rip), %rbx
	movq	$0, 16(%rbx)
	xorl	%eax, %eax
	callq	_UI_GetNumBots
	movl	%eax, %esi
	movl	%eax, (%rbx)
	movq	_MAX_MODELSPERPAGE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	cmpl	$1, %edx
	sbbl	$-1, %eax
	movl	%eax, 4(%rbx)
	movq	8(%rbx), %rdi
	testl	%esi, %esi
	jle	LBB0_3
## %bb.1:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, (%rdi,%rax,4)
	incq	%rax
	movslq	(%rbx), %rsi
	cmpq	%rsi, %rax
	jl	LBB0_2
LBB0_3:
	movq	_UI_BotSelectMenu_SortCompare@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
                                        ## kill: def $esi killed $esi killed $rsi
	movl	$4, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_qsort                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_botSelectInfo,24,3             ## @botSelectInfo
	.comm	_MAX_MODELSPERPAGE,4,2          ## @MAX_MODELSPERPAGE
	.comm	_UI_BotSelectMenu_SortCompare,4,2 ## @UI_BotSelectMenu_SortCompare
	.no_dead_strip	_UI_BotSelectMenu_BuildList
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_BotSelectMenu_BuildList
_UI_BotSelectMenu_BuildList:            ; @UI_BotSelectMenu_BuildList
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _botSelectInfo@GOTPAGE
Lloh1:
	ldr	x19, [x19, _botSelectInfo@GOTPAGEOFF]
	str	xzr, [x19, #16]
	bl	_UI_GetNumBots
	mov	x1, x0
Lloh2:
	adrp	x8, _MAX_MODELSPERPAGE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAX_MODELSPERPAGE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sdiv	w9, w0, w8
	msub	w8, w9, w8, w0
	cmp	w8, #0
	cinc	w8, w9, ne
	stp	w0, w8, [x19]
	ldr	x0, [x19, #8]
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x8, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w8, [x0, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x1, [x19]
	cmp	x8, x1
	b.lt	LBB0_2
LBB0_3:
Lloh5:
	adrp	x8, _UI_BotSelectMenu_SortCompare@GOTPAGE
Lloh6:
	ldr	x8, [x8, _UI_BotSelectMenu_SortCompare@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	w2, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_qsort
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_botSelectInfo,24,3             ; @botSelectInfo
	.comm	_MAX_MODELSPERPAGE,4,2          ; @MAX_MODELSPERPAGE
	.comm	_UI_BotSelectMenu_SortCompare,4,2 ; @UI_BotSelectMenu_SortCompare
	.no_dead_strip	_UI_BotSelectMenu_BuildList
.subsections_via_symbols
