	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_content_save_ram_file          ## -- Begin function content_save_ram_file
	.p2align	4, 0x90
_content_save_ram_file:                 ## @content_save_ram_file
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %edx
	leaq	-40(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	callq	_content_get_memory
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_MSG_SAVING_RAM_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movl	%eax, %ebx
	movl	-28(%rbp), %r15d
	movq	_MSG_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movl	-32(%rbp), %r8d
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%ebx, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_RARCH_LOG
	movl	-32(%rbp), %edi
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %esi
	callq	_filestream_write_file
	testl	%eax, %eax
	je	LBB0_3
## %bb.5:
	movq	_MSG_SAVED_SUCCESSFULLY_TO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movl	-32(%rbp), %edx
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_RARCH_LOG
	movl	$1, %r14d
	jmp	LBB0_6
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_3:
	movq	_MSG_FAILED_TO_SAVE_SRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_RARCH_ERR
	leaq	L_.str.2(%rip), %rdi
	callq	_RARCH_WARN
	movl	-40(%rbp), %esi
	movl	-36(%rbp), %edi
	movl	-28(%rbp), %edx
	callq	_dump_to_file_desperate
	testl	%eax, %eax
	jne	LBB0_6
## %bb.4:
	leaq	L_.str.3(%rip), %rdi
	callq	_RARCH_WARN
LBB0_6:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s #%u %s \"%s\".\n"

	.comm	_MSG_SAVING_RAM_TYPE,4,2        ## @MSG_SAVING_RAM_TYPE
	.comm	_MSG_TO,4,2                     ## @MSG_TO
L_.str.1:                               ## @.str.1
	.asciz	"%s.\n"

	.comm	_MSG_FAILED_TO_SAVE_SRAM,4,2    ## @MSG_FAILED_TO_SAVE_SRAM
L_.str.2:                               ## @.str.2
	.asciz	"Attempting to recover ...\n"

L_.str.3:                               ## @.str.3
	.asciz	"Failed ... Cannot recover save file.\n"

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

	.comm	_MSG_SAVED_SUCCESSFULLY_TO,4,2  ## @MSG_SAVED_SUCCESSFULLY_TO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_content_save_ram_file          ; -- Begin function content_save_ram_file
	.p2align	2
_content_save_ram_file:                 ; @content_save_ram_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x2, x0
	add	x0, sp, #16
	add	x1, sp, #24
	bl	_content_get_memory
	cbz	w0, LBB0_6
; %bb.1:
Lloh0:
	adrp	x8, _MSG_SAVING_RAM_TYPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_SAVING_RAM_TYPE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x19, x0
	ldr	w20, [sp, #28]
Lloh3:
	adrp	x8, _MSG_TO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_TO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
                                        ; kill: def $w0 killed $w0 def $x0
	ldr	w8, [sp, #24]
	stp	x0, x8, [sp]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	bl	_RARCH_LOG
	ldp	w1, w0, [sp, #20]
	ldr	w2, [sp, #16]
	bl	_filestream_write_file
	cbz	w0, LBB0_3
; %bb.2:
Lloh8:
	adrp	x8, _MSG_SAVED_SUCCESSFULLY_TO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MSG_SAVED_SUCCESSFULLY_TO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
	ldr	w2, [sp, #24]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_RARCH_LOG
	mov	w0, #1
	b	LBB0_6
LBB0_3:
Lloh13:
	adrp	x8, _MSG_FAILED_TO_SAVE_SRAM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MSG_FAILED_TO_SAVE_SRAM@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_ERR
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_RARCH_WARN
	ldp	w1, w0, [sp, #16]
	ldr	w2, [sp, #28]
	bl	_dump_to_file_desperate
	cbnz	w0, LBB0_5
; %bb.4:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_RARCH_WARN
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s #%u %s \"%s\".\n"

	.comm	_MSG_SAVING_RAM_TYPE,4,2        ; @MSG_SAVING_RAM_TYPE
	.comm	_MSG_TO,4,2                     ; @MSG_TO
l_.str.1:                               ; @.str.1
	.asciz	"%s.\n"

	.comm	_MSG_FAILED_TO_SAVE_SRAM,4,2    ; @MSG_FAILED_TO_SAVE_SRAM
l_.str.2:                               ; @.str.2
	.asciz	"Attempting to recover ...\n"

l_.str.3:                               ; @.str.3
	.asciz	"Failed ... Cannot recover save file.\n"

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

	.comm	_MSG_SAVED_SUCCESSFULLY_TO,4,2  ; @MSG_SAVED_SUCCESSFULLY_TO
.subsections_via_symbols
