	.file	"extr_mux.c_ff_choose_timebase.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ff_choose_timebase
	.type	ff_choose_timebase, @function
ff_choose_timebase:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edi, DWORD PTR [rsi]
	mov	ecx, DWORD PTR 4[rsi]
	mov	r9d, edx
	mov	esi, 2
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, edi
	cdq
	idiv	ecx
	mov	r8d, eax
	cmp	r9d, eax
	jg	.L24
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, ecx
	cdq
	idiv	esi
	mov	ecx, eax
	mov	eax, edi
	cdq
	idiv	ecx
	mov	r8d, eax
	cmp	eax, r9d
	jge	.L3
.L24:
	mov	eax, ecx
	cdq
	idiv	esi
	test	edx, edx
	je	.L4
.L3:
	cmp	esi, 2
	je	.L10
	add	esi, 2
	cmp	esi, 13
	jle	.L2
	cmp	r9d, r8d
	jg	.L25
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	add	edi, edi
	mov	eax, edi
	cdq
	idiv	ecx
	cmp	eax, r9d
	jge	.L8
.L25:
	cmp	edi, 16777215
	jle	.L6
.L8:
	sal	rcx, 32
	mov	eax, edi
	or	rax, rcx
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	mov	esi, 3
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ff_choose_timebase, .-ff_choose_timebase
	.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_mux.c_ff_choose_timebase.c"
	.text
	.global	__aeabi_idiv
	.global	__aeabi_idivmod
	.align	2
	.global	ff_choose_timebase
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_choose_timebase, %function
ff_choose_timebase:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r0
	mov	r7, r3
	mov	r9, #2
	ldr	r6, [r2]
	ldr	r4, [r2, #4]
.L2:
	mov	r1, r4
	mov	r0, r6
	bl	__aeabi_idiv
	cmp	r7, r0
	mov	r5, r0
	bgt	.L16
	b	.L3
.L4:
	mov	r0, r4
	mov	r1, r9
	bl	__aeabi_idiv
	mov	r4, r0
	mov	r0, r6
	mov	r1, r4
	bl	__aeabi_idiv
	cmp	r0, r7
	mov	r5, r0
	bge	.L3
.L16:
	mov	r1, r9
	mov	r0, r4
	bl	__aeabi_idivmod
	cmp	r1, #0
	beq	.L4
.L3:
	cmp	r9, #2
	beq	.L8
	add	r9, r9, #2
	cmp	r9, #13
	ble	.L2
	mvn	r3, #-16777216
	cmp	r7, r5
	movgt	r5, #1
	movle	r5, #0
	cmp	r6, r3
	movgt	r5, #0
	cmp	r5, #0
	beq	.L7
	mov	r5, r3
.L6:
	lsl	r6, r6, #1
	mov	r0, r6
	mov	r1, r4
	bl	__aeabi_idiv
	cmp	r6, r5
	cmple	r0, r7
	blt	.L6
.L7:
	mov	r0, r8
	str	r6, [r8]
	str	r4, [r8, #4]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L8:
	mov	r9, #3
	b	.L2
	.size	ff_choose_timebase, .-ff_choose_timebase
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
