	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_pinctrl_parse_group
_mxs_pinctrl_parse_group:               ## @mxs_pinctrl_parse_group
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_platform_get_drvdata
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rdi
	callq	_strlen
	movl	%eax, %ebx
	movq	_SUFFIX_LEN@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	movl	%ebx, -44(%rbp)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r13
	movslq	%r14d, %r14
	leaq	L_.str.1(%rip), %rsi
	leaq	-60(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_property_read_u32
	movq	(%r15), %rcx
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_.str.2(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_snprintf
	jmp	LBB0_6
LBB0_5:
	movl	-60(%rbp), %r8d
	leaq	L_.str.3(%rip), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_snprintf
LBB0_6:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	shlq	$5, %r14
	movq	%r13, (%rbx,%r14)
	leaq	L_.str(%rip), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	callq	_of_find_property
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	-44(%rbp), %esi
	sarl	$2, %esi
	movl	%esi, 8(%rbx,%r14)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 16(%rbx,%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movq	%r13, %rax
	leaq	(%rbx,%r14), %r13
	addq	$8, %r13
	movl	(%r13), %esi
	movl	(%rax), %ecx
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, 24(%rbx,%r14)
	testq	%rax, %rax
	je	LBB0_1
## %bb.10:
	leaq	(%rbx,%r14), %r12
	addq	$16, %r12
	movq	(%r12), %rdx
	movl	(%r13), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_of_property_read_u32_array
	cmpl	$0, (%r13)
	jle	LBB0_13
## %bb.11:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r14), %r15
	addq	$24, %r15
	movq	(%r12), %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rbx,4), %edi
	callq	_MUXID_TO_MUXSEL
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_MUXID_TO_PINID
	movq	(%r12), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	testq	%rdx, %rdx
	je	LBB0_15
## %bb.14:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	addq	%r14, %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rdx)
	jmp	LBB0_15
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$40, %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	"fsl,pinmux-ids"

	.comm	_SUFFIX_LEN,4,2                 ## @SUFFIX_LEN
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"reg"

L_.str.2:                               ## @.str.2
	.asciz	"%s"

L_.str.3:                               ## @.str.3
	.asciz	"%s.%d"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_mxs_pinctrl_parse_group
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_pinctrl_parse_group
_mxs_pinctrl_parse_group:               ; @mxs_pinctrl_parse_group
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
	bl	_platform_get_drvdata
	ldr	x8, [x0]
	ldr	x25, [x8]
	ldr	x0, [x20]
	bl	_strlen
Lloh0:
	adrp	x8, _SUFFIX_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUFFIX_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w23, w8, w0
	str	w23, [sp, #12]
Lloh3:
	adrp	x26, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x26, [x26, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x26]
	mov	x0, x21
	mov	x1, x23
	bl	_devm_kzalloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x22, x0
	sxtw	x24, w24
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_of_property_read_u32
	ldr	x3, [x20]
	cbz	x0, LBB0_3
; %bb.2:
Lloh7:
	adrp	x2, l_.str.2@PAGE
Lloh8:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
	ldr	w8, [sp, #8]
	str	x8, [sp]
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_4:
	mov	x0, x22
	mov	x1, x23
	bl	_snprintf
	add	x23, x25, x24, lsl #5
	str	x22, [x23]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_of_find_property
	cbz	x0, LBB0_13
; %bb.5:
	ldr	w8, [sp, #12]
	asr	w1, w8, #2
	mov	x22, x23
	str	w1, [x22, #8]!
	ldr	w3, [x26]
	mov	x0, x21
	mov	w2, #4
	bl	_devm_kcalloc
	mov	x27, x23
	str	x0, [x27, #16]!
	cbz	x0, LBB0_12
; %bb.6:
	ldr	w1, [x22]
	ldr	w3, [x26]
	mov	x0, x21
	mov	w2, #4
	bl	_devm_kcalloc
	add	x21, x25, x24, lsl #5
	str	x0, [x21, #24]!
	cbz	x0, LBB0_12
; %bb.7:
	ldr	x2, [x27]
	ldr	w3, [x22]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_u32_array
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x20, #0
	ldr	x8, [x27]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x24, x20, #2
	ldr	w0, [x8, x24]
	bl	_MUXID_TO_MUXSEL
	ldr	x8, [x21]
	str	w0, [x8, x24]
	ldr	x8, [x27]
	ldr	w0, [x8, x24]
	bl	_MUXID_TO_PINID
	ldr	x8, [x27]
	str	w0, [x8, x24]
	add	x20, x20, #1
	ldrsw	x9, [x22]
	cmp	x20, x9
	b.lt	LBB0_9
LBB0_10:
	mov	w0, #0
	cbz	x19, LBB0_15
; %bb.11:
	ldr	x8, [x23]
	str	x8, [x19]
	b	LBB0_15
LBB0_12:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"fsl,pinmux-ids"

	.comm	_SUFFIX_LEN,4,2                 ; @SUFFIX_LEN
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"reg"

l_.str.2:                               ; @.str.2
	.asciz	"%s"

l_.str.3:                               ; @.str.3
	.asciz	"%s.%d"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_mxs_pinctrl_parse_group
.subsections_via_symbols
