	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx_pinctrl_probe              ## -- Begin function imx_pinctrl_probe
	.p2align	4, 0x90
_imx_pinctrl_probe:                     ## @imx_pinctrl_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, %r15
	leaq	L_.str(%rip), %rax
	movq	%rax, -56(%rbp)
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.1:
	movq	%rsi, %r13
	cmpq	$0, 24(%rsi)
	je	LBB0_11
## %bb.2:
	cmpl	$0, (%r13)
	je	LBB0_11
## %bb.3:
	movq	(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	32(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.4:
	callq	_syscon_regmap_lookup_by_compatible
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_regmap_attach_dev
LBB0_6:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.7:
	movq	%rax, %r14
	movq	_IMX_USE_SCU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r13)
	je	LBB0_15
LBB0_8:
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	$56, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_20
## %bb.9:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_dev_name
	movl	%eax, 48(%rbx)
	movq	24(%r13), %rax
	movq	%rax, 40(%rbx)
	movl	(%r13), %eax
	movl	%eax, (%rbx)
	movq	_imx_pctrl_ops@GOTPCREL(%rip), %rax
	movq	%rax, 32(%rbx)
	movq	_imx_pmx_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movq	_imx_pinconf_ops@GOTPCREL(%rip), %rcx
	movq	%rcx, 16(%rbx)
	movq	_THIS_MODULE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movl	16(%r13), %ecx
	movl	%ecx, 8(%rbx)
	movl	12(%r13), %ecx
	movl	%ecx, 4(%rbx)
	movl	8(%r13), %ecx
	movl	%ecx, (%rax)
	movq	%r14, %rdi
	addq	$24, %rdi
	callq	_mutex_init
	movq	%r13, 16(%r14)
	movq	%r15, 8(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_platform_set_drvdata
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movq	%r14, %rcx
	callq	_devm_pinctrl_register_and_init
	testl	%eax, %eax
	je	LBB0_21
## %bb.10:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_23
LBB0_11:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%r13), %esi
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_devm_kmalloc_array
	movq	%rax, 40(%r14)
	testq	%rax, %rax
	je	LBB0_20
## %bb.16:
	movl	(%r13), %edx
	testl	%edx, %edx
	jle	LBB0_18
## %bb.17:
	shlq	$3, %rdx
	movq	%rax, %rdi
	movl	$255, %esi
	callq	_memset
LBB0_18:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_devm_platform_ioremap_resource
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_24
## %bb.19:
	movq	32(%r14), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_20:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_21:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_imx_pinctrl_probe_dt
	testl	%eax, %eax
	je	LBB0_28
## %bb.22:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
LBB0_23:
	movq	%r15, %rdi
	callq	_dev_err
	movq	%r14, %rdi
	callq	_imx_free_resources
	jmp	LBB0_14
LBB0_24:
	leaq	L_.str.2(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_property_read_bool
	testq	%rax, %rax
	je	LBB0_8
## %bb.25:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%edx, %edx
	callq	_of_parse_phandle
	testq	%rax, %rax
	je	LBB0_29
## %bb.26:
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	callq	_of_iomap
	movl	%eax, 28(%r14)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_of_node_put
	cmpl	$0, 28(%r14)
	jne	LBB0_8
## %bb.27:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_28:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_info
	movl	(%r14), %edi
	callq	_pinctrl_enable
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_29:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gpr"

L_.str.1:                               ## @.str.1
	.asciz	"wrong pinctrl info\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_IMX_USE_SCU,4,2                ## @IMX_USE_SCU
L_.str.2:                               ## @.str.2
	.asciz	"fsl,input-sel"

L_.str.3:                               ## @.str.3
	.asciz	"iomuxc fsl,input-sel property not found\n"

L_.str.4:                               ## @.str.4
	.asciz	"iomuxc input select base address not found\n"

	.comm	_imx_pctrl_ops,4,2              ## @imx_pctrl_ops
	.comm	_imx_pmx_ops,4,2                ## @imx_pmx_ops
	.comm	_imx_pinconf_ops,4,2            ## @imx_pinconf_ops
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
L_.str.5:                               ## @.str.5
	.asciz	"could not register IMX pinctrl driver\n"

L_.str.6:                               ## @.str.6
	.asciz	"fail to probe dt properties\n"

L_.str.7:                               ## @.str.7
	.asciz	"initialized IMX pinctrl driver\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_imx_pinctrl_probe              ; -- Begin function imx_pinctrl_probe
	.p2align	2
_imx_pinctrl_probe:                     ; @imx_pinctrl_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, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [sp, #8]
	cbz	x1, LBB0_11
; %bb.1:
	mov	x21, x1
	ldr	x8, [x1, #24]
	cbz	x8, LBB0_11
; %bb.2:
	ldr	w8, [x21]
	cbz	w8, LBB0_11
; %bb.3:
	ldr	x22, [x19]
	ldr	x0, [x21, #32]
	cbz	x0, LBB0_6
; %bb.4:
	bl	_syscon_regmap_lookup_by_compatible
	mov	x20, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_6
; %bb.5:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_regmap_attach_dev
LBB0_6:
Lloh2:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_27
; %bb.7:
	mov	x20, x0
	ldr	w8, [x21, #4]
Lloh4:
	adrp	x9, _IMX_USE_SCU@GOTPAGE
Lloh5:
	ldr	x9, [x9, _IMX_USE_SCU@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
LBB0_8:
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #56
	bl	_devm_kzalloc
	cbz	x0, LBB0_27
; %bb.9:
	mov	x22, x0
	mov	x0, x19
	bl	_dev_name
	str	w0, [x22, #48]
	ldr	x8, [x21, #24]
	ldr	w9, [x21]
Lloh7:
	adrp	x10, _imx_pctrl_ops@GOTPAGE
Lloh8:
	ldr	x10, [x10, _imx_pctrl_ops@GOTPAGEOFF]
	str	w9, [x22]
Lloh9:
	adrp	x9, _imx_pmx_ops@GOTPAGE
Lloh10:
	ldr	x9, [x9, _imx_pmx_ops@GOTPAGEOFF]
Lloh11:
	adrp	x11, _imx_pinconf_ops@GOTPAGE
Lloh12:
	ldr	x11, [x11, _imx_pinconf_ops@GOTPAGEOFF]
	stp	x10, x8, [x22, #32]
	stp	x11, x9, [x22, #16]
Lloh13:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x22, #12]
	ldur	d0, [x21, #12]
	stur	d0, [x22, #4]
	ldr	w8, [x21, #8]
	str	w8, [x9]
	add	x0, x20, #24
	bl	_mutex_init
	stp	x19, x21, [x20, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	mov	x3, x20
	bl	_devm_pinctrl_register_and_init
	cbz	w0, LBB0_20
; %bb.10:
	mov	x21, x0
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_22
LBB0_11:
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_dev_err
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_14:
	mov	x0, x21
	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_15:
	ldr	w1, [x21]
	ldr	w3, [x23]
	mov	x0, x19
	mov	w2, #8
	bl	_devm_kmalloc_array
	str	x0, [x20, #40]
	cbz	x0, LBB0_27
; %bb.16:
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.17:
	lsl	x2, x8, #3
	mov	w1, #255
	bl	_memset
LBB0_18:
	mov	x0, x19
	mov	w1, #0
	bl	_devm_platform_ioremap_resource
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_23
; %bb.19:
	ldr	x0, [x20, #32]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_14
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	bl	_imx_pinctrl_probe_dt
	cbz	w0, LBB0_28
; %bb.21:
	mov	x21, x0
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_22:
	mov	x0, x19
	bl	_dev_err
	mov	x0, x20
	bl	_imx_free_resources
	b	LBB0_14
LBB0_23:
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	cbz	x0, LBB0_8
; %bb.24:
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	w2, #0
	bl	_of_parse_phandle
	cbz	x0, LBB0_29
; %bb.25:
	mov	x22, x0
	mov	w1, #0
	bl	_of_iomap
	str	w0, [x20, #28]
	mov	x0, x22
	bl	_of_node_put
	ldr	w8, [x20, #28]
	cbnz	w8, LBB0_8
; %bb.26:
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_27:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_13
LBB0_28:
Lloh32:
	adrp	x1, l_.str.7@PAGE
Lloh33:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	w0, [x20]
	bl	_pinctrl_enable
	mov	x21, x0
	b	LBB0_14
LBB0_29:
Lloh34:
	adrp	x1, l_.str.3@PAGE
Lloh35:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_12
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gpr"

l_.str.1:                               ; @.str.1
	.asciz	"wrong pinctrl info\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_IMX_USE_SCU,4,2                ; @IMX_USE_SCU
l_.str.2:                               ; @.str.2
	.asciz	"fsl,input-sel"

l_.str.3:                               ; @.str.3
	.asciz	"iomuxc fsl,input-sel property not found\n"

l_.str.4:                               ; @.str.4
	.asciz	"iomuxc input select base address not found\n"

	.comm	_imx_pctrl_ops,4,2              ; @imx_pctrl_ops
	.comm	_imx_pmx_ops,4,2                ; @imx_pmx_ops
	.comm	_imx_pinconf_ops,4,2            ; @imx_pinconf_ops
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
l_.str.5:                               ; @.str.5
	.asciz	"could not register IMX pinctrl driver\n"

l_.str.6:                               ; @.str.6
	.asciz	"fail to probe dt properties\n"

l_.str.7:                               ; @.str.7
	.asciz	"initialized IMX pinctrl driver\n"

.subsections_via_symbols
