	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsi_i2c_start
_fsi_i2c_start:                         ## @fsi_i2c_start
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	8(%rdi), %r15
	movq	_I2C_CMD_WITH_START@GOTPCREL(%rip), %rax
	movq	_I2C_CMD_WITH_ADDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	movq	$0, (%rdi)
	movl	(%rsi), %eax
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	je	LBB0_2
## %bb.1:
	movq	_I2C_CMD_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	orl	%ecx, %ebx
	testl	%edx, %edx
	jne	LBB0_4
## %bb.3:
	movq	_I2C_M_STOP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
LBB0_4:
	movq	_I2C_CMD_WITH_STOP@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_5:
	movq	_I2C_CMD_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	_FIELD_PREP
	movl	%eax, %r12d
	movq	_I2C_CMD_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	_FIELD_PREP
	orl	%r12d, %eax
	orl	%ebx, %eax
	movl	%eax, -36(%rbp)
	movl	(%r15), %edi
	movq	_I2C_FSI_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	callq	_fsi_i2c_write_reg
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CMD_WITH_START,4,2         ## @I2C_CMD_WITH_START
	.comm	_I2C_CMD_WITH_ADDR,4,2          ## @I2C_CMD_WITH_ADDR
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_I2C_CMD_READ,4,2               ## @I2C_CMD_READ
	.comm	_I2C_M_STOP,4,2                 ## @I2C_M_STOP
	.comm	_I2C_CMD_WITH_STOP,4,2          ## @I2C_CMD_WITH_STOP
	.comm	_I2C_CMD_ADDR,4,2               ## @I2C_CMD_ADDR
	.comm	_I2C_CMD_LEN,4,2                ## @I2C_CMD_LEN
	.comm	_I2C_FSI_CMD,4,2                ## @I2C_FSI_CMD
	.no_dead_strip	_fsi_i2c_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsi_i2c_start
_fsi_i2c_start:                         ; @fsi_i2c_start
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _I2C_CMD_WITH_START@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_CMD_WITH_START@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _I2C_CMD_WITH_ADDR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_CMD_WITH_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w9, w9, w8
	str	xzr, [x0]
	ldr	w8, [x1]
Lloh6:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
Lloh9:
	adrp	x11, _I2C_CMD_READ@GOTPAGE
Lloh10:
	ldr	x11, [x11, _I2C_CMD_READ@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w10, wzr, w11, eq
	orr	w21, w9, w10
	cbnz	w2, LBB0_2
; %bb.1:
Lloh12:
	adrp	x9, _I2C_M_STOP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I2C_M_STOP@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
Lloh15:
	adrp	x8, _I2C_CMD_WITH_STOP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _I2C_CMD_WITH_STOP@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w21, w21, w8
LBB0_3:
Lloh18:
	adrp	x8, _I2C_CMD_ADDR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _I2C_CMD_ADDR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_FIELD_PREP
	orr	w21, w21, w0
Lloh21:
	adrp	x8, _I2C_CMD_LEN@GOTPAGE
Lloh22:
	ldr	x8, [x8, _I2C_CMD_LEN@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_FIELD_PREP
	orr	w8, w21, w0
	str	w8, [sp, #12]
	ldr	w0, [x20]
Lloh24:
	adrp	x8, _I2C_FSI_CMD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _I2C_FSI_CMD@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_fsi_i2c_write_reg
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CMD_WITH_START,4,2         ; @I2C_CMD_WITH_START
	.comm	_I2C_CMD_WITH_ADDR,4,2          ; @I2C_CMD_WITH_ADDR
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_I2C_CMD_READ,4,2               ; @I2C_CMD_READ
	.comm	_I2C_M_STOP,4,2                 ; @I2C_M_STOP
	.comm	_I2C_CMD_WITH_STOP,4,2          ; @I2C_CMD_WITH_STOP
	.comm	_I2C_CMD_ADDR,4,2               ; @I2C_CMD_ADDR
	.comm	_I2C_CMD_LEN,4,2                ; @I2C_CMD_LEN
	.comm	_I2C_FSI_CMD,4,2                ; @I2C_FSI_CMD
	.no_dead_strip	_fsi_i2c_start
.subsections_via_symbols
