	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_BotSelectMenu_Default
_UI_BotSelectMenu_Default:              ## @UI_BotSelectMenu_Default
	.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	_botSelectInfo@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	xorl	%r13d, %r13d
	movl	$0, %ebx
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_UI_GetBotInfoByNumber
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_Info_ValueForKey
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jl	LBB0_2
LBB0_5:
	cmpl	%eax, %ebx
	jne	LBB0_6
	jmp	LBB0_12
LBB0_3:
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	je	LBB0_12
LBB0_6:
	xorl	%r13d, %r13d
	movl	$0, %ecx
	testl	%eax, %eax
	jle	LBB0_11
## %bb.7:
	movq	8(%r12), %rdx
	movl	%eax, %esi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ebx, (%rdx,%rcx,4)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	incq	%rcx
	cmpq	%rcx, %rsi
	jne	LBB0_8
## %bb.10:
	xorl	%r13d, %r13d
	jmp	LBB0_12
LBB0_11:
	cmpl	%eax, %ecx
	cmovnel	%ecx, %r13d
LBB0_12:
	movl	%r13d, 4(%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_botSelectInfo,16,3             ## @botSelectInfo
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"name"

	.no_dead_strip	_UI_BotSelectMenu_Default
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_BotSelectMenu_Default
_UI_BotSelectMenu_Default:              ; @UI_BotSelectMenu_Default
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x22, _botSelectInfo@GOTPAGE
Lloh1:
	ldr	x22, [x22, _botSelectInfo@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, x0
	mov	w19, #0
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_UI_GetBotInfoByNumber
	mov	x1, x21
	bl	_Info_ValueForKey
	mov	x1, x0
	mov	x0, x20
	bl	_Q_stricmp
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w19, w19, #1
	ldr	w8, [x22]
	cmp	w19, w8
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
	cmp	w19, w8
	b.ne	LBB0_7
	b	LBB0_11
LBB0_6:
	ldr	w8, [x22]
	cmp	w19, w8
	b.eq	LBB0_11
LBB0_7:
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x9, #0
	ldr	x10, [x22, #8]
	mov	w11, w8
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x9, lsl #2]
	cmp	w12, w19
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x9, x9, #1
	cmp	x11, x9
	b.ne	LBB0_9
LBB0_11:
	mov	w8, #0
	b	LBB0_14
LBB0_12:
	mov	w9, #0
LBB0_13:
	cmp	w9, w8
	csel	w8, wzr, w9, eq
LBB0_14:
	str	w8, [x22, #4]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_botSelectInfo,16,3             ; @botSelectInfo
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"name"

	.no_dead_strip	_UI_BotSelectMenu_Default
.subsections_via_symbols
