	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_path_set_special               ## -- Begin function path_set_special
	.p2align	4, 0x90
_path_set_special:                      ## @path_set_special
	.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
	movl	%esi, %r13d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	(%r12), %rdi
	callq	_path_set_basename
	xorl	%eax, %eax
	callq	_string_list_new
	movq	_subsystem_fullpaths@GOTPCREL(%rip), %r14
	movq	%rax, (%r14)
	xorl	%eax, %eax
	callq	_string_list_new
	movq	%rax, %r15
	movq	(%r14), %rdi
	callq	_retro_assert
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.1:
	movl	%r13d, %r13d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_subsystem_fullpaths@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	(%r12,%r14,8), %rsi
	xorl	%edx, %edx
	callq	_string_list_append
	movq	(%r12,%r14,8), %rsi
	movq	%rbx, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_strlcpy
	movq	%rbx, %rdi
	callq	_path_remove_extension
	movq	%rbx, %rdi
	callq	_path_basename
	movq	%r15, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
	callq	_string_list_append
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_2
LBB0_3:
	movb	$0, (%rbx)
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r15, %rdx
	callq	_string_list_join_concat
	movq	_RARCH_DIR_CURRENT_SAVESTATE@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_dir_get
	movq	%rax, %rdi
	callq	_path_is_directory
	testq	%rax, %rax
	movq	%r15, %r12
	je	LBB0_5
## %bb.4:
	movq	_g_extern@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	(%r14), %edi
	callq	_dir_get
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	$8, %edx
	callq	_strlcpy
LBB0_5:
	movq	_g_extern@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_path_is_directory
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rsi
	movl	$8, %ecx
	callq	_fill_pathname_dir
	movq	_MSG_REDIRECTING_SAVESTATE_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	(%r14), %rdx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_RARCH_LOG
LBB0_7:
	testq	%r12, %r12
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	_string_list_free
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.comm	_g_extern,8,3                   ## @g_extern
	.comm	_subsystem_fullpaths,8,3        ## @subsystem_fullpaths
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" + "

	.comm	_RARCH_DIR_CURRENT_SAVESTATE,4,2 ## @RARCH_DIR_CURRENT_SAVESTATE
L_.str.1:                               ## @.str.1
	.asciz	".state"

L_.str.2:                               ## @.str.2
	.asciz	"%s \"%s\".\n"

	.comm	_MSG_REDIRECTING_SAVESTATE_TO,4,2 ## @MSG_REDIRECTING_SAVESTATE_TO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_path_set_special               ; -- Begin function path_set_special
	.p2align	2
_path_set_special:                      ; @path_set_special
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _PATH_MAX_LENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PATH_MAX_LENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
	ldr	x0, [x0]
	bl	_path_set_basename
	bl	_string_list_new
Lloh8:
	adrp	x24, _subsystem_fullpaths@GOTPAGE
Lloh9:
	ldr	x24, [x24, _subsystem_fullpaths@GOTPAGEOFF]
	str	x0, [x24]
	bl	_string_list_new
	mov	x19, x0
	ldr	x0, [x24]
	bl	_retro_assert
	cbz	w23, LBB0_3
; %bb.1:
	mov	w23, w23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	ldr	x1, [x22]
	mov	x2, #0
	bl	_string_list_append
	ldr	x1, [x22], #8
	mov	x0, x20
	mov	x2, x21
	bl	_strlcpy
	mov	x0, x20
	bl	_path_remove_extension
	mov	x0, x20
	bl	_path_basename
	mov	x1, x0
	mov	x0, x19
	mov	x2, #0
	bl	_string_list_append
	subs	x23, x23, #1
	b.ne	LBB0_2
LBB0_3:
	strb	wzr, [x20]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_string_list_join_concat
Lloh12:
	adrp	x23, _RARCH_DIR_CURRENT_SAVESTATE@GOTPAGE
Lloh13:
	ldr	x23, [x23, _RARCH_DIR_CURRENT_SAVESTATE@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_dir_get
	bl	_path_is_directory
Lloh14:
	adrp	x22, _g_extern@GOTPAGE
Lloh15:
	ldr	x22, [x22, _g_extern@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x21, [x22]
	ldr	w0, [x23]
	bl	_dir_get
	mov	x1, x0
	mov	x0, x21
	mov	w2, #8
	bl	_strlcpy
LBB0_5:
	ldr	x0, [x22]
	bl	_path_is_directory
	cbz	x0, LBB0_7
; %bb.6:
	ldr	x0, [x22]
Lloh16:
	adrp	x2, l_.str.1@PAGE
Lloh17:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	w3, #8
	bl	_fill_pathname_dir
Lloh18:
	adrp	x8, _MSG_REDIRECTING_SAVESTATE_TO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MSG_REDIRECTING_SAVESTATE_TO@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	ldr	x2, [x22]
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_RARCH_LOG
LBB0_7:
	cbz	x19, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_string_list_free
LBB0_9:
	ldur	x8, [x29, #-56]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.comm	_g_extern,8,3                   ; @g_extern
	.comm	_subsystem_fullpaths,8,3        ; @subsystem_fullpaths
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" + "

	.comm	_RARCH_DIR_CURRENT_SAVESTATE,4,2 ; @RARCH_DIR_CURRENT_SAVESTATE
l_.str.1:                               ; @.str.1
	.asciz	".state"

l_.str.2:                               ; @.str.2
	.asciz	"%s \"%s\".\n"

	.comm	_MSG_REDIRECTING_SAVESTATE_TO,4,2 ; @MSG_REDIRECTING_SAVESTATE_TO
.subsections_via_symbols
