	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function s5p_cec_set_divider
LCPI0_0:
	.quad	0x3f0a36e2eb1c432d              ## double 5.0000000000000002E-5
LCPI0_1:
	.quad	0xbff0000000000000              ## double -1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_s5p_cec_set_divider
	.p2align	4, 0x90
_s5p_cec_set_divider:                   ## @s5p_cec_set_divider
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_S5P_HDMI_FIN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_CEC_DIV_RATIO@GOTPCREL(%rip), %r15
	movl	(%r15), %r13d
	movl	8(%rdi), %edi
	movq	_EXYNOS_HDMI_PHY_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_5
LBB0_2:
	movl	%r14d, %eax
	cltd
	idivl	%r13d
                                        ## kill: def $eax killed $eax def $rax
	movl	$-67043329, %ecx                ## imm = 0xFC00FFFF
	andl	-44(%rbp), %ecx
	shll	$16, %eax
	leal	-65536(%rax), %edx
	orl	%ecx, %edx
	movl	%edx, -44(%rbp)
	movl	8(%rbx), %edi
	movl	(%r12), %esi
	callq	_regmap_write
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_5
LBB0_4:
	cvtsi2sdl	(%r15), %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	addsd	LCPI0_1(%rip), %xmm0
	cvttsd2si	%xmm0, %r14d
	movslq	(%rbx), %rsi
	movq	_S5P_CEC_DIVISOR_3@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	xorl	%edi, %edi
	callq	_writeb
	movslq	(%rbx), %rsi
	movq	_S5P_CEC_DIVISOR_2@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	xorl	%edi, %edi
	callq	_writeb
	movslq	(%rbx), %rsi
	movq	_S5P_CEC_DIVISOR_1@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	xorl	%edi, %edi
	callq	_writeb
	movslq	(%rbx), %rsi
	movq	_S5P_CEC_DIVISOR_0@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	%r14d, %edi
	callq	_writeb
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S5P_HDMI_FIN,4,2               ## @S5P_HDMI_FIN
	.comm	_CEC_DIV_RATIO,4,2              ## @CEC_DIV_RATIO
	.comm	_EXYNOS_HDMI_PHY_CONTROL,4,2    ## @EXYNOS_HDMI_PHY_CONTROL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read phy control\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed to write phy control\n"

	.comm	_S5P_CEC_DIVISOR_3,8,3          ## @S5P_CEC_DIVISOR_3
	.comm	_S5P_CEC_DIVISOR_2,8,3          ## @S5P_CEC_DIVISOR_2
	.comm	_S5P_CEC_DIVISOR_1,8,3          ## @S5P_CEC_DIVISOR_1
	.comm	_S5P_CEC_DIVISOR_0,8,3          ## @S5P_CEC_DIVISOR_0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_s5p_cec_set_divider            ; -- Begin function s5p_cec_set_divider
	.p2align	2
_s5p_cec_set_divider:                   ; @s5p_cec_set_divider
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _S5P_HDMI_FIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S5P_HDMI_FIN@GOTPAGEOFF]
Lloh2:
	adrp	x20, _CEC_DIV_RATIO@GOTPAGE
Lloh3:
	ldr	x20, [x20, _CEC_DIV_RATIO@GOTPAGEOFF]
Lloh4:
	ldr	w22, [x8]
	ldr	w23, [x20]
	ldr	w0, [x0, #8]
Lloh5:
	adrp	x21, _EXYNOS_HDMI_PHY_CONTROL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _EXYNOS_HDMI_PHY_CONTROL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_regmap_read
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_2:
	sdiv	w8, w22, w23
	ldr	w9, [sp, #12]
	and	w9, w9, #0xfc00ffff
	lsl	w8, w8, #16
	sub	w8, w8, #16, lsl #12            ; =65536
	orr	w2, w9, w8
	str	w2, [sp, #12]
	ldr	w0, [x19, #8]
	ldr	w1, [x21]
	bl	_regmap_write
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	ldr	s0, [x20]
	sshll.2d	v0, v0, #0
	scvtf	d0, d0
	mov	x8, #17197
	movk	x8, #60188, lsl #16
	movk	x8, #14050, lsl #32
	movk	x8, #16138, lsl #48
	fmov	d1, x8
	fmov	d2, #-1.00000000
	fmadd	d0, d0, d1, d2
	fcvtzs	w20, d0
	ldrsw	x8, [x19]
Lloh11:
	adrp	x9, _S5P_CEC_DIVISOR_3@GOTPAGE
Lloh12:
	ldr	x9, [x9, _S5P_CEC_DIVISOR_3@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writeb
	ldrsw	x8, [x19]
Lloh14:
	adrp	x9, _S5P_CEC_DIVISOR_2@GOTPAGE
Lloh15:
	ldr	x9, [x9, _S5P_CEC_DIVISOR_2@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writeb
	ldrsw	x8, [x19]
Lloh17:
	adrp	x9, _S5P_CEC_DIVISOR_1@GOTPAGE
Lloh18:
	ldr	x9, [x9, _S5P_CEC_DIVISOR_1@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writeb
	ldrsw	x8, [x19]
Lloh20:
	adrp	x9, _S5P_CEC_DIVISOR_0@GOTPAGE
Lloh21:
	ldr	x9, [x9, _S5P_CEC_DIVISOR_0@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writeb
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_S5P_HDMI_FIN,4,2               ; @S5P_HDMI_FIN
	.comm	_CEC_DIV_RATIO,4,2              ; @CEC_DIV_RATIO
	.comm	_EXYNOS_HDMI_PHY_CONTROL,4,2    ; @EXYNOS_HDMI_PHY_CONTROL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read phy control\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed to write phy control\n"

	.comm	_S5P_CEC_DIVISOR_3,8,3          ; @S5P_CEC_DIVISOR_3
	.comm	_S5P_CEC_DIVISOR_2,8,3          ; @S5P_CEC_DIVISOR_2
	.comm	_S5P_CEC_DIVISOR_1,8,3          ; @S5P_CEC_DIVISOR_1
	.comm	_S5P_CEC_DIVISOR_0,8,3          ; @S5P_CEC_DIVISOR_0
.subsections_via_symbols
