	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netplay_init_buffers
_netplay_init_buffers:                  ## @netplay_init_buffers
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_NETPLAY_MAX_STALL_FRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	$2, %edi
	movl	%edi, (%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	addl	%edi, %edi
	movl	%edi, (%rbx)
LBB0_2:
	movl	$4, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rax, 8(%rbx)
	movq	_NETPLAY_QUIRK_NO_SAVESTATES@GOTPCREL(%rip), %rax
	movq	_NETPLAY_QUIRK_INITIALIZATION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, 4(%rbx)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	callq	_netplay_init_serialization
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_netplay_init_socket_buffers    ## TAILCALL
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETPLAY_MAX_STALL_FRAMES,4,2   ## @NETPLAY_MAX_STALL_FRAMES
	.comm	_NETPLAY_QUIRK_NO_SAVESTATES,4,2 ## @NETPLAY_QUIRK_NO_SAVESTATES
	.comm	_NETPLAY_QUIRK_INITIALIZATION,4,2 ## @NETPLAY_QUIRK_INITIALIZATION
	.no_dead_strip	_netplay_init_buffers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function netplay_init_buffers
_netplay_init_buffers:                  ; @netplay_init_buffers
	.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, x0
Lloh0:
	adrp	x8, _NETPLAY_MAX_STALL_FRAMES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETPLAY_MAX_STALL_FRAMES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w0, w8, #2
	str	w0, [x19]
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	lsl	w0, w0, #1
	str	w0, [x19]
LBB0_2:
	mov	w1, #4
	bl	_calloc
	cbz	x0, LBB0_6
; %bb.3:
	str	x0, [x19, #8]
	ldr	w8, [x19, #4]
Lloh3:
	adrp	x9, _NETPLAY_QUIRK_NO_SAVESTATES@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETPLAY_QUIRK_NO_SAVESTATES@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _NETPLAY_QUIRK_INITIALIZATION@GOTPAGE
Lloh7:
	ldr	x10, [x10, _NETPLAY_QUIRK_INITIALIZATION@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_netplay_init_serialization
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_netplay_init_socket_buffers
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NETPLAY_MAX_STALL_FRAMES,4,2   ; @NETPLAY_MAX_STALL_FRAMES
	.comm	_NETPLAY_QUIRK_NO_SAVESTATES,4,2 ; @NETPLAY_QUIRK_NO_SAVESTATES
	.comm	_NETPLAY_QUIRK_INITIALIZATION,4,2 ; @NETPLAY_QUIRK_INITIALIZATION
	.no_dead_strip	_netplay_init_buffers
.subsections_via_symbols
