	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UI_BotSelectMenu_BotEvent
_UI_BotSelectMenu_BotEvent:             ## @UI_BotSelectMenu_BotEvent
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_QM_ACTIVATED@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_5
## %bb.1:
	movq	_PLAYERGRID_ROWS@GOTPCREL(%rip), %r9
	movq	_PLAYERGRID_COLS@GOTPCREL(%rip), %r10
	movl	(%r10), %edx
	imull	(%r9), %edx
	movq	_botSelectInfo@GOTPCREL(%rip), %r8
	movq	8(%r8), %rcx
	movq	16(%r8), %rax
	testl	%edx, %edx
	jle	LBB0_4
## %bb.2:
	xorl	%edx, %edx
	movq	_QMF_HIGHLIGHT@GOTPCREL(%rip), %r11
	movq	_QMF_PULSEIFFOCUS@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r11), %ebx
	notl	%ebx
	andl	%ebx, (%rax,%rdx,4)
	movl	(%r14), %ebx
	orl	%ebx, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%r9), %rbx
	movslq	(%r10), %rsi
	imulq	%rbx, %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_3
LBB0_4:
	movslq	(%rdi), %rdx
	movq	_QMF_HIGHLIGHT@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%esi, (%rax,%rdx,4)
	movq	_QMF_PULSEIFFOCUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rcx,%rdx,4)
	movq	_MAX_MODELSPERPAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	4(%r8), %eax
	addl	%edx, %eax
	movl	%eax, (%r8)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QM_ACTIVATED,4,2               ## @QM_ACTIVATED
	.comm	_PLAYERGRID_ROWS,4,2            ## @PLAYERGRID_ROWS
	.comm	_PLAYERGRID_COLS,4,2            ## @PLAYERGRID_COLS
	.comm	_QMF_HIGHLIGHT,4,2              ## @QMF_HIGHLIGHT
	.comm	_botSelectInfo,24,3             ## @botSelectInfo
	.comm	_QMF_PULSEIFFOCUS,4,2           ## @QMF_PULSEIFFOCUS
	.comm	_MAX_MODELSPERPAGE,4,2          ## @MAX_MODELSPERPAGE
	.no_dead_strip	_UI_BotSelectMenu_BotEvent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_BotSelectMenu_BotEvent
_UI_BotSelectMenu_BotEvent:             ; @UI_BotSelectMenu_BotEvent
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _QM_ACTIVATED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QM_ACTIVATED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_5
; %bb.1:
Lloh3:
	adrp	x11, _PLAYERGRID_ROWS@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PLAYERGRID_ROWS@GOTPAGEOFF]
Lloh5:
	adrp	x12, _PLAYERGRID_COLS@GOTPAGE
Lloh6:
	ldr	x12, [x12, _PLAYERGRID_COLS@GOTPAGEOFF]
	ldr	w8, [x11]
	ldr	w9, [x12]
	mul	w15, w9, w8
Lloh7:
	adrp	x8, _botSelectInfo@GOTPAGE
Lloh8:
	ldr	x8, [x8, _botSelectInfo@GOTPAGEOFF]
	ldp	x9, x10, [x8, #8]
Lloh9:
	adrp	x14, _QMF_HIGHLIGHT@GOTPAGE
Lloh10:
	ldr	x14, [x14, _QMF_HIGHLIGHT@GOTPAGEOFF]
Lloh11:
	adrp	x13, _QMF_PULSEIFFOCUS@GOTPAGE
Lloh12:
	ldr	x13, [x13, _QMF_PULSEIFFOCUS@GOTPAGEOFF]
	cmp	w15, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x15, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w16, [x14]
	lsl	x17, x15, #2
	ldr	w1, [x10, x17]
	bic	w16, w1, w16
	str	w16, [x10, x17]
	ldr	w16, [x13]
	ldr	w1, [x9, x17]
	orr	w16, w1, w16
	str	w16, [x9, x17]
	add	x15, x15, #1
	ldrsw	x16, [x11]
	ldrsw	x17, [x12]
	mul	x16, x17, x16
	cmp	x15, x16
	b.lt	LBB0_3
LBB0_4:
	ldrsw	x11, [x0]
	ldr	w12, [x14]
	lsl	x14, x11, #2
	ldr	w15, [x10, x14]
	orr	w12, w15, w12
	str	w12, [x10, x14]
	ldr	w10, [x13]
	ldr	w12, [x9, x14]
	bic	w10, w12, w10
	str	w10, [x9, x14]
	ldr	w9, [x8, #4]
Lloh13:
	adrp	x10, _MAX_MODELSPERPAGE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MAX_MODELSPERPAGE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	madd	w9, w10, w9, w11
	str	w9, [x8]
LBB0_5:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_QM_ACTIVATED,4,2               ; @QM_ACTIVATED
	.comm	_PLAYERGRID_ROWS,4,2            ; @PLAYERGRID_ROWS
	.comm	_PLAYERGRID_COLS,4,2            ; @PLAYERGRID_COLS
	.comm	_QMF_HIGHLIGHT,4,2              ; @QMF_HIGHLIGHT
	.comm	_botSelectInfo,24,3             ; @botSelectInfo
	.comm	_QMF_PULSEIFFOCUS,4,2           ; @QMF_PULSEIFFOCUS
	.comm	_MAX_MODELSPERPAGE,4,2          ; @MAX_MODELSPERPAGE
	.no_dead_strip	_UI_BotSelectMenu_BotEvent
.subsections_via_symbols
