	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function solo_i2c_handle_write
_solo_i2c_handle_write:                 ## @solo_i2c_handle_write
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	16(%rbx), %rax
	movq	_I2C_M_NOSTART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	addq	$16, %rax
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	-16(%rax), %rdi
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	-16(%rax), %rsi
	movq	$0, (%rbx)
	addq	$24, %rsi
	movq	%rsi, 16(%rbx)
	decq	8(%rbx)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rsi), %esi
	testl	%esi, %ecx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	addq	$24, %rax
	movl	$0, %edi
	testl	%esi, %edx
	je	LBB0_1
LBB0_7:
	movq	%rbx, %rdi
	callq	_solo_i2c_stop
	jmp	LBB0_8
LBB0_2:
	movq	_SOLO_IIC_TXD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	(%rax), %rax
	movl	(%rax,%rdi,4), %edx
	movq	%rbx, %rdi
	callq	_solo_reg_write
	incq	(%rbx)
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_solo_i2c_flush
	jmp	LBB0_8
LBB0_5:
	movq	%rbx, %rdi
	callq	_solo_i2c_start
LBB0_8:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SOLO_IIC_TXD,4,2               ## @SOLO_IIC_TXD
	.comm	_I2C_M_NOSTART,4,2              ## @I2C_M_NOSTART
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_solo_i2c_handle_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function solo_i2c_handle_write
_solo_i2c_handle_write:                 ; @solo_i2c_handle_write
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x11, [x0]
Lloh0:
	adrp	x8, _I2C_M_NOSTART@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_M_NOSTART@GOTPAGEOFF]
	ldr	x12, [x0, #16]
Lloh2:
	ldr	w9, [x8]
Lloh3:
	adrp	x8, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x8]
	add	x8, x12, #16
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x12, x8
	ldr	x13, [x12, #-16]!
	cmp	x11, x13
	b.ne	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x11, x12, #24
	ldr	x12, [x19, #8]
	subs	x12, x12, #1
	str	xzr, [x19]
	stp	x12, x11, [x19, #8]
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w12, [x11, #8]
	tst	w9, w12
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x11, #0
	add	x8, x8, #24
	tst	w10, w12
	b.eq	LBB0_1
LBB0_5:
	mov	x0, x19
	bl	_solo_i2c_stop
	b	LBB0_8
LBB0_6:
Lloh6:
	adrp	x9, _SOLO_IIC_TXD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SOLO_IIC_TXD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	ldr	x8, [x8]
	ldr	w2, [x8, x11, lsl #2]
	mov	x0, x19
	bl	_solo_reg_write
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	mov	x0, x19
	mov	w1, #1
	bl	_solo_i2c_flush
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_solo_i2c_start
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SOLO_IIC_TXD,4,2               ; @SOLO_IIC_TXD
	.comm	_I2C_M_NOSTART,4,2              ; @I2C_M_NOSTART
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_solo_i2c_handle_write
.subsections_via_symbols
