	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lpi2c_imx_probe
_lpi2c_imx_probe:                       ## @lpi2c_imx_probe
	.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, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$72, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 48(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	48(%rbx), %rdi
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_18:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_lpi2c_imx_algo@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	%r14, 16(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	24(%rbx), %edi
	movl	4(%r14), %esi
	movl	$4, %edx
	callq	_strlcpy
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, 56(%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	56(%rbx), %rdi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_9:
	movl	(%r14), %edi
	leaq	64(%rbx), %r12
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	_LPI2C_DEFAULT_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
LBB0_11:
	movq	_lpi2c_imx_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	4(%r14), %r8d
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%ecx, %ecx
	movq	%rbx, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r12d
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	movl	%r12d, %r15d
	jmp	LBB0_18
LBB0_13:
	movq	%rbx, %r12
	addq	$8, %r12
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2c_set_adapdata
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_platform_set_drvdata
	movq	56(%rbx), %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_18
LBB0_15:
	movq	_I2C_PM_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_pm_runtime_set_autosuspend_delay
	movq	%r14, %rdi
	callq	_pm_runtime_use_autosuspend
	movq	%r14, %rdi
	callq	_pm_runtime_get_noresume
	movq	%r14, %rdi
	callq	_pm_runtime_set_active
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movq	_LPI2C_PARAM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	48(%rbx), %rdi
	callq	_readl
	movl	%eax, %ecx
	andb	$15, %cl
	movl	$1, %edx
	shll	%cl, %edx
	movl	$1, %esi
	movl	%edx, (%rbx)
	shrl	$8, %eax
	andb	$15, %al
	movl	%eax, %ecx
	shll	%cl, %esi
	movl	%esi, 4(%rbx)
	movq	%r12, %rdi
	callq	_i2c_add_adapter
	testl	%eax, %eax
	je	LBB0_16
## %bb.17:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_pm_runtime_put
	movq	%r14, %rdi
	callq	_pm_runtime_disable
	movq	%r14, %rdi
	callq	_pm_runtime_dont_use_autosuspend
	jmp	LBB0_18
LBB0_16:
	movq	%r14, %rdi
	callq	_pm_runtime_mark_last_busy
	movq	%r14, %rdi
	callq	_pm_runtime_put_autosuspend
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_info
	xorl	%r15d, %r15d
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"can't get irq number\n"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_lpi2c_imx_algo,4,2             ## @lpi2c_imx_algo
L_.str.1:                               ## @.str.1
	.asciz	"can't get I2C peripheral clock\n"

L_.str.2:                               ## @.str.2
	.asciz	"clock-frequency"

	.comm	_LPI2C_DEFAULT_RATE,4,2         ## @LPI2C_DEFAULT_RATE
	.comm	_lpi2c_imx_isr,4,2              ## @lpi2c_imx_isr
L_.str.3:                               ## @.str.3
	.asciz	"can't claim irq %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"clk enable failed %d\n"

	.comm	_I2C_PM_TIMEOUT,4,2             ## @I2C_PM_TIMEOUT
	.comm	_LPI2C_PARAM,8,3                ## @LPI2C_PARAM
L_.str.5:                               ## @.str.5
	.asciz	"LPI2C adapter registered\n"

	.no_dead_strip	_lpi2c_imx_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lpi2c_imx_probe
_lpi2c_imx_probe:                       ; @lpi2c_imx_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #72
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x0, [x20, #48]
LBB0_3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_PTR_ERR
LBB0_4:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x22, x0
	tbnz	w0, #31, LBB0_9
; %bb.7:
Lloh6:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x21, x20
	ldp	w9, w1, [x19]
	str	w9, [x21, #8]!
	str	w8, [x21, #32]
Lloh9:
	adrp	x8, _lpi2c_imx_algo@GOTPAGE
Lloh10:
	ldr	x8, [x8, _lpi2c_imx_algo@GOTPAGEOFF]
	str	x8, [x21, #24]
	str	x19, [x21, #8]
	ldr	w0, [x21, #16]
	mov	w2, #4
	bl	_strlcpy
	mov	x0, x19
	mov	x1, #0
	bl	_devm_clk_get
	str	x0, [x21, #48]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x20, #56]
	b	LBB0_3
LBB0_9:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_5
LBB0_10:
	ldr	w0, [x19]
	add	x23, x20, #64
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x23
	bl	_of_property_read_u32
	cbz	w0, LBB0_12
; %bb.11:
Lloh17:
	adrp	x8, _LPI2C_DEFAULT_RATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LPI2C_DEFAULT_RATE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x23]
LBB0_12:
Lloh20:
	adrp	x8, _lpi2c_imx_isr@GOTPAGE
Lloh21:
	ldr	x8, [x8, _lpi2c_imx_isr@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	ldr	w4, [x19, #4]
	mov	x0, x19
	mov	x1, x22
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_14
; %bb.13:
	mov	x23, x0
	str	x22, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	mov	x22, x23
	b	LBB0_5
LBB0_14:
	mov	x0, x21
	mov	x1, x20
	bl	_i2c_set_adapdata
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	ldr	x0, [x20, #56]
	bl	_clk_prepare_enable
	cbz	w0, LBB0_16
; %bb.15:
	mov	x22, x0
	str	x22, [sp]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	b	LBB0_5
LBB0_16:
Lloh27:
	adrp	x8, _I2C_PM_TIMEOUT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _I2C_PM_TIMEOUT@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pm_runtime_set_autosuspend_delay
	mov	x0, x19
	bl	_pm_runtime_use_autosuspend
	mov	x0, x19
	bl	_pm_runtime_get_noresume
	mov	x0, x19
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_pm_runtime_enable
	ldr	x8, [x20, #48]
Lloh30:
	adrp	x9, _LPI2C_PARAM@GOTPAGE
Lloh31:
	ldr	x9, [x9, _LPI2C_PARAM@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	and	w8, w0, #0xf
	mov	w9, #1
	lsl	w8, w9, w8
	ubfx	w10, w0, #8, #4
	lsl	w9, w9, w10
	stp	w8, w9, [x20]
	mov	x0, x21
	bl	_i2c_add_adapter
	mov	x22, x0
	cbz	w0, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_pm_runtime_put
	mov	x0, x19
	bl	_pm_runtime_disable
	mov	x0, x19
	bl	_pm_runtime_dont_use_autosuspend
	b	LBB0_5
LBB0_18:
	mov	x0, x19
	bl	_pm_runtime_mark_last_busy
	mov	x0, x19
	bl	_pm_runtime_put_autosuspend
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_dev_info
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"can't get irq number\n"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_lpi2c_imx_algo,4,2             ; @lpi2c_imx_algo
l_.str.1:                               ; @.str.1
	.asciz	"can't get I2C peripheral clock\n"

l_.str.2:                               ; @.str.2
	.asciz	"clock-frequency"

	.comm	_LPI2C_DEFAULT_RATE,4,2         ; @LPI2C_DEFAULT_RATE
	.comm	_lpi2c_imx_isr,4,2              ; @lpi2c_imx_isr
l_.str.3:                               ; @.str.3
	.asciz	"can't claim irq %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"clk enable failed %d\n"

	.comm	_I2C_PM_TIMEOUT,4,2             ; @I2C_PM_TIMEOUT
	.comm	_LPI2C_PARAM,8,3                ; @LPI2C_PARAM
l_.str.5:                               ; @.str.5
	.asciz	"LPI2C adapter registered\n"

	.no_dead_strip	_lpi2c_imx_probe
.subsections_via_symbols
