	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_ParseMenu                   ## -- Begin function UI_ParseMenu
	.p2align	4, 0x90
_UI_ParseMenu:                          ## @UI_ParseMenu
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_Com_Printf
	movq	%rbx, %rdi
	callq	_trap_PC_LoadSource
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	%eax, %ebx
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	%ebx, %edi
	movq	%r14, %rsi
	callq	_trap_PC_ReadToken
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	leaq	L_.str.1(%rip), %r14
	leaq	-40(%rbp), %r15
	leaq	L_.str.2(%rip), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_Asset_Parse
	testq	%rax, %rax
	je	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_trap_PC_ReadToken
	testl	%eax, %eax
	je	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rdi
	cmpb	$125, (%rdi)
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-40(%rbp), %rdi
	movq	%r12, %rsi
	callq	_Q_stricmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_Menu_New
	jmp	LBB0_8
LBB0_9:
	movl	%ebx, %edi
	callq	_trap_PC_FreeSource
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Parsing menu file: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"assetGlobalDef"

L_.str.2:                               ## @.str.2
	.asciz	"menudef"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_ParseMenu                   ; -- Begin function UI_ParseMenu
	.p2align	2
_UI_ParseMenu:                          ; @UI_ParseMenu
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_Com_Printf
	mov	x0, x19
	bl	_trap_PC_LoadSource
	cbz	w0, LBB0_10
; %bb.1:
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x1, sp, #8
	mov	x0, x19
	bl	_trap_PC_ReadToken
	cbz	w0, LBB0_9
; %bb.2:
Lloh2:
	adrp	x20, l_.str.1@PAGE
Lloh3:
	add	x20, x20, l_.str.1@PAGEOFF
Lloh4:
	adrp	x21, l_.str.2@PAGE
Lloh5:
	add	x21, x21, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_Asset_Parse
	cbz	x0, LBB0_9
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	add	x1, sp, #8
	mov	x0, x19
	bl	_trap_PC_ReadToken
	cbz	w0, LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	ldrb	w8, [x0]
	cmp	w8, #125
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x20
	bl	_Q_stricmp
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x0, [sp, #8]
	mov	x1, x21
	bl	_Q_stricmp
	cbnz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_Menu_New
	b	LBB0_4
LBB0_9:
	mov	x0, x19
	bl	_trap_PC_FreeSource
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Parsing menu file: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"assetGlobalDef"

l_.str.2:                               ; @.str.2
	.asciz	"menudef"

.subsections_via_symbols
