	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xlp9xx_i2c_xfer_msg
_xlp9xx_i2c_xfer_msg:                   ## @xlp9xx_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	12(%rsi), %eax
	movl	%eax, 32(%rdi)
	movl	(%rsi), %eax
	movl	%eax, 4(%rdi)
	movl	%eax, (%rdi)
	movl	$0, 8(%rdi)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%rsi), %eax
	movl	%eax, 12(%rdi)
	leaq	28(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_reinit_completion
	movq	_XLP9XX_I2C_MFIFOCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_XLP9XX_I2C_MFIFOCTRL_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_xlp9xx_write_i2c_reg
	movl	8(%r14), %eax
	movq	_XLP9XX_I2C_SLAVEADDR_ADDR_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_XLP9XX_I2C_SLAVEADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	12(%r13), %edx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_XLP9XX_I2C_SLAVEADDR_RW@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_2:
	orl	%eax, %edx
	movq	%r13, %rdi
	callq	_xlp9xx_write_i2c_reg
	movq	_XLP9XX_I2C_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_xlp9xx_read_i2c_reg
	movl	12(%r13), %ecx
	movq	_XLP9XX_I2C_CTRL_FIFORD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %esi
	orl	%eax, %esi
	notl	%edx
	andl	%eax, %edx
	testl	%ecx, %ecx
	cmovnel	%esi, %edx
	movl	4(%r14), %eax
	movq	_I2C_M_TEN@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%eax, %esi
	movq	_XLP9XX_I2C_CTRL_ADDMODE@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r12d
	movl	%r12d, %edi
	orl	%edx, %edi
	notl	%r12d
	andl	%edx, %r12d
	testl	%esi, %esi
	cmovnel	%edi, %r12d
	movq	_I2C_M_RECV_LEN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	movl	%edx, 16(%r13)
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.3:
	movq	_I2C_SMBUS_BLOCK_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	addl	$2, %ebx
	jmp	LBB0_5
LBB0_4:
	movl	(%r14), %ebx
LBB0_5:
	movq	_I2C_CLIENT_PEC@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	movl	%eax, 20(%r13)
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.6:
	movq	%r13, %rdi
	callq	_xlp9xx_i2c_update_rx_fifo_thres
LBB0_7:
	movq	_XLP9XX_I2C_CTRL_MCTLEN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movq	_XLP9XX_I2C_CTRL_MCTLEN_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	%cl, %ebx
	notl	%eax
	andl	%eax, %r12d
	orl	%r12d, %ebx
	movq	_XLP9XX_I2C_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	%ebx, %edx
	callq	_xlp9xx_write_i2c_reg
	movl	12(%r13), %eax
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%r13, %rdi
	callq	_xlp9xx_i2c_fill_tx_fifo
	movl	12(%r13), %eax
LBB0_9:
	movq	_XLP9XX_I2C_INTEN_ARLOST@GOTPCREL(%rip), %rcx
	movq	_XLP9XX_I2C_INTEN_BUSERR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%rcx), %esi
	movq	_XLP9XX_I2C_INTEN_NACKADDR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movq	_XLP9XX_I2C_INTEN_DATADONE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_XLP9XX_I2C_INTEN_MFIFOHI@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	cmpl	$0, (%r14)
	jne	LBB0_15
	jmp	LBB0_13
LBB0_11:
	cmpl	$0, (%r14)
	je	LBB0_13
## %bb.12:
	movq	_XLP9XX_I2C_INTEN_MFIFOEMTY@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_13:
	movq	_XLP9XX_I2C_INTEN_SADDR@GOTPCREL(%rip), %rax
LBB0_14:
	orl	(%rax), %esi
LBB0_15:
	movq	%r13, %rdi
	callq	_xlp9xx_i2c_unmask_irq
	movq	_XLP9XX_I2C_CMD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$0, (%r14)
	je	LBB0_20
## %bb.16:
	cmpl	$0, 12(%r13)
	jne	LBB0_18
## %bb.17:
	movq	_XLP9XX_I2C_CMD_WRITE@GOTPCREL(%rip), %rcx
	jmp	LBB0_19
LBB0_18:
	movq	_XLP9XX_I2C_CMD_READ@GOTPCREL(%rip), %rcx
LBB0_19:
	orl	(%rcx), %eax
LBB0_20:
	movq	_XLP9XX_I2C_CMD_STOP@GOTPCREL(%rip), %rcx
	testl	%r15d, %r15d
	je	LBB0_22
## %bb.21:
	movl	(%rcx), %r15d
LBB0_22:
	orl	%eax, %r15d
	movq	_XLP9XX_I2C_CMD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_xlp9xx_write_i2c_reg
	movq	_XLP9XX_I2C_TIMEOUT_MS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rax, %rsi
	callq	_wait_for_completion_timeout
	movl	8(%r13), %edx
	testl	%edx, (%rbx)
	je	LBB0_24
## %bb.23:
	movl	24(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r12), %esi
	movq	_XLP9XX_I2C_CMD_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_xlp9xx_write_i2c_reg
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_24:
	movq	_XLP9XX_I2C_INTEN_NACKADDR@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_29
## %bb.25:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_26:
	xorl	%r15d, %r15d
LBB0_27:
	subl	(%rax), %r15d
LBB0_28:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	testq	%rax, %rax
	je	LBB0_33
## %bb.30:
	movq	_I2C_M_RECV_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r15d, %r15d
	testl	%eax, 4(%r14)
	je	LBB0_28
## %bb.31:
	movl	4(%r13), %eax
	testl	%eax, %eax
	je	LBB0_34
## %bb.32:
	movl	%eax, (%r14)
	jmp	LBB0_28
LBB0_33:
	movl	24(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r13, %rdi
	callq	_xlp9xx_i2c_init
	movq	_ETIMEDOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_27
LBB0_34:
	movq	_EPROTO@GOTPCREL(%rip), %rax
	jmp	LBB0_26
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_XLP9XX_I2C_MFIFOCTRL,4,2       ## @XLP9XX_I2C_MFIFOCTRL
	.comm	_XLP9XX_I2C_MFIFOCTRL_RST,4,2   ## @XLP9XX_I2C_MFIFOCTRL_RST
	.comm	_XLP9XX_I2C_SLAVEADDR,4,2       ## @XLP9XX_I2C_SLAVEADDR
	.comm	_XLP9XX_I2C_SLAVEADDR_ADDR_SHIFT,4,2 ## @XLP9XX_I2C_SLAVEADDR_ADDR_SHIFT
	.comm	_XLP9XX_I2C_SLAVEADDR_RW,4,2    ## @XLP9XX_I2C_SLAVEADDR_RW
	.comm	_XLP9XX_I2C_CTRL,4,2            ## @XLP9XX_I2C_CTRL
	.comm	_XLP9XX_I2C_CTRL_FIFORD,4,2     ## @XLP9XX_I2C_CTRL_FIFORD
	.comm	_I2C_M_TEN,4,2                  ## @I2C_M_TEN
	.comm	_XLP9XX_I2C_CTRL_ADDMODE,4,2    ## @XLP9XX_I2C_CTRL_ADDMODE
	.comm	_I2C_M_RECV_LEN,4,2             ## @I2C_M_RECV_LEN
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ## @I2C_SMBUS_BLOCK_MAX
	.comm	_I2C_CLIENT_PEC,4,2             ## @I2C_CLIENT_PEC
	.comm	_XLP9XX_I2C_CTRL_MCTLEN_MASK,4,2 ## @XLP9XX_I2C_CTRL_MCTLEN_MASK
	.comm	_XLP9XX_I2C_CTRL_MCTLEN_SHIFT,4,2 ## @XLP9XX_I2C_CTRL_MCTLEN_SHIFT
	.comm	_XLP9XX_I2C_INTEN_ARLOST,4,2    ## @XLP9XX_I2C_INTEN_ARLOST
	.comm	_XLP9XX_I2C_INTEN_BUSERR,4,2    ## @XLP9XX_I2C_INTEN_BUSERR
	.comm	_XLP9XX_I2C_INTEN_NACKADDR,4,2  ## @XLP9XX_I2C_INTEN_NACKADDR
	.comm	_XLP9XX_I2C_INTEN_DATADONE,4,2  ## @XLP9XX_I2C_INTEN_DATADONE
	.comm	_XLP9XX_I2C_INTEN_MFIFOHI,4,2   ## @XLP9XX_I2C_INTEN_MFIFOHI
	.comm	_XLP9XX_I2C_INTEN_SADDR,4,2     ## @XLP9XX_I2C_INTEN_SADDR
	.comm	_XLP9XX_I2C_INTEN_MFIFOEMTY,4,2 ## @XLP9XX_I2C_INTEN_MFIFOEMTY
	.comm	_XLP9XX_I2C_CMD_START,4,2       ## @XLP9XX_I2C_CMD_START
	.comm	_XLP9XX_I2C_CMD_READ,4,2        ## @XLP9XX_I2C_CMD_READ
	.comm	_XLP9XX_I2C_CMD_WRITE,4,2       ## @XLP9XX_I2C_CMD_WRITE
	.comm	_XLP9XX_I2C_CMD_STOP,4,2        ## @XLP9XX_I2C_CMD_STOP
	.comm	_XLP9XX_I2C_CMD,4,2             ## @XLP9XX_I2C_CMD
	.comm	_XLP9XX_I2C_TIMEOUT_MS,4,2      ## @XLP9XX_I2C_TIMEOUT_MS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"transfer error %x!\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"i2c transfer timed out!\n"

	.comm	_ETIMEDOUT,4,2                  ## @ETIMEDOUT
	.comm	_EPROTO,4,2                     ## @EPROTO
	.no_dead_strip	_xlp9xx_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 xlp9xx_i2c_xfer_msg
_xlp9xx_i2c_xfer_msg:                   ; @xlp9xx_i2c_xfer_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1, #12]
	str	w8, [x0, #32]
	ldp	w8, w9, [x1]
Lloh0:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh1:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
	stp	w8, w8, [x0]
Lloh2:
	ldr	w8, [x10]
	and	w8, w8, w9
	stp	wzr, w8, [x0, #8]
	add	x21, x0, #28
	mov	x0, x21
	bl	_reinit_completion
Lloh3:
	adrp	x8, _XLP9XX_I2C_MFIFOCTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XLP9XX_I2C_MFIFOCTRL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _XLP9XX_I2C_MFIFOCTRL_RST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XLP9XX_I2C_MFIFOCTRL_RST@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_xlp9xx_write_i2c_reg
Lloh9:
	adrp	x8, _XLP9XX_I2C_SLAVEADDR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _XLP9XX_I2C_SLAVEADDR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w8, [x20, #8]
Lloh12:
	adrp	x9, _XLP9XX_I2C_SLAVEADDR_ADDR_SHIFT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XLP9XX_I2C_SLAVEADDR_ADDR_SHIFT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldr	w9, [x19, #12]
Lloh15:
	adrp	x10, _XLP9XX_I2C_SLAVEADDR_RW@GOTPAGE
Lloh16:
	ldr	x10, [x10, _XLP9XX_I2C_SLAVEADDR_RW@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	w9, #0
	csel	w9, wzr, w10, eq
	orr	w2, w9, w8
	mov	x0, x19
	bl	_xlp9xx_write_i2c_reg
Lloh18:
	adrp	x24, _XLP9XX_I2C_CTRL@GOTPAGE
Lloh19:
	ldr	x24, [x24, _XLP9XX_I2C_CTRL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_xlp9xx_read_i2c_reg
	ldr	w8, [x19, #12]
Lloh20:
	adrp	x9, _XLP9XX_I2C_CTRL_FIFORD@GOTPAGE
Lloh21:
	ldr	x9, [x9, _XLP9XX_I2C_CTRL_FIFORD@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w10, w9, w0
	bic	w9, w0, w9
	cmp	w8, #0
	csel	w10, w9, w10, eq
	ldr	w9, [x20, #4]
Lloh23:
	adrp	x11, _I2C_M_TEN@GOTPAGE
Lloh24:
	ldr	x11, [x11, _I2C_M_TEN@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
Lloh26:
	adrp	x12, _XLP9XX_I2C_CTRL_ADDMODE@GOTPAGE
Lloh27:
	ldr	x12, [x12, _XLP9XX_I2C_CTRL_ADDMODE@GOTPAGEOFF]
Lloh28:
	ldr	w12, [x12]
	orr	w13, w12, w10
	bic	w10, w10, w12
	tst	w11, w9
	csel	w25, w10, w13, eq
Lloh29:
	adrp	x23, _I2C_M_RECV_LEN@GOTPAGE
Lloh30:
	ldr	x23, [x23, _I2C_M_RECV_LEN@GOTPAGEOFF]
	ldr	w10, [x23]
	ands	w10, w10, w9
	str	w10, [x19, #16]
	b.eq	LBB0_2
; %bb.1:
Lloh31:
	adrp	x10, _I2C_SMBUS_BLOCK_MAX@GOTPAGE
Lloh32:
	ldr	x10, [x10, _I2C_SMBUS_BLOCK_MAX@GOTPAGEOFF]
Lloh33:
	ldr	w10, [x10]
	add	w26, w10, #2
	b	LBB0_3
LBB0_2:
	ldr	w26, [x20]
LBB0_3:
Lloh34:
	adrp	x10, _I2C_CLIENT_PEC@GOTPAGE
Lloh35:
	ldr	x10, [x10, _I2C_CLIENT_PEC@GOTPAGEOFF]
Lloh36:
	ldr	w10, [x10]
	and	w9, w10, w9
	str	w9, [x19, #20]
	cbz	w8, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_xlp9xx_i2c_update_rx_fifo_thres
LBB0_5:
Lloh37:
	adrp	x8, _XLP9XX_I2C_CTRL_MCTLEN_MASK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _XLP9XX_I2C_CTRL_MCTLEN_MASK@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	bic	w8, w25, w8
Lloh40:
	adrp	x9, _XLP9XX_I2C_CTRL_MCTLEN_SHIFT@GOTPAGE
Lloh41:
	ldr	x9, [x9, _XLP9XX_I2C_CTRL_MCTLEN_SHIFT@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	lsl	w9, w26, w9
	orr	w2, w9, w8
	ldr	w1, [x24]
	mov	x0, x19
	bl	_xlp9xx_write_i2c_reg
	ldr	w8, [x19, #12]
	cbnz	w8, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_xlp9xx_i2c_fill_tx_fifo
	ldr	w8, [x19, #12]
LBB0_7:
Lloh43:
	adrp	x9, _XLP9XX_I2C_INTEN_ARLOST@GOTPAGE
Lloh44:
	ldr	x9, [x9, _XLP9XX_I2C_INTEN_ARLOST@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
Lloh46:
	adrp	x25, _XLP9XX_I2C_INTEN_BUSERR@GOTPAGE
Lloh47:
	ldr	x25, [x25, _XLP9XX_I2C_INTEN_BUSERR@GOTPAGEOFF]
	ldr	w10, [x25]
	orr	w9, w10, w9
Lloh48:
	adrp	x24, _XLP9XX_I2C_INTEN_NACKADDR@GOTPAGE
Lloh49:
	ldr	x24, [x24, _XLP9XX_I2C_INTEN_NACKADDR@GOTPAGEOFF]
	ldr	w10, [x24]
	orr	w9, w9, w10
Lloh50:
	adrp	x10, _XLP9XX_I2C_INTEN_DATADONE@GOTPAGE
Lloh51:
	ldr	x10, [x10, _XLP9XX_I2C_INTEN_DATADONE@GOTPAGEOFF]
Lloh52:
	ldr	w10, [x10]
	orr	w9, w9, w10
	cbz	w8, LBB0_10
; %bb.8:
Lloh53:
	adrp	x8, _XLP9XX_I2C_INTEN_MFIFOHI@GOTPAGE
Lloh54:
	ldr	x8, [x8, _XLP9XX_I2C_INTEN_MFIFOHI@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	orr	w1, w8, w9
	ldr	w8, [x20]
	cbnz	w8, LBB0_14
; %bb.9:
Lloh56:
	adrp	x8, _XLP9XX_I2C_INTEN_SADDR@GOTPAGE
Lloh57:
	ldr	x8, [x8, _XLP9XX_I2C_INTEN_SADDR@GOTPAGEOFF]
Lloh58:
	ldr	w8, [x8]
	orr	w1, w8, w1
	b	LBB0_14
LBB0_10:
	ldr	w8, [x20]
	cbz	w8, LBB0_12
; %bb.11:
Lloh59:
	adrp	x8, _XLP9XX_I2C_INTEN_MFIFOEMTY@GOTPAGE
Lloh60:
	ldr	x8, [x8, _XLP9XX_I2C_INTEN_MFIFOEMTY@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh61:
	adrp	x8, _XLP9XX_I2C_INTEN_SADDR@GOTPAGE
Lloh62:
	ldr	x8, [x8, _XLP9XX_I2C_INTEN_SADDR@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	orr	w1, w8, w9
LBB0_14:
	mov	x0, x19
	bl	_xlp9xx_i2c_unmask_irq
Lloh63:
	adrp	x8, _XLP9XX_I2C_CMD_START@GOTPAGE
Lloh64:
	ldr	x8, [x8, _XLP9XX_I2C_CMD_START@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	ldr	w9, [x20]
	cbz	w9, LBB0_16
; %bb.15:
	ldr	w9, [x19, #12]
Lloh66:
	adrp	x10, _XLP9XX_I2C_CMD_READ@GOTPAGE
Lloh67:
	ldr	x10, [x10, _XLP9XX_I2C_CMD_READ@GOTPAGEOFF]
Lloh68:
	adrp	x11, _XLP9XX_I2C_CMD_WRITE@GOTPAGE
Lloh69:
	ldr	x11, [x11, _XLP9XX_I2C_CMD_WRITE@GOTPAGEOFF]
	cmp	w9, #0
	csel	x9, x11, x10, eq
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_16:
Lloh70:
	adrp	x26, _XLP9XX_I2C_CMD_STOP@GOTPAGE
Lloh71:
	ldr	x26, [x26, _XLP9XX_I2C_CMD_STOP@GOTPAGEOFF]
	ldr	w9, [x26]
	cmp	w22, #0
	csel	w9, wzr, w9, eq
	orr	w2, w9, w8
Lloh72:
	adrp	x22, _XLP9XX_I2C_CMD@GOTPAGE
Lloh73:
	ldr	x22, [x22, _XLP9XX_I2C_CMD@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_xlp9xx_write_i2c_reg
Lloh74:
	adrp	x8, _XLP9XX_I2C_TIMEOUT_MS@GOTPAGE
Lloh75:
	ldr	x8, [x8, _XLP9XX_I2C_TIMEOUT_MS@GOTPAGEOFF]
Lloh76:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x21
	bl	_wait_for_completion_timeout
	ldr	w8, [x19, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_18
; %bb.17:
	ldr	w0, [x19, #24]
	str	x8, [sp]
Lloh77:
	adrp	x1, l_.str@PAGE
Lloh78:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w1, [x22]
	ldr	w2, [x26]
	mov	x0, x19
	bl	_xlp9xx_write_i2c_reg
Lloh79:
	adrp	x8, _EIO@GOTPAGE
Lloh80:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_20
LBB0_18:
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_22
; %bb.19:
Lloh81:
	adrp	x8, _ENXIO@GOTPAGE
Lloh82:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	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
	add	sp, sp, #96
	ret
LBB0_22:
	cbz	x0, LBB0_26
; %bb.23:
	ldr	w8, [x20, #4]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_27
; %bb.24:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_28
; %bb.25:
	mov	w0, #0
	str	w8, [x20]
	b	LBB0_21
LBB0_26:
	ldr	w0, [x19, #24]
Lloh83:
	adrp	x1, l_.str.1@PAGE
Lloh84:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_xlp9xx_i2c_init
Lloh85:
	adrp	x8, _ETIMEDOUT@GOTPAGE
Lloh86:
	ldr	x8, [x8, _ETIMEDOUT@GOTPAGEOFF]
	b	LBB0_20
LBB0_27:
	mov	w0, #0
	b	LBB0_21
LBB0_28:
Lloh87:
	adrp	x8, _EPROTO@GOTPAGE
Lloh88:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
	b	LBB0_20
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.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	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGot	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGot	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh79, Lloh80
	.loh AdrpAdd	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpAdd	Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh87, Lloh88
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_XLP9XX_I2C_MFIFOCTRL,4,2       ; @XLP9XX_I2C_MFIFOCTRL
	.comm	_XLP9XX_I2C_MFIFOCTRL_RST,4,2   ; @XLP9XX_I2C_MFIFOCTRL_RST
	.comm	_XLP9XX_I2C_SLAVEADDR,4,2       ; @XLP9XX_I2C_SLAVEADDR
	.comm	_XLP9XX_I2C_SLAVEADDR_ADDR_SHIFT,4,2 ; @XLP9XX_I2C_SLAVEADDR_ADDR_SHIFT
	.comm	_XLP9XX_I2C_SLAVEADDR_RW,4,2    ; @XLP9XX_I2C_SLAVEADDR_RW
	.comm	_XLP9XX_I2C_CTRL,4,2            ; @XLP9XX_I2C_CTRL
	.comm	_XLP9XX_I2C_CTRL_FIFORD,4,2     ; @XLP9XX_I2C_CTRL_FIFORD
	.comm	_I2C_M_TEN,4,2                  ; @I2C_M_TEN
	.comm	_XLP9XX_I2C_CTRL_ADDMODE,4,2    ; @XLP9XX_I2C_CTRL_ADDMODE
	.comm	_I2C_M_RECV_LEN,4,2             ; @I2C_M_RECV_LEN
	.comm	_I2C_SMBUS_BLOCK_MAX,4,2        ; @I2C_SMBUS_BLOCK_MAX
	.comm	_I2C_CLIENT_PEC,4,2             ; @I2C_CLIENT_PEC
	.comm	_XLP9XX_I2C_CTRL_MCTLEN_MASK,4,2 ; @XLP9XX_I2C_CTRL_MCTLEN_MASK
	.comm	_XLP9XX_I2C_CTRL_MCTLEN_SHIFT,4,2 ; @XLP9XX_I2C_CTRL_MCTLEN_SHIFT
	.comm	_XLP9XX_I2C_INTEN_ARLOST,4,2    ; @XLP9XX_I2C_INTEN_ARLOST
	.comm	_XLP9XX_I2C_INTEN_BUSERR,4,2    ; @XLP9XX_I2C_INTEN_BUSERR
	.comm	_XLP9XX_I2C_INTEN_NACKADDR,4,2  ; @XLP9XX_I2C_INTEN_NACKADDR
	.comm	_XLP9XX_I2C_INTEN_DATADONE,4,2  ; @XLP9XX_I2C_INTEN_DATADONE
	.comm	_XLP9XX_I2C_INTEN_MFIFOHI,4,2   ; @XLP9XX_I2C_INTEN_MFIFOHI
	.comm	_XLP9XX_I2C_INTEN_SADDR,4,2     ; @XLP9XX_I2C_INTEN_SADDR
	.comm	_XLP9XX_I2C_INTEN_MFIFOEMTY,4,2 ; @XLP9XX_I2C_INTEN_MFIFOEMTY
	.comm	_XLP9XX_I2C_CMD_START,4,2       ; @XLP9XX_I2C_CMD_START
	.comm	_XLP9XX_I2C_CMD_READ,4,2        ; @XLP9XX_I2C_CMD_READ
	.comm	_XLP9XX_I2C_CMD_WRITE,4,2       ; @XLP9XX_I2C_CMD_WRITE
	.comm	_XLP9XX_I2C_CMD_STOP,4,2        ; @XLP9XX_I2C_CMD_STOP
	.comm	_XLP9XX_I2C_CMD,4,2             ; @XLP9XX_I2C_CMD
	.comm	_XLP9XX_I2C_TIMEOUT_MS,4,2      ; @XLP9XX_I2C_TIMEOUT_MS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"transfer error %x!\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"i2c transfer timed out!\n"

	.comm	_ETIMEDOUT,4,2                  ; @ETIMEDOUT
	.comm	_EPROTO,4,2                     ; @EPROTO
	.no_dead_strip	_xlp9xx_i2c_xfer_msg
.subsections_via_symbols
