	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SDL_GetTickHR                  ## -- Begin function SDL_GetTickHR
	.p2align	4, 0x90
_SDL_GetTickHR:                         ## @SDL_GetTickHR
	.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
	movq	_g_is_mach_base_info_inited@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_1
## %bb.2:
	movq	_g_mach_base_info_ret@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	leaq	-16(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	imull	$1000, -16(%rbp), %ecx          ## imm = 0x3E8
	movslq	-12(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	addl	%ecx, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_g_mach_base_info@GOTPCREL(%rip), %rdi
	callq	_mach_timebase_info
	movq	_g_mach_base_info_ret@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movl	$1, (%rbx)
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	callq	_mach_absolute_time
	movq	_g_mach_base_info@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	cltd
	idivl	4(%rcx)
	cltq
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$50, %rax
	addl	%ecx, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_g_is_mach_base_info_inited,4,2 ## @g_is_mach_base_info_inited
	.comm	_g_mach_base_info,8,2           ## @g_mach_base_info
	.comm	_g_mach_base_info_ret,8,3       ## @g_mach_base_info_ret
	.comm	_CLOCK_MONOTONIC_COARSE,4,2     ## @CLOCK_MONOTONIC_COARSE
	.comm	_CLOCK_MONOTONIC_HR,4,2         ## @CLOCK_MONOTONIC_HR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SDL_GetTickHR                  ; -- Begin function SDL_GetTickHR
	.p2align	2
_SDL_GetTickHR:                         ; @SDL_GetTickHR
	.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
Lloh0:
	adrp	x19, _g_is_mach_base_info_inited@GOTPAGE
Lloh1:
	ldr	x19, [x19, _g_is_mach_base_info_inited@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _g_mach_base_info_ret@GOTPAGE
Lloh3:
	ldr	x8, [x8, _g_mach_base_info_ret@GOTPAGEOFF]
Lloh4:
	ldr	x0, [x8]
	cbz	x0, LBB0_4
LBB0_2:
	add	x0, sp, #8
	mov	x1, #0
	bl	_gettimeofday
	mov	w8, #1000
	ldp	w9, w10, [sp, #8]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	madd	w0, w9, w8, w10
	b	LBB0_5
LBB0_3:
Lloh5:
	adrp	x0, _g_mach_base_info@GOTPAGE
Lloh6:
	ldr	x0, [x0, _g_mach_base_info@GOTPAGEOFF]
	bl	_mach_timebase_info
Lloh7:
	adrp	x8, _g_mach_base_info_ret@GOTPAGE
Lloh8:
	ldr	x8, [x8, _g_mach_base_info_ret@GOTPAGEOFF]
Lloh9:
	str	x0, [x8]
	mov	w8, #1
	str	w8, [x19]
	cbnz	x0, LBB0_2
LBB0_4:
	bl	_mach_absolute_time
Lloh10:
	adrp	x8, _g_mach_base_info@GOTPAGE
Lloh11:
	ldr	x8, [x8, _g_mach_base_info@GOTPAGEOFF]
	ldp	w9, w8, [x8]
	mul	w9, w9, w0
	sdiv	w8, w9, w8
	mov	w9, #56963
	movk	w9, #17179, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w0, w8, w9
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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_g_is_mach_base_info_inited,4,2 ; @g_is_mach_base_info_inited
	.comm	_g_mach_base_info,8,2           ; @g_mach_base_info
	.comm	_g_mach_base_info_ret,8,3       ; @g_mach_base_info_ret
	.comm	_CLOCK_MONOTONIC_COARSE,4,2     ; @CLOCK_MONOTONIC_COARSE
	.comm	_CLOCK_MONOTONIC_HR,4,2         ; @CLOCK_MONOTONIC_HR
.subsections_via_symbols
