	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function UI_Init
LCPI0_0:
	.quad	0x3f61111111111111              ## double 0.0020833333333333333
LCPI0_1:
	.quad	0x4084000000000000              ## double 640
LCPI0_2:
	.quad	0xbff5555555555555              ## double -1.3333333333333333
LCPI0_3:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_UI_Init
	.p2align	4, 0x90
_UI_Init:                               ## @UI_Init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_UI_RegisterCvars
	xorl	%eax, %eax
	callq	_UI_InitGameinfo
	movq	_uis@GOTPCREL(%rip), %rbx
	leaq	32(%rbx), %rdi
	callq	_trap_GetGlconfig
	movsd	32(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	movsd	%xmm1, (%rbx)
	movl	40(%rbx), %eax
	imull	$480, %eax, %ecx                ## imm = 0x1E0
	cvtsi2sd	%ecx, %xmm2
	movsd	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero
	mulsd	%xmm0, %xmm3
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm3, %xmm2
	jbe	LBB0_2
## %bb.1:
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	mulsd	LCPI0_2(%rip), %xmm0
	addsd	%xmm1, %xmm0
	mulsd	LCPI0_3(%rip), %xmm0
	movapd	%xmm0, %xmm1
LBB0_2:
	movsd	%xmm1, 8(%rbx)
	xorl	%eax, %eax
	callq	_Menu_Cache
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, 16(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uis,48,3                       ## @uis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_Init                        ; -- Begin function UI_Init
	.p2align	2
_UI_Init:                               ; @UI_Init
	.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
	bl	_UI_RegisterCvars
	bl	_UI_InitGameinfo
Lloh0:
	adrp	x19, _uis@GOTPAGE
Lloh1:
	ldr	x19, [x19, _uis@GOTPAGEOFF]
	add	x0, x19, #32
	bl	_trap_GetGlconfig
	ldr	d0, [x19, #32]
	mov	x8, #1229782938247303441
	movk	x8, #16225, lsl #48
	fmov	d1, x8
	fmul	d1, d0, d1
	ldr	w8, [x19, #40]
	mov	w9, #480
	mul	w9, w8, w9
	scvtf	d2, w9
	mov	x9, #4648840715353194496
	scvtf	d3, w8
	mov	x8, #6148914691236517205
	movk	x8, #49141, lsl #48
	fmov	d4, x8
	fmadd	d3, d0, d4, d3
	fmov	d4, x9
	fmul	d0, d0, d4
	fmov	d4, #0.50000000
	fmul	d3, d3, d4
	fcmp	d0, d2
	movi	d0, #0000000000000000
	fcsel	d0, d3, d0, mi
	stp	d1, d0, [x19]
	bl	_Menu_Cache
	stp	xzr, xzr, [x19, #16]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_uis,48,3                       ; @uis
.subsections_via_symbols
