	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_serialized_data
_get_serialized_data:                   ## @get_serialized_data
	.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
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r14
	movq	_MSG_STATE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	movl	%eax, %r15d
	movq	_MSG_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	_RARCH_LOG
	movq	%r14, -32(%rbp)
	movq	%rbx, -40(%rbp)
	leaq	-40(%rbp), %rdi
	callq	_core_serialize
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_free
LBB0_4:
	xorl	%r14d, %r14d
LBB0_5:
	movq	%r14, %rax
	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: %d %s.\n"

	.comm	_MSG_STATE_SIZE,4,2             ## @MSG_STATE_SIZE
	.comm	_MSG_BYTES,4,2                  ## @MSG_BYTES
	.no_dead_strip	_get_serialized_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_serialized_data
_get_serialized_data:                   ; @get_serialized_data
	.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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x0, x1
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _MSG_STATE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_STATE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x21, x0
Lloh3:
	adrp	x8, _MSG_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x3, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_RARCH_LOG
	stp	x20, x19, [sp]
	mov	x0, sp
	bl	_core_serialize
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_free
LBB0_4:
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: %d %s.\n"

	.comm	_MSG_STATE_SIZE,4,2             ; @MSG_STATE_SIZE
	.comm	_MSG_BYTES,4,2                  ; @MSG_BYTES
	.no_dead_strip	_get_serialized_data
.subsections_via_symbols
