	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_send_flush             ## -- Begin function netplay_send_flush
	.p2align	4, 0x90
_netplay_send_flush:                    ## @netplay_send_flush
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r15d
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	_socket_send_all_blocking
	testl	%eax, %eax
	je	LBB0_10
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	$0, 8(%r12)
	movq	%r12, %rdi
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	callq	_buf_used
	testq	%rax, %rax
	je	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r12), %rax
	movq	16(%r12), %rbx
	addq	%rax, %rbx
	cmpq	%rax, (%r12)
	jg	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r12), %rdx
	subq	%rax, %rdx
	testl	%r15d, %r15d
	jne	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movl	$1, %ecx
	callq	_socket_send_all_nonblocking
	testq	%rax, %rax
	js	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	addq	8(%r12), %rax
	movq	%rax, 8(%r12)
	xorl	%r15d, %r15d
	cmpq	24(%r12), %rax
	jge	LBB0_2
	jmp	LBB0_15
LBB0_8:
	movq	%r12, %rdi
	callq	_buf_used
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.9:
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movl	$1, %ecx
	callq	_socket_send_all_blocking
	testl	%eax, %eax
	jne	LBB0_14
	jmp	LBB0_10
LBB0_12:
	movl	$1, %r15d
	movl	%r14d, %edi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	movl	$1, %ecx
	callq	_socket_send_all_nonblocking
	testq	%rax, %rax
	js	LBB0_10
## %bb.13:
	addq	8(%r12), %rax
	movq	%rax, 8(%r12)
	cmpq	(%r12), %rax
	jne	LBB0_16
LBB0_14:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r12)
LBB0_15:
	movl	$1, %r15d
	jmp	LBB0_16
LBB0_10:
	xorl	%r15d, %r15d
LBB0_16:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_netplay_send_flush             ; -- Begin function netplay_send_flush
	.p2align	2
_netplay_send_flush:                    ; @netplay_send_flush
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w21, #1
	mov	x0, x20
	mov	x1, x22
	mov	w3, #1
	bl	_socket_send_all_blocking
	cbz	w0, LBB0_15
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	xzr, [x19, #8]
	mov	x0, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	bl	_buf_used
	cbz	x0, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x19]
	ldr	x10, [x19, #16]
	add	x22, x10, x8
	cmp	x9, x8
	b.gt	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19, #24]
	sub	x2, x9, x8
	cbnz	w21, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	w3, #1
	bl	_socket_send_all_nonblocking
	tbnz	x0, #63, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	add	x8, x8, x0
	cmp	x8, x9
	str	x8, [x19, #8]
	b.lt	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w21, #0
	b	LBB0_2
LBB0_9:
	mov	x0, x19
	bl	_buf_used
	mov	x2, x0
	mov	x0, x20
	mov	x1, x22
	mov	w3, #1
	cbz	w21, LBB0_11
; %bb.10:
	bl	_socket_send_all_blocking
	cbnz	w0, LBB0_13
	b	LBB0_15
LBB0_11:
	bl	_socket_send_all_nonblocking
	tbnz	x0, #63, LBB0_16
; %bb.12:
	ldp	x9, x8, [x19]
	add	x8, x8, x0
	cmp	x8, x9
	str	x8, [x19, #8]
	b.ne	LBB0_14
LBB0_13:
	stp	xzr, xzr, [x19]
LBB0_14:
	mov	w0, #1
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w0, #0
	b	LBB0_15
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
