	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sprd_i2c_enable
_sprd_i2c_enable:                       ## @sprd_i2c_enable
	.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
	movq	_I2C_DVD_OPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_I2C_CTL@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	movq	_I2C_FIFO_FULL_THLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sprd_i2c_set_full_thld
	movq	_I2C_FIFO_EMPTY_THLD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sprd_i2c_set_empty_thld
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_sprd_i2c_set_clk
	movq	%rbx, %rdi
	callq	_sprd_i2c_reset_fifo
	movq	%rbx, %rdi
	callq	_sprd_i2c_clear_irq
	movq	(%r14), %rdi
	addq	(%rbx), %rdi
	callq	_readl
	movq	_I2C_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_I2C_INT_EN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r14), %rsi
	addq	(%rbx), %rsi
	movl	%eax, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_writel                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_DVD_OPT,4,2                ## @I2C_DVD_OPT
	.comm	_I2C_CTL,8,3                    ## @I2C_CTL
	.comm	_I2C_FIFO_FULL_THLD,4,2         ## @I2C_FIFO_FULL_THLD
	.comm	_I2C_FIFO_EMPTY_THLD,4,2        ## @I2C_FIFO_EMPTY_THLD
	.comm	_I2C_EN,4,2                     ## @I2C_EN
	.comm	_I2C_INT_EN,4,2                 ## @I2C_INT_EN
	.no_dead_strip	_sprd_i2c_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sprd_i2c_enable
_sprd_i2c_enable:                       ; @sprd_i2c_enable
	.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, _I2C_DVD_OPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_DVD_OPT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh3:
	adrp	x20, _I2C_CTL@GOTPAGE
Lloh4:
	ldr	x20, [x20, _I2C_CTL@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
Lloh5:
	adrp	x8, _I2C_FIFO_FULL_THLD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _I2C_FIFO_FULL_THLD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sprd_i2c_set_full_thld
Lloh8:
	adrp	x8, _I2C_FIFO_EMPTY_THLD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _I2C_FIFO_EMPTY_THLD@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sprd_i2c_set_empty_thld
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_sprd_i2c_set_clk
	mov	x0, x19
	bl	_sprd_i2c_reset_fifo
	mov	x0, x19
	bl	_sprd_i2c_clear_irq
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh11:
	adrp	x8, _I2C_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _I2C_EN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh14:
	adrp	x9, _I2C_INT_EN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _I2C_INT_EN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x1, x9, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_writel
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_DVD_OPT,4,2                ; @I2C_DVD_OPT
	.comm	_I2C_CTL,8,3                    ; @I2C_CTL
	.comm	_I2C_FIFO_FULL_THLD,4,2         ; @I2C_FIFO_FULL_THLD
	.comm	_I2C_FIFO_EMPTY_THLD,4,2        ; @I2C_FIFO_EMPTY_THLD
	.comm	_I2C_EN,4,2                     ; @I2C_EN
	.comm	_I2C_INT_EN,4,2                 ; @I2C_INT_EN
	.no_dead_strip	_sprd_i2c_enable
.subsections_via_symbols
