	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rgui_populate_entries
_rgui_populate_entries:                 ## @rgui_populate_entries
	.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	%rdx, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_config_get_ptr
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.1:
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	_MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	movq	_MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_MENU_ENUM_LABEL_DEFERRED_FAVORITES_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	xorl	%r12d, %r12d
	testq	%rax, %rax
	setne	%r12b
LBB0_5:
	movl	%r12d, (%rbx)
	movl	20(%rbx), %edi
	movl	$4, %esi
	callq	_menu_entries_get_title
	movl	$0, 4(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rgui_navigation_set
	movq	(%r15), %rax
	movq	_RGUI_ASPECT_RATIO_LOCK_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.6:
	movq	_MENU_ENUM_LABEL_DEFERRED_VIDEO_SETTINGS_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movl	$0, -40(%rbp)
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	callq	_rgui_get_video_config
	leaq	16(%rbx), %rsi
	movq	%r14, %rdi
	callq	_rgui_is_video_config_equal
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	12(%rbx), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rgui_set_video_config
	movl	$1, 8(%rbx)
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST,4,2 ## @MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST
	.comm	_MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY,4,2 ## @MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY
	.comm	_MENU_ENUM_LABEL_DEFERRED_FAVORITES_LIST,4,2 ## @MENU_ENUM_LABEL_DEFERRED_FAVORITES_LIST
	.comm	_RGUI_ASPECT_RATIO_LOCK_NONE,8,3 ## @RGUI_ASPECT_RATIO_LOCK_NONE
	.comm	_MENU_ENUM_LABEL_DEFERRED_VIDEO_SETTINGS_LIST,4,2 ## @MENU_ENUM_LABEL_DEFERRED_VIDEO_SETTINGS_LIST
	.no_dead_strip	_rgui_populate_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rgui_populate_entries
_rgui_populate_entries:                 ; @rgui_populate_entries
	.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	x20, x2
	mov	x19, x0
	bl	_config_get_ptr
	cbz	x19, LBB0_9
; %bb.1:
	mov	x21, x0
	cbz	x0, LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
	bl	_string_is_equal
	cbnz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
	bl	_string_is_equal
	cbz	x0, LBB0_10
LBB0_4:
	mov	w8, #1
LBB0_5:
	str	w8, [x19]
	ldr	w0, [x19, #20]
	mov	w1, #4
	bl	_menu_entries_get_title
	str	wzr, [x19, #4]
	mov	x0, x19
	mov	w1, #1
	bl	_rgui_navigation_set
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _RGUI_ASPECT_RATIO_LOCK_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RGUI_ASPECT_RATIO_LOCK_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.6:
Lloh9:
	adrp	x8, _MENU_ENUM_LABEL_DEFERRED_VIDEO_SETTINGS_LIST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MENU_ENUM_LABEL_DEFERRED_VIDEO_SETTINGS_LIST@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
	bl	_string_is_equal
	cbz	x0, LBB0_9
; %bb.7:
	str	wzr, [sp, #8]
	add	x0, sp, #8
	bl	_rgui_get_video_config
	add	x1, x19, #16
	add	x0, sp, #8
	bl	_rgui_is_video_config_equal
	cbz	x0, LBB0_9
; %bb.8:
	add	x1, x19, #12
	mov	x0, x19
	mov	w2, #0
	bl	_rgui_set_video_config
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_9:
	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_10:
Lloh12:
	adrp	x8, _MENU_ENUM_LABEL_DEFERRED_FAVORITES_LIST@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MENU_ENUM_LABEL_DEFERRED_FAVORITES_LIST@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
	bl	_string_is_equal
	cmp	x0, #0
	cset	w8, ne
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST,4,2 ; @MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST
	.comm	_MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY,4,2 ; @MENU_ENUM_LABEL_LOAD_CONTENT_HISTORY
	.comm	_MENU_ENUM_LABEL_DEFERRED_FAVORITES_LIST,4,2 ; @MENU_ENUM_LABEL_DEFERRED_FAVORITES_LIST
	.comm	_RGUI_ASPECT_RATIO_LOCK_NONE,8,3 ; @RGUI_ASPECT_RATIO_LOCK_NONE
	.comm	_MENU_ENUM_LABEL_DEFERRED_VIDEO_SETTINGS_LIST,4,2 ; @MENU_ENUM_LABEL_DEFERRED_VIDEO_SETTINGS_LIST
	.no_dead_strip	_rgui_populate_entries
.subsections_via_symbols
