	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GUI_RunMenu                    ## -- Begin function GUI_RunMenu
	.p2align	4, 0x90
_GUI_RunMenu:                           ## @GUI_RunMenu
	.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	%rdi, %rbx
	xorl	%eax, %eax
	movq	_BUTTON_VISIBLE@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	notl	%edx
	andl	%edx, (%rcx)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jne	LBB0_2
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_GUI_DrawMenu
	movq	%rbx, %rdi
	callq	_GUI_UpdateMenu
	movq	32(%rbx), %rcx
	movq	(%rcx), %rdx
	testq	%rdx, %rdx
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%rbx)
	movl	(%r14), %esi
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	orl	%esi, (%rdx)
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	notl	%esi
	andl	%esi, (%rdx)
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rsi
	addq	(%rbx), %rsi
	movl	(%r14), %edx
	cmpq	16(%rbx), %rsi
	jge	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	orl	%edx, (%rcx)
	jmp	LBB0_1
LBB0_2:
	cmpl	$1, %eax
	je	LBB0_13
## %bb.3:
	cmpl	$2, %eax
	jne	LBB0_14
## %bb.4:
	movl	24(%rbx), %ecx
	addl	(%rbx), %ecx
	movl	$-2, %eax
	subl	%ecx, %eax
	jmp	LBB0_15
LBB0_13:
	movl	24(%rbx), %eax
	addl	(%rbx), %eax
	jmp	LBB0_15
LBB0_14:
	movl	$-1, %eax
LBB0_15:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUTTON_VISIBLE,4,2             ## @BUTTON_VISIBLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GUI_RunMenu                    ; -- Begin function GUI_RunMenu
	.p2align	2
_GUI_RunMenu:                           ; @GUI_RunMenu
	.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
	mov	x19, x0
	mov	w0, #0
Lloh0:
	adrp	x20, _BUTTON_VISIBLE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BUTTON_VISIBLE@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w10, [x8]
	bic	w9, w10, w9
	str	w9, [x8]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w0, LBB0_11
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_GUI_DrawMenu
	mov	x0, x19
	bl	_GUI_UpdateMenu
	ldr	x8, [x19, #32]
	ldr	x9, [x8]
	cbz	x9, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x11, [x19]
	ldr	w10, [x20]
	cmp	x11, #1
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w11, [x9]
	orr	w10, w11, w10
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w11, [x9]
	bic	w10, w11, w10
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w10, [x9]
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	x10, x11, [x19]
	ldr	x12, [x19, #16]
	ldr	w9, [x20]
	add	x10, x11, x10
	cmp	x10, x12
	b.ge	LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldr	w10, [x8]
	orr	w9, w10, w9
	str	w9, [x8]
	b	LBB0_2
LBB0_11:
	cmp	w0, #1
	b.eq	LBB0_14
; %bb.12:
	cmp	w0, #2
	b.ne	LBB0_15
; %bb.13:
	ldr	w8, [x19]
	ldr	w9, [x19, #24]
	mov	w10, #-2
	add	w8, w9, w8
	sub	w0, w10, w8
	b	LBB0_16
LBB0_14:
	ldr	w8, [x19]
	ldr	w9, [x19, #24]
	add	w0, w9, w8
	b	LBB0_16
LBB0_15:
	mov	w0, #-1
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_BUTTON_VISIBLE,4,2             ; @BUTTON_VISIBLE
.subsections_via_symbols
