	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___libogc_gettod_r              ## -- Begin function __libogc_gettod_r
	.p2align	4, 0x90
___libogc_gettod_r:                     ## @__libogc_gettod_r
	.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	%rdx, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %rbx
	xorl	%edi, %edi
	callq	_time
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
	callq	_gettick
	movl	%eax, %edi
	callq	_ticks_to_microsecs
	cltq
	imulq	$1125899907, %rax, %rcx         ## imm = 0x431BDE83
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$50, %rcx
	addl	%edx, %ecx
	imull	$1000000, %ecx, %ecx            ## imm = 0xF4240
	subl	%ecx, %eax
	movl	%eax, (%rbx)
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___libogc_gettod_r              ; -- Begin function __libogc_gettod_r
	.p2align	2
___libogc_gettod_r:                     ; @__libogc_gettod_r
	.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
	mov	x19, x2
	cbz	x1, LBB0_2
; %bb.1:
	mov	x20, x1
	mov	x0, #0
	bl	_time
	str	w0, [x20, #4]
	bl	_gettick
	bl	_ticks_to_microsecs
	mov	w8, #56963
	movk	w8, #17179, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #50
	add	w8, w8, w9
	mov	w9, #16960
	movk	w9, #15, lsl #16
	msub	w8, w8, w9, w0
	str	w8, [x20]
LBB0_2:
	cbz	x19, LBB0_4
; %bb.3:
	stp	xzr, xzr, [x19]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
