	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menus_HandleOOBClick           ## -- Begin function Menus_HandleOOBClick
	.p2align	4, 0x90
_Menus_HandleOOBClick:                  ## @Menus_HandleOOBClick
	.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
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rdi, %r13
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_4
## %bb.2:
	movq	_WINDOW_OOB_CLICK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_Menu_RunCloseScript
	movq	_WINDOW_HASFOCUS@GOTPCREL(%rip), %rax
	movq	_WINDOW_VISIBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	notl	%ecx
	andl	%ecx, (%r13)
LBB0_4:
	movq	_menuCount@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.5:
	xorl	%ebx, %ebx
	movq	_Menus@GOTPCREL(%rip), %r12
	movq	_DC@GOTPCREL(%rip), %r14
	xorl	%r15d, %r15d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	movq	_menuCount@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	callq	_Menu_OverActiveItem
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r13, %rdi
	callq	_Menu_RunCloseScript
	movq	_WINDOW_VISIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_WINDOW_HASFOCUS@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	notl	%eax
	andl	%eax, (%r13)
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	callq	_Menus_Activate
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movq	(%r14), %rax
	movl	8(%rax), %edx
	movl	12(%rax), %esi
	callq	_Menu_HandleMouseMove
	movq	(%r12), %rdi
	addq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_Menu_HandleKey
	jmp	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	callq	_Display_VisibleMenuCount
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movq	_DC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	_qfalse@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	callq	*%rax
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Display_CloseCinematics        ## TAILCALL
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WINDOW_OOB_CLICK,4,2           ## @WINDOW_OOB_CLICK
	.comm	_WINDOW_HASFOCUS,4,2            ## @WINDOW_HASFOCUS
	.comm	_WINDOW_VISIBLE,4,2             ## @WINDOW_VISIBLE
	.comm	_menuCount,4,2                  ## @menuCount
	.comm	_Menus,8,3                      ## @Menus
	.comm	_DC,8,3                         ## @DC
	.comm	_qfalse,4,2                     ## @qfalse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Menus_HandleOOBClick           ; -- Begin function Menus_HandleOOBClick
	.p2align	2
_Menus_HandleOOBClick:                  ; @Menus_HandleOOBClick
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_13
; %bb.1:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x22, _WINDOW_HASFOCUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _WINDOW_HASFOCUS@GOTPAGEOFF]
Lloh2:
	adrp	x23, _WINDOW_VISIBLE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _WINDOW_VISIBLE@GOTPAGEOFF]
	cbz	w2, LBB0_4
; %bb.2:
	ldr	w8, [x21]
Lloh4:
	adrp	x9, _WINDOW_OOB_CLICK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _WINDOW_OOB_CLICK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_Menu_RunCloseScript
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
LBB0_4:
Lloh7:
	adrp	x24, _menuCount@GOTPAGE
Lloh8:
	ldr	x24, [x24, _menuCount@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:
	mov	x25, #0
	mov	x26, #0
Lloh9:
	adrp	x27, _Menus@GOTPAGE
Lloh10:
	ldr	x27, [x27, _Menus@GOTPAGEOFF]
Lloh11:
	adrp	x28, _DC@GOTPAGE
Lloh12:
	ldr	x28, [x28, _DC@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x24]
	add	x25, x25, #4
	cmp	x26, x8
	b.ge	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	add	x0, x8, x25
	ldr	x8, [x28]
	ldp	w2, w1, [x8, #8]
	bl	_Menu_OverActiveItem
	cbz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x21
	bl	_Menu_RunCloseScript
	ldr	w8, [x22]
	ldr	w9, [x23]
	orr	w8, w9, w8
	ldr	w9, [x21]
	bic	w8, w9, w8
	str	w8, [x21]
	ldr	x8, [x27]
	add	x0, x8, x25
	bl	_Menus_Activate
	ldr	x8, [x27]
	add	x0, x8, x25
	ldr	x8, [x28]
	ldp	w2, w1, [x8, #8]
	bl	_Menu_HandleMouseMove
	ldr	x8, [x27]
	add	x0, x8, x25
	mov	x1, x20
	mov	x2, x19
	bl	_Menu_HandleKey
	b	LBB0_6
LBB0_9:
	bl	_Display_VisibleMenuCount
	cbnz	x0, LBB0_12
; %bb.10:
Lloh13:
	adrp	x8, _DC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DC@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.11:
Lloh16:
	adrp	x9, _qfalse@GOTPAGE
Lloh17:
	ldr	x9, [x9, _qfalse@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x9]
	blr	x8
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_Display_CloseCinematics
LBB0_13:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	.cfi_same_value w25
	.cfi_same_value w26
	.cfi_same_value w27
	.cfi_same_value w28
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_WINDOW_OOB_CLICK,4,2           ; @WINDOW_OOB_CLICK
	.comm	_WINDOW_HASFOCUS,4,2            ; @WINDOW_HASFOCUS
	.comm	_WINDOW_VISIBLE,4,2             ; @WINDOW_VISIBLE
	.comm	_menuCount,4,2                  ; @menuCount
	.comm	_Menus,8,3                      ; @Menus
	.comm	_DC,8,3                         ; @DC
	.comm	_qfalse,4,2                     ; @qfalse
.subsections_via_symbols
