	.file	"extr_dvdread.c_dvdtime_to_time.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dvdtime_to_time, @function
dvdtime_to_time:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	eax, DWORD PTR [rdi]
	movsd	xmm1, QWORD PTR .LC1[rip]
	mov	edx, eax
	and	eax, 15
	sar	edx, 4
	and	edx, 15
	lea	edx, [rdx+rdx*4]
	lea	eax, [rax+rdx*2]
	mov	edx, DWORD PTR 4[rdi]
	imul	esi, eax, 3600
	mov	ecx, edx
	and	edx, 15
	sar	ecx, 4
	and	ecx, 15
	lea	eax, [rcx+rcx*4]
	lea	eax, [rdx+rax*2]
	mov	edx, DWORD PTR 8[rdi]
	imul	eax, eax, 60
	mov	ecx, edx
	and	edx, 15
	sar	ecx, 4
	and	ecx, 15
	add	eax, esi
	lea	ecx, [rcx+rcx*4]
	lea	edx, [rdx+rcx*2]
	lea	r8d, [rdx+rax]
	mov	edx, DWORD PTR 12[rdi]
	mov	ecx, edx
	sar	ecx, 6
	and	ecx, 3
	cmp	ecx, 1
	je	.L2
	movsd	xmm1, QWORD PTR .LC0[rip]
	cmp	ecx, 3
	jne	.L2
	movsd	xmm1, QWORD PTR .LC2[rip]
.L2:
	mov	ecx, edx
	and	edx, 15
	pxor	xmm0, xmm0
	mov	edi, r8d
	sar	ecx, 4
	and	ecx, 3
	lea	eax, [rcx+rcx*4]
	lea	eax, [rdx+rax*2]
	cvtsi2sd	xmm0, eax
	mulsd	xmm0, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR 8[rsp], xmm0
	call	vlc_tick_from_sec@PLT
	movsd	xmm0, QWORD PTR 8[rsp]
	mov	rbx, rax
	call	VLC_TICK_FROM_MS@PLT
	add	rsp, 16
	.cfi_def_cfa_offset 16
	add	rax, rbx
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	dvdtime_to_time, .-dvdtime_to_time
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1084459008
	.align 8
.LC1:
	.long	0
	.long	1077477376
	.align 8
.LC2:
	.long	3951369912
	.long	1077803089
	.align 8
.LC3:
	.long	0
	.long	1083129856
	.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_dvdread.c_dvdtime_to_time.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dvdtime_to_time, %function
dvdtime_to_time:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0]
	ldr	r2, [r0, #4]
	asr	r1, ip, #4
	asr	r3, r2, #4
	push	{r4, r5, r6, r7, r8, lr}
	and	r1, r1, #15
	ldr	lr, [r0, #8]
	and	r3, r3, #15
	ldr	r5, [r0, #12]
	and	r2, r2, #15
	add	r1, r1, r1, lsl #2
	and	ip, ip, #15
	add	r3, r3, r3, lsl #2
	asr	r0, lr, #4
	add	r1, ip, r1, lsl #1
	add	r3, r2, r3, lsl #1
	rsb	r3, r3, r3, lsl #4
	rsb	r2, r1, r1, lsl #4
	and	r1, r0, #15
	asr	r0, r5, #6
	rsb	r2, r2, r2, lsl #4
	lsl	r3, r3, #2
	add	r1, r1, r1, lsl #2
	and	lr, lr, #15
	and	r0, r0, #3
	add	r3, r3, r2, lsl #4
	add	lr, lr, r1, lsl #1
	cmp	r0, #1
	add	r4, lr, r3
	beq	.L3
	cmp	r0, #3
	bne	.L4
	ldr	r6, .L7
	ldr	r7, .L7+4
.L2:
	asr	r0, r5, #4
	and	r0, r0, #3
	and	r5, r5, #15
	add	r0, r0, r0, lsl #2
	add	r0, r5, r0, lsl #1
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L7+8
	bl	__aeabi_dmul
	mov	r2, r6
	mov	r3, r7
	bl	__aeabi_ddiv
	mov	r6, r0
	mov	r0, r4
	mov	r7, r1
	bl	vlc_tick_from_sec
	mov	r1, r7
	mov	r4, r0
	mov	r0, r6
	bl	VLC_TICK_FROM_MS
	add	r0, r4, r0
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r6, #0
	ldr	r7, .L7+12
	b	.L2
.L3:
	mov	r6, #0
	ldr	r7, .L7+16
	b	.L2
.L8:
	.align	2
.L7:
	.word	-343597384
	.word	1077803089
	.word	1083129856
	.word	1084459008
	.word	1077477376
	.size	dvdtime_to_time, .-dvdtime_to_time
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
