	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function command_event_save_current_config
_command_event_save_current_config:     ## @command_event_save_current_config
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$152, %rsp
	.cfi_offset %rbx, -24
                                        ## kill: def $edi killed $edi def $rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movb	$0, -144(%rbp)
	leal	-129(%rdi), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.5:
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_config_save_overrides
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_MSG_OVERRIDES_SAVED_SUCCESSFULLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$128, %edx
	callq	_strlcpy
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_RARCH_LOG
	movq	_runloop_overrides_active@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_8
LBB0_1:
	cmpl	$128, %edi
	jne	LBB0_8
## %bb.2:
	movq	_RARCH_PATH_CONFIG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_path_is_empty
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	leaq	-144(%rbp), %rdi
	movl	$128, %edx
	callq	_strlcpy
	jmp	LBB0_8
LBB0_7:
	movq	_MSG_OVERRIDES_ERROR_SAVING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	-144(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movl	$128, %edx
	callq	_strlcpy
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_RARCH_ERR
	jmp	LBB0_8
LBB0_4:
	movl	(%rbx), %edi
	callq	_path_get
	leaq	-144(%rbp), %rsi
	movl	%eax, %edi
	movl	$128, %edx
	callq	_command_event_save_config
LBB0_8:
	leaq	-144(%rbp), %rdi
	callq	_string_is_empty
	testl	%eax, %eax
	jne	LBB0_10
## %bb.9:
	movq	_MESSAGE_QUEUE_ICON_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_MESSAGE_QUEUE_CATEGORY_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	leaq	-144(%rbp), %rdi
	movl	$1, %esi
	movl	$180, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_runloop_msg_queue_push
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$152, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_PATH_CONFIG,4,2          ## @RARCH_PATH_CONFIG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[config] Config directory not set, cannot save configuration."

	.comm	_MSG_OVERRIDES_SAVED_SUCCESSFULLY,4,2 ## @MSG_OVERRIDES_SAVED_SUCCESSFULLY
L_.str.1:                               ## @.str.1
	.asciz	"[config] [overrides] %s\n"

	.comm	_runloop_overrides_active,4,2   ## @runloop_overrides_active
	.comm	_MSG_OVERRIDES_ERROR_SAVING,4,2 ## @MSG_OVERRIDES_ERROR_SAVING
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ## @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ## @MESSAGE_QUEUE_CATEGORY_INFO
	.no_dead_strip	_command_event_save_current_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function command_event_save_current_config
_command_event_save_current_config:     ; @command_event_save_current_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	strb	wzr, [sp, #8]
	sub	w8, w0, #129
	cmp	w8, #3
	b.hs	LBB0_3
; %bb.1:
	bl	_config_save_overrides
	cbz	w0, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _MSG_OVERRIDES_SAVED_SUCCESSFULLY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_OVERRIDES_SAVED_SUCCESSFULLY@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #128
	bl	_strlcpy
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	bl	_RARCH_LOG
Lloh8:
	adrp	x8, _runloop_overrides_active@GOTPAGE
Lloh9:
	ldr	x8, [x8, _runloop_overrides_active@GOTPAGEOFF]
	mov	w9, #1
Lloh10:
	str	w9, [x8]
	b	LBB0_8
LBB0_3:
	cmp	w0, #128
	b.ne	LBB0_8
; %bb.4:
Lloh11:
	adrp	x19, _RARCH_PATH_CONFIG@GOTPAGE
Lloh12:
	ldr	x19, [x19, _RARCH_PATH_CONFIG@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_path_is_empty
	cbz	w0, LBB0_7
; %bb.5:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w2, #128
	bl	_strlcpy
	b	LBB0_8
LBB0_6:
Lloh15:
	adrp	x8, _MSG_OVERRIDES_ERROR_SAVING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSG_OVERRIDES_ERROR_SAVING@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #128
	bl	_strlcpy
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x1, sp, #8
	bl	_RARCH_ERR
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19]
	bl	_path_get
	add	x1, sp, #8
	mov	w2, #128
	bl	_command_event_save_config
LBB0_8:
	add	x0, sp, #8
	bl	_string_is_empty
	cbnz	w0, LBB0_10
; %bb.9:
Lloh20:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh22:
	ldr	w5, [x8]
Lloh23:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh25:
	ldr	w6, [x8]
	add	x0, sp, #8
	mov	w1, #1
	mov	w2, #180
	mov	w3, #1
	mov	x4, #0
	bl	_runloop_msg_queue_push
LBB0_10:
	ldur	x8, [x29, #-24]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_PATH_CONFIG,4,2          ; @RARCH_PATH_CONFIG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[config] Config directory not set, cannot save configuration."

	.comm	_MSG_OVERRIDES_SAVED_SUCCESSFULLY,4,2 ; @MSG_OVERRIDES_SAVED_SUCCESSFULLY
l_.str.1:                               ; @.str.1
	.asciz	"[config] [overrides] %s\n"

	.comm	_runloop_overrides_active,4,2   ; @runloop_overrides_active
	.comm	_MSG_OVERRIDES_ERROR_SAVING,4,2 ; @MSG_OVERRIDES_ERROR_SAVING
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ; @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ; @MESSAGE_QUEUE_CATEGORY_INFO
	.no_dead_strip	_command_event_save_current_config
.subsections_via_symbols
