	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk3x_i2c_start
_rk3x_i2c_start:                        ## @rk3x_i2c_start
	.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, %r14
	movq	_REG_CON@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_i2c_readl
	movl	%eax, %ebx
	movq	_REG_CON_TUNING_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_REG_INT_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_IEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_i2c_writel
	movq	_REG_CON_EN@GOTPCREL(%rip), %rax
	movl	8(%r14), %edi
	orl	(%rax), %ebx
	callq	_REG_CON_MOD
	movq	_REG_CON_START@GOTPCREL(%rip), %rcx
	movq	(%r14), %rsi
	movq	_I2C_M_IGNORE_NAK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	xorl	%edx, %edx
	andl	(%rsi), %edi
	jne	LBB0_2
## %bb.1:
	movq	_REG_CON_ACTACK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_2:
	orl	%eax, %ebx
	orl	(%rcx), %ebx
	orl	%edx, %ebx
	movl	(%r15), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_i2c_writel                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_CON,4,2                    ## @REG_CON
	.comm	_REG_CON_TUNING_MASK,4,2        ## @REG_CON_TUNING_MASK
	.comm	_REG_INT_START,4,2              ## @REG_INT_START
	.comm	_REG_IEN,4,2                    ## @REG_IEN
	.comm	_REG_CON_EN,4,2                 ## @REG_CON_EN
	.comm	_REG_CON_START,4,2              ## @REG_CON_START
	.comm	_I2C_M_IGNORE_NAK,4,2           ## @I2C_M_IGNORE_NAK
	.comm	_REG_CON_ACTACK,4,2             ## @REG_CON_ACTACK
	.no_dead_strip	_rk3x_i2c_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk3x_i2c_start
_rk3x_i2c_start:                        ; @rk3x_i2c_start
	.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
Lloh0:
	adrp	x20, _REG_CON@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_CON@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_i2c_readl
Lloh2:
	adrp	x8, _REG_CON_TUNING_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _REG_CON_TUNING_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w21, w8, w0
Lloh5:
	adrp	x8, _REG_INT_START@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_INT_START@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _REG_IEN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REG_IEN@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_writel
Lloh11:
	adrp	x8, _REG_CON_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_CON_EN@GOTPAGEOFF]
Lloh13:
	ldr	w22, [x8]
	ldr	w0, [x19, #8]
	bl	_REG_CON_MOD
Lloh14:
	adrp	x8, _REG_CON_START@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_CON_START@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	x9, [x19]
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _I2C_M_IGNORE_NAK@GOTPAGE
Lloh18:
	ldr	x10, [x10, _I2C_M_IGNORE_NAK@GOTPAGEOFF]
Lloh19:
	adrp	x11, _REG_CON_ACTACK@GOTPAGE
Lloh20:
	ldr	x11, [x11, _REG_CON_ACTACK@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
Lloh22:
	ldr	w11, [x11]
	tst	w10, w9
	csel	w9, w11, wzr, eq
	orr	w10, w22, w21
	orr	w10, w10, w0
	orr	w8, w10, w8
	orr	w1, w8, w9
	ldr	w2, [x20]
	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	_i2c_writel
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh21
	.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	_REG_CON,4,2                    ; @REG_CON
	.comm	_REG_CON_TUNING_MASK,4,2        ; @REG_CON_TUNING_MASK
	.comm	_REG_INT_START,4,2              ; @REG_INT_START
	.comm	_REG_IEN,4,2                    ; @REG_IEN
	.comm	_REG_CON_EN,4,2                 ; @REG_CON_EN
	.comm	_REG_CON_START,4,2              ; @REG_CON_START
	.comm	_I2C_M_IGNORE_NAK,4,2           ; @I2C_M_IGNORE_NAK
	.comm	_REG_CON_ACTACK,4,2             ; @REG_CON_ACTACK
	.no_dead_strip	_rk3x_i2c_start
.subsections_via_symbols
