	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dump_to_file_desperate
_dump_to_file_desperate:                ## @dump_to_file_desperate
	.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	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_PATH_MAX_LENGTH@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_malloc
	movq	%rax, %rbx
	movb	$0, (%rax)
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_fill_pathname_application_data
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	leaq	-60(%rbp), %r13
	movq	%r13, %rdi
	callq	_time
	movl	$256, %edi                      ## imm = 0x100
	callq	_malloc
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	movb	$0, (%rax)
	movq	%r13, %rdi
	callq	_localtime
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	movl	%eax, %ecx
	callq	_strftime
	movl	(%r15), %edi
	callq	_malloc
	movq	%rax, %r13
	movb	$0, (%rax)
	movl	(%r15), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
	movq	%rbx, %rcx
	movl	%r12d, %r8d
	movq	%r14, %r9
	callq	_snprintf
	movq	%rbx, %rdi
	callq	_free
	movq	%r14, %rdi
	callq	_free
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_filestream_write_file
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r13, %rsi
	callq	_RARCH_WARN
	movq	%r13, %rdi
	callq	_free
	movl	$1, %eax
	jmp	LBB0_6
LBB0_1:
	movq	%rbx, %rdi
	jmp	LBB0_2
LBB0_4:
	movq	%r13, %rdi
LBB0_2:
	callq	_free
	xorl	%eax, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ## @PATH_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%Y-%m-%d-%H-%M-%S"

L_.str.1:                               ## @.str.1
	.asciz	"%s/RetroArch-recovery-%u%s"

L_.str.2:                               ## @.str.2
	.asciz	"Succeeded in saving RAM data to \"%s\".\n"

	.no_dead_strip	_dump_to_file_desperate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dump_to_file_desperate
_dump_to_file_desperate:                ; @dump_to_file_desperate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _PATH_MAX_LENGTH@GOTPAGE
Lloh1:
	ldr	x25, [x25, _PATH_MAX_LENGTH@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_malloc
	mov	x22, x0
	strb	wzr, [x0]
	ldr	w1, [x25]
	bl	_fill_pathname_application_data
	cbz	w0, LBB0_3
; %bb.1:
	add	x0, sp, #12
	bl	_time
	mov	w0, #256
	bl	_malloc
	mov	x24, x0
	strb	wzr, [x0]
	add	x0, sp, #12
	bl	_localtime
	mov	x3, x0
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x24
	mov	w1, #256
	bl	_strftime
	ldr	w0, [x25]
	bl	_malloc
	mov	x23, x0
	strb	wzr, [x0]
	ldr	w1, [x25]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x3, x22
	mov	x4, x21
	mov	x5, x24
	bl	_snprintf
	mov	x0, x22
	bl	_free
	mov	x0, x24
	bl	_free
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_filestream_write_file
	cbz	w0, LBB0_4
; %bb.2:
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x23
	bl	_RARCH_WARN
	mov	x0, x23
	bl	_free
	mov	w0, #1
	b	LBB0_6
LBB0_3:
	mov	x0, x22
	b	LBB0_5
LBB0_4:
	mov	x0, x23
LBB0_5:
	bl	_free
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_PATH_MAX_LENGTH,4,2            ; @PATH_MAX_LENGTH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%Y-%m-%d-%H-%M-%S"

l_.str.1:                               ; @.str.1
	.asciz	"%s/RetroArch-recovery-%u%s"

l_.str.2:                               ; @.str.2
	.asciz	"Succeeded in saving RAM data to \"%s\".\n"

	.no_dead_strip	_dump_to_file_desperate
.subsections_via_symbols
