	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function history_needs_navigation_clear
_history_needs_navigation_clear:        ## @history_needs_navigation_clear
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	_RARCH_CTL_IS_DUMMY_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_rarch_ctl
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	testq	%r15, %r15
	je	LBB0_6
## %bb.4:
	movq	(%rbx), %r12
	movq	%r15, %rdi
	callq	_playlist_size
	cmpq	%rax, %r12
	jge	LBB0_6
## %bb.5:
	movq	$0, -40(%rbp)
	movq	(%rbx), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_playlist_get_index
	movl	8(%rbx), %edi
	movq	-40(%rbp), %rax
	movl	(%rax), %esi
	callq	_string_is_equal
	xorl	%r14d, %r14d
	testl	%eax, %eax
	sete	%r14b
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
LBB0_6:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	8(%rbx), %ebx
	movq	_RARCH_PATH_CONTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_path_get
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_string_is_equal                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_CTL_IS_DUMMY_CORE,4,2    ## @RARCH_CTL_IS_DUMMY_CORE
	.comm	_RARCH_PATH_CONTENT,4,2         ## @RARCH_PATH_CONTENT
	.no_dead_strip	_history_needs_navigation_clear
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function history_needs_navigation_clear
_history_needs_navigation_clear:        ; @history_needs_navigation_clear
	.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
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RARCH_CTL_IS_DUMMY_CORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RARCH_CTL_IS_DUMMY_CORE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
	cbz	w0, LBB0_7
; %bb.2:
	cbz	x20, LBB0_5
; %bb.3:
	ldr	x21, [x19]
	mov	x0, x20
	bl	_playlist_size
	cmp	x21, x0
	b.ge	LBB0_5
; %bb.4:
	str	xzr, [sp, #8]
	ldr	x1, [x19]
	add	x2, sp, #8
	mov	x0, x20
	bl	_playlist_get_index
	ldr	w0, [x19, #8]
	ldr	x8, [sp, #8]
	ldr	w1, [x8]
	bl	_string_is_equal
	cmp	w0, #0
	cset	w0, eq
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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_7:
	ldr	w19, [x19, #8]
Lloh3:
	adrp	x8, _RARCH_PATH_CONTENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RARCH_PATH_CONTENT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_path_get
	mov	x1, x0
	mov	x0, x19
	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
	b	_string_is_equal
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_CTL_IS_DUMMY_CORE,4,2    ; @RARCH_CTL_IS_DUMMY_CORE
	.comm	_RARCH_PATH_CONTENT,4,2         ; @RARCH_PATH_CONTENT
	.no_dead_strip	_history_needs_navigation_clear
.subsections_via_symbols
