	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function aspeed_i2c_init_clk
_aspeed_i2c_init_clk:                   ## @aspeed_i2c_init_clk
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	20(%rdi), %esi
	movl	24(%rdi), %edi
	callq	_DIV_ROUND_UP
	movl	%eax, %r14d
	movq	_ASPEED_I2C_AC_TIMING_REG1@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%r15), %rdi
	callq	_readl
	movq	_ASPEED_I2CD_TIME_TBUF_MASK@GOTPCREL(%rip), %rcx
	movq	_ASPEED_I2CD_TIME_THDSTA_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	orl	(%rcx), %ebx
	movq	_ASPEED_I2CD_TIME_TACST_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %ebx
	andl	%eax, %ebx
	movl	16(%r15), %edi
	movl	%r14d, %esi
	callq	*(%r15)
	orl	%eax, %ebx
	movq	(%r12), %rsi
	addq	8(%r15), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_ASPEED_NO_TIMEOUT_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ASPEED_I2C_AC_TIMING_REG2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%r15), %rsi
	callq	_writel
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ASPEED_I2C_AC_TIMING_REG1,8,3  ## @ASPEED_I2C_AC_TIMING_REG1
	.comm	_ASPEED_I2CD_TIME_TBUF_MASK,4,2 ## @ASPEED_I2CD_TIME_TBUF_MASK
	.comm	_ASPEED_I2CD_TIME_THDSTA_MASK,4,2 ## @ASPEED_I2CD_TIME_THDSTA_MASK
	.comm	_ASPEED_I2CD_TIME_TACST_MASK,4,2 ## @ASPEED_I2CD_TIME_TACST_MASK
	.comm	_ASPEED_NO_TIMEOUT_CTRL,4,2     ## @ASPEED_NO_TIMEOUT_CTRL
	.comm	_ASPEED_I2C_AC_TIMING_REG2,8,3  ## @ASPEED_I2C_AC_TIMING_REG2
	.no_dead_strip	_aspeed_i2c_init_clk
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function aspeed_i2c_init_clk
_aspeed_i2c_init_clk:                   ; @aspeed_i2c_init_clk
	.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	w0, [x0, #24]
	ldr	w1, [x19, #20]
	bl	_DIV_ROUND_UP
	mov	x20, x0
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x21, _ASPEED_I2C_AC_TIMING_REG1@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ASPEED_I2C_AC_TIMING_REG1@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _ASPEED_I2CD_TIME_TBUF_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ASPEED_I2CD_TIME_TBUF_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _ASPEED_I2CD_TIME_THDSTA_MASK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ASPEED_I2CD_TIME_THDSTA_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _ASPEED_I2CD_TIME_TACST_MASK@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ASPEED_I2CD_TIME_TACST_MASK@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh10:
	ldr	w9, [x10]
	orr	w8, w8, w9
	and	w22, w8, w0
	ldr	x8, [x19]
	ldr	w0, [x19, #16]
	mov	x1, x20
	blr	x8
	orr	w0, w0, w22
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
Lloh11:
	adrp	x8, _ASPEED_NO_TIMEOUT_CTRL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ASPEED_NO_TIMEOUT_CTRL@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _ASPEED_I2C_AC_TIMING_REG2@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ASPEED_I2C_AC_TIMING_REG2@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
	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
	ret
	.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	_ASPEED_I2C_AC_TIMING_REG1,8,3  ; @ASPEED_I2C_AC_TIMING_REG1
	.comm	_ASPEED_I2CD_TIME_TBUF_MASK,4,2 ; @ASPEED_I2CD_TIME_TBUF_MASK
	.comm	_ASPEED_I2CD_TIME_THDSTA_MASK,4,2 ; @ASPEED_I2CD_TIME_THDSTA_MASK
	.comm	_ASPEED_I2CD_TIME_TACST_MASK,4,2 ; @ASPEED_I2CD_TIME_TACST_MASK
	.comm	_ASPEED_NO_TIMEOUT_CTRL,4,2     ; @ASPEED_NO_TIMEOUT_CTRL
	.comm	_ASPEED_I2C_AC_TIMING_REG2,8,3  ; @ASPEED_I2C_AC_TIMING_REG2
	.no_dead_strip	_aspeed_i2c_init_clk
.subsections_via_symbols
