	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_setting_find_enum         ## -- Begin function menu_setting_find_enum
	.p2align	4, 0x90
_menu_setting_find_enum:                ## @menu_setting_find_enum
	.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	$0, -40(%rbp)
	testl	%edi, %edi
	je	LBB0_5
## %bb.1:
	movl	%edi, %ebx
	movq	_MENU_ENTRIES_CTL_SETTINGS_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-40(%rbp), %rsi
	callq	_menu_entries_ctl
	movq	-40(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.2:
	callq	_setting_get_type
	movq	_ST_NONE@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	jne	LBB0_7
LBB0_5:
	xorl	%r14d, %r14d
LBB0_6:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ST_GROUP@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_9 Depth=1
	addq	$24, %rdi
	movq	%rdi, -40(%rbp)
	callq	_setting_get_type
	cmpq	(%r15), %rax
	je	LBB0_6
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-40(%rbp), %rdi
	cmpl	%ebx, (%rdi)
	jne	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	callq	_setting_get_type
	movq	-40(%rbp), %rdi
	cmpq	(%r12), %rax
	jg	LBB0_8
## %bb.11:
	movq	8(%rdi), %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_5
## %bb.13:
	movq	-40(%rbp), %r14
	movq	16(%r14), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.14:
	movq	%r14, %rdi
	callq	*%rcx
	movq	-40(%rbp), %r14
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_ENTRIES_CTL_SETTINGS_GET,4,2 ## @MENU_ENTRIES_CTL_SETTINGS_GET
	.comm	_ST_NONE,8,3                    ## @ST_NONE
	.comm	_ST_GROUP,8,3                   ## @ST_GROUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_menu_setting_find_enum         ; -- Begin function menu_setting_find_enum
	.p2align	2
_menu_setting_find_enum:                ; @menu_setting_find_enum
	.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
	str	xzr, [sp, #8]
	cbz	w0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _MENU_ENTRIES_CTL_SETTINGS_GET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_ENTRIES_CTL_SETTINGS_GET@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_menu_entries_ctl
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_4
; %bb.2:
	bl	_setting_get_type
Lloh3:
	adrp	x20, _ST_NONE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _ST_NONE@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x0, x8
	b.ne	LBB0_5
LBB0_3:
	mov	x0, #0
LBB0_4:
	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
LBB0_5:
Lloh5:
	adrp	x21, _ST_GROUP@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ST_GROUP@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, x0, #24
	str	x0, [sp, #8]
	bl	_setting_get_type
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	bl	_setting_get_type
	mov	x8, x0
	ldr	x9, [x21]
	ldr	x0, [sp, #8]
	cmp	x8, x9
	b.gt	LBB0_6
; %bb.9:
	ldr	x0, [x0, #8]
	bl	_string_is_empty
	cbnz	x0, LBB0_3
; %bb.10:
	ldr	x0, [sp, #8]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.11:
	blr	x8
	ldr	x0, [sp, #8]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_ENTRIES_CTL_SETTINGS_GET,4,2 ; @MENU_ENTRIES_CTL_SETTINGS_GET
	.comm	_ST_NONE,8,3                    ; @ST_NONE
	.comm	_ST_GROUP,8,3                   ; @ST_GROUP
.subsections_via_symbols
