	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CG_CalcVrect
_CG_CalcVrect:                          ## @CG_CalcVrect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_cg@GOTPCREL(%rip), %r14
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	_PM_INTERMISSION@GOTPCREL(%rip), %rcx
	movl	$100, %ebx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	_cg_viewsize@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	$30, %ebx
	jge	LBB0_3
## %bb.2:
	movl	$30, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_3:
	cmpl	$101, %ebx
	jb	LBB0_6
## %bb.4:
	movl	$100, %ebx
	leaq	L_.str.2(%rip), %rsi
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_trap_Cvar_Set
LBB0_6:
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %eax
	movl	%ecx, %edx
	imull	%ebx, %edx
	movslq	%edx, %rdx
	imulq	$1374389535, %rdx, %rdx         ## imm = 0x51EB851F
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$37, %rdx
	addl	%esi, %edx
	andl	$-2, %edx
	movl	%edx, (%r14)
	imull	%eax, %ebx
	movslq	%ebx, %rsi
	imulq	$1374389535, %rsi, %rsi         ## imm = 0x51EB851F
	movq	%rsi, %rdi
	shrq	$63, %rdi
	sarq	$37, %rsi
	addl	%edi, %esi
	andl	$-2, %esi
	movl	%esi, 4(%r14)
	subl	%edx, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movl	%edx, 8(%r14)
	subl	%esi, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, 12(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,24,3                        ## @cg
	.comm	_PM_INTERMISSION,8,3            ## @PM_INTERMISSION
	.comm	_cg_viewsize,4,2                ## @cg_viewsize
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cg_viewsize"

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

L_.str.2:                               ## @.str.2
	.asciz	"100"

	.comm	_cgs,8,2                        ## @cgs
	.no_dead_strip	_CG_CalcVrect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_CalcVrect
_CG_CalcVrect:                          ; @CG_CalcVrect
	.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
Lloh0:
	adrp	x19, _cg@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cg@GOTPAGEOFF]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _PM_INTERMISSION@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PM_INTERMISSION@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #100
	b	LBB0_7
LBB0_2:
Lloh5:
	adrp	x8, _cg_viewsize@GOTPAGE
Lloh6:
	ldr	x8, [x8, _cg_viewsize@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	cmp	w20, #30
	b.ge	LBB0_4
; %bb.3:
	mov	w20, #30
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:
	cmp	w20, #101
	b.lo	LBB0_7
; %bb.5:
	mov	w20, #100
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_6:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_trap_Cvar_Set
LBB0_7:
Lloh14:
	adrp	x8, _cgs@GOTPAGE
Lloh15:
	ldr	x8, [x8, _cgs@GOTPAGEOFF]
	ldp	w9, w8, [x8]
	mul	w10, w9, w20
	mov	w11, #34079
	movk	w11, #20971, lsl #16
	smull	x10, w10, w11
	lsr	x12, x10, #63
	asr	x10, x10, #37
	add	w10, w10, w12
	and	w10, w10, #0xfffffffe
	mul	w12, w8, w20
	smull	x11, w12, w11
	lsr	x12, x11, #63
	asr	x11, x11, #37
	add	w11, w11, w12
	and	w11, w11, #0xfffffffe
	stp	w10, w11, [x19]
	sub	w9, w9, w10
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	sub	w8, w8, w11
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	stp	w9, w8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,24,3                        ; @cg
	.comm	_PM_INTERMISSION,8,3            ; @PM_INTERMISSION
	.comm	_cg_viewsize,4,2                ; @cg_viewsize
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cg_viewsize"

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

l_.str.2:                               ; @.str.2
	.asciz	"100"

	.comm	_cgs,8,2                        ; @cgs
	.no_dead_strip	_CG_CalcVrect
.subsections_via_symbols
