	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_config_replace                 ## -- Begin function config_replace
	.p2align	4, 0x90
_config_replace:                        ## @config_replace
	.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	%rsi, %r14
	movl	%edi, %r15d
	movl	$0, -40(%rbp)
	movq	_RARCH_PATH_CONFIG@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	callq	_path_get
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_string_is_equal
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_5
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_4
## %bb.2:
	movl	(%r12), %edi
	callq	_path_is_empty
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_config_save_file
LBB0_4:
	movl	(%r12), %edi
	movq	%r14, %rsi
	callq	_path_set
	movq	_RARCH_CTL_UNSET_BLOCK_CONFIG_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	movq	_RARCH_PATH_CORE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_path_clear
	leaq	-40(%rbp), %rdi
	callq	_task_push_start_dummy_core
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_PATH_CONFIG,4,2          ## @RARCH_PATH_CONFIG
	.comm	_RARCH_CTL_UNSET_BLOCK_CONFIG_READ,4,2 ## @RARCH_CTL_UNSET_BLOCK_CONFIG_READ
	.comm	_RARCH_PATH_CORE,4,2            ## @RARCH_PATH_CORE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_config_replace                 ; -- Begin function config_replace
	.p2align	2
_config_replace:                        ; @config_replace
	.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	x19, x1
	mov	x21, x0
	str	wzr, [sp, #8]
Lloh0:
	adrp	x22, _RARCH_PATH_CONFIG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _RARCH_PATH_CONFIG@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_path_get
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_string_is_equal
	mov	x8, x0
	mov	w0, #0
	cbnz	x8, LBB0_5
; %bb.1:
	cbz	w21, LBB0_4
; %bb.2:
	ldr	w0, [x22]
	bl	_path_is_empty
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_config_save_file
LBB0_4:
	ldr	w0, [x22]
	mov	x1, x19
	bl	_path_set
Lloh2:
	adrp	x8, _RARCH_CTL_UNSET_BLOCK_CONFIG_READ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RARCH_CTL_UNSET_BLOCK_CONFIG_READ@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
Lloh5:
	adrp	x8, _RARCH_PATH_CORE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RARCH_PATH_CORE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_path_clear
	add	x0, sp, #8
	bl	_task_push_start_dummy_core
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_PATH_CONFIG,4,2          ; @RARCH_PATH_CONFIG
	.comm	_RARCH_CTL_UNSET_BLOCK_CONFIG_READ,4,2 ; @RARCH_CTL_UNSET_BLOCK_CONFIG_READ
	.comm	_RARCH_PATH_CORE,4,2            ; @RARCH_PATH_CORE
.subsections_via_symbols
