	.file	"extr_pcm.c_clock_and_divisors.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	clock_and_divisors, @function
clock_and_divisors:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, edi
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	cdq
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	idiv	esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	edx, edx
	jne	.L4
	mov	ebx, edi
	mov	rsi, rcx
	mov	edi, eax
	mov	rbp, rcx
	call	i2s_sf_sclkdiv@PLT
	test	rax, rax
	jne	.L4
	mov	eax, DWORD PTR I2S_CLOCK_SPEED_18MHz[rip]
	imul	ebx, r12d
	cdq
	idiv	ebx
	test	edx, edx
	je	.L9
.L5:
	mov	eax, DWORD PTR I2S_CLOCK_SPEED_45MHz[rip]
	cdq
	idiv	ebx
	test	edx, edx
	je	.L10
.L6:
	mov	eax, DWORD PTR I2S_CLOCK_SPEED_49MHz[rip]
	cdq
	idiv	ebx
	mov	edi, eax
	test	edx, edx
	jne	.L4
	mov	rsi, rbp
	call	i2s_sf_mclkdiv@PLT
	test	eax, eax
	jne	.L4
	mov	edx, DWORD PTR I2S_SF_CLOCK_SOURCE_49MHz[rip]
	or	DWORD PTR 0[rbp], edx
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rsi, rbp
	mov	edi, eax
	call	i2s_sf_mclkdiv@PLT
	test	eax, eax
	jne	.L5
	mov	edx, DWORD PTR I2S_SF_CLOCK_SOURCE_18MHz[rip]
	or	DWORD PTR 0[rbp], edx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rsi, rbp
	mov	edi, eax
	call	i2s_sf_mclkdiv@PLT
	test	eax, eax
	jne	.L6
	mov	edx, DWORD PTR I2S_SF_CLOCK_SOURCE_45MHz[rip]
	or	DWORD PTR 0[rbp], edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	clock_and_divisors, .-clock_and_divisors
	.comm	I2S_SF_CLOCK_SOURCE_49MHz,4,4
	.comm	I2S_SF_CLOCK_SOURCE_45MHz,4,4
	.comm	I2S_SF_CLOCK_SOURCE_18MHz,4,4
	.comm	I2S_CLOCK_SPEED_49MHz,4,4
	.comm	I2S_CLOCK_SPEED_45MHz,4,4
	.comm	I2S_CLOCK_SPEED_18MHz,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.c_clock_and_divisors.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	clock_and_divisors, %function
clock_and_divisors:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r2
	mov	r5, r3
	mov	r4, r0
	bl	__aeabi_idivmod
	cmp	r1, #0
	bne	.L4
	mov	r1, r5
	bl	i2s_sf_sclkdiv
	cmp	r0, #0
	bne	.L4
	mul	r4, r6, r4
	ldr	r3, .L11
	mov	r1, r4
	ldr	r0, [r3]
	bl	__aeabi_idivmod
	cmp	r1, #0
	beq	.L9
.L5:
	ldr	r3, .L11+4
	mov	r1, r4
	ldr	r0, [r3]
	bl	__aeabi_idivmod
	cmp	r1, #0
	beq	.L10
.L6:
	ldr	r3, .L11+8
	mov	r1, r4
	ldr	r0, [r3]
	bl	__aeabi_idivmod
	cmp	r1, #0
	bne	.L4
	mov	r1, r5
	bl	i2s_sf_mclkdiv
	cmp	r0, #0
	bne	.L4
	ldr	r2, .L11+12
	ldr	r3, [r5]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L9:
	mov	r1, r5
	bl	i2s_sf_mclkdiv
	cmp	r0, #0
	bne	.L5
	ldr	r2, .L11+16
	ldr	r3, [r5]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L10:
	mov	r1, r5
	bl	i2s_sf_mclkdiv
	cmp	r0, #0
	bne	.L6
	ldr	r2, .L11+20
	ldr	r3, [r5]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L4:
	mvn	r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	.align	2
.L11:
	.word	I2S_CLOCK_SPEED_18MHz
	.word	I2S_CLOCK_SPEED_45MHz
	.word	I2S_CLOCK_SPEED_49MHz
	.word	I2S_SF_CLOCK_SOURCE_49MHz
	.word	I2S_SF_CLOCK_SOURCE_18MHz
	.word	I2S_SF_CLOCK_SOURCE_45MHz
	.size	clock_and_divisors, .-clock_and_divisors
	.comm	I2S_SF_CLOCK_SOURCE_49MHz,4,4
	.comm	I2S_SF_CLOCK_SOURCE_45MHz,4,4
	.comm	I2S_SF_CLOCK_SOURCE_18MHz,4,4
	.comm	I2S_CLOCK_SPEED_49MHz,4,4
	.comm	I2S_CLOCK_SPEED_45MHz,4,4
	.comm	I2S_CLOCK_SPEED_18MHz,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
