	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function omap_i2c_xfer_msg
_omap_i2c_xfer_msg:                     ## @omap_i2c_xfer_msg
	.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	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %rbx
	callq	_i2c_get_adapdata
	movq	%rax, %r14
	movl	16(%rax), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	movl	8(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%r15d, %r9d
	callq	_dev_dbg
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edx, %edx
	andl	8(%rbx), %eax
	setne	%dl
	movl	%edx, (%r14)
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_omap_i2c_resize_fifo
	movq	_OMAP_I2C_SA_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_omap_i2c_write_reg
	movl	12(%rbx), %eax
	movl	%eax, 32(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 4(%r14)
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_barrier
	movq	_OMAP_I2C_CNT_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r14), %edx
	movq	%r14, %rdi
	callq	_omap_i2c_write_reg
	movq	_OMAP_I2C_BUF_REG@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_omap_i2c_read_reg
	movq	_OMAP_I2C_BUF_RXFIF_CLR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_OMAP_I2C_BUF_TXFIF_CLR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_omap_i2c_write_reg
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	testl	%r13d, %r13d
	jne	LBB0_2
## %bb.1:
	leaq	20(%r14), %rdi
	callq	_reinit_completion
LBB0_2:
	movl	$0, 8(%r14)
	movq	_OMAP_I2C_CON_EN@GOTPCREL(%rip), %rax
	movq	_OMAP_I2C_CON_MST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r13d
	orl	(%rax), %r13d
	movq	_OMAP_I2C_CON_STT@GOTPCREL(%rip), %rdx
	cmpl	$401, 12(%r14)                  ## imm = 0x191
	movl	$0, %ecx
	jl	LBB0_4
## %bb.3:
	movq	_OMAP_I2C_CON_OPMODE_HS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_4:
	orl	(%rdx), %r13d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	8(%rbx), %r12d
	movq	_I2C_M_TEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	je	LBB0_6
## %bb.5:
	movq	_OMAP_I2C_CON_XA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	orl	%ecx, %r13d
	movq	_I2C_M_STOP@GOTPCREL(%rip), %rdx
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	$0, %ecx
	andl	%r12d, %esi
	jne	LBB0_8
## %bb.7:
	movq	_OMAP_I2C_CON_TRX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_8:
	orl	%eax, %r13d
	movq	_OMAP_I2C_CON_STP@GOTPCREL(%rip), %rsi
	movl	$0, %eax
	andl	(%rdx), %r12d
	cmpq	$0, 24(%r14)
	jne	LBB0_10
## %bb.9:
	movl	(%rsi), %eax
LBB0_10:
	movl	%r12d, %edx
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	orl	%ebx, %edx
	cmovnel	%eax, %r15d
	orl	%r15d, %ecx
	orl	%ecx, %r13d
	movq	_OMAP_I2C_CON_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_omap_i2c_write_reg
	orl	%ebx, %r12d
	je	LBB0_16
## %bb.11:
	cmpq	$0, 24(%r14)
	je	LBB0_16
## %bb.12:
	movq	_jiffies@GOTPCREL(%rip), %rbx
	movq	_OMAP_I2C_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	addq	(%rbx), %r12
	movq	_OMAP_I2C_CON_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_omap_i2c_read_reg
	movq	_OMAP_I2C_CON_STT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	_OMAP_I2C_CON_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_omap_i2c_read_reg
	movl	%eax, %r15d
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	callq	_time_after
	testq	%rax, %rax
	jne	LBB0_20
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	_OMAP_I2C_CON_STT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%r15d, %edx
	jne	LBB0_13
LBB0_15:
	movq	_OMAP_I2C_CON_STP@GOTPCREL(%rip), %rax
	orl	(%rax), %r13d
	notl	%edx
	andl	%r13d, %edx
	movq	_OMAP_I2C_CON_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_omap_i2c_write_reg
LBB0_16:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_22
## %bb.17:
	movq	_EAGAIN@GOTPCREL(%rip), %rbx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_omap_i2c_wait
	movq	%r14, %rdi
	callq	_omap_i2c_xfer_data
	movl	%eax, %ecx
	movl	(%rbx), %eax
	addl	%ecx, %eax
	je	LBB0_18
## %bb.19:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	sete	%al
	testq	%rax, %rax
	je	LBB0_24
LBB0_25:
	xorl	%edi, %edi
	cmpl	$0, 8(%r14)
	sete	%dil
	callq	_likely
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_35
## %bb.26:
	movl	8(%r14), %ecx
	movq	_OMAP_I2C_STAT_ROVR@GOTPCREL(%rip), %rdx
	movq	_OMAP_I2C_STAT_XUDF@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%ecx, %esi
	je	LBB0_29
## %bb.27:
	movq	%r14, %rdi
	callq	_omap_i2c_reset
	movq	%r14, %rdi
	callq	___omap_i2c_init
LBB0_28:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_34
LBB0_22:
	movq	%r14, %rdi
	addq	$20, %rdi
	movq	_OMAP_I2C_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_wait_for_completion_timeout
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_25
LBB0_24:
	movl	16(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_omap_i2c_reset
	movq	%r14, %rdi
	callq	___omap_i2c_init
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_34
LBB0_20:
	movl	16(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rcx
	jmp	LBB0_34
LBB0_29:
	movq	_OMAP_I2C_STAT_AL@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_31
## %bb.30:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
LBB0_34:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_35:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_31:
	movq	_OMAP_I2C_STAT_NACK@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_28
## %bb.32:
	movq	_I2C_M_IGNORE_NAK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%r15)
	jne	LBB0_35
## %bb.33:
	movq	_OMAP_I2C_CON_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_omap_i2c_read_reg
	movq	_OMAP_I2C_CON_STP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_omap_i2c_write_reg
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"addr: 0x%04x, len: %d, flags: 0x%x, stop: %d\n"

	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_OMAP_I2C_SA_REG,4,2            ## @OMAP_I2C_SA_REG
	.comm	_OMAP_I2C_CNT_REG,4,2           ## @OMAP_I2C_CNT_REG
	.comm	_OMAP_I2C_BUF_REG,4,2           ## @OMAP_I2C_BUF_REG
	.comm	_OMAP_I2C_BUF_RXFIF_CLR,4,2     ## @OMAP_I2C_BUF_RXFIF_CLR
	.comm	_OMAP_I2C_BUF_TXFIF_CLR,4,2     ## @OMAP_I2C_BUF_TXFIF_CLR
	.comm	_OMAP_I2C_CON_EN,4,2            ## @OMAP_I2C_CON_EN
	.comm	_OMAP_I2C_CON_MST,4,2           ## @OMAP_I2C_CON_MST
	.comm	_OMAP_I2C_CON_STT,4,2           ## @OMAP_I2C_CON_STT
	.comm	_OMAP_I2C_CON_OPMODE_HS,4,2     ## @OMAP_I2C_CON_OPMODE_HS
	.comm	_I2C_M_STOP,4,2                 ## @I2C_M_STOP
	.comm	_I2C_M_TEN,4,2                  ## @I2C_M_TEN
	.comm	_OMAP_I2C_CON_XA,4,2            ## @OMAP_I2C_CON_XA
	.comm	_OMAP_I2C_CON_TRX,4,2           ## @OMAP_I2C_CON_TRX
	.comm	_OMAP_I2C_CON_STP,4,2           ## @OMAP_I2C_CON_STP
	.comm	_OMAP_I2C_CON_REG,4,2           ## @OMAP_I2C_CON_REG
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_OMAP_I2C_TIMEOUT,8,3           ## @OMAP_I2C_TIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"controller timed out waiting for start condition to finish\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EAGAIN,4,2                     ## @EAGAIN
L_.str.2:                               ## @.str.2
	.asciz	"controller timed out\n"

	.comm	_OMAP_I2C_STAT_ROVR,4,2         ## @OMAP_I2C_STAT_ROVR
	.comm	_OMAP_I2C_STAT_XUDF,4,2         ## @OMAP_I2C_STAT_XUDF
	.comm	_EIO,4,2                        ## @EIO
	.comm	_OMAP_I2C_STAT_AL,4,2           ## @OMAP_I2C_STAT_AL
	.comm	_OMAP_I2C_STAT_NACK,4,2         ## @OMAP_I2C_STAT_NACK
	.comm	_I2C_M_IGNORE_NAK,4,2           ## @I2C_M_IGNORE_NAK
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_omap_i2c_xfer_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function omap_i2c_xfer_msg
_omap_i2c_xfer_msg:                     ; @omap_i2c_xfer_msg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x3
	mov	x22, x2
	mov	x20, x1
	bl	_i2c_get_adapdata
	mov	x19, x0
	ldr	w0, [x0, #16]
	ldp	w2, w3, [x20]
	ldr	w4, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x5, x22
	bl	_dev_dbg
Lloh2:
	adrp	x23, _I2C_M_RD@GOTPAGE
Lloh3:
	ldr	x23, [x23, _I2C_M_RD@GOTPAGEOFF]
	ldr	w8, [x23]
	ldp	w1, w9, [x20, #4]
	tst	w8, w9
	cset	w2, ne
	str	w2, [x19]
	mov	x0, x19
	bl	_omap_i2c_resize_fifo
Lloh4:
	adrp	x8, _OMAP_I2C_SA_REG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _OMAP_I2C_SA_REG@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_omap_i2c_write_reg
	ldr	w8, [x20, #12]
	str	w8, [x19, #32]
	ldr	w8, [x20, #4]
	str	w8, [x19, #4]
	bl	_barrier
Lloh7:
	adrp	x8, _OMAP_I2C_CNT_REG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _OMAP_I2C_CNT_REG@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
	mov	x0, x19
	bl	_omap_i2c_write_reg
Lloh10:
	adrp	x24, _OMAP_I2C_BUF_REG@GOTPAGE
Lloh11:
	ldr	x24, [x24, _OMAP_I2C_BUF_REG@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_omap_i2c_read_reg
Lloh12:
	adrp	x8, _OMAP_I2C_BUF_RXFIF_CLR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OMAP_I2C_BUF_RXFIF_CLR@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _OMAP_I2C_BUF_TXFIF_CLR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OMAP_I2C_BUF_TXFIF_CLR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w2, w8, w9
	ldr	w1, [x24]
	mov	x0, x19
	bl	_omap_i2c_write_reg
	cbnz	w21, LBB0_2
; %bb.1:
	add	x0, x19, #20
	bl	_reinit_completion
LBB0_2:
	str	wzr, [x19, #8]
Lloh18:
	adrp	x8, _OMAP_I2C_CON_EN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OMAP_I2C_CON_EN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _OMAP_I2C_CON_MST@GOTPAGE
Lloh22:
	ldr	x9, [x9, _OMAP_I2C_CON_MST@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x27, _OMAP_I2C_CON_STT@GOTPAGE
Lloh25:
	ldr	x27, [x27, _OMAP_I2C_CON_STT@GOTPAGEOFF]
	ldr	w9, [x27]
	orr	w8, w8, w9
	ldr	w9, [x19, #12]
Lloh26:
	adrp	x10, _OMAP_I2C_CON_OPMODE_HS@GOTPAGE
Lloh27:
	ldr	x10, [x10, _OMAP_I2C_CON_OPMODE_HS@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	cmp	w9, #400
	csel	w9, w10, wzr, gt
	orr	w8, w8, w9
	ldr	w9, [x20, #8]
Lloh29:
	adrp	x10, _I2C_M_STOP@GOTPAGE
Lloh30:
	ldr	x10, [x10, _I2C_M_STOP@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	and	w10, w10, w9
Lloh32:
	adrp	x11, _I2C_M_TEN@GOTPAGE
Lloh33:
	ldr	x11, [x11, _I2C_M_TEN@GOTPAGEOFF]
Lloh34:
	adrp	x12, _OMAP_I2C_CON_XA@GOTPAGE
Lloh35:
	ldr	x12, [x12, _OMAP_I2C_CON_XA@GOTPAGEOFF]
Lloh36:
	ldr	w11, [x11]
Lloh37:
	ldr	w12, [x12]
	tst	w11, w9
	csel	w11, wzr, w12, eq
	orr	w8, w8, w11
	ldr	w11, [x23]
Lloh38:
	adrp	x12, _OMAP_I2C_CON_TRX@GOTPAGE
Lloh39:
	ldr	x12, [x12, _OMAP_I2C_CON_TRX@GOTPAGEOFF]
Lloh40:
	ldr	w12, [x12]
	tst	w11, w9
	csel	w9, w12, wzr, eq
	orr	w8, w8, w9
	ldr	x9, [x19, #24]
	cmp	x9, #0
	orr	w23, w10, w22
	ccmp	w23, #0, #4, eq
Lloh41:
	adrp	x25, _OMAP_I2C_CON_STP@GOTPAGE
Lloh42:
	ldr	x25, [x25, _OMAP_I2C_CON_STP@GOTPAGEOFF]
	ldr	w9, [x25]
	csel	w9, w9, wzr, ne
	orr	w22, w8, w9
Lloh43:
	adrp	x26, _OMAP_I2C_CON_REG@GOTPAGE
Lloh44:
	ldr	x26, [x26, _OMAP_I2C_CON_REG@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x22
	bl	_omap_i2c_write_reg
	cbz	w23, LBB0_9
; %bb.3:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_9
; %bb.4:
Lloh45:
	adrp	x28, _jiffies@GOTPAGE
Lloh46:
	ldr	x28, [x28, _jiffies@GOTPAGEOFF]
	ldr	x23, [x28]
Lloh47:
	adrp	x8, _OMAP_I2C_TIMEOUT@GOTPAGE
Lloh48:
	ldr	x8, [x8, _OMAP_I2C_TIMEOUT@GOTPAGEOFF]
Lloh49:
	ldr	x24, [x8]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_omap_i2c_read_reg
	ldr	w8, [x27]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.5:
	add	x23, x24, x23
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	bl	_omap_i2c_read_reg
	mov	x24, x0
	ldr	x0, [x28]
	mov	x1, x23
	bl	_time_after
	cbnz	x0, LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_cpu_relax
	ldr	w8, [x27]
	tst	w8, w24
	b.ne	LBB0_6
LBB0_8:
	ldr	w9, [x25]
	orr	w9, w9, w22
	bic	w2, w9, w8
	ldr	w1, [x26]
	mov	x0, x19
	bl	_omap_i2c_write_reg
LBB0_9:
	cbz	w21, LBB0_15
; %bb.10:
Lloh50:
	adrp	x21, _EAGAIN@GOTPAGE
Lloh51:
	ldr	x21, [x21, _EAGAIN@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_omap_i2c_wait
	mov	x0, x19
	bl	_omap_i2c_xfer_data
	ldr	w8, [x21]
	cmn	w0, w8
	b.eq	LBB0_11
; %bb.12:
	cmp	w0, #0
	cset	w0, eq
	cbz	x0, LBB0_16
LBB0_13:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_17
LBB0_14:
	mov	w0, #0
	b	LBB0_23
LBB0_15:
	add	x0, x19, #20
Lloh52:
	adrp	x8, _OMAP_I2C_TIMEOUT@GOTPAGE
Lloh53:
	ldr	x8, [x8, _OMAP_I2C_TIMEOUT@GOTPAGEOFF]
Lloh54:
	ldr	x1, [x8]
	bl	_wait_for_completion_timeout
	cbnz	x0, LBB0_13
LBB0_16:
	ldr	w0, [x19, #16]
Lloh55:
	adrp	x1, l_.str.2@PAGE
Lloh56:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	mov	x0, x19
	bl	_omap_i2c_reset
	mov	x0, x19
	bl	___omap_i2c_init
	b	LBB0_21
LBB0_17:
	ldr	w8, [x19, #8]
Lloh57:
	adrp	x9, _OMAP_I2C_STAT_ROVR@GOTPAGE
Lloh58:
	ldr	x9, [x9, _OMAP_I2C_STAT_ROVR@GOTPAGEOFF]
Lloh59:
	ldr	w9, [x9]
Lloh60:
	adrp	x10, _OMAP_I2C_STAT_XUDF@GOTPAGE
Lloh61:
	ldr	x10, [x10, _OMAP_I2C_STAT_XUDF@GOTPAGEOFF]
Lloh62:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_24
; %bb.18:
	mov	x0, x19
	bl	_omap_i2c_reset
	mov	x0, x19
	bl	___omap_i2c_init
LBB0_19:
Lloh63:
	adrp	x8, _EIO@GOTPAGE
Lloh64:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_22
LBB0_20:
	ldr	w0, [x19, #16]
Lloh65:
	adrp	x1, l_.str.1@PAGE
Lloh66:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_21:
Lloh67:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh68:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
LBB0_22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_23:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_24:
Lloh69:
	adrp	x9, _OMAP_I2C_STAT_AL@GOTPAGE
Lloh70:
	ldr	x9, [x9, _OMAP_I2C_STAT_AL@GOTPAGEOFF]
Lloh71:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_26
; %bb.25:
Lloh72:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh73:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_22
LBB0_26:
Lloh74:
	adrp	x9, _OMAP_I2C_STAT_NACK@GOTPAGE
Lloh75:
	ldr	x9, [x9, _OMAP_I2C_STAT_NACK@GOTPAGEOFF]
Lloh76:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.27:
	ldr	w8, [x20, #8]
Lloh77:
	adrp	x9, _I2C_M_IGNORE_NAK@GOTPAGE
Lloh78:
	ldr	x9, [x9, _I2C_M_IGNORE_NAK@GOTPAGEOFF]
Lloh79:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.28:
	ldr	w1, [x26]
	mov	x0, x19
	bl	_omap_i2c_read_reg
	ldr	w8, [x25]
	orr	w2, w8, w0
	ldr	w1, [x26]
	mov	x0, x19
	bl	_omap_i2c_write_reg
Lloh80:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh81:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh36
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotLdr	Lloh77, Lloh78, Lloh79
	.loh AdrpLdrGot	Lloh80, Lloh81
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"addr: 0x%04x, len: %d, flags: 0x%x, stop: %d\n"

	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_OMAP_I2C_SA_REG,4,2            ; @OMAP_I2C_SA_REG
	.comm	_OMAP_I2C_CNT_REG,4,2           ; @OMAP_I2C_CNT_REG
	.comm	_OMAP_I2C_BUF_REG,4,2           ; @OMAP_I2C_BUF_REG
	.comm	_OMAP_I2C_BUF_RXFIF_CLR,4,2     ; @OMAP_I2C_BUF_RXFIF_CLR
	.comm	_OMAP_I2C_BUF_TXFIF_CLR,4,2     ; @OMAP_I2C_BUF_TXFIF_CLR
	.comm	_OMAP_I2C_CON_EN,4,2            ; @OMAP_I2C_CON_EN
	.comm	_OMAP_I2C_CON_MST,4,2           ; @OMAP_I2C_CON_MST
	.comm	_OMAP_I2C_CON_STT,4,2           ; @OMAP_I2C_CON_STT
	.comm	_OMAP_I2C_CON_OPMODE_HS,4,2     ; @OMAP_I2C_CON_OPMODE_HS
	.comm	_I2C_M_STOP,4,2                 ; @I2C_M_STOP
	.comm	_I2C_M_TEN,4,2                  ; @I2C_M_TEN
	.comm	_OMAP_I2C_CON_XA,4,2            ; @OMAP_I2C_CON_XA
	.comm	_OMAP_I2C_CON_TRX,4,2           ; @OMAP_I2C_CON_TRX
	.comm	_OMAP_I2C_CON_STP,4,2           ; @OMAP_I2C_CON_STP
	.comm	_OMAP_I2C_CON_REG,4,2           ; @OMAP_I2C_CON_REG
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_OMAP_I2C_TIMEOUT,8,3           ; @OMAP_I2C_TIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"controller timed out waiting for start condition to finish\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EAGAIN,4,2                     ; @EAGAIN
l_.str.2:                               ; @.str.2
	.asciz	"controller timed out\n"

	.comm	_OMAP_I2C_STAT_ROVR,4,2         ; @OMAP_I2C_STAT_ROVR
	.comm	_OMAP_I2C_STAT_XUDF,4,2         ; @OMAP_I2C_STAT_XUDF
	.comm	_EIO,4,2                        ; @EIO
	.comm	_OMAP_I2C_STAT_AL,4,2           ; @OMAP_I2C_STAT_AL
	.comm	_OMAP_I2C_STAT_NACK,4,2         ; @OMAP_I2C_STAT_NACK
	.comm	_I2C_M_IGNORE_NAK,4,2           ; @I2C_M_IGNORE_NAK
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_omap_i2c_xfer_msg
.subsections_via_symbols
