	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function command_event_undo_load_state
_command_event_undo_load_state:         ## @command_event_undo_load_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%eax, %eax
	callq	_content_undo_load_buf_is_empty
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_MSG_NO_STATE_HAS_BEEN_LOADED_YET@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_content_undo_load_state
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_MSG_UNDID_LOAD_STATE@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_strlcpy                        ## TAILCALL
LBB0_5:
	movq	_MSG_FAILED_TO_UNDO_LOAD_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %r8
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%rax, %rcx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snprintf                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_NO_STATE_HAS_BEEN_LOADED_YET,4,2 ## @MSG_NO_STATE_HAS_BEEN_LOADED_YET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s \"%s\"."

	.comm	_MSG_FAILED_TO_UNDO_LOAD_STATE,4,2 ## @MSG_FAILED_TO_UNDO_LOAD_STATE
L_.str.1:                               ## @.str.1
	.asciz	"RAM"

	.comm	_MSG_UNDID_LOAD_STATE,4,2       ## @MSG_UNDID_LOAD_STATE
	.comm	_RARCH_NETPLAY_CTL_LOAD_SAVESTATE,4,2 ## @RARCH_NETPLAY_CTL_LOAD_SAVESTATE
	.no_dead_strip	_command_event_undo_load_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function command_event_undo_load_state
_command_event_undo_load_state:         ; @command_event_undo_load_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_content_undo_load_buf_is_empty
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MSG_NO_STATE_HAS_BEEN_LOADED_YET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_NO_STATE_HAS_BEEN_LOADED_YET@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	bl	_content_undo_load_state
	cbz	w0, LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _MSG_UNDID_LOAD_STATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MSG_UNDID_LOAD_STATE@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_strlcpy
LBB0_5:
Lloh4:
	adrp	x8, _MSG_FAILED_TO_UNDO_LOAD_STATE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_FAILED_TO_UNDO_LOAD_STATE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
Lloh9:
	adrp	x4, l_.str.1@PAGE
Lloh10:
	add	x4, x4, l_.str.1@PAGEOFF
	mov	x3, x0
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snprintf
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_NO_STATE_HAS_BEEN_LOADED_YET,4,2 ; @MSG_NO_STATE_HAS_BEEN_LOADED_YET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s \"%s\"."

	.comm	_MSG_FAILED_TO_UNDO_LOAD_STATE,4,2 ; @MSG_FAILED_TO_UNDO_LOAD_STATE
l_.str.1:                               ; @.str.1
	.asciz	"RAM"

	.comm	_MSG_UNDID_LOAD_STATE,4,2       ; @MSG_UNDID_LOAD_STATE
	.comm	_RARCH_NETPLAY_CTL_LOAD_SAVESTATE,4,2 ; @RARCH_NETPLAY_CTL_LOAD_SAVESTATE
	.no_dead_strip	_command_event_undo_load_state
.subsections_via_symbols
