	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function netplay_init_socket_buffers
_netplay_init_socket_buffers:           ## @netplay_init_socket_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rdi), %rax
	movq	_NETPLAY_MAX_STALL_FRAMES@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r15
	shlq	$4, %r15
	addq	%rax, %r15
	movq	%r15, 8(%rdi)
	cmpq	$0, 16(%rdi)
	je	LBB0_10
## %bb.1:
	movl	$8, %ebx
	xorl	%r13d, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rsi
	callq	_netplay_init_socket_buffer
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rbx), %rdi
	addq	$-8, %rdi
	movq	%r15, %rsi
	callq	_netplay_init_socket_buffer
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_11
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	addq	$24, %rbx
	cmpq	16(%rdi), %r13
	jae	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%rdi), %r14
	cmpq	$0, 8(%r14,%rbx)
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rbx), %rdi
	cmpq	$0, (%r14,%rbx)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rsi
	callq	_netplay_resize_socket_buffer
	xorl	%r12d, %r12d
	testl	%eax, %eax
	je	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%rbx), %rdi
	addq	$-8, %rdi
	movq	%r15, %rsi
	callq	_netplay_resize_socket_buffer
	jmp	LBB0_8
LBB0_10:
	movl	$1, %r12d
LBB0_11:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETPLAY_MAX_STALL_FRAMES,4,2   ## @NETPLAY_MAX_STALL_FRAMES
	.no_dead_strip	_netplay_init_socket_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_socket_buffers
_netplay_init_socket_buffers:           ; @netplay_init_socket_buffers
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldrsw	x8, [x0]
Lloh0:
	adrp	x9, _NETPLAY_MAX_STALL_FRAMES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETPLAY_MAX_STALL_FRAMES@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	add	x20, x8, x9, lsl #4
	str	x20, [x0, #8]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	mov	x22, #0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	ldr	x8, [x19, #16]
	add	x21, x21, #24
	cmp	x22, x8
	b.hs	LBB0_9
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, #24]
	add	x0, x23, x21
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x0, #8]!
	cbz	x8, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x20
	bl	_netplay_resize_socket_buffer
	cbz	w0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x23, x21
	mov	x1, x20
	bl	_netplay_resize_socket_buffer
	cbnz	w0, LBB0_2
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x1, x20
	bl	_netplay_init_socket_buffer
	cbz	w0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x23, x21
	mov	x1, x20
	bl	_netplay_init_socket_buffer
	cbnz	w0, LBB0_2
	b	LBB0_10
LBB0_9:
	mov	w0, #1
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NETPLAY_MAX_STALL_FRAMES,4,2   ; @NETPLAY_MAX_STALL_FRAMES
	.no_dead_strip	_netplay_init_socket_buffers
.subsections_via_symbols
