	.file	"extr_mp4.c_MP4_TrackGetPos.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	MP4_TrackGetPos, @function
MP4_TrackGetPos:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdx, QWORD PTR [rdi]
	mov	rax, QWORD PTR 24[rdi]
	mov	esi, DWORD PTR 8[rdi]
	lea	rax, [rax+rdx*8]
	mov	r12d, DWORD PTR [rax]
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR 12[rdi]
	test	esi, esi
	je	.L2
	mov	rdx, QWORD PTR 48[rdi]
	sub	eax, ecx
	mov	ebx, eax
	mov	rax, QWORD PTR AUDIO_ES[rip]
	mov	r8, QWORD PTR [rdx]
	cmp	QWORD PTR 32[rdi], rax
	je	.L19
.L3:
	mov	rsi, r8
	call	MP4_GetFixedSampleSize@PLT
	imul	eax, ebx
	add	r12d, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	ecx, eax
	jnb	.L1
	sub	eax, 1
	mov	rsi, QWORD PTR 16[rdi]
	mov	edi, ecx
	sub	eax, ecx
	add	rax, rdi
	lea	rdx, [rsi+rdi*8]
	lea	rax, 8[rsi+rax*8]
	.p2align 4,,10
	.p2align 3
.L9:
	add	r12d, DWORD PTR [rdx]
	add	rdx, 8
	cmp	rax, rdx
	jne	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	cmp	QWORD PTR [r8], 0
	jne	.L4
	cmp	esi, 1
	je	.L20
.L4:
	cmp	QWORD PTR 8[r8], 0
	je	.L3
	cmp	DWORD PTR 44[rdi], 1
	jle	.L3
	mov	ecx, DWORD PTR 16[r8]
	mov	esi, DWORD PTR 20[r8]
	mov	eax, ecx
	imul	eax, esi
	test	eax, eax
	je	.L3
	mov	eax, ebx
	cdq
	idiv	ecx
	imul	eax, esi
	add	r12d, eax
	jmp	.L1
.L20:
	mov	eax, DWORD PTR 40[rdi]
	cmp	eax, 128
	je	.L5
	cmp	eax, 129
	jne	.L4
	test	ebx, ebx
	lea	eax, 63[rbx]
	cmovns	eax, ebx
	sar	eax, 6
	imul	eax, eax, 34
	add	r12d, eax
	jmp	.L1
.L5:
	movsx	rax, ebx
	imul	rax, rax, 1717986919
	sar	rax, 38
	mov	rdx, rax
	mov	eax, ebx
	sar	eax, 31
	sub	edx, eax
	mov	eax, edx
	sal	edx, 5
	add	eax, edx
	add	r12d, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	MP4_TrackGetPos, .-MP4_TrackGetPos
	.comm	AUDIO_ES,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_mp4.c_MP4_TrackGetPos.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	MP4_TrackGetPos, %function
MP4_TrackGetPos:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0]
	ldr	r3, [r0, #16]
	ldr	ip, [r0, #4]
	add	r1, r3, r2, lsl #3
	cmp	ip, #0
	push	{r4, r5, r6, lr}
	ldr	r4, [r3, r2, lsl #3]
	ldr	r5, [r1, #4]
	ldr	r2, [r0, #8]
	beq	.L2
	ldr	r3, .L21
	ldr	lr, [r0, #20]
	ldr	r1, [r3]
	ldr	r3, [r0, #32]
	cmp	lr, r1
	sub	r5, r2, r5
	ldr	r1, [r3]
	beq	.L19
.L3:
	bl	MP4_GetFixedSampleSize
	mla	r4, r5, r0, r4
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r5, r2
	bcs	.L1
	ldr	r3, [r0, #12]
	sub	r5, r5, #-1073741823
	sub	r1, r3, #4
	add	r1, r1, r2, lsl #2
	add	r3, r3, r5, lsl #2
.L9:
	ldr	r2, [r3, #4]!
	cmp	r1, r3
	add	r4, r4, r2
	bne	.L9
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L19:
	ldr	r3, [r1]
	cmp	r3, #0
	cmpeq	ip, #1
	beq	.L20
.L4:
	ldr	r3, [r1, #4]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [r0, #28]
	cmp	r3, #1
	ble	.L3
	ldr	r3, [r1, #8]
	ldr	r6, [r1, #12]
	muls	r2, r6, r3
	beq	.L3
	mov	r1, r3
	mov	r0, r5
	bl	__aeabi_idiv
	mla	r4, r6, r0, r4
	b	.L1
.L20:
	ldr	r3, [r0, #24]
	cmp	r3, #128
	beq	.L5
	cmp	r3, #129
	bne	.L4
	add	r3, r5, #63
	cmp	r5, #0
	movge	r2, r5
	movlt	r2, r3
	asr	r3, r2, #6
	add	r3, r3, r3, lsl #4
	add	r4, r4, r3, lsl #1
	b	.L1
.L5:
	ldr	r2, .L21+4
	asr	r3, r5, #31
	smull	r1, r2, r5, r2
	rsb	r3, r3, r2, asr #6
	add	r3, r3, r3, lsl #5
	add	r4, r4, r3
	b	.L1
.L22:
	.align	2
.L21:
	.word	AUDIO_ES
	.word	1717986919
	.size	MP4_TrackGetPos, .-MP4_TrackGetPos
	.comm	AUDIO_ES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
