	.file	"extr_exynos_hdmi_cecctrl.c_s5p_cec_set_divider.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"failed to read phy control\n"
.LC1:
	.string	"failed to write phy control\n"
	.text
	.p2align 4
	.globl	s5p_cec_set_divider
	.type	s5p_cec_set_divider, @function
s5p_cec_set_divider:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 8[rdi]
	mov	esi, DWORD PTR EXYNOS_HDMI_PHY_CONTROL[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rdx, 4[rsp]
	mov	ebx, DWORD PTR S5P_HDMI_FIN[rip]
	mov	r12d, DWORD PTR CEC_DIV_RATIO[rip]
	call	regmap_read@PLT
	test	rax, rax
	jne	.L9
	mov	eax, ebx
	mov	edi, DWORD PTR 8[rbp]
	mov	esi, DWORD PTR EXYNOS_HDMI_PHY_CONTROL[rip]
	cdq
	idiv	r12d
	lea	edx, -1[rax]
	mov	eax, DWORD PTR 4[rsp]
	sal	edx, 16
	and	eax, -67043329
	or	edx, eax
	mov	DWORD PTR 4[rsp], edx
	call	regmap_write@PLT
	test	rax, rax
	jne	.L10
	pxor	xmm0, xmm0
	movsx	rsi, DWORD PTR 0[rbp]
	xor	edi, edi
	add	rsi, QWORD PTR S5P_CEC_DIVISOR_3[rip]
	cvtsi2sd	xmm0, DWORD PTR CEC_DIV_RATIO[rip]
	mulsd	xmm0, QWORD PTR .LC2[rip]
	subsd	xmm0, QWORD PTR .LC3[rip]
	cvttsd2si	r12d, xmm0
	call	writeb@PLT
	movsx	rsi, DWORD PTR 0[rbp]
	xor	edi, edi
	add	rsi, QWORD PTR S5P_CEC_DIVISOR_2[rip]
	call	writeb@PLT
	movsx	rsi, DWORD PTR 0[rbp]
	xor	edi, edi
	add	rsi, QWORD PTR S5P_CEC_DIVISOR_1[rip]
	call	writeb@PLT
	movsx	rsi, DWORD PTR 0[rbp]
	add	rsi, QWORD PTR S5P_CEC_DIVISOR_0[rip]
	mov	edi, r12d
	call	writeb@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.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	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR 4[rbp]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	s5p_cec_set_divider, .-s5p_cec_set_divider
	.comm	S5P_HDMI_FIN,4,4
	.comm	S5P_CEC_DIVISOR_3,8,8
	.comm	S5P_CEC_DIVISOR_2,8,8
	.comm	S5P_CEC_DIVISOR_1,8,8
	.comm	S5P_CEC_DIVISOR_0,8,8
	.comm	EXYNOS_HDMI_PHY_CONTROL,4,4
	.comm	CEC_DIV_RATIO,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	3944497965
	.long	1057634018
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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_exynos_hdmi_cecctrl.c_s5p_cec_set_divider.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to read phy control\012\000"
	.global	__aeabi_idiv
	.align	2
.LC1:
	.ascii	"failed to write phy control\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dsub
	.global	__aeabi_d2iz
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	s5p_cec_set_divider
	.syntax unified
	.arm
	.fpu softvfp
	.type	s5p_cec_set_divider, %function
s5p_cec_set_divider:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L12
	sub	sp, sp, #8
	ldr	r3, .L12+4
	ldr	ip, .L12+8
	ldr	r6, .L12+12
	mov	r4, r0
	mov	r2, sp
	ldr	r0, [r0, #8]
	ldr	r1, [r5]
	ldr	ip, [ip]
	str	ip, [sp, #4]
	mov	ip,#0
	ldr	r7, [r3]
	ldr	r8, [r6]
	bl	regmap_read
	cmp	r0, #0
	bne	.L9
	mov	r1, r8
	mov	r0, r7
	bl	__aeabi_idiv
	ldr	r2, [sp]
	sub	r0, r0, #1
	bic	r2, r2, #66846720
	bic	r2, r2, #196608
	orr	r2, r2, r0, lsl #16
	ldr	r1, [r5]
	ldr	r0, [r4, #8]
	str	r2, [sp]
	bl	regmap_write
	subs	r5, r0, #0
	bne	.L10
	ldr	r0, [r6]
	bl	__aeabi_i2d
	ldr	r2, .L12+16
	ldr	r3, .L12+20
	bl	__aeabi_dmul
	mov	r2, #0
	ldr	r3, .L12+24
	bl	__aeabi_dsub
	bl	__aeabi_d2iz
	mov	r6, r0
	ldr	r3, .L12+28
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r5
	add	r1, r1, r3
	bl	writeb
	ldr	r3, .L12+32
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r5
	add	r1, r1, r3
	bl	writeb
	ldr	r3, .L12+36
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r5
	add	r1, r1, r3
	bl	writeb
	ldr	r3, .L12+40
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r6
	add	r1, r1, r3
	bl	writeb
.L1:
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	ldr	r0, [r4, #4]
	ldr	r1, .L12+44
	bl	dev_err
	b	.L1
.L9:
	ldr	r0, [r4, #4]
	ldr	r1, .L12+48
	bl	dev_err
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	EXYNOS_HDMI_PHY_CONTROL
	.word	S5P_HDMI_FIN
	.word	.LC2
	.word	CEC_DIV_RATIO
	.word	-350469331
	.word	1057634018
	.word	1072693248
	.word	S5P_CEC_DIVISOR_3
	.word	S5P_CEC_DIVISOR_2
	.word	S5P_CEC_DIVISOR_1
	.word	S5P_CEC_DIVISOR_0
	.word	.LC1
	.word	.LC0
	.size	s5p_cec_set_divider, .-s5p_cec_set_divider
	.comm	S5P_HDMI_FIN,4,4
	.comm	S5P_CEC_DIVISOR_3,4,4
	.comm	S5P_CEC_DIVISOR_2,4,4
	.comm	S5P_CEC_DIVISOR_1,4,4
	.comm	S5P_CEC_DIVISOR_0,4,4
	.comm	EXYNOS_HDMI_PHY_CONTROL,4,4
	.comm	CEC_DIV_RATIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
