	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpi2c_imx_master_enable
_lpi2c_imx_master_enable:               ## @lpi2c_imx_master_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	%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, %rbx
	movl	(%rdi), %edi
	callq	_pm_runtime_get_sync
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_MCR_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_LPI2C_MCR@GOTPCREL(%rip), %r12
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	callq	_writel
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	callq	_writel
	movq	%rbx, %rdi
	callq	_lpi2c_imx_config
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%rbx), %edi
	callq	_pm_runtime_put_autosuspend
	movl	%r15d, %r14d
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %r14d
	jmp	LBB0_5
LBB0_3:
	movq	(%r12), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movq	_MCR_MEN@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r12), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MCR_RST,4,2                    ## @MCR_RST
	.comm	_LPI2C_MCR,8,3                  ## @LPI2C_MCR
	.comm	_MCR_MEN,4,2                    ## @MCR_MEN
	.no_dead_strip	_lpi2c_imx_master_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpi2c_imx_master_enable
_lpi2c_imx_master_enable:               ; @lpi2c_imx_master_enable
	.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]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MCR_RST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MCR_RST@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x21, _LPI2C_MCR@GOTPAGE
Lloh4:
	ldr	x21, [x21, _LPI2C_MCR@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	mov	x0, x19
	bl	_lpi2c_imx_config
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19]
	bl	_pm_runtime_put_autosuspend
	b	LBB0_5
LBB0_3:
	mov	x20, x0
	b	LBB0_5
LBB0_4:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readl
Lloh5:
	adrp	x8, _MCR_MEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MCR_MEN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writel
LBB0_5:
	mov	x0, x20
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MCR_RST,4,2                    ; @MCR_RST
	.comm	_LPI2C_MCR,8,3                  ; @LPI2C_MCR
	.comm	_MCR_MEN,4,2                    ; @MCR_MEN
	.no_dead_strip	_lpi2c_imx_master_enable
.subsections_via_symbols
