	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SV_RateMsec
_SV_RateMsec:                           ## @SV_RateMsec
	.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	%esi, %r14d
	movl	(%rdi), %ebx
	movq	_sv_maxRate@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$999, %eax                      ## imm = 0x3E7
	jg	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_Cvar_Set
	movq	(%r15), %rax
	movl	(%rax), %eax
LBB0_3:
	cmpl	%ebx, %eax
	cmovll	%eax, %ebx
LBB0_4:
	cmpl	$1500, %r14d                    ## imm = 0x5DC
	movl	$1500, %eax                     ## imm = 0x5DC
	cmovll	%r14d, %eax
	movq	_HEADER_RATE_BYTES@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	cltd
	idivl	%ebx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sv_maxRate,8,3                 ## @sv_maxRate
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sv_MaxRate"

L_.str.1:                               ## @.str.1
	.asciz	"1000"

	.comm	_HEADER_RATE_BYTES,4,2          ## @HEADER_RATE_BYTES
	.no_dead_strip	_SV_RateMsec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SV_RateMsec
_SV_RateMsec:                           ; @SV_RateMsec
	.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	x19, x1
	ldr	w20, [x0]
Lloh0:
	adrp	x21, _sv_maxRate@GOTPAGE
Lloh1:
	ldr	x21, [x21, _sv_maxRate@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	cmp	w8, #999
	b.gt	LBB0_3
; %bb.2:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Cvar_Set
	ldr	x8, [x21]
	ldr	w8, [x8]
LBB0_3:
	cmp	w8, w20
	csel	w20, w8, w20, lt
LBB0_4:
	mov	w8, #1500
	cmp	w19, #1500
	csel	w8, w19, w8, lt
Lloh6:
	adrp	x9, _HEADER_RATE_BYTES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HEADER_RATE_BYTES@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	add	w8, w9, w8
	mov	w9, #1000
	mul	w8, w8, w9
	sdiv	w0, w8, w20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_sv_maxRate,8,3                 ; @sv_maxRate
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sv_MaxRate"

l_.str.1:                               ; @.str.1
	.asciz	"1000"

	.comm	_HEADER_RATE_BYTES,4,2          ; @HEADER_RATE_BYTES
	.no_dead_strip	_SV_RateMsec
.subsections_via_symbols
