	.file	"extr_amdgpu_pll.c_amdgpu_pll_reduce_ratio.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	amdgpu_pll_reduce_ratio, @function
amdgpu_pll_reduce_ratio:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR [rsi]
	mov	edi, DWORD PTR [rdi]
	call	gcd@PLT
	xor	edx, edx
	mov	ecx, eax
	mov	eax, DWORD PTR [rbx]
	div	ecx
	xor	edx, edx
	mov	DWORD PTR [rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	div	ecx
	mov	DWORD PTR 0[rbp], eax
	mov	esi, DWORD PTR [rbx]
	cmp	esi, r13d
	jb	.L6
	cmp	r12d, eax
	ja	.L7
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, r13d
	call	DIV_ROUND_UP@PLT
	mov	edx, DWORD PTR [rbx]
	imul	edx, eax
	mov	DWORD PTR [rbx], edx
	imul	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 0[rbp], eax
	cmp	r12d, eax
	jbe	.L1
.L7:
	mov	edi, r12d
	mov	esi, eax
	call	DIV_ROUND_UP@PLT
	mov	edx, DWORD PTR [rbx]
	imul	edx, eax
	mov	DWORD PTR [rbx], edx
	imul	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 0[rbp], eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	amdgpu_pll_reduce_ratio, .-amdgpu_pll_reduce_ratio
	.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_amdgpu_pll.c_amdgpu_pll_reduce_ratio.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amdgpu_pll_reduce_ratio, %function
amdgpu_pll_reduce_ratio:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [r0]
	ldr	r1, [r1]
	mov	r8, r2
	mov	r7, r3
	bl	gcd
	mov	r6, r0
	ldr	r0, [r4]
	mov	r1, r6
	bl	__aeabi_uidiv
	str	r0, [r4]
	mov	r1, r6
	ldr	r0, [r5]
	bl	__aeabi_uidiv
	str	r0, [r5]
	ldr	r1, [r4]
	cmp	r1, r8
	bcc	.L6
	cmp	r7, r0
	popls	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r1, r0
	mov	r0, r7
	bl	DIV_ROUND_UP
	ldr	r3, [r4]
	mul	r3, r0, r3
	str	r3, [r4]
	ldr	r3, [r5]
	mul	r0, r3, r0
	str	r0, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r8
	bl	DIV_ROUND_UP
	ldr	r3, [r4]
	mul	r3, r0, r3
	str	r3, [r4]
	ldr	r1, [r5]
	mul	r0, r1, r0
	cmp	r7, r0
	str	r0, [r5]
	popls	{r4, r5, r6, r7, r8, pc}
	b	.L7
	.size	amdgpu_pll_reduce_ratio, .-amdgpu_pll_reduce_ratio
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
