	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	cmpq	$0, 64(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_MV64XXX_I2C_REG_BRIDGE_CONTROL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	48(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_MV64XXX_I2C_REG_BRIDGE_TIMING@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	48(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_MV64XXX_I2C_REG_BRIDGE_INTR_CAUSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	48(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_MV64XXX_I2C_REG_BRIDGE_INTR_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	48(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
LBB0_2:
	movq	40(%rbx), %rsi
	addq	48(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	60(%rbx), %edi
	callq	_MV64XXX_I2C_BAUD_DIV_M
	movl	%eax, %r14d
	movl	56(%rbx), %edi
	callq	_MV64XXX_I2C_BAUD_DIV_N
	orl	%eax, %r14d
	movq	32(%rbx), %rsi
	addq	48(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	24(%rbx), %rsi
	addq	48(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	16(%rbx), %rsi
	addq	48(%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	8(%rbx), %rsi
	addq	48(%rbx), %rsi
	callq	_writel
	movq	_MV64XXX_I2C_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV64XXX_I2C_REG_BRIDGE_CONTROL,8,3 ## @MV64XXX_I2C_REG_BRIDGE_CONTROL
	.comm	_MV64XXX_I2C_REG_BRIDGE_TIMING,8,3 ## @MV64XXX_I2C_REG_BRIDGE_TIMING
	.comm	_MV64XXX_I2C_REG_BRIDGE_INTR_CAUSE,8,3 ## @MV64XXX_I2C_REG_BRIDGE_INTR_CAUSE
	.comm	_MV64XXX_I2C_REG_BRIDGE_INTR_MASK,8,3 ## @MV64XXX_I2C_REG_BRIDGE_INTR_MASK
	.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_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, #64]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #48]
Lloh0:
	adrp	x9, _MV64XXX_I2C_REG_BRIDGE_CONTROL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MV64XXX_I2C_REG_BRIDGE_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #48]
Lloh3:
	adrp	x9, _MV64XXX_I2C_REG_BRIDGE_TIMING@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MV64XXX_I2C_REG_BRIDGE_TIMING@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #48]
Lloh6:
	adrp	x9, _MV64XXX_I2C_REG_BRIDGE_INTR_CAUSE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MV64XXX_I2C_REG_BRIDGE_INTR_CAUSE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #48]
Lloh9:
	adrp	x9, _MV64XXX_I2C_REG_BRIDGE_INTR_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MV64XXX_I2C_REG_BRIDGE_INTR_MASK@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
LBB0_2:
	ldp	x9, x8, [x19, #40]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	w0, [x19, #60]
	bl	_MV64XXX_I2C_BAUD_DIV_M
	mov	x20, x0
	ldr	w0, [x19, #56]
	bl	_MV64XXX_I2C_BAUD_DIV_N
	orr	w0, w0, w20
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #32]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #24]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #16]
	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:
	adrp	x9, _MV64XXX_I2C_REG_CONTROL_STOP@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MV64XXX_I2C_REG_CONTROL_STOP@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldr	x8, [x19, #48]
	ldr	x9, [x19, #8]
	add	x1, x9, x8
	bl	_writel
Lloh18:
	adrp	x8, _MV64XXX_I2C_STATE_IDLE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MV64XXX_I2C_STATE_IDLE@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MV64XXX_I2C_REG_BRIDGE_CONTROL,8,3 ; @MV64XXX_I2C_REG_BRIDGE_CONTROL
	.comm	_MV64XXX_I2C_REG_BRIDGE_TIMING,8,3 ; @MV64XXX_I2C_REG_BRIDGE_TIMING
	.comm	_MV64XXX_I2C_REG_BRIDGE_INTR_CAUSE,8,3 ; @MV64XXX_I2C_REG_BRIDGE_INTR_CAUSE
	.comm	_MV64XXX_I2C_REG_BRIDGE_INTR_MASK,8,3 ; @MV64XXX_I2C_REG_BRIDGE_INTR_MASK
	.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_STATE_IDLE,4,2     ; @MV64XXX_I2C_STATE_IDLE
	.no_dead_strip	_mv64xxx_i2c_hw_init
.subsections_via_symbols
