	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function task_push_to_history_list
_task_push_to_history_list:             ## @task_push_to_history_list
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r13d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	callq	_content_get_status
	movl	-52(%rbp), %eax
	orl	-56(%rbp), %eax
	je	LBB0_9
## %bb.1:
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %r14
	movq	%r14, %rdi
	callq	_malloc
	movq	%rax, %r15
	movq	_RARCH_PATH_CONTENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_path_get
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_runloop_get_libretro_system_info
	movq	%rax, %r12
	movb	$0, (%r15)
	movq	%rbx, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	testl	%r13d, %r13d
	jne	LBB0_6
	jmp	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_strlcpy
	testl	%r13d, %r13d
	jne	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_path_resolve_realpath
LBB0_6:
	testq	%r12, %r12
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_11
LBB0_8:
	movq	%r15, %rdi
	callq	_free
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_g_defaults@GOTPCREL(%rip), %rbx
	movq	24(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_config_get_ptr
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_global_get_ptr
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_path_is_media_type
                                        ## kill: def $eax killed $eax def $rax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_13:
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.14:
	movq	8(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rbx
	jmp	LBB0_20
LBB0_15:
	movq	$0, -160(%rbp)
	leaq	-160(%rbp), %rdi
	callq	_core_info_get_current_core
	movq	_RARCH_PATH_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_path_get
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-160(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	(%rax), %rbx
	jmp	LBB0_18
LBB0_17:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%rbx, %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	(%r12), %rbx
LBB0_20:
	testq	%r14, %r14
	je	LBB0_23
## %bb.21:
	movq	(%r14), %rdi
	callq	_string_is_empty
	testq	%rax, %rax
	je	LBB0_24
LBB0_23:
	xorl	%r12d, %r12d
	testq	%r13, %r13
	jne	LBB0_25
	jmp	LBB0_8
LBB0_24:
	movq	(%r14), %r12
	testq	%r13, %r13
	je	LBB0_8
LBB0_25:
	cmpq	$0, (%r13)
	je	LBB0_8
## %bb.26:
	cmpq	$0, -72(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_8
## %bb.27:
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rbx, %r13
	movq	%rsp, %rbx
	movq	$0, -88(%rbp)
	movb	$0, (%rbx)
	movq	_RARCH_PATH_SUBSYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_path_get
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_content_get_subsystem_friendly_name
	movq	%r15, -160(%rbp)
	movq	%r12, -152(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -144(%rbp)
	movq	%r13, -136(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -128(%rbp)
	movq	_RARCH_PATH_SUBSYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_path_get
	movq	%rax, -112(%rbp)
	movq	%rbx, -104(%rbp)
	xorl	%eax, %eax
	callq	_path_get_subsystem_list
	movq	%rax, -96(%rbp)
	leaq	-160(%rbp), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_command_playlist_push_write
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_8
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.comm	_RARCH_PATH_CONTENT,4,2         ## @RARCH_PATH_CONTENT
	.comm	_g_defaults,32,3                ## @g_defaults
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"musicplayer"

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

	.comm	_RARCH_PATH_CORE,4,2            ## @RARCH_PATH_CORE
	.comm	_RARCH_PATH_SUBSYSTEM,4,2       ## @RARCH_PATH_SUBSYSTEM
	.comm	_RARCH_MENU_CTL_SET_PENDING_QUICK_MENU,4,2 ## @RARCH_MENU_CTL_SET_PENDING_QUICK_MENU
	.no_dead_strip	_task_push_to_history_list
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function task_push_to_history_list
_task_push_to_history_list:             ; @task_push_to_history_list
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #96
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stur	xzr, [x29, #-96]
	sub	x0, x29, #92
	sub	x1, x29, #96
	bl	_content_get_status
	ldp	w8, w9, [x29, #-96]
	orr	w8, w8, w9
	cbz	w8, LBB0_9
; %bb.1:
Lloh3:
	adrp	x26, _PATH_MAX_LENGTH@GOTPAGE
Lloh4:
	ldr	x26, [x26, _PATH_MAX_LENGTH@GOTPAGEOFF]
	ldrsw	x21, [x26]
	mov	x0, x21
	bl	_malloc
	mov	x19, x0
Lloh5:
	adrp	x8, _RARCH_PATH_CONTENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RARCH_PATH_CONTENT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_path_get
	mov	x22, x0
	bl	_runloop_get_libretro_system_info
	mov	x23, x0
	strb	wzr, [x19]
	mov	x0, x22
	bl	_string_is_empty
	cbz	x0, LBB0_3
; %bb.2:
	cbnz	w20, LBB0_6
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_strlcpy
	cbnz	w20, LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_string_is_empty
	cbnz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x21
	mov	w2, #1
	bl	_path_resolve_realpath
LBB0_6:
	cbz	x23, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_string_is_empty
	cbz	x0, LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_free
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_28
; %bb.10:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh11:
	adrp	x22, _g_defaults@GOTPAGE
Lloh12:
	ldr	x22, [x22, _g_defaults@GOTPAGEOFF]
	ldr	x20, [x22, #24]
	bl	_config_get_ptr
	mov	x21, x0
	bl	_global_get_ptr
	mov	x25, x0
	mov	x0, x19
	bl	_path_is_media_type
	sub	w8, w0, #129
	cmp	w8, #2
	b.hs	LBB0_13
; %bb.12:
	mov	x24, #0
	mov	x22, #0
	b	LBB0_20
LBB0_13:
	cmp	w0, #128
	b.ne	LBB0_15
; %bb.14:
	ldr	x20, [x22, #8]
Lloh13:
	adrp	x22, l_.str.1@PAGE
Lloh14:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh15:
	adrp	x24, l_.str@PAGE
Lloh16:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_20
LBB0_15:
	stur	xzr, [x29, #-176]
	sub	x0, x29, #176
	bl	_core_info_get_current_core
Lloh17:
	adrp	x8, _RARCH_PATH_CORE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RARCH_PATH_CORE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_path_get
	mov	x22, x0
	ldur	x8, [x29, #-176]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	x24, [x8]
	b	LBB0_18
LBB0_17:
	mov	x24, #0
LBB0_18:
	mov	x0, x24
	bl	_string_is_empty
	cbz	x0, LBB0_20
; %bb.19:
	ldr	x24, [x23]
LBB0_20:
	cbz	x25, LBB0_23
; %bb.21:
	ldr	x0, [x25]
	bl	_string_is_empty
	cbz	x0, LBB0_27
; %bb.22:
	mov	x25, #0
LBB0_23:
	cbz	x21, LBB0_8
LBB0_24:
	ldr	x8, [x21]
	cbz	x8, LBB0_8
; %bb.25:
	cbz	x20, LBB0_8
; %bb.26:
	mov	x27, sp
	ldr	w21, [x26]
	mov	x9, x21
Lloh20:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh21:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x23, x8, x9
	mov	sp, x23
	stur	xzr, [x29, #-104]
	strb	wzr, [x23]
Lloh22:
	adrp	x26, _RARCH_PATH_SUBSYSTEM@GOTPAGE
Lloh23:
	ldr	x26, [x26, _RARCH_PATH_SUBSYSTEM@GOTPAGEOFF]
	ldr	w0, [x26]
	bl	_path_get
	mov	x1, x23
	mov	x2, x21
	bl	_content_get_subsystem_friendly_name
	stp	x19, x25, [x29, #-176]
	stp	x22, x24, [x29, #-160]
	stp	xzr, xzr, [x29, #-144]
	ldr	w0, [x26]
	bl	_path_get
	stp	x0, x23, [x29, #-128]
	bl	_path_get_subsystem_list
	stur	x0, [x29, #-112]
	sub	x1, x29, #176
	mov	x0, x20
	bl	_command_playlist_push_write
	mov	sp, x27
	b	LBB0_8
LBB0_27:
	ldr	x25, [x25]
	cbnz	x21, LBB0_24
	b	LBB0_8
LBB0_28:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.comm	_RARCH_PATH_CONTENT,4,2         ; @RARCH_PATH_CONTENT
	.comm	_g_defaults,32,3                ; @g_defaults
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"musicplayer"

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

	.comm	_RARCH_PATH_CORE,4,2            ; @RARCH_PATH_CORE
	.comm	_RARCH_PATH_SUBSYSTEM,4,2       ; @RARCH_PATH_SUBSYSTEM
	.comm	_RARCH_MENU_CTL_SET_PENDING_QUICK_MENU,4,2 ; @RARCH_MENU_CTL_SET_PENDING_QUICK_MENU
	.no_dead_strip	_task_push_to_history_list
.subsections_via_symbols
