	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GUI_DeleteMenu                 ## -- Begin function GUI_DeleteMenu
	.p2align	4, 0x90
_GUI_DeleteMenu:                        ## @GUI_DeleteMenu
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpl	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	48(%r14), %rdi
	addq	%r15, %rdi
	callq	_gxTextureClose
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movq	40(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:
	callq	_gxTextureClose
LBB0_5:
	movq	32(%r14), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_gxTextureClose
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	callq	_gxTextureClose
LBB0_7:
	movq	40(%r14), %rax
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_gxTextureClose
LBB0_9:
	movq	32(%r14), %rax
	movq	8(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.10:
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_gxTextureClose
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	callq	_gxTextureClose
LBB0_11:
	movl	4(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.16:
	xorl	%ebx, %ebx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_12
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r14), %r15
	movq	(%r15,%rbx,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%rcx), %rdi
	callq	_gxTextureClose
	movq	(%r15,%rbx,8), %rax
	movq	(%rax), %rdi
	addq	$4, %rdi
	callq	_gxTextureClose
	movl	4(%r14), %eax
	jmp	LBB0_19
LBB0_12:
	cmpl	$0, 8(%r14)
	jle	LBB0_15
## %bb.13:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rdi
	addq	%r15, %rdi
	callq	_gxTextureClose
	incq	%rbx
	movslq	8(%r14), %rax
	addq	$4, %r15
	cmpq	%rax, %rbx
	jl	LBB0_14
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GUI_DeleteMenu                 ; -- Begin function GUI_DeleteMenu
	.p2align	2
_GUI_DeleteMenu:                        ; @GUI_DeleteMenu
	.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, #48]
	add	x0, x8, x20
	bl	_gxTextureClose
	add	x21, x21, #1
	ldrsw	x8, [x19]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	x8, [x19, #40]
	ldr	x0, [x8]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_gxTextureClose
LBB0_5:
	ldr	x8, [x19, #32]
	ldr	x20, [x8]
	cbz	x20, LBB0_7
; %bb.6:
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_gxTextureClose
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x0, x8, #4
	bl	_gxTextureClose
LBB0_7:
	ldr	x8, [x19, #40]
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_gxTextureClose
LBB0_9:
	ldr	x8, [x19, #32]
	ldr	x20, [x8, #8]
	cbz	x20, LBB0_11
; %bb.10:
	ldr	x8, [x20]
	ldr	x0, [x8]
	bl	_gxTextureClose
	ldr	x8, [x20]
	ldr	x8, [x8]
	add	x0, x8, #4
	bl	_gxTextureClose
LBB0_11:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	b.le	LBB0_16
; %bb.12:
	mov	x20, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x21, [x19, #24]
	ldr	x9, [x21, x20, lsl #3]
	cbz	x9, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x0, [x9]
	bl	_gxTextureClose
	ldr	x8, [x21, x20, lsl #3]
	ldr	x8, [x8]
	add	x0, x8, #4
	bl	_gxTextureClose
	ldr	w8, [x19, #4]
	b	LBB0_13
LBB0_16:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_19
; %bb.17:
	mov	x20, #0
	mov	x21, #0
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x0, x8, x20
	bl	_gxTextureClose
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	add	x20, x20, #4
	cmp	x21, x8
	b.lt	LBB0_18
LBB0_19:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
