	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos5_i2c_set_timing
_exynos5_i2c_set_timing:                ## @exynos5_i2c_set_timing
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	32(%rdi), %edi
	callq	_clk_get_rate
	movl	%eax, %r14d
	movl	(%r13), %ebx
	movq	_HSI2C_HS_TX_CLOCK@GOTPCREL(%rip), %rcx
	movl	%ebx, %eax
	cmpl	(%rcx), %ebx
	jb	LBB0_2
## %bb.1:
	movq	_HSI2C_FS_TX_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	cmovel	%eax, %ebx
	movq	_HSI2C_CONF@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	callq	_readl
	movl	%eax, %ecx
	shrl	$16, %ecx
	andl	$7, %ecx
	xorl	%edi, %edi
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%eax, %esi
	movq	24(%r13), %rax
	movq	(%rax), %rax
	movq	_I2C_TYPE_EXYNOS7@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movl	%ecx, %eax
	cmovel	%edi, %eax
	addl	%ecx, %eax
	subl	%eax, %esi
	leal	-8(%rsi), %eax
	leal	503(%rsi), %r15d
	testl	%eax, %eax
	cmovnsl	%eax, %r15d
	sarl	$9, %r15d
	leal	1(%r15), %ecx
	cltd
	idivl	%ecx
	addl	$-131080, %esi                  ## imm = 0xFFFDFFF8
	cmpl	$-131068, %esi                  ## imm = 0xFFFE0004
	jb	LBB0_4
## %bb.3:
	movl	%eax, %r12d
	cmpl	$3, %eax
	jle	LBB0_4
## %bb.5:
	addl	$-2, %r12d
	movl	%r12d, %r14d
	shrl	%r14d
	movl	%r12d, %ebx
	shrl	$2, %ebx
	movl	%r14d, %eax
	shll	$24, %eax
	movl	%r14d, %esi
	shll	$16, %esi
	orl	%eax, %esi
	movl	%r14d, %edx
	shll	$8, %edx
	orl	%edx, %esi
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %eax
	shll	$24, %eax
	orl	%r14d, %edx
	orl	%eax, %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, %eax
	shll	$16, %eax
	orl	%r12d, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	16(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	movl	%r14d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	16(%r13), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	%r14d, %r8d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	16(%r13), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	16(%r13), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	movl	%ebx, %r15d
	xorl	%eax, %eax
	callq	_dev_dbg
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movq	_HSI2C_TIMING_HS1@GOTPCREL(%rip), %rax
	cmoveq	_HSI2C_TIMING_FS1@GOTPCREL(%rip), %rax
	movq	_HSI2C_TIMING_HS2@GOTPCREL(%rip), %rbx
	cmoveq	_HSI2C_TIMING_FS2@GOTPCREL(%rip), %rbx
	movq	_HSI2C_TIMING_HS3@GOTPCREL(%rip), %r14
	cmoveq	_HSI2C_TIMING_FS3@GOTPCREL(%rip), %r14
	movq	(%rax), %rsi
	addq	8(%r13), %rsi
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_writel
	movq	(%rbx), %rsi
	addq	8(%r13), %rsi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_writel
	movq	(%r14), %rsi
	addq	8(%r13), %rsi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_writel
	movq	_HSI2C_TIMING_SLA@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r13), %rsi
	movl	%r15d, %edi
	callq	_writel
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_4:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movl	16(%r13), %edi
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rdx
	cmoveq	%rax, %rdx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%eax, %eax
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HSI2C_HS_TX_CLOCK,4,2          ## @HSI2C_HS_TX_CLOCK
	.comm	_HSI2C_FS_TX_CLOCK,4,2          ## @HSI2C_FS_TX_CLOCK
	.comm	_HSI2C_CONF,8,3                 ## @HSI2C_CONF
	.comm	_I2C_TYPE_EXYNOS7,8,3           ## @I2C_TYPE_EXYNOS7
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s clock set-up failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"HS"

L_.str.2:                               ## @.str.2
	.asciz	"FS"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"tSTART_SU: %X, tSTART_HD: %X, tSTOP_SU: %X\n"

L_.str.4:                               ## @.str.4
	.asciz	"tDATA_SU: %X, tSCL_L: %X, tSCL_H: %X\n"

L_.str.5:                               ## @.str.5
	.asciz	"nClkDiv: %X, tSR_RELEASE: %X\n"

L_.str.6:                               ## @.str.6
	.asciz	"tDATA_HD: %X\n"

	.comm	_HSI2C_TIMING_HS1,8,3           ## @HSI2C_TIMING_HS1
	.comm	_HSI2C_TIMING_HS2,8,3           ## @HSI2C_TIMING_HS2
	.comm	_HSI2C_TIMING_HS3,8,3           ## @HSI2C_TIMING_HS3
	.comm	_HSI2C_TIMING_FS1,8,3           ## @HSI2C_TIMING_FS1
	.comm	_HSI2C_TIMING_FS2,8,3           ## @HSI2C_TIMING_FS2
	.comm	_HSI2C_TIMING_FS3,8,3           ## @HSI2C_TIMING_FS3
	.comm	_HSI2C_TIMING_SLA,8,3           ## @HSI2C_TIMING_SLA
	.no_dead_strip	_exynos5_i2c_set_timing
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos5_i2c_set_timing
_exynos5_i2c_set_timing:                ; @exynos5_i2c_set_timing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #32]
	bl	_clk_get_rate
	mov	x21, x0
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _HSI2C_HS_TX_CLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HSI2C_HS_TX_CLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _HSI2C_FS_TX_CLOCK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HSI2C_FS_TX_CLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w8, w9
	csel	w9, w8, w10, lo
	cmp	w20, #0
	csel	w22, w9, w8, eq
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _HSI2C_CONF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HSI2C_CONF@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ubfx	w8, w0, #16, #3
	udiv	w9, w21, w22
	ldr	x10, [x19, #24]
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _I2C_TYPE_EXYNOS7@GOTPAGE
Lloh10:
	ldr	x11, [x11, _I2C_TYPE_EXYNOS7@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	cmp	x10, x11
	csel	w10, wzr, w8, eq
	add	w8, w8, w10
	sub	w10, w9, w8
	sub	w8, w10, #8
	add	w9, w10, #503
	cmp	w8, #0
	csel	w9, w9, w8, lt
	sub	w10, w10, #32, lsl #12          ; =131072
	sub	w10, w10, #8
	mov	w11, #4
	movk	w11, #65534, lsl #16
	cmp	w10, w11
	b.lo	LBB0_3
; %bb.1:
	asr	w25, w9, #9
	add	w9, w25, #1
	sdiv	w8, w8, w9
	cmp	w8, #3
	b.le	LBB0_3
; %bb.2:
	sub	w27, w8, #2
	lsr	w26, w27, #1
	lsr	w21, w27, #2
	lsl	w8, w26, #24
	orr	w8, w8, w26, lsl #16
	lsl	w9, w26, #8
	orr	w24, w8, w9
	orr	w8, w9, w26
	orr	w23, w8, w21, lsl #24
	orr	w22, w27, w25, lsl #16
	ldr	w0, [x19, #16]
	stp	x26, x26, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x26
	bl	_dev_dbg
	ldr	w0, [x19, #16]
	stp	x26, x26, [sp]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	ldr	w0, [x19, #16]
	str	x27, [sp]
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x25
	bl	_dev_dbg
	ldr	w0, [x19, #16]
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x9, _HSI2C_TIMING_FS1@GOTPAGE
Lloh21:
	ldr	x9, [x9, _HSI2C_TIMING_FS1@GOTPAGEOFF]
Lloh22:
	adrp	x10, _HSI2C_TIMING_HS1@GOTPAGE
Lloh23:
	ldr	x10, [x10, _HSI2C_TIMING_HS1@GOTPAGEOFF]
	cmp	w20, #0
	csel	x9, x9, x10, eq
	ldr	x9, [x9]
	add	x1, x9, x8
Lloh24:
	adrp	x8, _HSI2C_TIMING_FS2@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HSI2C_TIMING_FS2@GOTPAGEOFF]
Lloh26:
	adrp	x9, _HSI2C_TIMING_HS2@GOTPAGE
Lloh27:
	ldr	x9, [x9, _HSI2C_TIMING_HS2@GOTPAGEOFF]
Lloh28:
	adrp	x10, _HSI2C_TIMING_FS3@GOTPAGE
Lloh29:
	ldr	x10, [x10, _HSI2C_TIMING_FS3@GOTPAGEOFF]
	csel	x20, x8, x9, eq
Lloh30:
	adrp	x8, _HSI2C_TIMING_HS3@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HSI2C_TIMING_HS3@GOTPAGEOFF]
	csel	x25, x10, x8, eq
	mov	x0, x24
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	mov	x0, x23
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x25]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
	ldr	x8, [x19, #8]
Lloh32:
	adrp	x9, _HSI2C_TIMING_SLA@GOTPAGE
Lloh33:
	ldr	x9, [x9, _HSI2C_TIMING_SLA@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #16]
Lloh35:
	adrp	x8, l_.str.1@PAGE
Lloh36:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh37:
	adrp	x9, l_.str.2@PAGE
Lloh38:
	add	x9, x9, l_.str.2@PAGEOFF
	cmp	w20, #0
	csel	x2, x9, x8, eq
Lloh39:
	adrp	x1, l_.str@PAGE
Lloh40:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh41:
	adrp	x8, _EINVAL@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.comm	_HSI2C_HS_TX_CLOCK,4,2          ; @HSI2C_HS_TX_CLOCK
	.comm	_HSI2C_FS_TX_CLOCK,4,2          ; @HSI2C_FS_TX_CLOCK
	.comm	_HSI2C_CONF,8,3                 ; @HSI2C_CONF
	.comm	_I2C_TYPE_EXYNOS7,8,3           ; @I2C_TYPE_EXYNOS7
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s clock set-up failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"HS"

l_.str.2:                               ; @.str.2
	.asciz	"FS"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"tSTART_SU: %X, tSTART_HD: %X, tSTOP_SU: %X\n"

l_.str.4:                               ; @.str.4
	.asciz	"tDATA_SU: %X, tSCL_L: %X, tSCL_H: %X\n"

l_.str.5:                               ; @.str.5
	.asciz	"nClkDiv: %X, tSR_RELEASE: %X\n"

l_.str.6:                               ; @.str.6
	.asciz	"tDATA_HD: %X\n"

	.comm	_HSI2C_TIMING_HS1,8,3           ; @HSI2C_TIMING_HS1
	.comm	_HSI2C_TIMING_HS2,8,3           ; @HSI2C_TIMING_HS2
	.comm	_HSI2C_TIMING_HS3,8,3           ; @HSI2C_TIMING_HS3
	.comm	_HSI2C_TIMING_FS1,8,3           ; @HSI2C_TIMING_FS1
	.comm	_HSI2C_TIMING_FS2,8,3           ; @HSI2C_TIMING_FS2
	.comm	_HSI2C_TIMING_FS3,8,3           ; @HSI2C_TIMING_FS3
	.comm	_HSI2C_TIMING_SLA,8,3           ; @HSI2C_TIMING_SLA
	.no_dead_strip	_exynos5_i2c_set_timing
.subsections_via_symbols
