	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv64xxx_i2c_prepare_for_io
_mv64xxx_i2c_prepare_for_io:            ## @mv64xxx_i2c_prepare_for_io
	.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
	movq	_MV64XXX_I2C_REG_CONTROL_ACK@GOTPCREL(%rip), %rax
	movq	_MV64XXX_I2C_REG_CONTROL_INTEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_MV64XXX_I2C_REG_CONTROL_TWSIEN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%rdi, %r14
	movl	%ecx, (%rdi)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movl	(%rsi), %ecx
	movl	8(%rsi), %edi
	xorl	%ebx, %ebx
	testl	%ecx, (%rax)
	setne	%bl
	movq	_I2C_M_TEN@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movl	%edi, %eax
	shrl	$7, %eax
	andl	$6, %eax
	addl	%ebx, %eax
	addl	$240, %eax
	movzbl	%dil, %ecx
	jmp	LBB0_3
LBB0_2:
	callq	_MV64XXX_I2C_ADDR_ADDR
	orl	%ebx, %eax
	xorl	%ecx, %ecx
LBB0_3:
	movl	%eax, 4(%r14)
	movl	%ecx, 8(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV64XXX_I2C_REG_CONTROL_ACK,4,2 ## @MV64XXX_I2C_REG_CONTROL_ACK
	.comm	_MV64XXX_I2C_REG_CONTROL_INTEN,4,2 ## @MV64XXX_I2C_REG_CONTROL_INTEN
	.comm	_MV64XXX_I2C_REG_CONTROL_TWSIEN,4,2 ## @MV64XXX_I2C_REG_CONTROL_TWSIEN
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_I2C_M_TEN,4,2                  ## @I2C_M_TEN
	.no_dead_strip	_mv64xxx_i2c_prepare_for_io
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv64xxx_i2c_prepare_for_io
_mv64xxx_i2c_prepare_for_io:            ; @mv64xxx_i2c_prepare_for_io
	.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
Lloh0:
	adrp	x8, _MV64XXX_I2C_REG_CONTROL_ACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MV64XXX_I2C_REG_CONTROL_ACK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MV64XXX_I2C_REG_CONTROL_INTEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MV64XXX_I2C_REG_CONTROL_INTEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _MV64XXX_I2C_REG_CONTROL_TWSIEN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MV64XXX_I2C_REG_CONTROL_TWSIEN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x0]
	ldr	w8, [x1]
Lloh9:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh10:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w20, ne
Lloh12:
	adrp	x9, _I2C_M_TEN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _I2C_M_TEN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldr	w0, [x1, #8]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	lsr	w8, w0, #7
	and	w8, w8, #0x6
	orr	w8, w8, w20
	orr	w8, w8, #0xf0
	and	w9, w0, #0xff
	b	LBB0_3
LBB0_2:
	bl	_MV64XXX_I2C_ADDR_ADDR
	mov	w9, #0
	orr	w8, w0, w20
LBB0_3:
	stp	w8, w9, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MV64XXX_I2C_REG_CONTROL_ACK,4,2 ; @MV64XXX_I2C_REG_CONTROL_ACK
	.comm	_MV64XXX_I2C_REG_CONTROL_INTEN,4,2 ; @MV64XXX_I2C_REG_CONTROL_INTEN
	.comm	_MV64XXX_I2C_REG_CONTROL_TWSIEN,4,2 ; @MV64XXX_I2C_REG_CONTROL_TWSIEN
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_I2C_M_TEN,4,2                  ; @I2C_M_TEN
	.no_dead_strip	_mv64xxx_i2c_prepare_for_io
.subsections_via_symbols
