	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GUI_InitMenu                   ## -- Begin function GUI_InitMenu
	.p2align	4, 0x90
_GUI_InitMenu:                          ## @GUI_InitMenu
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	cmpl	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	movl	$8, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	56(%r15), %r12
	movq	-8(%r12,%rbx), %rdi
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movq	%rax, (%r12,%rbx)
	incq	%r14
	movslq	(%r15), %rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jl	LBB0_2
LBB0_3:
	movq	48(%r15), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movq	%rax, 8(%rbx)
LBB0_5:
	movq	40(%r15), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.6:
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_7
## %bb.8:
	cmpq	$0, 8(%rcx)
	je	LBB0_9
LBB0_10:
	movq	_BUTTON_VISIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	notl	%edx
	movl	8(%rbx), %ecx
	andl	%ecx, %edx
	movl	%edx, 8(%rbx)
	cmpq	$0, 8(%r15)
	je	LBB0_12
## %bb.11:
	orl	%eax, %ecx
	movl	%ecx, 8(%rbx)
LBB0_12:
	movq	48(%r15), %rax
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_14
## %bb.13:
	movq	(%rbx), %rdi
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movq	%rax, 8(%rbx)
LBB0_14:
	movq	40(%r15), %rax
	movq	8(%rax), %r14
	testq	%r14, %r14
	je	LBB0_21
## %bb.15:
	movq	(%r14), %rax
	movq	8(%rax), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_16
## %bb.17:
	cmpq	$0, 8(%rcx)
	je	LBB0_18
LBB0_19:
	movq	_BUTTON_VISIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %edx
	notl	%edx
	movl	8(%r14), %ecx
	andl	%ecx, %edx
	movl	%edx, 8(%r14)
	movslq	16(%r15), %rdx
	addq	8(%r15), %rdx
	movslq	20(%r15), %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_21
## %bb.20:
	orl	%eax, %ecx
	movl	%ecx, 8(%r14)
LBB0_21:
	cmpl	$0, 16(%r15)
	jle	LBB0_22
## %bb.28:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_29
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_29 Depth=1
	incq	%r14
	movslq	16(%r15), %rax
	addq	$16, %rbx
	cmpq	%rax, %r14
	jge	LBB0_22
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r15), %r12
	movq	(%r12,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_34
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=1
	movq	8(%rax), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_29 Depth=1
	cmpq	$0, 8(%rcx)
	jne	LBB0_34
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	(%rax), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movq	(%r12,%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	(%r12,%rbx), %rax
	movq	8(%rax), %rcx
	cmpq	$0, 8(%rcx)
	jne	LBB0_34
LBB0_33:                                ##   in Loop: Header=BB0_29 Depth=1
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movq	(%r12,%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_34
LBB0_22:
	movl	20(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_27
## %bb.23:
	movl	$8, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r14
	jge	LBB0_27
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r15), %r12
	movq	-8(%r12,%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movq	%rax, (%r12,%rbx)
	movl	20(%r15), %eax
	jmp	LBB0_26
LBB0_27:
	movq	_message_box@GOTPCREL(%rip), %rax
	movq	%r15, (%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%rax), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	(%rbx), %rax
	movq	8(%rax), %rcx
	cmpq	$0, 8(%rcx)
	jne	LBB0_10
LBB0_9:
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movq	(%rbx), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_10
LBB0_16:
	movq	(%rax), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movq	(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx)
	movq	(%r14), %rax
	movq	8(%rax), %rcx
	cmpq	$0, 8(%rcx)
	jne	LBB0_19
LBB0_18:
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	xorl	%esi, %esi
	callq	_gxTextureOpenPNG
	movq	(%r14), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, 8(%rcx)
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_BUTTON_VISIBLE,4,2             ## @BUTTON_VISIBLE
	.comm	_message_box,8,3                ## @message_box
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GUI_InitMenu                   ; -- Begin function GUI_InitMenu
	.p2align	2
_GUI_InitMenu:                          ; @GUI_InitMenu
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #56]
	add	x22, x8, x20
	ldr	x0, [x22]
	mov	w1, #0
	bl	_gxTextureOpenPNG
	str	x0, [x22, #8]
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #16
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19, #48]
	ldr	x20, [x8]
	cbz	x20, LBB0_5
; %bb.4:
	ldr	x0, [x20]
	mov	w1, #0
	bl	_gxTextureOpenPNG
	str	x0, [x20, #8]
LBB0_5:
	ldr	x8, [x19, #40]
	ldr	x21, [x8]
Lloh0:
	adrp	x20, _BUTTON_VISIBLE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BUTTON_VISIBLE@GOTPAGEOFF]
	cbz	x21, LBB0_10
; %bb.6:
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	ldr	x10, [x9]
	cbz	x10, LBB0_31
; %bb.7:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_32
LBB0_8:
	ldr	w8, [x20]
	ldr	w9, [x21, #8]
	bic	w10, w9, w8
	str	w10, [x21, #8]
	ldr	x10, [x19, #8]
	cbz	x10, LBB0_10
; %bb.9:
	orr	w8, w9, w8
	str	w8, [x21, #8]
LBB0_10:
	ldr	x8, [x19, #48]
	ldr	x21, [x8, #8]
	cbz	x21, LBB0_12
; %bb.11:
	ldr	x0, [x21]
	mov	w1, #0
	bl	_gxTextureOpenPNG
	str	x0, [x21, #8]
LBB0_12:
	ldr	x8, [x19, #40]
	ldr	x21, [x8, #8]
	cbz	x21, LBB0_17
; %bb.13:
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	ldr	x10, [x9]
	cbz	x10, LBB0_33
; %bb.14:
	ldr	x9, [x9, #8]
	cbz	x9, LBB0_34
LBB0_15:
	ldr	w8, [x20]
	ldr	w9, [x21, #8]
	bic	w10, w9, w8
	str	w10, [x21, #8]
	ldr	x10, [x19, #8]
	ldpsw	x11, x12, [x19, #16]
	add	x10, x10, x11
	cmp	x10, x12
	b.ge	LBB0_17
; %bb.16:
	orr	w8, w9, w8
	str	w8, [x21, #8]
LBB0_17:
	ldr	w8, [x19, #16]
	cmp	w8, #0
	b.le	LBB0_25
; %bb.18:
	mov	x20, #0
	mov	x21, #0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x21, x21, #1
	ldrsw	x8, [x19, #16]
	add	x20, x20, #16
	cmp	x21, x8
	b.ge	LBB0_25
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19, #32]
	ldr	x8, [x22, x20]
	cbz	x8, LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x8, #8]
	ldr	x10, [x9]
	cbz	x10, LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_19
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x8]
	ldr	x0, [x8]
	mov	w1, #0
	bl	_gxTextureOpenPNG
	ldr	x8, [x22, x20]
	ldr	x8, [x8, #8]
	str	x0, [x8]
	ldr	x8, [x22, x20]
	ldr	x9, [x8, #8]
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_19
LBB0_24:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	mov	w1, #0
	bl	_gxTextureOpenPNG
	ldr	x8, [x22, x20]
	ldr	x8, [x8, #8]
	str	x0, [x8, #8]
	b	LBB0_19
LBB0_25:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.lt	LBB0_30
; %bb.26:
	mov	x20, #0
	mov	x21, #0
	b	LBB0_28
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=1
	add	x21, x21, #1
	add	x20, x20, #16
	cmp	x21, w8, sxtw
	b.ge	LBB0_30
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x19, #24]
	ldr	x0, [x22, x20]
	cbz	x0, LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	w1, #0
	bl	_gxTextureOpenPNG
	add	x8, x22, x20
	str	x0, [x8, #8]
	ldr	w8, [x19, #20]
	b	LBB0_27
LBB0_30:
Lloh2:
	adrp	x8, _message_box@GOTPAGE
Lloh3:
	ldr	x8, [x8, _message_box@GOTPAGEOFF]
Lloh4:
	str	x19, [x8]
	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
LBB0_31:
	ldr	x8, [x8]
	ldr	x0, [x8]
	mov	w1, #0
	bl	_gxTextureOpenPNG
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	str	x0, [x8]
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_8
LBB0_32:
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	mov	w1, #0
	bl	_gxTextureOpenPNG
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	str	x0, [x8, #8]
	b	LBB0_8
LBB0_33:
	ldr	x8, [x8]
	ldr	x0, [x8]
	mov	w1, #0
	bl	_gxTextureOpenPNG
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	str	x0, [x8]
	ldr	x8, [x21]
	ldr	x9, [x8, #8]
	ldr	x9, [x9, #8]
	cbnz	x9, LBB0_15
LBB0_34:
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	mov	w1, #0
	bl	_gxTextureOpenPNG
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	str	x0, [x8, #8]
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_BUTTON_VISIBLE,4,2             ; @BUTTON_VISIBLE
	.comm	_message_box,8,3                ; @message_box
.subsections_via_symbols
