	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_init_serialization     ## -- Begin function netplay_init_serialization
	.p2align	4, 0x90
_netplay_init_serialization:            ## @netplay_init_serialization
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$1, %r14d
	cmpl	$0, (%rdi)
	je	LBB0_1
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rdi, %r15
	leaq	-32(%rbp), %rdi
	callq	_core_serialize_size
	movl	-32(%rbp), %edi
	xorl	%r14d, %r14d
	testl	%edi, %edi
	je	LBB0_10
## %bb.2:
	movl	%edi, (%r15)
	cmpl	$0, 4(%r15)
	je	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %esi
	callq	_calloc
	movq	24(%r15), %rcx
	movq	%rax, (%rcx,%rbx,8)
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movl	(%r15), %edi
	movl	4(%r15), %eax
	cmpq	%rax, %rbx
	jb	LBB0_5
LBB0_7:
	addl	%edi, %edi
	movl	%edi, 8(%r15)
	movl	$1, %r14d
	movl	$1, %esi
	callq	_calloc
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	_NETPLAY_QUIRK_NO_TRANSMISSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r15)
	movl	$0, 8(%r15)
	jmp	LBB0_9
LBB0_6:
	movq	_NETPLAY_QUIRK_NO_SAVESTATES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 12(%r15)
LBB0_9:
	xorl	%r14d, %r14d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_NETPLAY_QUIRK_NO_SAVESTATES,4,2 ## @NETPLAY_QUIRK_NO_SAVESTATES
	.comm	_NETPLAY_QUIRK_NO_TRANSMISSION,4,2 ## @NETPLAY_QUIRK_NO_TRANSMISSION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_init_serialization     ; -- Begin function netplay_init_serialization
	.p2align	2
_netplay_init_serialization:            ; @netplay_init_serialization
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	w20, #1
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	mov	x19, x0
	add	x0, sp, #8
	bl	_core_serialize_size
	ldr	w0, [sp, #8]
	cbz	w0, LBB0_10
; %bb.4:
	str	w0, [x19]
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_8
; %bb.5:
	mov	x20, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w1, #1
	bl	_calloc
	ldr	x8, [x19, #24]
	str	x0, [x8, x20, lsl #3]
	cbz	x0, LBB0_11
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	ldp	w0, w8, [x19]
	cmp	x20, x8
	b.lo	LBB0_6
LBB0_8:
	lsl	w0, w0, #1
	str	w0, [x19, #8]
	mov	w20, #1
	mov	w1, #1
	bl	_calloc
	str	x0, [x19, #16]
	cbnz	x0, LBB0_2
; %bb.9:
	mov	w20, #0
Lloh0:
	adrp	x8, _NETPLAY_QUIRK_NO_TRANSMISSION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETPLAY_QUIRK_NO_TRANSMISSION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	stp	wzr, w8, [x19, #8]
	b	LBB0_2
LBB0_10:
	mov	w20, #0
	b	LBB0_2
LBB0_11:
	mov	w20, #0
Lloh3:
	adrp	x8, _NETPLAY_QUIRK_NO_SAVESTATES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NETPLAY_QUIRK_NO_SAVESTATES@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #12]
	orr	w8, w9, w8
	str	w8, [x19, #12]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NETPLAY_QUIRK_NO_SAVESTATES,4,2 ; @NETPLAY_QUIRK_NO_SAVESTATES
	.comm	_NETPLAY_QUIRK_NO_TRANSMISSION,4,2 ; @NETPLAY_QUIRK_NO_TRANSMISSION
.subsections_via_symbols
