	.file	"extr_utils.c_avformat_transfer_internal_stream_timing_info.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"avi"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"mov,mp4,3gp,3g2,psp,ipod,ismv,f4v"
	.section	.rodata.str1.1
.LC3:
	.string	"tmcd"
	.text
	.p2align 4
	.globl	avformat_transfer_internal_stream_timing_info
	.type	avformat_transfer_internal_stream_timing_info, @function
avformat_transfer_internal_stream_timing_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rbx, QWORD PTR 32[rsi]
	mov	rax, QWORD PTR 16[rdx]
	lea	rsi, .LC0[rip]
	mov	r15, QWORD PTR 32[rdx]
	mov	edi, DWORD PTR 4[rdi]
	mov	QWORD PTR 16[rbx], rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	cmp	DWORD PTR AVFMT_TBCF_AUTO[rip], r14d
	je	.L3
.L6:
	cmp	DWORD PTR AVFMT_TBCF_DECODER[rip], r14d
	je	.L4
.L9:
	mov	r12, QWORD PTR 8[rbx]
	lea	rdi, .LC3[rip]
	call	AV_RL32@PLT
	cmp	r12, rax
	jne	.L15
.L19:
	movsx	rax, DWORD PTR 16[r15]
	movsx	rdx, DWORD PTR 20[r15]
	cmp	eax, edx
	jge	.L20
	test	eax, eax
	jg	.L30
.L20:
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	jne	.L31
.L21:
	movsx	rcx, DWORD PTR 20[rbx]
	movsx	rdx, DWORD PTR 16[rbx]
	lea	rsi, 20[rbx]
	lea	rdi, 16[rbx]
	mov	r8d, DWORD PTR INT_MAX[rip]
	call	av_reduce@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR AVFMT_VARIABLE_FPS[rip], eax
	jne	.L9
	mov	edi, DWORD PTR 4[r13]
	lea	rsi, .LC2[rip]
	call	av_match_name@PLT
	test	eax, eax
	jne	.L9
	cmp	DWORD PTR AVFMT_TBCF_AUTO[rip], r14d
	je	.L10
.L12:
	cmp	DWORD PTR AVFMT_TBCF_DECODER[rip], r14d
	jne	.L9
.L11:
	mov	rax, QWORD PTR 16[r15]
	mov	QWORD PTR 16[rbx], rax
	imul	eax, DWORD PTR [r15]
	mov	DWORD PTR 16[rbx], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rax, QWORD PTR 8[rbp]
	lea	rdi, .LC3[rip]
	mov	r12, QWORD PTR [rax]
	call	AV_RL32@PLT
	cmp	r12, rax
	je	.L19
	mov	eax, DWORD PTR 0[rbp]
	test	eax, eax
	je	.L21
.L31:
	mov	rdi, QWORD PTR 0[rbp]
	call	av_inv_q@PLT
	mov	QWORD PTR 16[rbx], rax
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rcx, rax
	sal	rcx, 4
	sub	rcx, rax
	lea	rax, [rax+rcx*8]
	cmp	rax, rdx
	jle	.L20
	mov	rax, QWORD PTR 16[r15]
	mov	QWORD PTR 16[rbx], rax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR 16[r15]
	call	av_q2d@PLT
	pxor	xmm1, xmm1
	mov	rdi, QWORD PTR 16[r12]
	cvtsi2sd	xmm1, DWORD PTR [r15]
	mulsd	xmm1, xmm0
	movsd	QWORD PTR 8[rsp], xmm1
	call	av_q2d@PLT
	movsd	xmm1, QWORD PTR 8[rsp]
	addsd	xmm0, xmm0
	comisd	xmm1, xmm0
	jbe	.L6
	mov	rdi, QWORD PTR 16[r12]
	call	av_q2d@PLT
	movsd	xmm1, QWORD PTR .LC1[rip]
	comisd	xmm1, xmm0
	jbe	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 16[r15]
	mov	QWORD PTR 16[rbx], rax
	imul	eax, DWORD PTR [r15]
	mov	DWORD PTR [rbx], 2
	sal	DWORD PTR 20[rbx]
	mov	DWORD PTR 16[rbx], eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, DWORD PTR 20[r15]
	test	edx, edx
	je	.L12
	mov	rdi, QWORD PTR 16[r15]
	call	av_q2d@PLT
	pxor	xmm1, xmm1
	mov	rdi, QWORD PTR 16[r12]
	cvtsi2sd	xmm1, DWORD PTR [r15]
	mulsd	xmm1, xmm0
	movsd	QWORD PTR 8[rsp], xmm1
	call	av_q2d@PLT
	movsd	xmm1, QWORD PTR 8[rsp]
	comisd	xmm1, xmm0
	jbe	.L12
	mov	rdi, QWORD PTR 16[r12]
	call	av_q2d@PLT
	movsd	xmm1, QWORD PTR .LC1[rip]
	comisd	xmm1, xmm0
	jbe	.L12
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	avformat_transfer_internal_stream_timing_info, .-avformat_transfer_internal_stream_timing_info
	.comm	INT_MAX,4,4
	.comm	AVFMT_VARIABLE_FPS,4,4
	.comm	AVFMT_TBCF_R_FRAMERATE,4,4
	.comm	AVFMT_TBCF_DECODER,4,4
	.comm	AVFMT_TBCF_AUTO,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC1:
	.long	3539053052
	.long	1063281229
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_utils.c_avformat_transfer_internal_stream_timing_info.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"avi\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmplt
	.align	2
.LC1:
	.ascii	"mov,mp4,3gp,3g2,psp,ipod,ismv,f4v\000"
	.align	2
.LC2:
	.ascii	"tmcd\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	avformat_transfer_internal_stream_timing_info
	.syntax unified
	.arm
	.fpu softvfp
	.type	avformat_transfer_internal_stream_timing_info, %function
avformat_transfer_internal_stream_timing_info:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r10, r0
	ldr	r4, [r1, #28]
	add	r8, r2, #12
	add	r6, r4, #8
	ldr	r9, [r2, #28]
	mov	r5, r1
	ldm	r8, {r0, r1}
	stm	r6, {r0, r1}
	mov	r7, r3
	ldr	r3, .L38
	sub	sp, sp, #40
	ldr	r0, [r10, #4]
	ldr	r1, .L38+4
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	strcmp
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L38+8
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L3
.L6:
	ldr	r3, .L38+12
	ldr	r3, [r3]
	cmp	r3, r7
	addeq	r10, r9, #8
	beq	.L4
.L9:
	ldr	r0, .L38+16
	ldr	r7, [r4, #4]
	bl	AV_RL32
	cmp	r7, r0
	bne	.L15
.L18:
	ldr	ip, [r9, #8]
	ldr	r2, [r9, #12]
	cmp	ip, r2
	movge	r3, #0
	movlt	r3, #1
	cmp	ip, #0
	movle	r3, #0
	cmp	r3, #0
	bne	.L35
.L19:
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L36
.L20:
	ldr	r3, .L38+20
	ldr	r2, [r4, #8]
	ldr	r3, [r3]
	add	r1, r4, #12
	str	r3, [sp, #8]
	ldr	r3, [r4, #12]
	mov	r0, r6
	mov	r4, r3
	asr	r5, r3, #31
	stm	sp, {r4-r5}
	asr	r3, r2, #31
	bl	av_reduce
	ldr	r3, .L38
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	mov	r0, #0
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L38+24
	ldr	r2, [r10]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L9
	ldr	r0, [r10, #4]
	ldr	r1, .L38+28
	bl	av_match_name
	cmp	r0, #0
	bne	.L9
	ldr	r3, .L38+8
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L10
.L12:
	ldr	r3, .L38+12
	ldr	r3, [r3]
	cmp	r3, r7
	addeq	r10, r9, #8
	bne	.L9
.L11:
	ldm	r10, {r0, r1}
	stm	r6, {r0, r1}
	ldr	r2, [r9]
	ldr	r3, [r4, #8]
	mul	r3, r2, r3
	str	r3, [r4, #8]
	b	.L9
.L15:
	ldr	r3, [r5, #8]
	ldr	r0, .L38+16
	ldr	r7, [r3]
	bl	AV_RL32
	cmp	r7, r0
	beq	.L18
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L20
.L36:
	ldm	r5, {r1, r2}
	add	r5, sp, #24
	mov	r0, r5
	bl	av_inv_q
	ldm	r5, {r0, r1}
	stm	r6, {r0, r1}
	b	.L20
.L35:
	mov	lr, #121
	smull	r0, r1, ip, lr
	asr	r3, r2, #31
	cmp	r2, r0
	sbcs	r3, r3, r1
	ldrlt	r1, [r9, #12]
	ldrlt	r0, [r9, #8]
	stmlt	r6, {r0, r1}
	b	.L19
.L3:
	add	r10, r9, #8
	ldm	r10, {r0, r1}
	bl	av_q2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [r9]
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	bl	__aeabi_i2d
	add	r3, sp, #16
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldm	r8, {r0, r1}
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	bl	av_q2d
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	add	r1, sp, #16
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	beq	.L6
	ldm	r8, {r0, r1}
	bl	av_q2d
	ldr	r2, .L38+32
	ldr	r3, .L38+36
	bl	__aeabi_dcmplt
	cmp	r0, #0
	beq	.L6
.L4:
	ldm	r10, {r0, r1}
	mov	ip, #2
	stm	r6, {r0, r1}
	ldr	r3, [r9]
	ldr	r2, [r4, #8]
	str	ip, [r4]
	mul	r2, r3, r2
	ldr	r3, [r4, #12]
	str	r2, [r4, #8]
	lsl	r3, r3, #1
	str	r3, [r4, #12]
	b	.L9
.L10:
	ldr	r3, [r9, #12]
	cmp	r3, #0
	beq	.L12
	add	r10, r9, #8
	ldm	r10, {r0, r1}
	bl	av_q2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, [r9]
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	bl	__aeabi_i2d
	add	r3, sp, #16
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldm	r8, {r0, r1}
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	bl	av_q2d
	mov	r2, r0
	mov	r3, r1
	add	r1, sp, #16
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	cmp	r0, #0
	beq	.L12
	ldm	r8, {r0, r1}
	bl	av_q2d
	ldr	r2, .L38+32
	ldr	r3, .L38+36
	bl	__aeabi_dcmplt
	cmp	r0, #0
	beq	.L12
	b	.L11
.L37:
	bl	__stack_chk_fail
.L39:
	.align	2
.L38:
	.word	.LC3
	.word	.LC0
	.word	AVFMT_TBCF_AUTO
	.word	AVFMT_TBCF_DECODER
	.word	.LC2
	.word	INT_MAX
	.word	AVFMT_VARIABLE_FPS
	.word	.LC1
	.word	-755914244
	.word	1063281229
	.size	avformat_transfer_internal_stream_timing_info, .-avformat_transfer_internal_stream_timing_info
	.comm	INT_MAX,4,4
	.comm	AVFMT_VARIABLE_FPS,4,4
	.comm	AVFMT_TBCF_R_FRAMERATE,4,4
	.comm	AVFMT_TBCF_DECODER,4,4
	.comm	AVFMT_TBCF_AUTO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
