	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function solo_i2c_handle_read
_solo_i2c_handle_read:                  ## @solo_i2c_handle_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rsi
	movq	16(%rdi), %rax
	movq	_I2C_M_NOSTART@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	(%rax), %rsi
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	$0, (%rdi)
	addq	$16, %rax
	movq	%rax, 16(%rdi)
	decq	8(%rdi)
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rax), %ecx
	testl	%ecx, %r8d
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, %esi
	testl	%ecx, %edx
	jne	LBB0_1
LBB0_7:
	callq	_solo_i2c_stop
	jmp	LBB0_8
LBB0_2:
	xorl	%esi, %esi
	callq	_solo_i2c_flush
	jmp	LBB0_8
LBB0_5:
	callq	_solo_i2c_start
LBB0_8:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_NOSTART,4,2              ## @I2C_M_NOSTART
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_solo_i2c_handle_read
.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_read
_solo_i2c_handle_read:                  ; @solo_i2c_handle_read
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x11, [x0]
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _I2C_M_NOSTART@GOTPAGE
Lloh1:
	ldr	x9, [x9, _I2C_M_NOSTART@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8]
	cmp	x11, x12
	b.ne	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x8, x8, #16
	ldr	x11, [x0, #8]
	subs	x11, x11, #1
	str	xzr, [x0]
	stp	x11, x8, [x0, #8]
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w12, [x8, #8]
	tst	w9, w12
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x11, #0
	tst	w10, w12
	b.ne	LBB0_1
LBB0_5:
	bl	_solo_i2c_stop
	b	LBB0_8
LBB0_6:
	mov	w1, #0
	bl	_solo_i2c_flush
	b	LBB0_8
LBB0_7:
	bl	_solo_i2c_start
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_NOSTART,4,2              ; @I2C_M_NOSTART
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_solo_i2c_handle_read
.subsections_via_symbols
