	.file	"extr_pcm_lib.c_snd_interval_ratnum.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	snd_interval_ratnum
	.type	snd_interval_ratnum, @function
snd_interval_ratnum:
.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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 104
	.cfi_def_cfa_offset 160
	mov	QWORD PTR 24[rsp], rcx
	mov	QWORD PTR 32[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 88[rsp], rax
	xor	eax, eax
	test	esi, esi
	je	.L37
	lea	eax, -1[rsi]
	mov	QWORD PTR 16[rsp], rdx
	xor	r13d, r13d
	xor	r12d, r12d
	sal	rax, 4
	mov	DWORD PTR 12[rsp], 0
	mov	r14, rdi
	mov	rbp, rdx
	lea	rax, 16[rdx+rax]
	mov	QWORD PTR [rsp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L40:
	mov	edi, DWORD PTR 12[rsp]
	mov	ecx, r13d
	imul	ecx, edx
	mov	esi, edi
	imul	esi, eax
	cmp	esi, ecx
	cmovnb	edx, edi
	cmovb	r13d, eax
	cmovb	r12d, r15d
	mov	DWORD PTR 12[rsp], edx
.L4:
	add	rbp, 16
	cmp	rbp, QWORD PTR [rsp]
	je	.L39
.L6:
	mov	eax, DWORD PTR [r14]
	mov	ebx, 1
	mov	r15d, DWORD PTR 0[rbp]
	test	eax, eax
	mov	edi, r15d
	cmovne	ebx, eax
	mov	esi, ebx
	call	div_up@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR 4[rbp]
	cmp	eax, ecx
	ja	.L4
	mov	edx, DWORD PTR 8[rbp]
	cmp	edx, ecx
	jb	.L5
	mov	edi, ecx
	xor	edx, edx
	sub	edi, eax
	mov	eax, edi
	div	DWORD PTR 12[rbp]
	mov	eax, ecx
	sub	eax, edx
	mov	edx, eax
.L5:
	mov	eax, ebx
	mov	edi, r15d
	imul	eax, edx
	sub	edi, eax
	mov	ecx, edi
	mov	eax, edi
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	test	r12d, r12d
	jne	.L40
	mov	DWORD PTR 12[rsp], edx
	mov	r13d, eax
	mov	r12d, r15d
	add	rbp, 16
	cmp	rbp, QWORD PTR [rsp]
	jne	.L6
.L39:
	mov	ebx, DWORD PTR 12[rsp]
	mov	rbp, r14
	mov	DWORD PTR 40[rsp], r13d
	mov	r14, QWORD PTR 16[rsp]
	test	ebx, ebx
	je	.L37
	mov	esi, ebx
	mov	edi, r12d
	call	div_down@PLT
	xor	edx, edx
	mov	DWORD PTR 44[rsp], r12d
	mov	DWORD PTR 48[rsp], eax
	mov	eax, r12d
	mov	r12, r14
	div	ebx
	mov	DWORD PTR 16[rsp], 0
	xor	eax, eax
	test	edx, edx
	setne	al
	xor	r15d, r15d
	xor	ebx, ebx
	mov	DWORD PTR 56[rsp], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L42:
	mov	edi, DWORD PTR 16[rsp]
	mov	edx, r15d
	imul	edx, eax
	mov	esi, edi
	imul	esi, ecx
	cmp	esi, edx
	cmovnb	eax, edi
	cmovb	r15d, ecx
	cmovb	ebx, r14d
	mov	DWORD PTR 16[rsp], eax
.L9:
	add	r12, 16
	cmp	r12, QWORD PTR [rsp]
	je	.L41
.L11:
	mov	r13d, DWORD PTR 12[rbp]
	mov	r14d, DWORD PTR [r12]
	test	r13d, r13d
	je	.L37
	mov	esi, r13d
	mov	edi, r14d
	call	div_down@PLT
	mov	rsi, rax
	cmp	DWORD PTR 8[r12], eax
	jb	.L9
	mov	eax, DWORD PTR 4[r12]
	cmp	eax, esi
	ja	.L10
	mov	edi, esi
	mov	r9d, DWORD PTR 12[r12]
	xor	edx, edx
	sub	edi, eax
	mov	eax, edi
	div	r9d
	add	r9d, esi
	sub	r9d, edx
	test	edx, edx
	mov	eax, r9d
	cmove	eax, esi
.L10:
	mov	ecx, r13d
	imul	ecx, eax
	sub	ecx, r14d
	mov	edx, ecx
	sar	edx, 31
	xor	ecx, edx
	sub	ecx, edx
	test	ebx, ebx
	jne	.L42
	mov	DWORD PTR 16[rsp], eax
	mov	r15d, ecx
	mov	ebx, r14d
	add	r12, 16
	cmp	r12, QWORD PTR [rsp]
	jne	.L11
.L41:
	mov	eax, DWORD PTR 16[rsp]
	mov	r12d, DWORD PTR 44[rsp]
	mov	r14d, r15d
	test	eax, eax
	je	.L37
	mov	r15d, DWORD PTR 16[rsp]
	mov	edi, ebx
	mov	esi, r15d
	call	div_up@PLT
	xor	edx, edx
	lea	rsi, 48[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 60[rsp], eax
	mov	eax, ebx
	div	r15d
	mov	QWORD PTR 72[rsp], 0
	xor	eax, eax
	test	edx, edx
	setne	al
	mov	DWORD PTR 64[rsp], eax
	call	snd_interval_refine@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L1
	mov	rdi, rbp
	call	snd_interval_single@PLT
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR 12[rsp]
	mov	eax, r14d
	mov	r14d, DWORD PTR 40[rsp]
	imul	eax, esi
	imul	r14d, r15d
	cmp	eax, r14d
	mov	rax, QWORD PTR 24[rsp]
	cmovnb	r15d, esi
	cmovb	r12d, ebx
	mov	DWORD PTR 12[rsp], r15d
	test	rax, rax
	je	.L14
	mov	DWORD PTR [rax], r12d
.L14:
	mov	rax, QWORD PTR 32[rsp]
	test	rax, rax
	je	.L1
	mov	ebx, DWORD PTR 12[rsp]
	mov	DWORD PTR [rax], ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	mov	r13d, DWORD PTR EINVAL[rip]
	mov	DWORD PTR 4[rbp], 1
	neg	r13d
.L1:
	mov	rax, QWORD PTR 88[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L43
	add	rsp, 104
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L43:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	snd_interval_ratnum, .-snd_interval_ratnum
	.comm	EINVAL,4,4
	.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_pcm_lib.c_snd_interval_ratnum.c"
	.text
	.global	__aeabi_uidivmod
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	snd_interval_ratnum
	.syntax unified
	.arm
	.fpu softvfp
	.type	snd_interval_ratnum, %function
snd_interval_ratnum:
	@ args = 4, pretend = 0, frame = 64
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #68
	str	r3, [sp, #12]
	cmp	r1, #0
	ldr	r3, .L44
	str	r1, [sp]
	ldr	r3, [r3]
	str	r3, [sp, #60]
	mov	r3,#0
	ldr	r3, [sp, #104]
	mov	r7, r0
	str	r3, [sp, #16]
	beq	.L37
	mov	fp, #0
	ldr	r3, [sp]
	mov	r6, r2
	add	r3, r2, r3, lsl #4
	mov	r10, fp
	mov	r8, fp
	mov	r9, r3
	str	r2, [sp, #8]
	b	.L6
.L40:
	mul	r0, r10, r4
	mul	r2, r1, fp
	cmp	r0, r2
	movcc	fp, r4
	movcc	r10, r1
	movcc	r8, r5
.L4:
	add	r6, r6, #16
	cmp	r9, r6
	beq	.L39
.L6:
	ldr	r4, [r7]
	ldr	r5, [r6]
	cmp	r4, #1
	movcc	r4, #1
	mov	r0, r5
	mov	r1, r4
	bl	div_up
	mov	r2, r0
	ldr	r0, [r6, #4]
	cmp	r0, r2
	bhi	.L4
	ldr	r1, [r6, #8]
	cmp	r1, r2
	bcc	.L5
	sub	r0, r2, r0
	ldr	r1, [r6, #12]
	str	r2, [sp, #4]
	bl	__aeabi_uidivmod
	ldr	r2, [sp, #4]
	sub	r1, r2, r1
.L5:
	mul	r4, r1, r4
	sub	r4, r5, r4
	cmp	r4, #0
	rsblt	r4, r4, #0
	cmp	r8, #0
	bne	.L40
	add	r6, r6, #16
	cmp	r9, r6
	mov	fp, r4
	mov	r10, r1
	mov	r8, r5
	bne	.L6
.L39:
	cmp	r10, #0
	ldr	r5, [sp, #8]
	beq	.L37
	mov	r1, r10
	mov	r0, r8
	bl	div_down
	mov	r3, r0
	mov	r1, r10
	mov	r0, r8
	mov	r9, #0
	str	r3, [sp, #36]
	bl	__aeabi_uidivmod
	subs	r1, r1, r9
	movne	r1, #1
	str	r10, [sp, #24]
	str	fp, [sp, #28]
	mov	r10, r9
	mov	fp, r9
	str	r9, [sp, #4]
	str	r1, [sp, #44]
	str	r8, [sp, #20]
	b	.L11
.L42:
	ldr	r3, [sp, #4]
	mul	r1, fp, r4
	mov	r2, r3
	mul	r2, r0, r2
	cmp	r1, r2
	movcc	r3, r4
	movcc	fp, r0
	movcc	r10, r8
	str	r3, [sp, #4]
.L9:
	ldr	r3, [sp]
	add	r9, r9, #1
	cmp	r3, r9
	add	r5, r5, #16
	beq	.L41
.L11:
	ldr	r4, [r7, #12]
	ldr	r8, [r5]
	cmp	r4, #0
	beq	.L37
	mov	r1, r4
	mov	r0, r8
	bl	div_down
	ldr	r2, [r5, #8]
	mov	r6, r0
	cmp	r2, r0
	bcc	.L9
	ldr	r0, [r5, #4]
	cmp	r0, r6
	bhi	.L10
	ldr	r2, [r5, #12]
	sub	r0, r6, r0
	mov	r1, r2
	str	r2, [sp, #8]
	bl	__aeabi_uidivmod
	cmp	r1, #0
	moveq	r0, r6
	ldrne	r2, [sp, #8]
	addne	r0, r2, r6
	subne	r0, r0, r1
.L10:
	mul	r4, r0, r4
	sub	r4, r4, r8
	cmp	r4, #0
	rsblt	r4, r4, #0
	cmp	r10, #0
	bne	.L42
	mov	fp, r0
	mov	r10, r8
	str	r4, [sp, #4]
	b	.L9
.L41:
	mov	r3, fp
	cmp	r3, #0
	mov	r2, r10
	ldr	r8, [sp, #20]
	ldr	r10, [sp, #24]
	ldr	fp, [sp, #28]
	bne	.L12
.L37:
	mov	r2, #1
	ldr	r3, .L44+4
	str	r2, [r7, #4]
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L44
	ldr	r2, [r3]
	ldr	r3, [sp, #60]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L43
	mov	r0, r4
	add	sp, sp, #68
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r1, r3
	mov	r0, r2
	mov	r6, r2
	mov	r5, r3
	bl	div_up
	mov	r3, r0
	mov	r1, r5
	mov	r0, r6
	str	r3, [sp, #48]
	bl	__aeabi_uidivmod
	subs	r3, r1, #0
	movne	r3, #1
	mov	r2, #0
	mov	r0, r7
	add	r1, sp, #36
	str	r3, [sp, #52]
	str	r2, [sp, #56]
	bl	snd_interval_refine
	subs	r4, r0, #0
	blt	.L1
	mov	r0, r7
	bl	snd_interval_single
	cmp	r0, #0
	beq	.L1
	mov	r2, r5
	ldr	r3, [sp, #4]
	mul	r2, fp, r2
	mul	r3, r10, r3
	cmp	r3, r2
	movcc	r8, r6
	movcc	r10, r5
	ldr	r3, [sp, #12]
	cmp	r3, #0
	strne	r8, [r3]
	ldr	r3, [sp, #16]
	cmp	r3, #0
	strne	r10, [r3]
	b	.L1
.L43:
	bl	__stack_chk_fail
.L45:
	.align	2
.L44:
	.word	.LC0
	.word	EINVAL
	.size	snd_interval_ratnum, .-snd_interval_ratnum
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
