	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xmb_populate_entries
_xmb_populate_entries:                  ## @xmb_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_13
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movl	(%rdi), %esi
	callq	_xmb_get_system_tab
	movq	_XMB_SYSTEM_TAB_FAVORITES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.2:
	movq	_XMB_SYSTEM_TAB_HISTORY@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_6
## %bb.3:
	movq	_MENU_ENUM_LABEL_HORIZONTAL_MENU@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_6
## %bb.4:
	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
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	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
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	movl	$1, 8(%rbx)
LBB0_7:
	movq	_MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	xorl	%ecx, %ecx
	testq	%rax, %rax
	sete	%cl
LBB0_10:
	movl	%ecx, 8(%rbx)
	movq	_MENU_ENUM_LABEL_DEFERRED_DATABASE_MANAGER_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	movq	%rax, 32(%rbx)
	movq	_MENU_ENUM_LABEL_DEFERRED_RPL_ENTRY_ACTIONS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	movq	%rax, 24(%rbx)
	movq	_RARCH_MENU_CTL_IS_PREVENT_POPULATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_menu_driver_ctl
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_xmb_selection_pointer_changed
	movq	_RARCH_MENU_CTL_UNSET_PREVENT_POPULATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_menu_driver_ctl                ## TAILCALL
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_11:
	movq	%rbx, %rdi
	callq	_xmb_set_title
	movq	(%rbx), %rax
	cmpq	16(%rbx), %rax
	jne	LBB0_15
## %bb.12:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_xmb_list_open                  ## TAILCALL
LBB0_15:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_xmb_list_switch                ## TAILCALL
LBB0_8:
	movq	_MENU_ENUM_LABEL_DEFERRED_IMAGES_LIST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_string_is_equal
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	%ecx, 8(%rbx)
	jne	LBB0_7
## %bb.9:
	xorl	%ecx, %ecx
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_XMB_SYSTEM_TAB_FAVORITES,4,2   ## @XMB_SYSTEM_TAB_FAVORITES
	.comm	_XMB_SYSTEM_TAB_HISTORY,4,2     ## @XMB_SYSTEM_TAB_HISTORY
	.comm	_MENU_ENUM_LABEL_HORIZONTAL_MENU,4,2 ## @MENU_ENUM_LABEL_HORIZONTAL_MENU
	.comm	_MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST,4,2 ## @MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST
	.comm	_MENU_ENUM_LABEL_DEFERRED_FAVORITES_LIST,4,2 ## @MENU_ENUM_LABEL_DEFERRED_FAVORITES_LIST
	.comm	_MENU_ENUM_LABEL_DEFERRED_IMAGES_LIST,4,2 ## @MENU_ENUM_LABEL_DEFERRED_IMAGES_LIST
	.comm	_MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL,4,2 ## @MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL
	.comm	_MENU_ENUM_LABEL_DEFERRED_DATABASE_MANAGER_LIST,4,2 ## @MENU_ENUM_LABEL_DEFERRED_DATABASE_MANAGER_LIST
	.comm	_MENU_ENUM_LABEL_DEFERRED_RPL_ENTRY_ACTIONS,4,2 ## @MENU_ENUM_LABEL_DEFERRED_RPL_ENTRY_ACTIONS
	.comm	_RARCH_MENU_CTL_IS_PREVENT_POPULATE,4,2 ## @RARCH_MENU_CTL_IS_PREVENT_POPULATE
	.comm	_RARCH_MENU_CTL_UNSET_PREVENT_POPULATE,4,2 ## @RARCH_MENU_CTL_UNSET_PREVENT_POPULATE
	.comm	_XMB_SYSTEM_TAB_IMAGES,4,2      ## @XMB_SYSTEM_TAB_IMAGES
	.no_dead_strip	_xmb_populate_entries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xmb_populate_entries
_xmb_populate_entries:                  ; @xmb_populate_entries
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x2
	mov	x19, x0
	ldr	w1, [x0]
	bl	_xmb_get_system_tab
Lloh0:
	adrp	x8, _XMB_SYSTEM_TAB_FAVORITES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _XMB_SYSTEM_TAB_FAVORITES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _XMB_SYSTEM_TAB_HISTORY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _XMB_SYSTEM_TAB_HISTORY@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _MENU_ENUM_LABEL_HORIZONTAL_MENU@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MENU_ENUM_LABEL_HORIZONTAL_MENU@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
	bl	_string_is_equal
	cbnz	x0, LBB0_5
; %bb.3:
Lloh9:
	adrp	x8, _MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
	bl	_string_is_equal
	cbnz	x0, LBB0_5
; %bb.4:
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
	cbz	x0, LBB0_13
LBB0_5:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_6:
Lloh15:
	adrp	x8, _MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
	bl	_string_is_equal
	cmp	x0, #0
	cset	w8, eq
LBB0_7:
	str	w8, [x19, #8]
Lloh18:
	adrp	x8, _MENU_ENUM_LABEL_DEFERRED_DATABASE_MANAGER_LIST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MENU_ENUM_LABEL_DEFERRED_DATABASE_MANAGER_LIST@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
	bl	_string_is_equal
	str	x0, [x19, #32]
Lloh21:
	adrp	x8, _MENU_ENUM_LABEL_DEFERRED_RPL_ENTRY_ACTIONS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MENU_ENUM_LABEL_DEFERRED_RPL_ENTRY_ACTIONS@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
	bl	_string_is_equal
	str	x0, [x19, #24]
Lloh24:
	adrp	x8, _RARCH_MENU_CTL_IS_PREVENT_POPULATE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _RARCH_MENU_CTL_IS_PREVENT_POPULATE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_menu_driver_ctl
	cbz	x0, LBB0_10
; %bb.8:
	mov	x0, x19
	mov	w1, #0
	bl	_xmb_selection_pointer_changed
Lloh27:
	adrp	x8, _RARCH_MENU_CTL_UNSET_PREVENT_POPULATE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _RARCH_MENU_CTL_UNSET_PREVENT_POPULATE@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	mov	x1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_menu_driver_ctl
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x0, x19
	bl	_xmb_set_title
	ldr	x8, [x19]
	ldr	x9, [x19, #16]
	mov	x0, x19
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_xmb_list_open
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_xmb_list_switch
LBB0_13:
Lloh30:
	adrp	x8, _MENU_ENUM_LABEL_DEFERRED_IMAGES_LIST@GOTPAGE
Lloh31:
	ldr	x8, [x8, _MENU_ENUM_LABEL_DEFERRED_IMAGES_LIST@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
	bl	_string_is_equal
	cmp	x0, #0
	cset	w8, ne
	str	w8, [x19, #8]
	cbnz	x0, LBB0_6
; %bb.14:
	mov	w8, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_XMB_SYSTEM_TAB_FAVORITES,4,2   ; @XMB_SYSTEM_TAB_FAVORITES
	.comm	_XMB_SYSTEM_TAB_HISTORY,4,2     ; @XMB_SYSTEM_TAB_HISTORY
	.comm	_MENU_ENUM_LABEL_HORIZONTAL_MENU,4,2 ; @MENU_ENUM_LABEL_HORIZONTAL_MENU
	.comm	_MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST,4,2 ; @MENU_ENUM_LABEL_DEFERRED_PLAYLIST_LIST
	.comm	_MENU_ENUM_LABEL_DEFERRED_FAVORITES_LIST,4,2 ; @MENU_ENUM_LABEL_DEFERRED_FAVORITES_LIST
	.comm	_MENU_ENUM_LABEL_DEFERRED_IMAGES_LIST,4,2 ; @MENU_ENUM_LABEL_DEFERRED_IMAGES_LIST
	.comm	_MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL,4,2 ; @MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL
	.comm	_MENU_ENUM_LABEL_DEFERRED_DATABASE_MANAGER_LIST,4,2 ; @MENU_ENUM_LABEL_DEFERRED_DATABASE_MANAGER_LIST
	.comm	_MENU_ENUM_LABEL_DEFERRED_RPL_ENTRY_ACTIONS,4,2 ; @MENU_ENUM_LABEL_DEFERRED_RPL_ENTRY_ACTIONS
	.comm	_RARCH_MENU_CTL_IS_PREVENT_POPULATE,4,2 ; @RARCH_MENU_CTL_IS_PREVENT_POPULATE
	.comm	_RARCH_MENU_CTL_UNSET_PREVENT_POPULATE,4,2 ; @RARCH_MENU_CTL_UNSET_PREVENT_POPULATE
	.comm	_XMB_SYSTEM_TAB_IMAGES,4,2      ; @XMB_SYSTEM_TAB_IMAGES
	.no_dead_strip	_xmb_populate_entries
.subsections_via_symbols
