	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function compute_frame_duration
LCPI0_0:
	.quad	0x40f5f90000000000              ## double 9.0E+4
LCPI0_1:
	.quad	0x40ad538000000000              ## double 3753.75
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_compute_frame_duration:                ## @compute_frame_duration
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rdi), %r9
	movq	24(%rdi), %rsi
	movl	(%r9), %r8d
	movl	%r8d, %eax
	shll	$6, %eax
	cmpl	$2, %r8d
	movl	$64, %edx
	cmovgel	%eax, %edx
	movq	8(%rsi), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	8(%rax), %rcx
	movq	(%rsi), %rsi
	movq	(%rcx,%rsi,8), %rsi
	movq	32(%rsi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:
	movq	40(%rsi), %r10
	testq	%r10, %r10
	je	LBB0_4
## %bb.3:
	cvtsi2sd	%r10, %xmm1
	cvtsi2sdq	(%rsi), %xmm0
	mulsd	%xmm1, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%rcx, %xmm1
	cvtsi2sdq	8(%rsi), %xmm2
	mulsd	%xmm1, %xmm2
	divsd	%xmm2, %xmm0
	jmp	LBB0_12
LBB0_4:
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_AV_CODEC_ID_NONE@GOTPCREL(%rip), %rcx
	xorpd	%xmm0, %xmm0
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.5:
	movq	16(%rsi), %r10
	movq	24(%rsi), %rax
	movq	%rax, %rcx
	shlq	$6, %rcx
	cmpq	%r10, %rcx
	jle	LBB0_8
## %bb.6:
	leaq	(,%rax,8), %rcx
	cmpq	%rcx, %r10
	jle	LBB0_8
## %bb.7:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	cvtsi2sd	%r10, %xmm1
	jmp	LBB0_11
LBB0_17:
	movslq	4(%r9), %rax
	imull	%eax, %edx
	movl	8(%r9), %ecx
	xorpd	%xmm0, %xmm0
	cmpl	%ecx, %edx
	jle	LBB0_21
## %bb.18:
	movq	%rax, %rdx
	shlq	$3, %rdx
	movslq	%ecx, %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_21
## %bb.19:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	cvtsi2sd	%ecx, %xmm1
	divsd	%xmm1, %xmm0
	cmpl	$2, %r8d
	jge	LBB0_20
LBB0_16:
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	mulsd	%xmm0, %xmm1
	xorpd	%xmm2, %xmm2
	cmpeqsd	%xmm0, %xmm2
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	andpd	%xmm2, %xmm0
	andnpd	%xmm1, %xmm2
	orpd	%xmm0, %xmm2
	movlpd	%xmm2, (%rdi)
	movlpd	%xmm2, 8(%rdi)
	popq	%rbp
	retq
LBB0_8:
	movq	(%rsi), %rax
	movq	8(%rsi), %rcx
	movq	%rax, %rsi
	shlq	$6, %rsi
	cmpq	%rcx, %rsi
	jle	LBB0_13
## %bb.9:
	leaq	(,%rax,8), %rsi
	cmpq	%rsi, %rcx
	jle	LBB0_13
## %bb.10:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	cvtsi2sd	%rcx, %xmm1
LBB0_11:
	divsd	%xmm1, %xmm0
LBB0_12:
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	jne	LBB0_21
	jp	LBB0_21
LBB0_13:
	movslq	4(%r9), %rax
	imull	%eax, %edx
	movl	8(%r9), %ecx
	cmpl	%ecx, %edx
	jle	LBB0_21
## %bb.14:
	movq	%rax, %rdx
	shlq	$3, %rdx
	movslq	%ecx, %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_21
## %bb.15:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ecx, %xmm1
	divsd	%xmm1, %xmm0
	cmpl	$1, %r8d
	jle	LBB0_16
LBB0_20:
	xorps	%xmm1, %xmm1
	cvtsi2sd	%r8d, %xmm1
	mulsd	%xmm0, %xmm1
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	mulsd	%xmm1, %xmm0
	xorpd	%xmm2, %xmm2
	cmpeqsd	%xmm1, %xmm2
	movsd	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero
	andpd	%xmm2, %xmm1
	andnpd	%xmm0, %xmm2
	orpd	%xmm2, %xmm1
	movlpd	%xmm1, (%rdi)
	jmp	LBB0_22
LBB0_21:
	movsd	LCPI0_0(%rip), %xmm2            ## xmm2 = mem[0],zero
	mulsd	%xmm0, %xmm2
	xorpd	%xmm1, %xmm1
	cmpeqsd	%xmm0, %xmm1
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	andpd	%xmm1, %xmm0
	andnpd	%xmm2, %xmm1
	orpd	%xmm0, %xmm1
	movlpd	%xmm1, (%rdi)
	movlpd	%xmm1, 8(%rdi)
	cmpl	$2, %r8d
	jl	LBB0_23
LBB0_22:
	addq	$8, %rdi
	xorps	%xmm0, %xmm0
	cvtsi2sd	%r8d, %xmm0
	divsd	%xmm0, %xmm1
	movsd	%xmm1, (%rdi)
LBB0_23:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_NONE,8,3           ## @AV_CODEC_ID_NONE
	.no_dead_strip	_compute_frame_duration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compute_frame_duration
_compute_frame_duration:                ; @compute_frame_duration
	.cfi_startproc
; %bb.0:
	ldp	x9, x11, [x0, #16]
	ldr	w8, [x9]
	lsl	w10, w8, #6
	mov	w12, #64
	cmp	w8, #1
	csel	w10, w10, w12, gt
	ldr	x12, [x11, #8]
	cbz	x12, LBB0_4
; %bb.1:
	ldr	x13, [x12, #8]
	ldr	x11, [x11]
	ldr	x11, [x13, x11, lsl #3]
	ldr	x13, [x11, #32]
	cbz	x13, LBB0_7
; %bb.2:
	ldr	x14, [x11, #40]
	cbz	x14, LBB0_7
; %bb.3:
	scvtf	d0, x14
	ldp	d1, d2, [x11]
	scvtf	d1, d1
	fmul	d0, d0, d1
	scvtf	d1, x13
	scvtf	d2, d2
	fmul	d1, d1, d2
	b	LBB0_12
LBB0_4:
	ldp	w11, w9, [x9, #4]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	mul	w10, w11, w10
	sxtw	x12, w9
	lsl	x13, x11, #3
	movi	d0, #0000000000000000
	cmp	w10, w9
	ccmp	x13, x12, #0, gt
	b.ge	LBB0_14
; %bb.5:
	scvtf	d0, w11
	scvtf	d1, w9
	fdiv	d0, d0, d1
	cmp	w8, #2
	b.ge	LBB0_17
LBB0_6:
	mov	x8, #273778395316224
	movk	x8, #16629, lsl #48
	fmov	d1, x8
	fmul	d1, d0, d1
	fcmp	d0, #0.0
	mov	x8, #91809220919296
	movk	x8, #16557, lsl #48
	fmov	d0, x8
	fcsel	d0, d0, d1, eq
	stp	d0, d0, [x0]
	ret
LBB0_7:
	ldr	x12, [x12]
	ldr	x12, [x12]
Lloh0:
	adrp	x13, _AV_CODEC_ID_NONE@GOTPAGE
Lloh1:
	ldr	x13, [x13, _AV_CODEC_ID_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x13, [x13]
	movi	d0, #0000000000000000
	cmp	x12, x13
	b.ne	LBB0_13
; %bb.8:
	ldp	x13, x12, [x11, #16]
	lsl	x14, x12, #3
	cmp	x13, x12, lsl #6
	ccmp	x13, x14, #4, lt
	b.gt	LBB0_11
; %bb.9:
	ldp	x12, x11, [x11]
	lsl	x13, x12, #3
	cmp	x11, x12, lsl #6
	ccmp	x11, x13, #4, lt
	b.le	LBB0_13
; %bb.10:
	scvtf	d0, x12
	scvtf	d1, x11
	b	LBB0_12
LBB0_11:
	scvtf	d0, x12
	scvtf	d1, x13
LBB0_12:
	fdiv	d0, d0, d1
	fcmp	d0, #0.0
	b.ne	LBB0_14
LBB0_13:
	ldp	w11, w9, [x9, #4]
                                        ; kill: def $w11 killed $w11 def $x11
	sxtw	x11, w11
	mul	w10, w11, w10
	sxtw	x12, w9
	lsl	x13, x11, #3
	cmp	w10, w9
	ccmp	x13, x12, #0, gt
	b.lt	LBB0_16
LBB0_14:
	mov	x9, #273778395316224
	movk	x9, #16629, lsl #48
	fmov	d1, x9
	fmul	d1, d0, d1
	fcmp	d0, #0.0
	mov	x9, #91809220919296
	movk	x9, #16557, lsl #48
	fmov	d0, x9
	fcsel	d0, d0, d1, eq
	str	d0, [x0]
	str	d0, [x0, #8]!
	cmp	w8, #2
	b.ge	LBB0_18
; %bb.15:
	ret
LBB0_16:
	scvtf	d0, w11
	scvtf	d1, w9
	fdiv	d0, d0, d1
	cmp	w8, #1
	b.le	LBB0_6
LBB0_17:
	scvtf	d1, w8
	fmul	d0, d0, d1
	mov	x9, #273778395316224
	movk	x9, #16629, lsl #48
	fmov	d1, x9
	fmul	d1, d0, d1
	fcmp	d0, #0.0
	mov	x9, #91809220919296
	movk	x9, #16557, lsl #48
	fmov	d0, x9
	fcsel	d0, d0, d1, eq
	str	d0, [x0], #8
LBB0_18:
	scvtf	d1, w8
	fdiv	d0, d0, d1
	str	d0, [x0]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_NONE,8,3           ; @AV_CODEC_ID_NONE
	.no_dead_strip	_compute_frame_duration
.subsections_via_symbols
