	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_i2c_probe
_fsl_i2c_probe:                         ## @fsl_i2c_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_MPC_I2C_CLOCK_LEGACY@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_mpc_i2c_of_match@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_of_match_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r12
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$72, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r13
	movq	%r14, 56(%rax)
	leaq	64(%rax), %rdi
	callq	_init_waitqueue_head
	movl	(%r14), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_of_iomap
	movl	%eax, (%r13)
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movl	(%r14), %edi
	xorl	%esi, %esi
	callq	_irq_of_parse_and_map
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	_mpc_i2c_isr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_IRQF_SHARED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rax, %rdi
	movq	%r13, %r8
	callq	_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
LBB0_10:
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_devm_clk_get
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	je	LBB0_11
LBB0_14:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	_MPC_I2C_CLOCK_PRESERVE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_34
LBB0_6:
	movq	56(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_33
LBB0_11:
	movq	%r15, %rdi
	callq	_clk_prepare_enable
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	jmp	LBB0_32
LBB0_9:
	movq	56(%r13), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_32
LBB0_16:
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	cmpl	$4, -44(%rbp)
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_20
LBB0_19:
	movl	(%rax), %ebx
LBB0_20:
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movl	(%r14), %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	*(%rax)
	jmp	LBB0_24
LBB0_22:
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%edx, %edx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	(%r14), %edi
	movq	%r13, %rsi
	movl	%ebx, %edx
	callq	_mpc_i2c_setup_8xxx
LBB0_24:
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	leaq	-44(%rbp), %rdx
	callq	_of_get_property
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	cmpl	$4, -44(%rbp)
	jne	LBB0_26
## %bb.27:
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rax), %eax
	imull	%ecx, %eax
	cltq
	imulq	$1125899907, %rax, %rdx         ## imm = 0x431BDE83
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$50, %rdx
	addl	%eax, %edx
	cmpl	$6, %edx
	movl	$5, %eax
	cmovgel	%edx, %eax
	movq	_mpc_ops@GOTPCREL(%rip), %rdx
	movl	%eax, (%rdx)
	jmp	LBB0_28
LBB0_26:
	movq	_mpc_ops@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_28:
	movq	56(%r13), %rdi
	imull	$1000000, %eax, %eax            ## imm = 0xF4240
	cltd
	idivl	%ecx
	leaq	L_.str.8(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_info
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_platform_set_drvdata
	movq	%r13, %rbx
	addq	$24, %rbx
	movq	_mpc_ops@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	16(%rax), %xmm1
	movups	%xmm0, 24(%r13)
	movups	%xmm1, 40(%r13)
	movl	(%r14), %edi
	leaq	-56(%rbp), %rdx
	xorl	%esi, %esi
	callq	_of_address_to_resource
	movl	48(%r13), %edi
	movq	-56(%rbp), %rcx
	leaq	L_.str.9(%rip), %rdx
	movl	$4, %esi
	callq	_scnprintf
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_adapdata
	movq	%r14, 40(%r13)
	movl	(%r14), %edi
	callq	_of_node_get
	movl	%eax, 32(%r13)
	movq	%rbx, %rdi
	callq	_i2c_add_adapter
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_34
## %bb.29:
	movq	16(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_31
## %bb.30:
	callq	_clk_disable_unprepare
LBB0_31:
	movq	8(%r13), %rdi
	movq	%r13, %rsi
	callq	_free_irq
LBB0_32:
	movq	8(%r13), %rdi
	callq	_irq_dispose_mapping
	movl	(%r13), %edi
	callq	_iounmap
LBB0_33:
	movq	%r13, %rdi
	callq	_kfree
LBB0_34:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r15, 16(%r13)
	jmp	LBB0_14
LBB0_17:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_20
	.cfi_endproc
                                        ## -- End function
	.comm	_MPC_I2C_CLOCK_LEGACY,4,2       ## @MPC_I2C_CLOCK_LEGACY
	.comm	_mpc_i2c_of_match,4,2           ## @mpc_i2c_of_match
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to map controller\n"

	.comm	_mpc_i2c_isr,4,2                ## @mpc_i2c_isr
	.comm	_IRQF_SHARED,4,2                ## @IRQF_SHARED
L_.str.1:                               ## @.str.1
	.asciz	"i2c-mpc"

L_.str.2:                               ## @.str.2
	.asciz	"failed to attach interrupt\n"

L_.str.3:                               ## @.str.3
	.asciz	"failed to enable clock\n"

L_.str.4:                               ## @.str.4
	.asciz	"fsl,preserve-clocking"

	.comm	_MPC_I2C_CLOCK_PRESERVE,4,2     ## @MPC_I2C_CLOCK_PRESERVE
L_.str.5:                               ## @.str.5
	.asciz	"clock-frequency"

L_.str.6:                               ## @.str.6
	.asciz	"dfsrr"

L_.str.7:                               ## @.str.7
	.asciz	"fsl,timeout"

	.comm	_HZ,4,2                         ## @HZ
	.comm	_mpc_ops,32,3                   ## @mpc_ops
L_.str.8:                               ## @.str.8
	.asciz	"timeout %u us\n"

L_.str.9:                               ## @.str.9
	.asciz	"MPC adapter at 0x%llx"

	.no_dead_strip	_fsl_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_i2c_probe
_fsl_i2c_probe:                         ; @fsl_i2c_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	x20, x0
Lloh0:
	adrp	x8, _MPC_I2C_CLOCK_LEGACY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MPC_I2C_CLOCK_LEGACY@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _mpc_i2c_of_match@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mpc_i2c_of_match@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_of_match_device
	cbz	x0, LBB0_6
; %bb.1:
	mov	x22, x0
Lloh6:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w0, #72
	bl	_kzalloc
	cbz	x0, LBB0_7
; %bb.2:
	mov	x19, x0
	str	x20, [x0, #56]
	add	x0, x0, #64
	bl	_init_waitqueue_head
	ldr	w0, [x20]
	mov	w1, #0
	bl	_of_iomap
	str	w0, [x19]
	cbz	w0, LBB0_9
; %bb.3:
	ldr	w0, [x20]
	mov	w1, #0
	bl	_irq_of_parse_and_map
	str	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.4:
Lloh9:
	adrp	x8, _mpc_i2c_isr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _mpc_i2c_isr@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _IRQF_SHARED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IRQF_SHARED@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x3, l_.str.1@PAGE
Lloh16:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x4, x19
	bl	_request_irq
	mov	x23, x0
	tbz	w0, #31, LBB0_11
; %bb.5:
	ldr	x0, [x19, #56]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_31
LBB0_6:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_33
LBB0_9:
	ldr	x0, [x19, #56]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_32
LBB0_10:
	mov	w23, #0
LBB0_11:
	mov	x0, x20
	mov	x1, #0
	bl	_devm_clk_get
	mov	x24, x0
	bl	_IS_ERR
	cbz	w0, LBB0_14
LBB0_12:
	ldr	w0, [x20]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_of_property_read_bool
	cbz	x0, LBB0_16
; %bb.13:
Lloh30:
	adrp	x0, _MPC_I2C_CLOCK_PRESERVE@GOTPAGE
Lloh31:
	ldr	x0, [x0, _MPC_I2C_CLOCK_PRESERVE@GOTPAGEOFF]
	b	LBB0_18
LBB0_14:
	mov	x0, x24
	bl	_clk_prepare_enable
	cbz	w0, LBB0_34
; %bb.15:
Lloh32:
	adrp	x1, l_.str.3@PAGE
Lloh33:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	b	LBB0_31
LBB0_16:
	ldr	w0, [x20]
Lloh34:
	adrp	x1, l_.str.5@PAGE
Lloh35:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #12
	bl	_of_get_property
	cbz	x0, LBB0_19
; %bb.17:
	ldr	w8, [sp, #12]
	cmp	w8, #4
	b.ne	LBB0_19
LBB0_18:
	ldr	w21, [x0]
LBB0_19:
	ldr	x8, [x22]
	cbz	x8, LBB0_21
; %bb.20:
	ldr	x8, [x8]
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x21
	blr	x8
	b	LBB0_23
LBB0_21:
	ldr	w0, [x20]
Lloh36:
	adrp	x1, l_.str.6@PAGE
Lloh37:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, #0
	bl	_of_get_property
	cbz	x0, LBB0_23
; %bb.22:
	ldr	w0, [x20]
	mov	x1, x19
	mov	x2, x21
	bl	_mpc_i2c_setup_8xxx
LBB0_23:
	mov	w21, #16960
	movk	w21, #15, lsl #16
	ldr	w0, [x20]
Lloh38:
	adrp	x1, l_.str.7@PAGE
Lloh39:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x2, sp, #12
	bl	_of_get_property
Lloh40:
	adrp	x22, _mpc_ops@GOTPAGE
Lloh41:
	ldr	x22, [x22, _mpc_ops@GOTPAGEOFF]
	cbz	x0, LBB0_26
; %bb.24:
	ldr	w8, [sp, #12]
	cmp	w8, #4
	b.ne	LBB0_26
; %bb.25:
	ldr	w9, [x0]
Lloh42:
	adrp	x8, _HZ@GOTPAGE
Lloh43:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	mul	w9, w8, w9
	sdiv	w9, w9, w21
	mov	w10, #5
	cmp	w9, #5
	csel	w9, w9, w10, gt
	str	w9, [x22]
	b	LBB0_27
LBB0_26:
	ldr	w9, [x22]
Lloh45:
	adrp	x8, _HZ@GOTPAGE
Lloh46:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh47:
	ldr	w8, [x8]
LBB0_27:
	ldr	x0, [x19, #56]
	mul	w9, w9, w21
	sdiv	w2, w9, w8
Lloh48:
	adrp	x1, l_.str.8@PAGE
Lloh49:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_info
	mov	x0, x20
	mov	x1, x19
	bl	_platform_set_drvdata
	add	x21, x19, #24
	ldp	q1, q0, [x22]
	stur	q1, [x19, #24]
	stur	q0, [x19, #40]
	ldr	w0, [x20]
	mov	x2, sp
	mov	w1, #0
	bl	_of_address_to_resource
	ldr	w0, [x19, #48]
	ldr	x3, [sp]
Lloh50:
	adrp	x2, l_.str.9@PAGE
Lloh51:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	w1, #4
	bl	_scnprintf
	mov	x0, x21
	mov	x1, x19
	bl	_i2c_set_adapdata
	str	x20, [x19, #40]
	ldr	w0, [x20]
	bl	_of_node_get
	str	w0, [x19, #32]
	mov	x0, x21
	bl	_i2c_add_adapter
	mov	x23, x0
	tbz	w0, #31, LBB0_33
; %bb.28:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_30
; %bb.29:
	bl	_clk_disable_unprepare
LBB0_30:
	ldr	x0, [x19, #8]
	mov	x1, x19
	bl	_free_irq
LBB0_31:
	ldr	x0, [x19, #8]
	bl	_irq_dispose_mapping
	ldr	w0, [x19]
	bl	_iounmap
LBB0_32:
	mov	x0, x19
	bl	_kfree
LBB0_33:
	mov	x0, x23
	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_34:
	str	x24, [x19, #16]
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.comm	_MPC_I2C_CLOCK_LEGACY,4,2       ; @MPC_I2C_CLOCK_LEGACY
	.comm	_mpc_i2c_of_match,4,2           ; @mpc_i2c_of_match
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to map controller\n"

	.comm	_mpc_i2c_isr,4,2                ; @mpc_i2c_isr
	.comm	_IRQF_SHARED,4,2                ; @IRQF_SHARED
l_.str.1:                               ; @.str.1
	.asciz	"i2c-mpc"

l_.str.2:                               ; @.str.2
	.asciz	"failed to attach interrupt\n"

l_.str.3:                               ; @.str.3
	.asciz	"failed to enable clock\n"

l_.str.4:                               ; @.str.4
	.asciz	"fsl,preserve-clocking"

	.comm	_MPC_I2C_CLOCK_PRESERVE,4,2     ; @MPC_I2C_CLOCK_PRESERVE
l_.str.5:                               ; @.str.5
	.asciz	"clock-frequency"

l_.str.6:                               ; @.str.6
	.asciz	"dfsrr"

l_.str.7:                               ; @.str.7
	.asciz	"fsl,timeout"

	.comm	_HZ,4,2                         ; @HZ
	.comm	_mpc_ops,32,3                   ; @mpc_ops
l_.str.8:                               ; @.str.8
	.asciz	"timeout %u us\n"

l_.str.9:                               ; @.str.9
	.asciz	"MPC adapter at 0x%llx"

	.no_dead_strip	_fsl_i2c_probe
.subsections_via_symbols
