	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_BotSelectMenu_SelectEvent
_UI_BotSelectMenu_SelectEvent:          ## @UI_BotSelectMenu_SelectEvent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_5
## %bb.1:
	xorl	%eax, %eax
	callq	_UI_PopMenu
	movq	_qtrue@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_s_serveroptions@GOTPCREL(%rip), %rcx
	movl	%eax, 4(%rcx)
	movl	(%rcx), %edi
	movq	_botSelectInfo@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	8(%rcx), %rcx
	movq	_MAX_MODELSPERPAGE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_4
LBB0_5:
	popq	%rbp
	retq
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:
	movl	(%rcx,%rdx,4), %esi
	movl	$16, %edx
	popq	%rbp
	jmp	_Q_strncpyz                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_ACTIVATED,4,2               ## @QM_ACTIVATED
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_s_serveroptions,8,2            ## @s_serveroptions
	.comm	_botSelectInfo,16,3             ## @botSelectInfo
	.comm	_MAX_MODELSPERPAGE,8,3          ## @MAX_MODELSPERPAGE
	.no_dead_strip	_UI_BotSelectMenu_SelectEvent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_BotSelectMenu_SelectEvent
_UI_BotSelectMenu_SelectEvent:          ; @UI_BotSelectMenu_SelectEvent
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	bl	_UI_PopMenu
Lloh3:
	adrp	x8, _qtrue@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _s_serveroptions@GOTPAGE
Lloh7:
	ldr	x9, [x9, _s_serveroptions@GOTPAGEOFF]
	str	w8, [x9, #4]
	ldr	w0, [x9]
Lloh8:
	adrp	x8, _botSelectInfo@GOTPAGE
Lloh9:
	ldr	x8, [x8, _botSelectInfo@GOTPAGEOFF]
	ldp	x8, x9, [x8]
Lloh10:
	adrp	x10, _MAX_MODELSPERPAGE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MAX_MODELSPERPAGE@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	udiv	x11, x8, x10
	msub	x8, x11, x10, x8
	ldr	w1, [x9, x8, lsl #2]
	mov	w2, #16
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_Q_strncpyz
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_s_serveroptions,8,2            ; @s_serveroptions
	.comm	_botSelectInfo,16,3             ; @botSelectInfo
	.comm	_MAX_MODELSPERPAGE,8,3          ; @MAX_MODELSPERPAGE
	.no_dead_strip	_UI_BotSelectMenu_SelectEvent
.subsections_via_symbols
