	.file	"extr_mxfdec.c_mxf_compute_sample_count.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"seeking detected on stream #%d with time base (%d/%d) and sample rate (%d/%d), audio pts won't be accurate.\n"
	.section	.text.unlikely,"ax",@progbits
.LCOLDB1:
	.text
.LHOTB1:
	.p2align 4
	.type	mxf_compute_sample_count, @function
mxf_compute_sample_count:
.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
	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	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR 24[rsi]
	mov	edi, DWORD PTR [r14]
	call	av_inv_q@PLT
	mov	edi, DWORD PTR 16[rbx]
	mov	r15, rax
	sar	rax, 32
	mov	QWORD PTR [rsp], rax
	call	av_inv_q@PLT
	mov	rsi, QWORD PTR AVMEDIA_TYPE_AUDIO[rip]
	mov	rbp, rax
	mov	rax, QWORD PTR 8[rbx]
	cmp	QWORD PTR [rax], rsi
	jne	.L11
	mov	eax, ebp
	mov	rcx, rbp
	sar	rcx, 32
	cdq
	idiv	ecx
	cmp	eax, 48000
	je	.L21
.L3:
	mov	esi, DWORD PTR [rsp]
	mov	eax, ebp
	imul	eax, r15d
	imul	esi, ecx
	cdq
	idiv	esi
	test	edx, edx
	jne	.L22
.L6:
	mov	edx, DWORD PTR [r14]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rsi, rbp
	mov	edi, r12d
	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
	jmp	av_rescale_q@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	edi, DWORD PTR 0[r13]
	mov	rsi, r15
	mov	QWORD PTR 8[rsp], rcx
	call	ff_mxf_get_samples_per_frame@PLT
	mov	rcx, QWORD PTR 8[rsp]
	test	rax, rax
	mov	rsi, rax
	je	.L3
	mov	rcx, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rcx]
	test	rdx, rdx
	je	.L23
	mov	eax, 1
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	ebp, eax
	add	rax, 1
	add	ebx, edx
	mov	rdx, QWORD PTR -8[rcx+rax*8]
	test	rdx, rdx
	jne	.L4
	mov	edi, ebp
	mov	QWORD PTR [rsp], rsi
	call	av_assert2@PLT
	mov	eax, r12d
	cdq
	idiv	ebp
	mov	r12d, eax
	imul	r12d, ebx
	test	edx, edx
	jle	.L11
	mov	rsi, QWORD PTR [rsp]
	sub	edx, 1
	mov	rcx, QWORD PTR [rsi]
	lea	rax, 8[rcx]
	lea	rdx, [rax+rdx*8]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L24:
	add	rax, 8
.L7:
	add	r12d, DWORD PTR [rcx]
	mov	rcx, rax
	cmp	rdx, rax
	jne	.L24
.L11:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L22:
	.cfi_restore_state
	push	rcx
	.cfi_def_cfa_offset 88
	mov	edi, DWORD PTR 0[r13]
	lea	rdx, .LC0[rip]
	mov	r8d, r15d
	push	rbp
	.cfi_def_cfa_offset 96
	mov	esi, DWORD PTR AV_LOG_WARNING[rip]
	mov	r9d, DWORD PTR 16[rsp]
	mov	ecx, DWORD PTR [rbx]
	call	av_log@PLT
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	jmp	.L6
.L23:
	jmp	.L18
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	mxf_compute_sample_count.cold, @function
mxf_compute_sample_count.cold:
.LFSB0:
.L18:
	.cfi_def_cfa_offset 80
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	xor	edi, edi
	call	av_assert2@PLT
	ud2
	.cfi_endproc
.LFE0:
	.text
	.size	mxf_compute_sample_count, .-mxf_compute_sample_count
	.section	.text.unlikely
	.size	mxf_compute_sample_count.cold, .-mxf_compute_sample_count.cold
.LCOLDE1:
	.text
.LHOTE1:
	.comm	AV_LOG_WARNING,4,4
	.comm	AVMEDIA_TYPE_AUDIO,8,8
	.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_mxfdec.c_mxf_compute_sample_count.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"seeking detected on stream #%d with time base (%d/%"
	.ascii	"d) and sample rate (%d/%d), audio pts won't be accu"
	.ascii	"rate.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mxf_compute_sample_count, %function
mxf_compute_sample_count:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	sub	sp, sp, #52
	ldr	r7, [r1, #12]
	str	r3, [sp, #20]
	add	r8, sp, #28
	ldr	r3, .L26
	mov	r0, r8
	ldr	r1, [r7]
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	add	r6, sp, #36
	bl	av_inv_q
	ldr	r3, [sp, #28]
	mov	r0, r6
	ldr	r1, [r5, #8]
	str	r3, [sp, #16]
	ldr	fp, [sp, #32]
	bl	av_inv_q
	ldr	r2, [r5, #4]
	ldr	r3, .L26+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
	ldr	r9, [sp, #36]
	ldr	r10, [sp, #40]
	mov	r0, r9
	mov	r1, r10
	bl	__aeabi_idiv
	ldr	r3, .L26+8
	cmp	r0, r3
	beq	.L23
.L3:
	ldr	r0, [sp, #16]
	mul	r1, r10, fp
	mul	r0, r9, r0
	bl	__aeabi_idivmod
	cmp	r1, #0
	bne	.L24
.L6:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	ldm	r6, {r1, r2}
	mov	r0, r4
	ldr	r3, [r7]
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	av_rescale_q
.L23:
	ldr	r3, [sp, #20]
	ldm	r8, {r1, r2}
	ldr	r0, [r3]
	bl	ff_mxf_get_samples_per_frame
	subs	r8, r0, #0
	beq	.L3
	ldr	r2, [r8]
	ldr	r0, [r2]
	cmp	r0, #0
	movne	r5, #0
	movne	r6, r5
	beq	.L25
.L8:
	add	r6, r6, r0
	ldr	r0, [r2, #4]!
	add	r5, r5, #1
	cmp	r0, #0
	bne	.L8
	mov	r0, r5
	bl	av_assert2
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_idivmod
	cmp	r1, #0
	mul	r4, r6, r0
	ble	.L2
	ldr	r3, [r8]
	sub	r3, r3, #4
	add	r1, r3, r1, lsl #2
.L9:
	ldr	r2, [r3, #4]!
	cmp	r3, r1
	add	r4, r4, r2
	bne	.L9
.L2:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	mov	r0, r4
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L24:
	ldr	r3, [sp, #16]
	ldr	r1, [sp, #20]
	ldr	r2, .L26+12
	str	r10, [sp, #12]
	str	r9, [sp, #8]
	str	fp, [sp, #4]
	str	r3, [sp]
	ldr	r3, [r5]
	ldr	r0, [r1]
	ldr	r1, [r2]
	ldr	r2, .L26+16
	bl	av_log
	b	.L6
.L20:
	bl	__stack_chk_fail
.L25:
	bl	av_assert2
	.inst	0xe7f000f0
.L27:
	.align	2
.L26:
	.word	.LC1
	.word	AVMEDIA_TYPE_AUDIO
	.word	48000
	.word	AV_LOG_WARNING
	.word	.LC0
	.size	mxf_compute_sample_count, .-mxf_compute_sample_count
	.comm	AV_LOG_WARNING,4,4
	.comm	AVMEDIA_TYPE_AUDIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
