	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_i2c_probe
_mxs_i2c_probe:                         ## @mxs_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	_mxs_i2c_dt_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_of_match_device
	movq	%rax, %rbx
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movl	$80, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:
	movq	(%rbx), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r14)
LBB0_5:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.17:
	movq	(%r14), %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_16
## %bb.7:
	movq	_mxs_i2c_isr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_dev_name
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_devm_request_irq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	movq	%r15, 64(%r14)
	leaq	60(%r14), %rdi
	callq	_init_completion
	cmpq	$0, (%r15)
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_mxs_i2c_get_ofdata
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
LBB0_10:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_dma_request_slave_channel
	movl	%eax, 56(%r14)
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r14, %rdi
	callq	_mxs_i2c_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movq	%r14, %rbx
	addq	$8, %rbx
	movl	52(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_strlcpy
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r14)
	movq	_mxs_i2c_algo@GOTPCREL(%rip), %rax
	movq	%rax, 40(%r14)
	movq	_mxs_i2c_quirks@GOTPCREL(%rip), %rax
	movq	%rax, 32(%r14)
	movq	%r15, 16(%r14)
	movl	8(%r15), %eax
	movl	%eax, 24(%r14)
	movq	(%r15), %rax
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_i2c_set_adapdata
	movq	%rbx, %rdi
	callq	_i2c_add_numbered_adapter
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	%eax, %ebx
	movq	_MXS_I2C_CTRL0_SFTRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MXS_I2C_CTRL0_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%r14), %rsi
	callq	_writel
	jmp	LBB0_16
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	_mxs_i2c_dt_ids,4,2             ## @mxs_i2c_dt_ids
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mxs_i2c_isr,4,2                ## @mxs_i2c_isr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx-tx"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to request dma\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"MXS I2C adapter"

	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.comm	_mxs_i2c_algo,4,2               ## @mxs_i2c_algo
	.comm	_mxs_i2c_quirks,4,2             ## @mxs_i2c_quirks
	.comm	_MXS_I2C_CTRL0_SFTRST,4,2       ## @MXS_I2C_CTRL0_SFTRST
	.comm	_MXS_I2C_CTRL0_SET,8,3          ## @MXS_I2C_CTRL0_SET
	.no_dead_strip	_mxs_i2c_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_i2c_probe
_mxs_i2c_probe:                         ; @mxs_i2c_probe
	.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	x8, _mxs_i2c_dt_ids@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mxs_i2c_dt_ids@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_of_match_device
	mov	x21, x0
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #80
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	cbz	x21, LBB0_3
; %bb.2:
	ldr	x8, [x21]
	ldr	w8, [x8]
	str	w8, [x20, #72]
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x20]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	ldr	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
	b	_PTR_ERR
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_platform_get_irq
	mov	x21, x0
	tbnz	w0, #31, LBB0_7
; %bb.9:
Lloh8:
	adrp	x8, _mxs_i2c_isr@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mxs_i2c_isr@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_dev_name
	mov	x4, x0
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.10:
	str	x19, [x20, #64]
	add	x0, x20, #60
	bl	_init_completion
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_mxs_i2c_get_ofdata
	mov	x21, x0
	cbnz	w0, LBB0_7
LBB0_12:
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dma_request_slave_channel
	str	w0, [x20, #56]
	cbz	w0, LBB0_16
; %bb.13:
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x20
	bl	_mxs_i2c_reset
	mov	x21, x0
	cbnz	w0, LBB0_7
; %bb.14:
	ldr	w0, [x20, #52]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_strlcpy
Lloh15:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	adrp	x9, _mxs_i2c_algo@GOTPAGE
Lloh19:
	ldr	x9, [x9, _mxs_i2c_algo@GOTPAGEOFF]
	str	w8, [x20, #48]
Lloh20:
	adrp	x8, _mxs_i2c_quirks@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mxs_i2c_quirks@GOTPAGEOFF]
	stp	x8, x9, [x20, #32]
	str	x19, [x20, #16]
	ldr	w8, [x19, #8]
	str	w8, [x20, #24]
	ldr	x8, [x19]
	mov	x19, x20
	str	x8, [x19, #8]!
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_adapdata
	mov	x0, x19
	bl	_i2c_add_numbered_adapter
	mov	x21, x0
	cbz	w0, LBB0_7
; %bb.15:
Lloh22:
	adrp	x8, _MXS_I2C_CTRL0_SFTRST@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MXS_I2C_CTRL0_SFTRST@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	ldr	x8, [x20]
Lloh25:
	adrp	x9, _MXS_I2C_CTRL0_SET@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MXS_I2C_CTRL0_SET@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	b	LBB0_7
LBB0_16:
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh30:
	adrp	x8, _ENODEV@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_mxs_i2c_dt_ids,4,2             ; @mxs_i2c_dt_ids
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mxs_i2c_isr,4,2                ; @mxs_i2c_isr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx-tx"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to request dma\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"MXS I2C adapter"

	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.comm	_mxs_i2c_algo,4,2               ; @mxs_i2c_algo
	.comm	_mxs_i2c_quirks,4,2             ; @mxs_i2c_quirks
	.comm	_MXS_I2C_CTRL0_SFTRST,4,2       ; @MXS_I2C_CTRL0_SFTRST
	.comm	_MXS_I2C_CTRL0_SET,8,3          ; @MXS_I2C_CTRL0_SET
	.no_dead_strip	_mxs_i2c_probe
.subsections_via_symbols
