	.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
	movl	(%rax), %eax
	jmp	LBB0_10
LBB0_2:
	movq	%rdi, %r14
	cmpq	$0, 32(%rdi)
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_ov_pcm_total
	movl	%eax, %r13d
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_ov_time_total
	movl	%eax, %r15d
	movslq	8(%r14), %rbx
	movl	%ebx, %eax
	sarl	$31, %eax
	andl	%ebx, %eax
	decl	%eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leal	(%rbx,%rbx), %r12d
	decl	%r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%ebx, %eax
	decq	%rbx
	leal	-1(%rax), %esi
	movq	24(%r14), %rax
	movslq	%r12d, %r12
	subl	(%rax,%r12,8), %r13d
	movq	%r14, %rdi
	callq	_ov_time_total
	subl	%eax, %r15d
	addl	$-2, %r12d
	cmpl	%r13d, 12(%r14)
	jl	LBB0_5
## %bb.8:
	movl	%ebx, %edx
	jmp	LBB0_9
LBB0_3:
	xorl	%edx, %edx
	xorl	%r13d, %r13d
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_6:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
LBB0_9:
	imull	$1000, 12(%r14), %eax           ## imm = 0x3E8
	subl	%r13d, %eax
	movq	16(%r14), %rcx
	movslq	%edx, %rsi
	cltd
	idivl	(%rcx,%rsi,4)
	addl	%r15d, %eax
LBB0_10:
	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,4,2                  ## @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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	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	w0, [x8]
	b	LBB0_9
LBB0_2:
	mov	x19, x0
	ldr	x8, [x0, #32]
	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
	mov	x21, x0
	ldrsw	x8, [x19, #8]
	cmp	w8, #0
	csel	w9, w8, wzr, lt
	sub	w22, w9, #1
	lsl	w9, w8, #1
	sub	w23, w9, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	subs	x24, x8, #1
	b.lt	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w1, w8, #1
	ldr	x8, [x19, #24]
	ldr	x8, [x8, w23, sxtw #3]
	sub	w20, w20, w8
	mov	x0, x19
	bl	_ov_time_total
	sub	w21, w21, w0
	ldr	w9, [x19, #12]
	sub	w23, w23, #2
	mov	x8, x24
	cmp	w9, w20
	b.lt	LBB0_4
; %bb.6:
	mov	x22, x24
	b	LBB0_8
LBB0_7:
	mov	w22, #0
	mov	w20, #0
	mov	w21, #0
LBB0_8:
	ldr	w8, [x19, #12]
	mov	w9, #1000
	neg	w10, w20
	madd	w8, w8, w9, w10
	ldr	x9, [x19, #16]
	ldr	w9, [x9, w22, sxtw #2]
	sdiv	w8, w8, w9
	add	w0, w8, w21
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 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,4,2                  ; @OV_EINVAL
.subsections_via_symbols
