	.file	"extr_wm8974.c_wm8974_get_mclkdiv.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wm8974_get_mclkdiv, @function
wm8974_get_mclkdiv:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rcx, rdx
	lea	eax, [rdi+rdi]
	xor	edx, edx
	div	esi
	cmp	eax, 2
	ja	.L2
	mov	eax, DWORD PTR WM8974_MCLKDIV_1[rip]
	mov	DWORD PTR [rcx], eax
	mov	eax, 2
.L3:
	imul	eax, esi
	shr	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	eax, 3
	je	.L11
	cmp	eax, 4
	je	.L12
	cmp	eax, 6
	jbe	.L13
	cmp	eax, 8
	ja	.L7
	mov	eax, DWORD PTR WM8974_MCLKDIV_4[rip]
	mov	DWORD PTR [rcx], eax
	mov	eax, 8
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR WM8974_MCLKDIV_3[rip]
	mov	DWORD PTR [rcx], eax
	mov	eax, 6
	imul	eax, esi
	shr	eax
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	imul	eax, esi
	mov	edx, DWORD PTR WM8974_MCLKDIV_1_5[rip]
	mov	DWORD PTR [rcx], edx
	shr	eax
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	imul	eax, esi
	mov	edx, DWORD PTR WM8974_MCLKDIV_2[rip]
	mov	DWORD PTR [rcx], edx
	shr	eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	eax, 12
	jbe	.L14
	cmp	eax, 16
	ja	.L9
	mov	eax, DWORD PTR WM8974_MCLKDIV_8[rip]
	mov	DWORD PTR [rcx], eax
	mov	eax, 16
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR WM8974_MCLKDIV_6[rip]
	mov	DWORD PTR [rcx], eax
	mov	eax, 12
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR WM8974_MCLKDIV_12[rip]
	mov	DWORD PTR [rcx], eax
	mov	eax, 24
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	wm8974_get_mclkdiv, .-wm8974_get_mclkdiv
	.comm	WM8974_MCLKDIV_8,4,4
	.comm	WM8974_MCLKDIV_6,4,4
	.comm	WM8974_MCLKDIV_4,4,4
	.comm	WM8974_MCLKDIV_3,4,4
	.comm	WM8974_MCLKDIV_2,4,4
	.comm	WM8974_MCLKDIV_1_5,4,4
	.comm	WM8974_MCLKDIV_12,4,4
	.comm	WM8974_MCLKDIV_1,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_wm8974.c_wm8974_get_mclkdiv.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wm8974_get_mclkdiv, %function
wm8974_get_mclkdiv:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	lsl	r0, r0, #1
	mov	r5, r2
	mov	r4, r1
	bl	__aeabi_uidiv
	cmp	r0, #2
	bhi	.L2
	mov	r0, #2
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [r5]
.L3:
	mul	r0, r4, r0
	lsr	r0, r0, #1
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r0, #3
	beq	.L12
	cmp	r0, #4
	beq	.L13
	cmp	r0, #6
	bls	.L14
	cmp	r0, #8
	bhi	.L7
	ldr	r3, .L15+4
	mov	r0, #8
	ldr	r3, [r3]
	str	r3, [r5]
	b	.L3
.L14:
	ldr	r3, .L15+8
	mov	r0, #6
	ldr	r3, [r3]
	str	r3, [r5]
	b	.L3
.L12:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	str	r3, [r5]
	b	.L3
.L13:
	ldr	r3, .L15+16
	ldr	r3, [r3]
	str	r3, [r5]
	b	.L3
.L7:
	cmp	r0, #12
	bhi	.L8
	ldr	r3, .L15+20
	mov	r0, #12
	ldr	r3, [r3]
	str	r3, [r5]
	b	.L3
.L8:
	cmp	r0, #16
	ldrls	r3, .L15+24
	ldrhi	r3, .L15+28
	movls	r0, #16
	ldr	r3, [r3]
	movhi	r0, #24
	str	r3, [r5]
	b	.L3
.L16:
	.align	2
.L15:
	.word	WM8974_MCLKDIV_1
	.word	WM8974_MCLKDIV_4
	.word	WM8974_MCLKDIV_3
	.word	WM8974_MCLKDIV_1_5
	.word	WM8974_MCLKDIV_2
	.word	WM8974_MCLKDIV_6
	.word	WM8974_MCLKDIV_8
	.word	WM8974_MCLKDIV_12
	.size	wm8974_get_mclkdiv, .-wm8974_get_mclkdiv
	.comm	WM8974_MCLKDIV_8,4,4
	.comm	WM8974_MCLKDIV_6,4,4
	.comm	WM8974_MCLKDIV_4,4,4
	.comm	WM8974_MCLKDIV_3,4,4
	.comm	WM8974_MCLKDIV_2,4,4
	.comm	WM8974_MCLKDIV_1_5,4,4
	.comm	WM8974_MCLKDIV_12,4,4
	.comm	WM8974_MCLKDIV_1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
