	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function solo_i2c_flush
_solo_i2c_flush:                        ## @solo_i2c_flush
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_SOLO_IIC_CH_SET
	movq	(%rbx), %rdx
	movq	_IIC_STATE_START@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	cmpq	(%rsi), %rdx
	jne	LBB0_2
## %bb.1:
	movq	_SOLO_IIC_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	orl	%eax, %ecx
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	_SOLO_IIC_WRITE@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	16(%rbx), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_SOLO_IIC_READ@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	16(%rbx), %rax
	movq	_I2C_M_NO_RD_ACK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_SOLO_IIC_ACK_EN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
LBB0_6:
	movq	8(%rbx), %rsi
	xorl	%edx, %edx
	cmpq	8(%rax), %rsi
	jne	LBB0_8
## %bb.7:
	movq	_SOLO_IIC_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
LBB0_8:
	orl	%ecx, %edx
	movq	_SOLO_IIC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_solo_reg_write                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IIC_STATE_START,8,3            ## @IIC_STATE_START
	.comm	_SOLO_IIC_START,4,2             ## @SOLO_IIC_START
	.comm	_SOLO_IIC_WRITE,4,2             ## @SOLO_IIC_WRITE
	.comm	_SOLO_IIC_READ,4,2              ## @SOLO_IIC_READ
	.comm	_I2C_M_NO_RD_ACK,4,2            ## @I2C_M_NO_RD_ACK
	.comm	_SOLO_IIC_ACK_EN,4,2            ## @SOLO_IIC_ACK_EN
	.comm	_SOLO_IIC_STOP,4,2              ## @SOLO_IIC_STOP
	.comm	_SOLO_IIC_CTRL,4,2              ## @SOLO_IIC_CTRL
	.no_dead_strip	_solo_i2c_flush
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function solo_i2c_flush
_solo_i2c_flush:                        ; @solo_i2c_flush
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_SOLO_IIC_CH_SET
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _IIC_STATE_START@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IIC_STATE_START@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _SOLO_IIC_START@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SOLO_IIC_START@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x8, x9
	csel	w8, w10, wzr, eq
	orr	w8, w8, w0
	cbz	w20, LBB0_2
; %bb.1:
Lloh6:
	adrp	x9, _SOLO_IIC_WRITE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SOLO_IIC_WRITE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x19, #16]
	b	LBB0_4
LBB0_2:
Lloh9:
	adrp	x9, _SOLO_IIC_READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SOLO_IIC_READ@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	x9, [x19, #16]
	ldr	w10, [x9]
Lloh12:
	adrp	x11, _I2C_M_NO_RD_ACK@GOTPAGE
Lloh13:
	ldr	x11, [x11, _I2C_M_NO_RD_ACK@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	tst	w11, w10
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x10, _SOLO_IIC_ACK_EN@GOTPAGE
Lloh16:
	ldr	x10, [x10, _SOLO_IIC_ACK_EN@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	orr	w8, w10, w8
LBB0_4:
	ldr	x10, [x19, #8]
	ldr	x9, [x9, #8]
Lloh18:
	adrp	x11, _SOLO_IIC_STOP@GOTPAGE
Lloh19:
	ldr	x11, [x11, _SOLO_IIC_STOP@GOTPAGEOFF]
Lloh20:
	ldr	w11, [x11]
	cmp	x10, x9
	csel	w9, w11, wzr, eq
	orr	w2, w9, w8
Lloh21:
	adrp	x8, _SOLO_IIC_CTRL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _SOLO_IIC_CTRL@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_solo_reg_write
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_IIC_STATE_START,8,3            ; @IIC_STATE_START
	.comm	_SOLO_IIC_START,4,2             ; @SOLO_IIC_START
	.comm	_SOLO_IIC_WRITE,4,2             ; @SOLO_IIC_WRITE
	.comm	_SOLO_IIC_READ,4,2              ; @SOLO_IIC_READ
	.comm	_I2C_M_NO_RD_ACK,4,2            ; @I2C_M_NO_RD_ACK
	.comm	_SOLO_IIC_ACK_EN,4,2            ; @SOLO_IIC_ACK_EN
	.comm	_SOLO_IIC_STOP,4,2              ; @SOLO_IIC_STOP
	.comm	_SOLO_IIC_CTRL,4,2              ; @SOLO_IIC_CTRL
	.no_dead_strip	_solo_i2c_flush
.subsections_via_symbols
