	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ov_time_tell                   ## -- Begin function ov_time_tell
	.p2align	4, 0x90
_ov_time_tell:                          ## @ov_time_tell
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	_OPENED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_2
## %bb.1:
	movq	_OV_EINVAL@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	jmp	LBB0_9
LBB0_2:
	movq	%rdi, %r14
	cmpq	$0, 40(%rdi)
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_ov_pcm_total
	movq	%rax, %r12
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_ov_time_total
	movapd	%xmm0, %xmm1
	movslq	8(%r14), %r13
	movl	%r13d, %r15d
	sarl	$31, %r15d
	andl	%r13d, %r15d
	decl	%r15d
	leal	-1(%r13,%r13), %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r13, %r13
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r13d, %eax
	decq	%r13
	leal	-1(%rax), %esi
	movq	16(%r14), %rax
	movslq	%ebx, %rbx
	subq	(%rax,%rbx,8), %r12
	movq	%r14, %rdi
	movsd	%xmm1, -48(%rbp)                ## 8-byte Spill
	callq	_ov_time_total
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	addl	$-2, %ebx
	cmpq	%r12, 24(%r14)
	jl	LBB0_5
## %bb.7:
	movl	%r13d, %r15d
	jmp	LBB0_8
LBB0_3:
	xorpd	%xmm1, %xmm1
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
LBB0_8:
	movq	24(%r14), %rax
	subq	%r12, %rax
	movq	32(%r14), %rcx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movslq	%r15d, %rax
	divsd	(%rcx,%rax,8), %xmm0
	addsd	%xmm1, %xmm0
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPENED,8,3                     ## @OPENED
	.comm	_OV_EINVAL,8,3                  ## @OV_EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ov_time_tell                   ; -- Begin function ov_time_tell
	.p2align	2
_ov_time_tell:                          ; @ov_time_tell
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _OPENED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OPENED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _OV_EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OV_EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	d0, [x8]
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x0, x19
	mov	w1, #-1
	bl	_ov_pcm_total
	mov	x20, x0
	mov	x0, x19
	mov	w1, #-1
	bl	_ov_time_total
	fmov	d8, d0
	ldrsw	x8, [x19, #8]
	cmp	w8, #0
	csel	w9, w8, wzr, lt
	sub	w21, w9, #1
	lsl	w9, w8, #1
	sub	w22, w9, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	subs	x23, x8, #1
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w8, #1
	ldr	x8, [x19, #16]
	ldr	x8, [x8, w22, sxtw #3]
	sub	x20, x20, x8
	mov	x0, x19
	bl	_ov_time_total
	fsub	d8, d8, d0
	ldr	x9, [x19, #24]
	sub	w22, w22, #2
	mov	x8, x23
	cmp	x9, x20
	b.lt	LBB0_4
; %bb.6:
	mov	x21, x23
	b	LBB0_8
LBB0_7:
	mov	w21, #0
	mov	x20, #0
	movi	d8, #0000000000000000
LBB0_8:
	ldp	x8, x9, [x19, #24]
	sub	x8, x8, x20
	scvtf	d0, x8
	ldr	d1, [x9, w21, sxtw #3]
	fdiv	d0, d0, d1
	fadd	d0, d8, d0
LBB0_9:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OPENED,8,3                     ; @OPENED
	.comm	_OV_EINVAL,8,3                  ; @OV_EINVAL
.subsections_via_symbols
