	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function imx_dt_node_to_map
LCPI0_0:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_imx_dt_node_to_map:                    ## @imx_dt_node_to_map
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	movq	8(%rax), %r12
	movl	(%r14), %esi
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_imx_pinctrl_find_group_by_name
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_IMX_USE_SCU@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	(%rax), %eax
	testl	%ecx, (%r12)
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.2:
	incl	%eax
	movl	%eax, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_3:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_err
	jmp	LBB0_27
LBB0_4:
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	movq	8(%r13), %r8
	movq	_IMX_NO_PAD_CTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	$9, %eax
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jae	LBB0_8
## %bb.6:
	movl	$1, %ebx
	xorl	%esi, %esi
	jmp	LBB0_11
LBB0_7:
	movl	$1, %ebx
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_8:
	movl	%eax, %edx
	andl	$7, %edx
	testq	%rdx, %rdx
	movl	$8, %edi
	cmovneq	%rdx, %rdi
	movq	%rax, %rsi
	subq	%rdi, %rsi
	movd	%ecx, %xmm0
	pshufd	$0, %xmm0, %xmm1                ## xmm1 = xmm0[0,0,0,0]
	pxor	%xmm3, %xmm3
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,0,0,0]
	movq	%rsi, %rdi
	movq	%r8, %rdx
	pxor	%xmm2, %xmm2
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movd	(%rdx), %xmm4                   ## xmm4 = mem[0],zero,zero,zero
	pinsrd	$1, 12(%rdx), %xmm4
	pinsrd	$2, 24(%rdx), %xmm4
	pinsrd	$3, 36(%rdx), %xmm4
	movd	48(%rdx), %xmm5                 ## xmm5 = mem[0],zero,zero,zero
	pinsrd	$1, 60(%rdx), %xmm5
	pinsrd	$2, 72(%rdx), %xmm5
	pinsrd	$3, 84(%rdx), %xmm5
	pand	%xmm1, %xmm4
	pand	%xmm1, %xmm5
	pcmpeqd	%xmm3, %xmm4
	psubd	%xmm4, %xmm0
	pcmpeqd	%xmm3, %xmm5
	psubd	%xmm5, %xmm2
	addq	$96, %rdx
	addq	$-8, %rdi
	jne	LBB0_9
## %bb.10:
	paddd	%xmm0, %xmm2
	pshufd	$238, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ebx
LBB0_11:
	leaq	(%rsi,%rsi,2), %rdx
	leaq	(%r8,%rdx,4), %rdx
	subq	%rsi, %rax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %esi
	andl	%ecx, %esi
	cmpl	$1, %esi
	adcl	$0, %ebx
	addq	$12, %rdx
	decq	%rax
	jne	LBB0_12
LBB0_13:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
	movl	$32, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_25
## %bb.14:
	movq	%rax, %r14
	movq	%rax, (%r12)
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_of_get_parent
	testq	%rax, %rax
	je	LBB0_26
## %bb.15:
	movq	_PIN_MAP_TYPE_MUX_GROUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%r14)
	movl	(%rax), %ecx
	movl	%ecx, 4(%r14)
	movl	(%r12), %ecx
	movl	%ecx, (%r14)
	movq	%rax, %rdi
	callq	_of_node_put
	movl	(%r13), %eax
	testl	%eax, %eax
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	jle	LBB0_24
## %bb.16:
	movq	%r15, %rdx
	movq	%r14, %rdi
	addq	$32, %rdi
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_20 Depth=1
	addq	%r15, %r14
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, 8(%rcx)
	movl	$1, %eax
LBB0_18:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%eax, 16(%rcx)
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	incl	%ebx
	movq	-104(%rbp), %r13                ## 8-byte Reload
	movl	(%r13), %eax
LBB0_19:                                ##   in Loop: Header=BB0_20 Depth=1
	incq	%r12
	movslq	%eax, %rcx
	addq	$12, %r15
	cmpq	%rcx, %r12
	jge	LBB0_24
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %r14
	movl	(%rdx), %ecx
	testl	%ecx, (%rsi)
	je	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	_PIN_MAP_TYPE_CONFIGS_PIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%ebx, -64(%rbp)                 ## 4-byte Spill
	movslq	%ebx, %rbx
	shlq	$5, %rbx
	leaq	(%rdi,%rbx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, 24(%rdi,%rbx)
	movl	8(%r14,%r15), %esi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, %r13
	callq	_pin_get_name
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	%eax, 20(%rdi,%rbx)
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	(%r13), %eax
	testl	%eax, (%rsi)
	je	LBB0_17
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	leaq	(%r14,%r15), %rax
	addq	$4, %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	movl	$2, %eax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	_IMX_NO_PAD_CTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r14,%r15)
	jne	LBB0_19
	jmp	LBB0_21
LBB0_24:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	callq	_dev_dbg
	xorl	%eax, %eax
	jmp	LBB0_29
LBB0_25:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_28
LBB0_26:
	movq	%r14, %rdi
	callq	_kfree
LBB0_27:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_28:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_29:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to find group for node %pOFn\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_IMX_USE_SCU,4,2                ## @IMX_USE_SCU
	.comm	_IMX_NO_PAD_CTL,4,2             ## @IMX_NO_PAD_CTL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PIN_MAP_TYPE_MUX_GROUP,4,2     ## @PIN_MAP_TYPE_MUX_GROUP
	.comm	_PIN_MAP_TYPE_CONFIGS_PIN,4,2   ## @PIN_MAP_TYPE_CONFIGS_PIN
L_.str.1:                               ## @.str.1
	.asciz	"maps: function %s group %s num %d\n"

	.no_dead_strip	_imx_dt_node_to_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function imx_dt_node_to_map
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_imx_dt_node_to_map:                    ; @imx_dt_node_to_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x23, x0
	ldr	x26, [x0, #8]
	ldr	w1, [x22]
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	mov	x0, x20
	bl	_imx_pinctrl_find_group_by_name
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	w8, [x26]
Lloh0:
	adrp	x20, _IMX_USE_SCU@GOTPAGE
Lloh1:
	ldr	x20, [x20, _IMX_USE_SCU@GOTPAGEOFF]
	ldr	w10, [x20]
	ldr	w9, [x0]
	tst	w10, w8
	b.eq	LBB0_4
; %bb.2:
	add	w23, w9, #1
	b	LBB0_13
LBB0_3:
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_27
LBB0_4:
	cmp	w9, #1
	b.lt	LBB0_7
; %bb.5:
	ldr	x10, [x21, #8]
Lloh4:
	adrp	x8, _IMX_NO_PAD_CTL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IMX_NO_PAD_CTL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmp	w9, #17
	b.hs	LBB0_8
; %bb.6:
	mov	x11, #0
	mov	w23, #1
	b	LBB0_11
LBB0_7:
	mov	w23, #1
	b	LBB0_13
LBB0_8:
	ands	x11, x9, #0xf
	mov	w12, #16
	csel	x11, x12, x11, eq
	sub	x11, x9, x11
	dup.4s	v0, w8
Lloh7:
	adrp	x12, lCPI0_0@PAGE
Lloh8:
	ldr	q1, [x12, lCPI0_0@PAGEOFF]
	add	x12, x10, #96
	movi.2d	v2, #0000000000000000
	mov	x13, x11
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	x14, x12, #96
	sub	x15, x12, #48
	ld3.4s	{ v5, v6, v7 }, [x14]
	ld3.4s	{ v16, v17, v18 }, [x15]
	mov	x14, x12
	ld3.4s	{ v19, v20, v21 }, [x14], #48
	ld3.4s	{ v22, v23, v24 }, [x14]
	and.16b	v5, v0, v5
	and.16b	v6, v0, v16
	and.16b	v7, v0, v19
	and.16b	v16, v0, v22
	cmeq.4s	v5, v5, #0
	cmeq.4s	v6, v6, #0
	cmeq.4s	v7, v7, #0
	cmeq.4s	v16, v16, #0
	sub.4s	v1, v1, v5
	sub.4s	v2, v2, v6
	sub.4s	v3, v3, v7
	sub.4s	v4, v4, v16
	add	x12, x12, #192
	subs	x13, x13, #16
	b.ne	LBB0_9
; %bb.10:
	add.4s	v0, v2, v1
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	addv.4s	s0, v0
	fmov	w23, s0
LBB0_11:
	mov	w12, #12
	madd	x10, x11, x12, x10
	sub	x9, x9, x11
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #12
	tst	w8, w11
	cinc	w23, w23, eq
	subs	x9, x9, #1
	b.ne	LBB0_12
LBB0_13:
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x23
	mov	w1, #32
	bl	_kmalloc_array
	cbz	x0, LBB0_25
; %bb.14:
	mov	x25, x0
	str	x0, [x19]
	str	w23, [x24]
	mov	x0, x22
	bl	_of_get_parent
	cbz	x0, LBB0_26
; %bb.15:
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
Lloh12:
	adrp	x8, _PIN_MAP_TYPE_MUX_GROUP@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PIN_MAP_TYPE_MUX_GROUP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x25, #24]
	ldr	w8, [x0]
	ldr	w9, [x22]
	stp	w9, w8, [x25]
	bl	_of_node_put
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.16:
	mov	x11, x20
	mov	x22, #0
	mov	x24, #0
	mov	w28, #0
	add	x9, x25, #32
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_20
LBB0_17:                                ;   in Loop: Header=BB0_20 Depth=1
	str	x20, [x19, #8]
	mov	w8, #1
LBB0_18:                                ;   in Loop: Header=BB0_20 Depth=1
	str	w8, [x19, #16]
	add	w28, w28, #1
	ldr	w8, [x21]
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x24, x24, #1
	add	x22, x22, #12
	cmp	x24, w8, sxtw
	b.ge	LBB0_24
LBB0_20:                                ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x21, #8]
	ldr	w9, [x26]
	ldr	w10, [x11]
	tst	w10, w9
	b.eq	LBB0_23
LBB0_21:                                ;   in Loop: Header=BB0_20 Depth=1
	add	x20, x27, x22
Lloh15:
	adrp	x8, _PIN_MAP_TYPE_CONFIGS_PIN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PIN_MAP_TYPE_CONFIGS_PIN@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	sxtw	x9, w28
	ldp	x10, x0, [sp, #16]              ; 16-byte Folded Reload
	add	x19, x10, x9, lsl #5
	str	w8, [x19, #24]
	ldr	w1, [x20, #8]
	mov	x25, x26
	mov	x26, x11
	bl	_pin_get_name
	mov	x11, x26
	mov	x26, x25
	str	w0, [x19, #20]
	ldr	w8, [x25]
	ldr	w9, [x11]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.22:                               ;   in Loop: Header=BB0_20 Depth=1
	add	x8, x27, x22
	add	x8, x8, #4
	str	x8, [x19, #8]
	mov	w8, #2
	b	LBB0_18
LBB0_23:                                ;   in Loop: Header=BB0_20 Depth=1
	ldr	w9, [x27, x22]
Lloh18:
	adrp	x10, _IMX_NO_PAD_CTL@GOTPAGE
Lloh19:
	ldr	x10, [x10, _IMX_NO_PAD_CTL@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_19
	b	LBB0_21
LBB0_24:
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w0, [x8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldp	w3, w2, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x4, x23
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_29
LBB0_25:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_28
LBB0_26:
	mov	x0, x25
	bl	_kfree
LBB0_27:
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_29:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to find group for node %pOFn\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_IMX_USE_SCU,4,2                ; @IMX_USE_SCU
	.comm	_IMX_NO_PAD_CTL,4,2             ; @IMX_NO_PAD_CTL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PIN_MAP_TYPE_MUX_GROUP,4,2     ; @PIN_MAP_TYPE_MUX_GROUP
	.comm	_PIN_MAP_TYPE_CONFIGS_PIN,4,2   ; @PIN_MAP_TYPE_CONFIGS_PIN
l_.str.1:                               ; @.str.1
	.asciz	"maps: function %s group %s num %d\n"

	.no_dead_strip	_imx_dt_node_to_map
.subsections_via_symbols
