	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_PlatformInit               ## -- Begin function Sys_PlatformInit
	.p2align	4, 0x90
_Sys_PlatformInit:                      ## @Sys_PlatformInit
	.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	_Sys_SetFloatEnv
	leaq	-16(%rbp), %rdi
	movl	$4, %esi
	callq	_timeGetDevCaps
	movq	_MMSYSERR_NOERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movl	-16(%rbp), %esi
	movq	_timerResolution@GOTPCREL(%rip), %rbx
	movl	%esi, (%rbx)
	cmpl	$2, %esi
	jl	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_Com_Printf
	movl	(%rbx), %esi
LBB0_3:
	movl	%esi, %edi
	callq	_timeBeginPeriod
	jmp	LBB0_5
LBB0_4:
	movq	_timerResolution@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MMSYSERR_NOERROR,8,3           ## @MMSYSERR_NOERROR
	.comm	_timerResolution,4,2            ## @timerResolution
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: Minimum supported timer resolution is %ums on this system, recommended resolution 1ms\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_PlatformInit               ; -- Begin function Sys_PlatformInit
	.p2align	2
_Sys_PlatformInit:                      ; @Sys_PlatformInit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	bl	_Sys_SetFloatEnv
	add	x0, sp, #8
	mov	w1, #4
	bl	_timeGetDevCaps
Lloh0:
	adrp	x8, _MMSYSERR_NOERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MMSYSERR_NOERROR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.1:
	ldr	w1, [sp, #8]
Lloh3:
	adrp	x19, _timerResolution@GOTPAGE
Lloh4:
	ldr	x19, [x19, _timerResolution@GOTPAGEOFF]
	str	w1, [x19]
	cmp	w1, #2
	b.lt	LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_Com_Printf
	ldr	w1, [x19]
LBB0_3:
	mov	x0, x1
	bl	_timeBeginPeriod
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _timerResolution@GOTPAGE
Lloh8:
	ldr	x8, [x8, _timerResolution@GOTPAGEOFF]
Lloh9:
	str	wzr, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MMSYSERR_NOERROR,8,3           ; @MMSYSERR_NOERROR
	.comm	_timerResolution,4,2            ; @timerResolution
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: Minimum supported timer resolution is %ums on this system, recommended resolution 1ms\n"

.subsections_via_symbols
