	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_SendQueuedPackets           ## -- Begin function SV_SendQueuedPackets
	.p2align	4, 0x90
_SV_SendQueuedPackets:                  ## @SV_SendQueuedPackets
	.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
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_SV_SendQueuedMessages
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	movq	_sv_dlRate@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.1:
	xorl	%eax, %eax
	callq	_Sys_Milliseconds
	movl	%eax, %r14d
	movl	_SV_SendQueuedPackets.dlNextRound(%rip), %eax
	subl	%r14d, %eax
	jle	LBB0_3
## %bb.2:
	leal	1(%rax), %ecx
	cmpl	%ebx, %eax
	cmovll	%ecx, %ebx
	jmp	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	callq	_SV_SendDownloadMessages
	testl	%eax, %eax
	cmovnel	%r14d, %ebx
LBB0_8:
	movl	%ebx, %eax
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	callq	_SV_SendDownloadMessages
	testl	%eax, %eax
	je	LBB0_8
## %bb.4:
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	_Sys_Milliseconds
	movl	%eax, %ecx
	movl	%eax, %esi
	subl	%r14d, %esi
	movq	_MAX_DOWNLOAD_BLKSIZE@GOTPCREL(%rip), %rax
	imull	(%rax), %r15d
	imull	$1000, %r15d, %eax              ## imm = 0x3E8
	movq	(%r12), %rdx
	movl	(%rdx), %edi
	shll	$10, %edi
	cltd
	idivl	%edi
	leal	1(%rsi), %edx
	cmpl	%edx, %eax
	jle	LBB0_5
## %bb.6:
	addl	%eax, %r14d
	movl	%r14d, _SV_SendQueuedPackets.dlNextRound(%rip)
	subl	%esi, %eax
	cmpl	%ebx, %eax
	cmovgel	%ebx, %eax
	jmp	LBB0_9
LBB0_5:
	cmpl	$2, %ebx
	movl	$2, %eax
	cmovll	%ebx, %eax
	incl	%ecx
	movl	%ecx, _SV_SendQueuedPackets.dlNextRound(%rip)
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_SV_SendQueuedPackets.dlNextRound,4,2 ## @SV_SendQueuedPackets.dlNextRound
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_sv_dlRate,8,3                  ## @sv_dlRate
	.comm	_MAX_DOWNLOAD_BLKSIZE,4,2       ## @MAX_DOWNLOAD_BLKSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SV_SendQueuedPackets           ; -- Begin function SV_SendQueuedPackets
	.p2align	2
_SV_SendQueuedPackets:                  ; @SV_SendQueuedPackets
	.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
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_SV_SendQueuedMessages
	cmp	w0, #0
	csel	w19, w19, w0, lt
Lloh3:
	adrp	x23, _sv_dlRate@GOTPAGE
Lloh4:
	ldr	x23, [x23, _sv_dlRate@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	bl	_Sys_Milliseconds
	adrp	x22, _SV_SendQueuedPackets.dlNextRound@PAGE
	ldr	w8, [x22, _SV_SendQueuedPackets.dlNextRound@PAGEOFF]
	sub	w8, w8, w0
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	cmp	w8, w19
	csinc	w19, w19, w8, ge
	b	LBB0_4
LBB0_3:
	bl	_SV_SendDownloadMessages
	cmp	w0, #0
	csel	w19, w19, wzr, eq
LBB0_4:
	mov	x0, x19
LBB0_5:
	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
LBB0_6:
	mov	x20, x0
	bl	_SV_SendDownloadMessages
	cbz	w0, LBB0_4
; %bb.7:
	mov	x21, x0
	bl	_Sys_Milliseconds
	sub	w8, w0, w20
Lloh5:
	adrp	x9, _MAX_DOWNLOAD_BLKSIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MAX_DOWNLOAD_BLKSIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	mul	w9, w21, w9
	mov	w10, #1000
	mul	w9, w9, w10
	ldr	x10, [x23]
	ldr	w10, [x10]
	lsl	w10, w10, #10
	sdiv	w9, w9, w10
	add	w10, w8, #1
	cmp	w9, w10
	b.le	LBB0_9
; %bb.8:
	add	w10, w9, w20
	str	w10, [x22, _SV_SendQueuedPackets.dlNextRound@PAGEOFF]
	sub	w8, w9, w8
	cmp	w8, w19
	csel	w0, w8, w19, lt
	b	LBB0_5
LBB0_9:
	mov	w8, #2
	cmp	w19, #2
	csel	w8, w19, w8, lt
	add	w9, w0, #1
	str	w9, [x22, _SV_SendQueuedPackets.dlNextRound@PAGEOFF]
	mov	x0, x8
	b	LBB0_5
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_SV_SendQueuedPackets.dlNextRound,4,2 ; @SV_SendQueuedPackets.dlNextRound
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_sv_dlRate,8,3                  ; @sv_dlRate
	.comm	_MAX_DOWNLOAD_BLKSIZE,4,2       ; @MAX_DOWNLOAD_BLKSIZE
.subsections_via_symbols
