	.file	"extr_clk-s3c2410-dclk.c_s3c24xx_dclk_update_cmp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	s3c24xx_dclk_update_cmp, @function
s3c24xx_dclk_update_cmp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edx
	call	spin_lock_irqsave@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	readl_relaxed@PLT
	mov	esi, DWORD PTR DCLKCON_DCLK_DIV_MASK[rip]
	mov	ecx, ebx
	mov	edi, esi
	sal	edi, cl
	mov	ecx, r12d
	not	edi
	mov	edx, edi
	and	edx, eax
	sar	eax, cl
	and	eax, esi
	mov	esi, DWORD PTR 4[rbp]
	lea	ecx, 2[rax]
	mov	eax, ecx
	shr	eax, 31
	lea	edi, [rax+rcx]
	mov	ecx, ebx
	mov	eax, edi
	sar	eax
	lea	edi, -1[rax]
	sal	edi, cl
	or	edi, edx
	call	writel_relaxed@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	xor	esi, esi
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	s3c24xx_dclk_update_cmp, .-s3c24xx_dclk_update_cmp
	.comm	DCLKCON_DCLK_DIV_MASK,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_clk-s3c2410-dclk.c_s3c24xx_dclk_update_cmp.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s3c24xx_dclk_update_cmp, %function
s3c24xx_dclk_update_cmp:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	mov	r4, r1
	mov	r1, #0
	mov	r6, r2
	bl	spin_lock_irqsave
	ldr	r0, [r5, #4]
	bl	readl_relaxed
	ldr	r3, .L4
	ldr	r1, [r5, #4]
	ldr	r2, [r3]
	and	r3, r2, r0, asr r4
	add	r3, r3, #2
	add	r3, r3, r3, lsr #31
	asr	r3, r3, #1
	bic	r0, r0, r2, lsl r6
	sub	r3, r3, #1
	orr	r0, r0, r3, lsl r6
	bl	writel_relaxed
	mov	r0, r5
	pop	{r4, r5, r6, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L5:
	.align	2
.L4:
	.word	DCLKCON_DCLK_DIV_MASK
	.size	s3c24xx_dclk_update_cmp, .-s3c24xx_dclk_update_cmp
	.comm	DCLKCON_DCLK_DIV_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
