	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos5_i2c_message_start
_exynos5_i2c_message_start:             ## @exynos5_i2c_message_start
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_I2C_TYPE_EXYNOS7@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_HSI2C_INT_I2C_TRANS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_HSI2C_INT_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_HSI2C_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, %r12d
	movq	_HSI2C_TXCHON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HSI2C_RXCHON@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_HSI2C_RXFIFO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HSI2C_TXFIFO_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	16(%rbx), %rcx
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rcx)
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.1:
	movq	_HSI2C_READ_WRITE@GOTPCREL(%rip), %rax
	movl	4(%rcx), %ecx
	movq	24(%rbx), %rdx
	movl	8(%rdx), %edx
	cmpl	%edx, %ecx
	jle	LBB0_3
## %bb.2:
	leal	(%rdx,%rdx,2), %esi
	leal	(%rdx,%rdx,2), %ecx
	addl	$3, %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	sarl	$2, %ecx
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movzwl	%cx, %edi
	callq	_HSI2C_RXFIFO_TRIGGER_LEVEL
	movq	_HSI2C_INT_RX_ALMOSTFULL_EN@GOTPCREL(%rip), %rdx
	movq	_HSI2C_INT_TRAILING_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	%r14d, %r8d
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_7
LBB0_4:
	movl	4(%rcx), %eax
	movq	24(%rbx), %rcx
	movl	8(%rcx), %ecx
	cmpl	%ecx, %eax
	jle	LBB0_6
## %bb.5:
	leal	3(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$2, %eax
LBB0_6:
	movzwl	%ax, %edi
	callq	_HSI2C_TXFIFO_TRIGGER_LEVEL
	movq	_HSI2C_INT_TX_ALMOSTEMPTY_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	$0, -52(%rbp)                   ## 4-byte Folded Spill
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%edx, %r8d
	movq	-80(%rbp), %r10                 ## 8-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %r9d                 ## 4-byte Reload
LBB0_7:
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	orl	%esi, %r13d
	orl	%edx, %r14d
	notl	%r14d
	andl	%r14d, %r12d
	cmpq	%rdi, %r10
	cmovel	%r9d, %r15d
	orl	%eax, %r13d
	orl	%ecx, %r15d
	orl	%r8d, %r12d
	movq	16(%rbx), %rax
	movl	8(%rax), %edi
	callq	_HSI2C_SLV_ADDR_MAS
	movq	_HSI2C_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_HSI2C_FIFO_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r13d, %edi
	callq	_writel
	movq	_HSI2C_CTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r12d, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_exynos5_i2c_bus_check
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_HSI2C_INT_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r15d, %edi
	callq	_writel
	xorl	%edi, %edi
	cmpl	$1, -60(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_9
## %bb.8:
	movq	_HSI2C_STOP_AFTER_TRANS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_9:
	orl	-52(%rbp), %edi                 ## 4-byte Folded Reload
	movq	16(%rbx), %rax
	orl	4(%rax), %edi
	movq	_HSI2C_MASTER_RUN@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_HSI2C_AUTO_CONF@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_TYPE_EXYNOS7,8,3           ## @I2C_TYPE_EXYNOS7
	.comm	_HSI2C_INT_I2C_TRANS,4,2        ## @HSI2C_INT_I2C_TRANS
	.comm	_HSI2C_INT_I2C,4,2              ## @HSI2C_INT_I2C
	.comm	_HSI2C_CTL,8,3                  ## @HSI2C_CTL
	.comm	_HSI2C_TXCHON,4,2               ## @HSI2C_TXCHON
	.comm	_HSI2C_RXCHON,4,2               ## @HSI2C_RXCHON
	.comm	_HSI2C_RXFIFO_EN,4,2            ## @HSI2C_RXFIFO_EN
	.comm	_HSI2C_TXFIFO_EN,4,2            ## @HSI2C_TXFIFO_EN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_HSI2C_READ_WRITE,4,2           ## @HSI2C_READ_WRITE
	.comm	_HSI2C_INT_RX_ALMOSTFULL_EN,4,2 ## @HSI2C_INT_RX_ALMOSTFULL_EN
	.comm	_HSI2C_INT_TRAILING_EN,4,2      ## @HSI2C_INT_TRAILING_EN
	.comm	_HSI2C_INT_TX_ALMOSTEMPTY_EN,4,2 ## @HSI2C_INT_TX_ALMOSTEMPTY_EN
	.comm	_HSI2C_ADDR,8,3                 ## @HSI2C_ADDR
	.comm	_HSI2C_FIFO_CTL,8,3             ## @HSI2C_FIFO_CTL
	.comm	_HSI2C_INT_ENABLE,8,3           ## @HSI2C_INT_ENABLE
	.comm	_HSI2C_STOP_AFTER_TRANS,4,2     ## @HSI2C_STOP_AFTER_TRANS
	.comm	_HSI2C_MASTER_RUN,4,2           ## @HSI2C_MASTER_RUN
	.comm	_HSI2C_AUTO_CONF,8,3            ## @HSI2C_AUTO_CONF
	.no_dead_strip	_exynos5_i2c_message_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos5_i2c_message_start
_exynos5_i2c_message_start:             ; @exynos5_i2c_message_start
	.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
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x22, [x8]
Lloh0:
	adrp	x8, _I2C_TYPE_EXYNOS7@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_TYPE_EXYNOS7@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x8, _HSI2C_INT_I2C_TRANS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HSI2C_INT_I2C_TRANS@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
Lloh6:
	adrp	x8, _HSI2C_INT_I2C@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HSI2C_INT_I2C@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
	ldr	x8, [x0, #8]
Lloh9:
	adrp	x9, _HSI2C_CTL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HSI2C_CTL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	mov	x21, x0
Lloh12:
	adrp	x8, _HSI2C_TXCHON@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HSI2C_TXCHON@GOTPAGEOFF]
Lloh14:
	ldr	w28, [x8]
Lloh15:
	adrp	x8, _HSI2C_RXCHON@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HSI2C_RXCHON@GOTPAGEOFF]
Lloh17:
	ldr	w24, [x8]
Lloh18:
	adrp	x8, _HSI2C_RXFIFO_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HSI2C_RXFIFO_EN@GOTPAGEOFF]
Lloh20:
	ldr	w20, [x8]
Lloh21:
	adrp	x8, _HSI2C_TXFIFO_EN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HSI2C_TXFIFO_EN@GOTPAGEOFF]
Lloh23:
	ldr	w25, [x8]
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
Lloh24:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh25:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh26:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.1:
Lloh27:
	adrp	x9, _HSI2C_READ_WRITE@GOTPAGE
Lloh28:
	ldr	x9, [x9, _HSI2C_READ_WRITE@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	str	w9, [sp, #8]                    ; 4-byte Folded Spill
	ldr	w8, [x8, #4]
	ldr	x9, [x19, #24]
	ldr	w9, [x9, #8]
	add	w10, w9, w9, lsl #1
	add	w11, w10, #3
	cmp	w10, #0
	csel	w10, w11, w10, lt
	asr	w10, w10, #2
	cmp	w8, w9
	csel	w8, w8, w10, le
	and	w0, w8, #0xffff
	bl	_HSI2C_RXFIFO_TRIGGER_LEVEL
Lloh30:
	adrp	x8, _HSI2C_INT_RX_ALMOSTFULL_EN@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HSI2C_INT_RX_ALMOSTFULL_EN@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _HSI2C_INT_TRAILING_EN@GOTPAGE
Lloh34:
	ldr	x9, [x9, _HSI2C_INT_TRAILING_EN@GOTPAGEOFF]
Lloh35:
	ldr	w9, [x9]
	orr	w8, w9, w8
	mov	x9, x24
	b	LBB0_3
LBB0_2:
	ldr	w8, [x8, #4]
	ldr	x9, [x19, #24]
	ldr	w9, [x9, #8]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w10, w10, w9, lt
	asr	w10, w10, #2
	cmp	w8, w9
	csel	w8, w10, w8, gt
	and	w0, w8, #0xffff
	bl	_HSI2C_TXFIFO_TRIGGER_LEVEL
	str	wzr, [sp, #8]                   ; 4-byte Folded Spill
Lloh36:
	adrp	x8, _HSI2C_INT_TX_ALMOSTEMPTY_EN@GOTPAGE
Lloh37:
	ldr	x8, [x8, _HSI2C_INT_TX_ALMOSTEMPTY_EN@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
	mov	x9, x28
LBB0_3:
	orr	w10, w25, w20
	orr	w11, w24, w28
	bic	w11, w21, w11
	cmp	x22, x23
	csel	w12, w26, w27, eq
	orr	w21, w10, w0
	orr	w22, w8, w12
	orr	w23, w9, w11
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #8]
	bl	_HSI2C_SLV_ADDR_MAS
	ldr	x8, [x19, #8]
Lloh39:
	adrp	x9, _HSI2C_ADDR@GOTPAGE
Lloh40:
	ldr	x9, [x9, _HSI2C_ADDR@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh42:
	adrp	x9, _HSI2C_FIFO_CTL@GOTPAGE
Lloh43:
	ldr	x9, [x9, _HSI2C_FIFO_CTL@GOTPAGEOFF]
Lloh44:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x21
	bl	_writel
	ldr	x8, [x19, #8]
Lloh45:
	adrp	x9, _HSI2C_CTL@GOTPAGE
Lloh46:
	ldr	x9, [x9, _HSI2C_CTL@GOTPAGEOFF]
Lloh47:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x23
	bl	_writel
	mov	x0, x19
	bl	_exynos5_i2c_bus_check
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh48:
	adrp	x9, _HSI2C_INT_ENABLE@GOTPAGE
Lloh49:
	ldr	x9, [x9, _HSI2C_INT_ENABLE@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x22
	bl	_writel
Lloh51:
	adrp	x8, _HSI2C_STOP_AFTER_TRANS@GOTPAGE
Lloh52:
	ldr	x8, [x8, _HSI2C_STOP_AFTER_TRANS@GOTPAGEOFF]
Lloh53:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w9, #1
	csel	w8, w8, wzr, eq
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	orr	w8, w8, w9
	ldp	x10, x9, [x19, #8]
	ldr	w9, [x9, #4]
	orr	w8, w8, w9
Lloh54:
	adrp	x9, _HSI2C_MASTER_RUN@GOTPAGE
Lloh55:
	ldr	x9, [x9, _HSI2C_MASTER_RUN@GOTPAGEOFF]
Lloh56:
	ldr	w9, [x9]
	orr	w0, w8, w9
Lloh57:
	adrp	x8, _HSI2C_AUTO_CONF@GOTPAGE
Lloh58:
	ldr	x8, [x8, _HSI2C_AUTO_CONF@GOTPAGEOFF]
Lloh59:
	ldr	x8, [x8]
	add	x1, x8, x10
	bl	_writel
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_TYPE_EXYNOS7,8,3           ; @I2C_TYPE_EXYNOS7
	.comm	_HSI2C_INT_I2C_TRANS,4,2        ; @HSI2C_INT_I2C_TRANS
	.comm	_HSI2C_INT_I2C,4,2              ; @HSI2C_INT_I2C
	.comm	_HSI2C_CTL,8,3                  ; @HSI2C_CTL
	.comm	_HSI2C_TXCHON,4,2               ; @HSI2C_TXCHON
	.comm	_HSI2C_RXCHON,4,2               ; @HSI2C_RXCHON
	.comm	_HSI2C_RXFIFO_EN,4,2            ; @HSI2C_RXFIFO_EN
	.comm	_HSI2C_TXFIFO_EN,4,2            ; @HSI2C_TXFIFO_EN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_HSI2C_READ_WRITE,4,2           ; @HSI2C_READ_WRITE
	.comm	_HSI2C_INT_RX_ALMOSTFULL_EN,4,2 ; @HSI2C_INT_RX_ALMOSTFULL_EN
	.comm	_HSI2C_INT_TRAILING_EN,4,2      ; @HSI2C_INT_TRAILING_EN
	.comm	_HSI2C_INT_TX_ALMOSTEMPTY_EN,4,2 ; @HSI2C_INT_TX_ALMOSTEMPTY_EN
	.comm	_HSI2C_ADDR,8,3                 ; @HSI2C_ADDR
	.comm	_HSI2C_FIFO_CTL,8,3             ; @HSI2C_FIFO_CTL
	.comm	_HSI2C_INT_ENABLE,8,3           ; @HSI2C_INT_ENABLE
	.comm	_HSI2C_STOP_AFTER_TRANS,4,2     ; @HSI2C_STOP_AFTER_TRANS
	.comm	_HSI2C_MASTER_RUN,4,2           ; @HSI2C_MASTER_RUN
	.comm	_HSI2C_AUTO_CONF,8,3            ; @HSI2C_AUTO_CONF
	.no_dead_strip	_exynos5_i2c_message_start
.subsections_via_symbols
