	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kempld_i2c_process
_kempld_i2c_process:                    ## @kempld_i2c_process
	.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	32(%rdi), %r14
	movq	_KEMPLD_I2C_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kempld_read8
	movq	_I2C_STAT_TIP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_42:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%rbx), %rdx
	movq	_STATE_DONE@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rdx
	je	LBB0_5
## %bb.4:
	movq	_STATE_ERROR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_7
LBB0_5:
	movq	_KEMPLD_I2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I2C_CMD_IACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_kempld_write8
	movq	(%rbx), %rcx
	movq	_STATE_ERROR@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_42
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	movq	_I2C_STAT_ARBLOST@GOTPCREL(%rip), %rdi
	testl	%eax, (%rdi)
	je	LBB0_9
## %bb.8:
	movq	%rsi, (%rbx)
	movq	_KEMPLD_I2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I2C_CMD_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_kempld_write8
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_9:
	movq	24(%rbx), %r15
	movq	_STATE_INIT@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_12
## %bb.10:
	movq	_I2C_STAT_BUSY@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	jne	LBB0_1
## %bb.11:
	movq	_STATE_ADDR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rbx)
LBB0_12:
	movq	_STATE_ADDR@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rdx
	jne	LBB0_17
## %bb.13:
	movl	(%r15), %eax
	movq	_I2C_M_TEN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:
	movl	4(%r15), %ecx
	shrl	$7, %ecx
	andl	$6, %ecx
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	testl	%eax, (%rdx)
	setne	%sil
	leal	(%rcx,%rsi), %edx
	addl	$240, %edx
	movq	_STATE_ADDR10@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_17:
	movq	_STATE_ADDR10@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_19
## %bb.18:
	movq	_KEMPLD_I2C_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	4(%r15), %edx
	movq	%r14, %rdi
	callq	_kempld_write8
	movq	_KEMPLD_I2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I2C_CMD_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_kempld_write8
	movq	_STATE_START@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_41
LBB0_19:
	movq	_STATE_START@GOTPCREL(%rip), %rdi
	movq	_STATE_WRITE@GOTPCREL(%rip), %r8
	movq	(%r8), %rsi
	cmpq	(%rdi), %rdx
	je	LBB0_21
## %bb.20:
	cmpq	%rsi, %rdx
	je	LBB0_21
## %bb.25:
	movq	_KEMPLD_I2C_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kempld_read8
	movq	_STATE_WRITE@GOTPCREL(%rip), %r8
	movq	8(%r15), %rcx
	movslq	8(%rbx), %rdx
	leal	1(%rdx), %esi
	movl	%esi, 8(%rbx)
	movl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_26
LBB0_15:
	movq	%r15, %rdi
	callq	_i2c_8bit_addr_from_msg
	movl	%eax, %edx
	movq	_STATE_START@GOTPCREL(%rip), %rax
LBB0_16:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_KEMPLD_I2C_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kempld_write8
	movq	_KEMPLD_I2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I2C_CMD_START@GOTPCREL(%rip), %rax
LBB0_40:
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_kempld_write8
LBB0_41:
	xorl	%eax, %eax
	jmp	LBB0_42
LBB0_21:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%r15), %edx
	je	LBB0_23
## %bb.22:
	movq	_STATE_READ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
LBB0_23:
	movq	%rsi, (%rbx)
	movq	_I2C_STAT_NACK@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_26
## %bb.24:
	movq	(%rcx), %rax
	movq	%rax, (%rbx)
	movq	_KEMPLD_I2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I2C_CMD_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_kempld_write8
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_26:
	movl	8(%rbx), %eax
	cmpl	16(%r15), %eax
	jge	LBB0_28
## %bb.27:
	movq	(%rbx), %rcx
	jmp	LBB0_35
LBB0_28:
	movq	24(%rbx), %r15
	addq	$24, %r15
	decq	16(%rbx)
	movq	%r15, 24(%rbx)
	movl	$0, 8(%rbx)
	je	LBB0_43
## %bb.29:
	movl	(%r15), %eax
	movq	_I2C_M_NOSTART@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_30
## %bb.32:
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_34
## %bb.33:
	movq	_STATE_READ@GOTPCREL(%rip), %r8
LBB0_34:
	movq	(%r8), %rcx
	movq	%rcx, (%rbx)
	xorl	%eax, %eax
LBB0_35:
	movq	_STATE_READ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_39
## %bb.36:
	movq	_KEMPLD_I2C_CMD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	16(%r15), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	jne	LBB0_37
## %bb.38:
	movq	_I2C_CMD_READ_NACK@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_39:
	movq	_KEMPLD_I2C_DATA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	8(%r15), %rcx
	leal	1(%rax), %edx
	movl	%edx, 8(%rbx)
	cltq
	movl	(%rcx,%rax,4), %edx
	movq	%r14, %rdi
	callq	_kempld_write8
	movq	_KEMPLD_I2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I2C_CMD_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_43:
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movq	_KEMPLD_I2C_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I2C_CMD_STOP@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_37:
	movq	_I2C_CMD_READ_ACK@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_30:
	movq	(%r13), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_KEMPLD_I2C_STAT,4,2            ## @KEMPLD_I2C_STAT
	.comm	_I2C_STAT_TIP,4,2               ## @I2C_STAT_TIP
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_STATE_DONE,8,3                 ## @STATE_DONE
	.comm	_STATE_ERROR,8,3                ## @STATE_ERROR
	.comm	_KEMPLD_I2C_CMD,4,2             ## @KEMPLD_I2C_CMD
	.comm	_I2C_CMD_IACK,4,2               ## @I2C_CMD_IACK
	.comm	_EIO,4,2                        ## @EIO
	.comm	_I2C_STAT_ARBLOST,4,2           ## @I2C_STAT_ARBLOST
	.comm	_I2C_CMD_STOP,4,2               ## @I2C_CMD_STOP
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_STATE_INIT,8,3                 ## @STATE_INIT
	.comm	_I2C_STAT_BUSY,4,2              ## @I2C_STAT_BUSY
	.comm	_STATE_ADDR,8,3                 ## @STATE_ADDR
	.comm	_I2C_M_TEN,4,2                  ## @I2C_M_TEN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_STATE_ADDR10,8,3               ## @STATE_ADDR10
	.comm	_STATE_START,8,3                ## @STATE_START
	.comm	_KEMPLD_I2C_DATA,4,2            ## @KEMPLD_I2C_DATA
	.comm	_I2C_CMD_START,4,2              ## @I2C_CMD_START
	.comm	_I2C_CMD_WRITE,4,2              ## @I2C_CMD_WRITE
	.comm	_STATE_WRITE,8,3                ## @STATE_WRITE
	.comm	_STATE_READ,8,3                 ## @STATE_READ
	.comm	_I2C_STAT_NACK,4,2              ## @I2C_STAT_NACK
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_I2C_M_NOSTART,4,2              ## @I2C_M_NOSTART
	.comm	_I2C_CMD_READ_NACK,4,2          ## @I2C_CMD_READ_NACK
	.comm	_I2C_CMD_READ_ACK,4,2           ## @I2C_CMD_READ_ACK
	.no_dead_strip	_kempld_i2c_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kempld_i2c_process
_kempld_i2c_process:                    ; @kempld_i2c_process
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	ldr	x19, [x0, #32]
Lloh0:
	adrp	x8, _KEMPLD_I2C_STAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KEMPLD_I2C_STAT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kempld_read8
Lloh3:
	adrp	x8, _I2C_STAT_TIP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_STAT_TIP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
LBB0_1:
Lloh6:
	adrp	x8, _EBUSY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x20]
Lloh8:
	adrp	x22, _STATE_DONE@GOTPAGE
Lloh9:
	ldr	x22, [x22, _STATE_DONE@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh10:
	adrp	x23, _STATE_ERROR@GOTPAGE
Lloh11:
	ldr	x23, [x23, _STATE_ERROR@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_6:
Lloh12:
	adrp	x8, _KEMPLD_I2C_CMD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _KEMPLD_I2C_CMD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _I2C_CMD_IACK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I2C_CMD_IACK@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_kempld_write8
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_24
; %bb.7:
Lloh18:
	adrp	x8, _EIO@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
Lloh20:
	adrp	x10, _I2C_STAT_ARBLOST@GOTPAGE
Lloh21:
	ldr	x10, [x10, _I2C_STAT_ARBLOST@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w10, w0
	b.eq	LBB0_10
; %bb.9:
	str	x9, [x20]
Lloh23:
	adrp	x8, _KEMPLD_I2C_CMD@GOTPAGE
Lloh24:
	ldr	x8, [x8, _KEMPLD_I2C_CMD@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
Lloh26:
	adrp	x8, _I2C_CMD_STOP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _I2C_CMD_STOP@GOTPAGEOFF]
Lloh28:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_kempld_write8
Lloh29:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_2
LBB0_10:
	ldr	x21, [x20, #24]
Lloh31:
	adrp	x9, _STATE_INIT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _STATE_INIT@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.11:
Lloh34:
	adrp	x8, _I2C_STAT_BUSY@GOTPAGE
Lloh35:
	ldr	x8, [x8, _I2C_STAT_BUSY@GOTPAGEOFF]
Lloh36:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.12:
Lloh37:
	adrp	x8, _STATE_ADDR@GOTPAGE
Lloh38:
	ldr	x8, [x8, _STATE_ADDR@GOTPAGEOFF]
Lloh39:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_13:
Lloh40:
	adrp	x24, _STATE_ADDR@GOTPAGE
Lloh41:
	ldr	x24, [x24, _STATE_ADDR@GOTPAGEOFF]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.14:
	ldr	w8, [x21]
Lloh42:
	adrp	x9, _I2C_M_TEN@GOTPAGE
Lloh43:
	ldr	x9, [x9, _I2C_M_TEN@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_21
; %bb.15:
	ldr	w9, [x21, #4]
	lsr	w9, w9, #7
	and	w9, w9, #0x6
Lloh45:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh46:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w8, ne
	orr	w8, w9, w8
	orr	w2, w8, #0xf0
Lloh48:
	adrp	x8, _STATE_ADDR10@GOTPAGE
Lloh49:
	ldr	x8, [x8, _STATE_ADDR10@GOTPAGEOFF]
	b	LBB0_22
LBB0_16:
Lloh50:
	adrp	x9, _STATE_ADDR10@GOTPAGE
Lloh51:
	ldr	x9, [x9, _STATE_ADDR10@GOTPAGEOFF]
Lloh52:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.17:
Lloh53:
	adrp	x8, _KEMPLD_I2C_DATA@GOTPAGE
Lloh54:
	ldr	x8, [x8, _KEMPLD_I2C_DATA@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
	ldrb	w2, [x21, #4]
	mov	x0, x19
	bl	_kempld_write8
Lloh56:
	adrp	x8, _KEMPLD_I2C_CMD@GOTPAGE
Lloh57:
	ldr	x8, [x8, _KEMPLD_I2C_CMD@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
Lloh59:
	adrp	x8, _I2C_CMD_WRITE@GOTPAGE
Lloh60:
	ldr	x8, [x8, _I2C_CMD_WRITE@GOTPAGEOFF]
Lloh61:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_kempld_write8
	mov	w0, #0
Lloh62:
	adrp	x8, _STATE_START@GOTPAGE
Lloh63:
	ldr	x8, [x8, _STATE_START@GOTPAGEOFF]
Lloh64:
	ldr	x8, [x8]
	str	x8, [x20]
	b	LBB0_3
LBB0_18:
Lloh65:
	adrp	x9, _STATE_START@GOTPAGE
Lloh66:
	ldr	x9, [x9, _STATE_START@GOTPAGEOFF]
Lloh67:
	ldr	x10, [x9]
Lloh68:
	adrp	x25, _STATE_WRITE@GOTPAGE
Lloh69:
	ldr	x25, [x25, _STATE_WRITE@GOTPAGEOFF]
	ldr	x9, [x25]
	cmp	x8, x10
	b.eq	LBB0_25
; %bb.19:
	cmp	x8, x9
	b.eq	LBB0_25
; %bb.20:
Lloh70:
	adrp	x8, _KEMPLD_I2C_DATA@GOTPAGE
Lloh71:
	ldr	x8, [x8, _KEMPLD_I2C_DATA@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kempld_read8
	ldr	x8, [x21, #8]
	ldrsw	x9, [x20, #8]
	add	w10, w9, #1
	str	w10, [x20, #8]
	str	w0, [x8, x9, lsl #2]
	b	LBB0_27
LBB0_21:
	mov	x0, x21
	bl	_i2c_8bit_addr_from_msg
	mov	x2, x0
Lloh73:
	adrp	x8, _STATE_START@GOTPAGE
Lloh74:
	ldr	x8, [x8, _STATE_START@GOTPAGEOFF]
LBB0_22:
	ldr	x8, [x8]
	str	x8, [x20]
Lloh75:
	adrp	x8, _KEMPLD_I2C_DATA@GOTPAGE
Lloh76:
	ldr	x8, [x8, _KEMPLD_I2C_DATA@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kempld_write8
Lloh78:
	adrp	x8, _KEMPLD_I2C_CMD@GOTPAGE
Lloh79:
	ldr	x8, [x8, _KEMPLD_I2C_CMD@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
Lloh81:
	adrp	x8, _I2C_CMD_START@GOTPAGE
Lloh82:
	ldr	x8, [x8, _I2C_CMD_START@GOTPAGEOFF]
LBB0_23:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_kempld_write8
LBB0_24:
	mov	w0, #0
	b	LBB0_3
LBB0_25:
Lloh83:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh84:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh85:
	ldr	w8, [x8]
Lloh86:
	adrp	x11, _STATE_READ@GOTPAGE
Lloh87:
	ldr	x11, [x11, _STATE_READ@GOTPAGEOFF]
Lloh88:
	ldr	x11, [x11]
	tst	w8, w10
	csel	x8, x9, x11, eq
	str	x8, [x20]
Lloh89:
	adrp	x8, _I2C_STAT_NACK@GOTPAGE
Lloh90:
	ldr	x8, [x8, _I2C_STAT_NACK@GOTPAGEOFF]
Lloh91:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_27
; %bb.26:
	ldr	x8, [x23]
	str	x8, [x20]
Lloh92:
	adrp	x8, _KEMPLD_I2C_CMD@GOTPAGE
Lloh93:
	ldr	x8, [x8, _KEMPLD_I2C_CMD@GOTPAGEOFF]
Lloh94:
	ldr	w1, [x8]
Lloh95:
	adrp	x8, _I2C_CMD_STOP@GOTPAGE
Lloh96:
	ldr	x8, [x8, _I2C_CMD_STOP@GOTPAGEOFF]
Lloh97:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_kempld_write8
Lloh98:
	adrp	x8, _ENXIO@GOTPAGE
Lloh99:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_2
LBB0_27:
	ldr	w8, [x20, #8]
	ldr	w9, [x21, #16]
	cmp	w8, w9
	b.ge	LBB0_29
; %bb.28:
	ldr	x9, [x20]
	b	LBB0_32
LBB0_29:
	ldp	x8, x9, [x20, #16]
	str	wzr, [x20, #8]
	subs	x8, x8, #1
	add	x21, x9, #24
	stp	x8, x21, [x20, #16]
	b.eq	LBB0_35
; %bb.30:
	ldr	w9, [x21]
Lloh100:
	adrp	x8, _I2C_M_NOSTART@GOTPAGE
Lloh101:
	ldr	x8, [x8, _I2C_M_NOSTART@GOTPAGEOFF]
Lloh102:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_36
; %bb.31:
	mov	w8, #0
Lloh103:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh104:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh105:
	ldr	w10, [x10]
Lloh106:
	adrp	x11, _STATE_READ@GOTPAGE
Lloh107:
	ldr	x11, [x11, _STATE_READ@GOTPAGEOFF]
	tst	w10, w9
	csel	x9, x25, x11, eq
	ldr	x9, [x9]
	str	x9, [x20]
LBB0_32:
Lloh108:
	adrp	x10, _STATE_READ@GOTPAGE
Lloh109:
	ldr	x10, [x10, _STATE_READ@GOTPAGEOFF]
Lloh110:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_34
; %bb.33:
Lloh111:
	adrp	x9, _KEMPLD_I2C_CMD@GOTPAGE
Lloh112:
	ldr	x9, [x9, _KEMPLD_I2C_CMD@GOTPAGEOFF]
Lloh113:
	ldr	w1, [x9]
	ldr	w9, [x21, #16]
Lloh114:
	adrp	x10, _I2C_CMD_READ_NACK@GOTPAGE
Lloh115:
	ldr	x10, [x10, _I2C_CMD_READ_NACK@GOTPAGEOFF]
	sub	w9, w9, #1
Lloh116:
	adrp	x11, _I2C_CMD_READ_ACK@GOTPAGE
Lloh117:
	ldr	x11, [x11, _I2C_CMD_READ_ACK@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	b	LBB0_23
LBB0_34:
Lloh118:
	adrp	x9, _KEMPLD_I2C_DATA@GOTPAGE
Lloh119:
	ldr	x9, [x9, _KEMPLD_I2C_DATA@GOTPAGEOFF]
Lloh120:
	ldr	w1, [x9]
	ldr	x9, [x21, #8]
	add	w10, w8, #1
	str	w10, [x20, #8]
	ldr	w2, [x9, w8, sxtw #2]
	mov	x0, x19
	bl	_kempld_write8
Lloh121:
	adrp	x8, _KEMPLD_I2C_CMD@GOTPAGE
Lloh122:
	ldr	x8, [x8, _KEMPLD_I2C_CMD@GOTPAGEOFF]
Lloh123:
	ldr	w1, [x8]
Lloh124:
	adrp	x8, _I2C_CMD_WRITE@GOTPAGE
Lloh125:
	ldr	x8, [x8, _I2C_CMD_WRITE@GOTPAGEOFF]
	b	LBB0_23
LBB0_35:
	ldr	x8, [x22]
	str	x8, [x20]
Lloh126:
	adrp	x8, _KEMPLD_I2C_CMD@GOTPAGE
Lloh127:
	ldr	x8, [x8, _KEMPLD_I2C_CMD@GOTPAGEOFF]
Lloh128:
	ldr	w1, [x8]
Lloh129:
	adrp	x8, _I2C_CMD_STOP@GOTPAGE
Lloh130:
	ldr	x8, [x8, _I2C_CMD_STOP@GOTPAGEOFF]
	b	LBB0_23
LBB0_36:
	mov	w0, #0
	ldr	x8, [x24]
	str	x8, [x20]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGot	Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpLdrGotLdr	Lloh83, Lloh84, Lloh85
	.loh AdrpLdrGot	Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh95, Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh92, Lloh93, Lloh94
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpLdrGot	Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh103, Lloh104, Lloh105
	.loh AdrpLdrGotLdr	Lloh108, Lloh109, Lloh110
	.loh AdrpLdrGot	Lloh116, Lloh117
	.loh AdrpLdrGot	Lloh114, Lloh115
	.loh AdrpLdrGotLdr	Lloh111, Lloh112, Lloh113
	.loh AdrpLdrGot	Lloh124, Lloh125
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh129, Lloh130
	.loh AdrpLdrGotLdr	Lloh126, Lloh127, Lloh128
	.cfi_endproc
                                        ; -- End function
	.comm	_KEMPLD_I2C_STAT,4,2            ; @KEMPLD_I2C_STAT
	.comm	_I2C_STAT_TIP,4,2               ; @I2C_STAT_TIP
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_STATE_DONE,8,3                 ; @STATE_DONE
	.comm	_STATE_ERROR,8,3                ; @STATE_ERROR
	.comm	_KEMPLD_I2C_CMD,4,2             ; @KEMPLD_I2C_CMD
	.comm	_I2C_CMD_IACK,4,2               ; @I2C_CMD_IACK
	.comm	_EIO,4,2                        ; @EIO
	.comm	_I2C_STAT_ARBLOST,4,2           ; @I2C_STAT_ARBLOST
	.comm	_I2C_CMD_STOP,4,2               ; @I2C_CMD_STOP
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_STATE_INIT,8,3                 ; @STATE_INIT
	.comm	_I2C_STAT_BUSY,4,2              ; @I2C_STAT_BUSY
	.comm	_STATE_ADDR,8,3                 ; @STATE_ADDR
	.comm	_I2C_M_TEN,4,2                  ; @I2C_M_TEN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_STATE_ADDR10,8,3               ; @STATE_ADDR10
	.comm	_STATE_START,8,3                ; @STATE_START
	.comm	_KEMPLD_I2C_DATA,4,2            ; @KEMPLD_I2C_DATA
	.comm	_I2C_CMD_START,4,2              ; @I2C_CMD_START
	.comm	_I2C_CMD_WRITE,4,2              ; @I2C_CMD_WRITE
	.comm	_STATE_WRITE,8,3                ; @STATE_WRITE
	.comm	_STATE_READ,8,3                 ; @STATE_READ
	.comm	_I2C_STAT_NACK,4,2              ; @I2C_STAT_NACK
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_I2C_M_NOSTART,4,2              ; @I2C_M_NOSTART
	.comm	_I2C_CMD_READ_NACK,4,2          ; @I2C_CMD_READ_NACK
	.comm	_I2C_CMD_READ_ACK,4,2           ; @I2C_CMD_READ_ACK
	.no_dead_strip	_kempld_i2c_process
.subsections_via_symbols
