	.file	"extr_clock.c_s3c2443_setrate_hsspi.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	s3c2443_setrate_hsspi, @function
s3c2443_setrate_hsspi:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rdi]
	call	clk_get_rate@PLT
	mov	edi, DWORD PTR S3C2443_CLKDIV1[rip]
	mov	rbx, rax
	call	__raw_readl@PLT
	mov	rsi, r13
	mov	rdi, rbp
	mov	r12, rax
	call	s3c2443_roundrate_clksrc4@PLT
	xor	edx, edx
	mov	rdi, QWORD PTR S3C2443_CLKDIV1_HSSPIDIV_MASK[rip]
	mov	rcx, QWORD PTR S3C2443_CLKDIV1_HSSPIDIV_SHIFT[rip]
	mov	r8, rax
	mov	rax, rbx
	mov	esi, DWORD PTR S3C2443_CLKDIV1[rip]
	div	r8
	not	rdi
	and	rdi, r12
	sub	rax, 1
	sal	rax, cl
	or	rdi, rax
	call	__raw_writel@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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	s3c2443_setrate_hsspi, .-s3c2443_setrate_hsspi
	.comm	S3C2443_CLKDIV1_HSSPIDIV_SHIFT,8,8
	.comm	S3C2443_CLKDIV1_HSSPIDIV_MASK,8,8
	.comm	S3C2443_CLKDIV1,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_clock.c_s3c2443_setrate_hsspi.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s3c2443_setrate_hsspi, %function
s3c2443_setrate_hsspi:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0]
	mov	r7, r1
	bl	clk_get_rate
	ldr	r8, .L4
	mov	r6, r0
	ldr	r0, [r8]
	bl	__raw_readl
	mov	r1, r7
	mov	r4, r0
	mov	r0, r5
	bl	s3c2443_roundrate_clksrc4
	ldr	r3, .L4+4
	mov	r1, r0
	ldr	r3, [r3]
	mov	r0, r6
	bic	r4, r4, r3
	bl	__aeabi_uidiv
	ldr	r3, .L4+8
	sub	r0, r0, #1
	ldr	r3, [r3]
	ldr	r1, [r8]
	orr	r0, r4, r0, lsl r3
	bl	__raw_writel
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	.align	2
.L4:
	.word	S3C2443_CLKDIV1
	.word	S3C2443_CLKDIV1_HSSPIDIV_MASK
	.word	S3C2443_CLKDIV1_HSSPIDIV_SHIFT
	.size	s3c2443_setrate_hsspi, .-s3c2443_setrate_hsspi
	.comm	S3C2443_CLKDIV1_HSSPIDIV_SHIFT,4,4
	.comm	S3C2443_CLKDIV1_HSSPIDIV_MASK,4,4
	.comm	S3C2443_CLKDIV1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
