	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv64xxx_i2c_hw_init
_mv64xxx_i2c_hw_init:                   ## @mv64xxx_i2c_hw_init
	.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	_MV64XXX_I2C_REG_SOFT_RESET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rdi), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	andl	$15, %eax
	andl	$7, %ecx
	leal	(%rcx,%rax,8), %edi
	movq	_MV64XXX_I2C_REG_BAUD@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movq	_MV64XXX_I2C_REG_SLAVE_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_MV64XXX_I2C_REG_EXT_SLAVE_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_MV64XXX_I2C_REG_CONTROL_TWSIEN@GOTPCREL(%rip), %rax
	movq	_MV64XXX_I2C_REG_CONTROL_STOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_MV64XXX_I2C_REG_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movq	_MV64XXX_I2C_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV64XXX_I2C_REG_SOFT_RESET,8,3 ## @MV64XXX_I2C_REG_SOFT_RESET
	.comm	_MV64XXX_I2C_REG_BAUD,8,3       ## @MV64XXX_I2C_REG_BAUD
	.comm	_MV64XXX_I2C_REG_SLAVE_ADDR,8,3 ## @MV64XXX_I2C_REG_SLAVE_ADDR
	.comm	_MV64XXX_I2C_REG_EXT_SLAVE_ADDR,8,3 ## @MV64XXX_I2C_REG_EXT_SLAVE_ADDR
	.comm	_MV64XXX_I2C_REG_CONTROL_TWSIEN,4,2 ## @MV64XXX_I2C_REG_CONTROL_TWSIEN
	.comm	_MV64XXX_I2C_REG_CONTROL_STOP,4,2 ## @MV64XXX_I2C_REG_CONTROL_STOP
	.comm	_MV64XXX_I2C_REG_CONTROL,8,3    ## @MV64XXX_I2C_REG_CONTROL
	.comm	_MV64XXX_I2C_STATE_IDLE,4,2     ## @MV64XXX_I2C_STATE_IDLE
	.no_dead_strip	_mv64xxx_i2c_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv64xxx_i2c_hw_init
_mv64xxx_i2c_hw_init:                   ; @mv64xxx_i2c_hw_init
	.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	x8, [x0, #16]
Lloh0:
	adrp	x9, _MV64XXX_I2C_REG_SOFT_RESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MV64XXX_I2C_REG_SOFT_RESET@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldp	w8, w9, [x19]
	and	w0, w9, #0x7
	bfi	w0, w8, #3, #4
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _MV64XXX_I2C_REG_BAUD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MV64XXX_I2C_REG_BAUD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _MV64XXX_I2C_REG_SLAVE_ADDR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MV64XXX_I2C_REG_SLAVE_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _MV64XXX_I2C_REG_EXT_SLAVE_ADDR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MV64XXX_I2C_REG_EXT_SLAVE_ADDR@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
Lloh12:
	adrp	x8, _MV64XXX_I2C_REG_CONTROL_TWSIEN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MV64XXX_I2C_REG_CONTROL_TWSIEN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _MV64XXX_I2C_REG_CONTROL_STOP@GOTPAGE
Lloh16:
	ldr	x9, [x9, _MV64XXX_I2C_REG_CONTROL_STOP@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #16]
Lloh18:
	adrp	x9, _MV64XXX_I2C_REG_CONTROL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MV64XXX_I2C_REG_CONTROL@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
Lloh21:
	adrp	x8, _MV64XXX_I2C_STATE_IDLE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MV64XXX_I2C_STATE_IDLE@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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_SOFT_RESET,8,3 ; @MV64XXX_I2C_REG_SOFT_RESET
	.comm	_MV64XXX_I2C_REG_BAUD,8,3       ; @MV64XXX_I2C_REG_BAUD
	.comm	_MV64XXX_I2C_REG_SLAVE_ADDR,8,3 ; @MV64XXX_I2C_REG_SLAVE_ADDR
	.comm	_MV64XXX_I2C_REG_EXT_SLAVE_ADDR,8,3 ; @MV64XXX_I2C_REG_EXT_SLAVE_ADDR
	.comm	_MV64XXX_I2C_REG_CONTROL_TWSIEN,4,2 ; @MV64XXX_I2C_REG_CONTROL_TWSIEN
	.comm	_MV64XXX_I2C_REG_CONTROL_STOP,4,2 ; @MV64XXX_I2C_REG_CONTROL_STOP
	.comm	_MV64XXX_I2C_REG_CONTROL,8,3    ; @MV64XXX_I2C_REG_CONTROL
	.comm	_MV64XXX_I2C_STATE_IDLE,4,2     ; @MV64XXX_I2C_STATE_IDLE
	.no_dead_strip	_mv64xxx_i2c_hw_init
.subsections_via_symbols
