	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function action_get_title_dropdown_item
_action_get_title_dropdown_item:        ## @action_get_title_dropdown_item
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r13
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_string_is_empty
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_2
LBB0_1:
	movl	%ecx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_string_split
	testq	%rax, %rax
	movl	$0, %ecx
	je	LBB0_1
## %bb.4:
	movq	%rax, %r12
	cmpq	$0, (%rax)
	jle	LBB0_24
## %bb.5:
	xorl	%ebx, %ebx
	movq	$0, -56(%rbp)
	movq	_RARCH_CTL_CORE_OPTIONS_LIST_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_rarch_ctl
	cmpq	$0, -56(%rbp)
	je	LBB0_25
## %bb.6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r15
	movq	8(%r12), %rax
	movl	(%r12), %ecx
	decl	%ecx
	movq	(%rax,%rcx,8), %rdi
	callq	_string_to_unsigned
	movl	%eax, %r14d
	cmpq	$1, (%r15)
	adcl	$-1, %r14d
	movq	-56(%rbp), %rdi
	cmpl	$0, (%rdi)
	je	LBB0_25
## %bb.7:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	incl	%r13d
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incl	%ebx
	movq	-56(%rbp), %rdi
	cmpl	(%rdi), %ebx
	jae	LBB0_24
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	callq	_core_option_manager_get_visible
	testq	%rax, %rax
	je	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%r14d, %r13d
	jne	LBB0_8
## %bb.12:
	movq	-56(%rbp), %rdi
	movl	%ebx, %esi
	callq	_core_option_manager_get_desc
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_24
## %bb.13:
	movq	%rax, %r14
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_25
## %bb.14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_sanitize_to_string
	movl	$1, %ebx
	jmp	LBB0_25
LBB0_15:
	movq	%rbx, %rdi
	callq	_string_to_unsigned
	addl	$2, %eax
	movq	_MSG_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jbe	LBB0_20
## %bb.16:
	movq	_MSG_LAST@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jae	LBB0_20
## %bb.17:
	movq	_MENU_ENUM_LABEL_VALUE_THUMBNAILS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_22
## %bb.18:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_action_get_title_thumbnails    ## TAILCALL
LBB0_24:
	xorl	%ebx, %ebx
LBB0_25:
	movq	%r12, %rdi
	callq	_string_list_free
	movl	%ebx, %ecx
	jmp	LBB0_1
LBB0_22:
	movq	_MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_26
## %bb.23:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_action_get_title_left_thumbnails ## TAILCALL
LBB0_26:
	movl	%eax, %edi
	callq	_msg_hash_to_str
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_20
## %bb.27:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	movl	$0, %ecx
	jne	LBB0_1
## %bb.28:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	callq	_sanitize_to_string
	movl	$1, %ecx
	jmp	LBB0_1
LBB0_20:
	xorl	%ecx, %ecx
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"core_option_"

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

	.comm	_RARCH_CTL_CORE_OPTIONS_LIST_GET,4,2 ## @RARCH_CTL_CORE_OPTIONS_LIST_GET
	.comm	_MSG_UNKNOWN,4,2                ## @MSG_UNKNOWN
	.comm	_MSG_LAST,4,2                   ## @MSG_LAST
	.comm	_MENU_ENUM_LABEL_VALUE_THUMBNAILS,4,2 ## @MENU_ENUM_LABEL_VALUE_THUMBNAILS
	.comm	_MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS,4,2 ## @MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS
	.no_dead_strip	_action_get_title_dropdown_item
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function action_get_title_dropdown_item
_action_get_title_dropdown_item:        ; @action_get_title_dropdown_item
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	bl	_string_is_empty
	cbz	x0, LBB0_3
LBB0_1:
	mov	w19, #0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_3:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strstr
	cbz	x0, LBB0_17
; %bb.4:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_string_split
	cbz	x0, LBB0_1
; %bb.5:
	mov	x21, x0
	ldr	x8, [x0]
	cmp	x8, #1
	b.lt	LBB0_15
; %bb.6:
	str	xzr, [sp, #8]
Lloh4:
	adrp	x8, _RARCH_CTL_CORE_OPTIONS_LIST_GET@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RARCH_CTL_CORE_OPTIONS_LIST_GET@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_rarch_ctl
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_15
; %bb.7:
	bl	_config_get_ptr
	mov	x22, x0
	ldr	x8, [x21, #8]
	ldr	w9, [x21]
	sub	w9, w9, #1
	ldr	x0, [x8, w9, uxtw #3]
	bl	_string_to_unsigned
	mov	x8, x0
	ldr	x9, [x22]
	cmp	x9, #0
	cset	w9, ne
	ldr	x0, [sp, #8]
	ldr	w10, [x0]
	cbz	w10, LBB0_15
; %bb.8:
	mov	w22, #0
	mov	w23, #0
	sub	w24, w8, w9
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	add	w23, w23, #1
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	w22, w22, #1
	ldr	x0, [sp, #8]
	ldr	w8, [x0]
	cmp	w22, w8
	b.hs	LBB0_15
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x22
	bl	_core_option_manager_get_visible
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	cmp	w23, w24
	b.ne	LBB0_9
; %bb.13:
	ldr	x0, [sp, #8]
	mov	x1, x22
	bl	_core_option_manager_get_desc
	cbz	x20, LBB0_15
; %bb.14:
	mov	x22, x0
	bl	_string_is_empty
	cbz	x0, LBB0_25
LBB0_15:
	mov	w19, #0
LBB0_16:
	mov	x0, x21
	bl	_string_list_free
	b	LBB0_2
LBB0_17:
	mov	x0, x22
	bl	_string_to_unsigned
	add	w0, w0, #2
Lloh7:
	adrp	x8, _MSG_UNKNOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MSG_UNKNOWN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _MSG_LAST@GOTPAGE
Lloh11:
	ldr	x9, [x9, _MSG_LAST@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #2, hi
	b.hs	LBB0_1
; %bb.18:
Lloh13:
	adrp	x8, _MENU_ENUM_LABEL_VALUE_THUMBNAILS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MENU_ENUM_LABEL_VALUE_THUMBNAILS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_20
; %bb.19:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_action_get_title_thumbnails
LBB0_20:
Lloh16:
	adrp	x8, _MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_22
; %bb.21:
	mov	x0, x22
	mov	x1, x23
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_action_get_title_left_thumbnails
LBB0_22:
	bl	_msg_hash_to_str
	cbz	x20, LBB0_1
; %bb.23:
	mov	x21, x0
	bl	_string_is_empty
	cbnz	x0, LBB0_1
; %bb.24:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_sanitize_to_string
	mov	w19, #1
	b	LBB0_2
LBB0_25:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_sanitize_to_string
	mov	w19, #1
	b	LBB0_16
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"core_option_"

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

	.comm	_RARCH_CTL_CORE_OPTIONS_LIST_GET,4,2 ; @RARCH_CTL_CORE_OPTIONS_LIST_GET
	.comm	_MSG_UNKNOWN,4,2                ; @MSG_UNKNOWN
	.comm	_MSG_LAST,4,2                   ; @MSG_LAST
	.comm	_MENU_ENUM_LABEL_VALUE_THUMBNAILS,4,2 ; @MENU_ENUM_LABEL_VALUE_THUMBNAILS
	.comm	_MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS,4,2 ; @MENU_ENUM_LABEL_VALUE_LEFT_THUMBNAILS
	.no_dead_strip	_action_get_title_dropdown_item
.subsections_via_symbols
