	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_fi2c_hw_init
_uniphier_fi2c_hw_init:                 ## @uniphier_fi2c_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movl	(%rdi), %r14d
	movq	_UNIPHIER_FI2C_CR@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_UNIPHIER_FI2C_CR_MST@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_uniphier_fi2c_reset
	movq	_UNIPHIER_FI2C_CYC@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	leal	(%r14,%r14,4), %eax
	imulq	$954437177, %rax, %rdi          ## imm = 0x38E38E39
	shrq	$33, %rdi
	movq	_UNIPHIER_FI2C_LCTL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_writel
	movl	%r14d, %edi
	shrl	%edi
	movq	_UNIPHIER_FI2C_SSUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	shrl	$4, %r14d
	movq	_UNIPHIER_FI2C_DSUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	movl	%r14d, %edi
	callq	_writel
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_uniphier_fi2c_prepare_operation ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UNIPHIER_FI2C_CR,8,3           ## @UNIPHIER_FI2C_CR
	.comm	_UNIPHIER_FI2C_CR_MST,4,2       ## @UNIPHIER_FI2C_CR_MST
	.comm	_UNIPHIER_FI2C_CYC,8,3          ## @UNIPHIER_FI2C_CYC
	.comm	_UNIPHIER_FI2C_LCTL,8,3         ## @UNIPHIER_FI2C_LCTL
	.comm	_UNIPHIER_FI2C_SSUT,8,3         ## @UNIPHIER_FI2C_SSUT
	.comm	_UNIPHIER_FI2C_DSUT,8,3         ## @UNIPHIER_FI2C_DSUT
	.no_dead_strip	_uniphier_fi2c_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_fi2c_hw_init
_uniphier_fi2c_hw_init:                 ; @uniphier_fi2c_hw_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	w20, [x0]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x21, _UNIPHIER_FI2C_CR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _UNIPHIER_FI2C_CR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _UNIPHIER_FI2C_CR_MST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UNIPHIER_FI2C_CR_MST@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	bl	_uniphier_fi2c_reset
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _UNIPHIER_FI2C_CYC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UNIPHIER_FI2C_CYC@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	x0, x20
	bl	_writel
	add	w8, w20, w20, lsl #2
	mov	w9, #36409
	movk	w9, #14563, lsl #16
	umull	x8, w8, w9
	lsr	x0, x8, #33
	ldr	x8, [x19, #8]
Lloh8:
	adrp	x9, _UNIPHIER_FI2C_LCTL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _UNIPHIER_FI2C_LCTL@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_writel
	lsr	w0, w20, #1
	ldr	x8, [x19, #8]
Lloh11:
	adrp	x9, _UNIPHIER_FI2C_SSUT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _UNIPHIER_FI2C_SSUT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	lsr	w0, w20, #4
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _UNIPHIER_FI2C_DSUT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _UNIPHIER_FI2C_DSUT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_uniphier_fi2c_prepare_operation
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_UNIPHIER_FI2C_CR,8,3           ; @UNIPHIER_FI2C_CR
	.comm	_UNIPHIER_FI2C_CR_MST,4,2       ; @UNIPHIER_FI2C_CR_MST
	.comm	_UNIPHIER_FI2C_CYC,8,3          ; @UNIPHIER_FI2C_CYC
	.comm	_UNIPHIER_FI2C_LCTL,8,3         ; @UNIPHIER_FI2C_LCTL
	.comm	_UNIPHIER_FI2C_SSUT,8,3         ; @UNIPHIER_FI2C_SSUT
	.comm	_UNIPHIER_FI2C_DSUT,8,3         ; @UNIPHIER_FI2C_DSUT
	.no_dead_strip	_uniphier_fi2c_hw_init
.subsections_via_symbols
