	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_pctl_dt_subnode_to_map
_atmel_pctl_dt_subnode_to_map:          ## @atmel_pctl_dt_subnode_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	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_of_find_property
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rax, %r15
	leaq	-88(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_pinconf_generic_parse_dt_config
	testl	%eax, %eax
	js	LBB0_5
## %bb.2:
	movl	(%r15), %r15d
	cmpl	$3, %r15d
	ja	LBB0_6
## %bb.3:
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_17
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_18
LBB0_5:
	movl	%eax, %r14d
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_dev_err
	jmp	LBB0_18
LBB0_6:
	sarl	$2, %r15d
	cmpl	$1, -44(%rbp)
	movl	$2, %r8d
	sbbl	$0, %r8d
	imull	%r15d, %r8d
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	callq	_pinctrl_utils_reserve_map
	testl	%eax, %eax
	js	LBB0_16
## %bb.7:
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	cmpl	$2, %r15d
	movl	$1, %eax
	cmovael	%r15d, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_10 Depth=1
	xorl	%r14d, %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=1
	incl	%r12d
	cmpl	%r12d, -48(%rbp)                ## 4-byte Folded Reload
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_17
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	leaq	-52(%rbp), %rcx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	-52(%rbp), %edx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	leaq	-80(%rbp), %rcx
	leaq	-112(%rbp), %r8
	callq	_atmel_pctl_xlate_pinfunc
	testl	%eax, %eax
	jne	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-80(%rbp), %r8
	movq	-112(%rbp), %r9
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_pinctrl_utils_add_map_mux
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	-80(%rbp), %r8
	movq	-88(%rbp), %r9
	movq	_PIN_MAP_TYPE_CONFIGS_GROUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	pushq	%r10
	pushq	%rax
	callq	_pinctrl_utils_add_map_configs
	addq	$16, %rsp
	movl	%eax, %r14d
	testl	%eax, %eax
	jns	LBB0_9
	jmp	LBB0_17
LBB0_16:
	movl	%eax, %r14d
LBB0_17:
	movq	-88(%rbp), %rdi
	callq	_kfree
LBB0_18:
	movl	%r14d, %eax
	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	"pinmux"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"%pOF: could not parse node property\n"

L_.str.2:                               ## @.str.2
	.asciz	"no pins found in node %pOF\n"

	.comm	_PIN_MAP_TYPE_CONFIGS_GROUP,4,2 ## @PIN_MAP_TYPE_CONFIGS_GROUP
	.no_dead_strip	_atmel_pctl_dt_subnode_to_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_pctl_dt_subnode_to_map
_atmel_pctl_dt_subnode_to_map:          ; @atmel_pctl_dt_subnode_to_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x20, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	_of_find_property
	cbz	x0, LBB0_4
; %bb.1:
	mov	x24, x0
	add	x2, sp, #32
	add	x3, sp, #44
	mov	x0, x19
	mov	x1, x21
	bl	_pinconf_generic_parse_dt_config
	tbnz	w0, #31, LBB0_5
; %bb.2:
	ldr	w8, [x24]
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.3:
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_15
LBB0_4:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_16
LBB0_5:
	mov	x26, x0
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	b	LBB0_16
LBB0_6:
	asr	w25, w8, #2
	ldr	w8, [sp, #44]
	cmp	w8, #0
	mov	w8, #1
	cinc	w8, w8, ne
	mul	w4, w8, w25
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	bl	_pinctrl_utils_reserve_map
	tbnz	w0, #31, LBB0_14
; %bb.7:
	mov	w24, #0
	cmp	w25, #1
	csinc	w27, w25, wzr, hi
Lloh12:
	adrp	x25, l_.str@PAGE
Lloh13:
	add	x25, x25, l_.str@PAGEOFF
Lloh14:
	adrp	x28, _PIN_MAP_TYPE_CONFIGS_GROUP@GOTPAGE
Lloh15:
	ldr	x28, [x28, _PIN_MAP_TYPE_CONFIGS_GROUP@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	w26, #0
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	w24, w24, #1
	cmp	w27, w24
	b.eq	LBB0_15
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #28
	mov	x0, x19
	mov	x1, x25
	mov	x2, x24
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w2, [sp, #28]
	add	x3, sp, #16
	add	x4, sp, #8
	mov	x0, x21
	mov	x1, x19
	bl	_atmel_pctl_xlate_pinfunc
	cbnz	w0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldp	x5, x4, [sp, #8]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	bl	_pinctrl_utils_add_map_mux
	ldr	w6, [sp, #44]
	cbz	w6, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x4, [sp, #16]
	ldr	x5, [sp, #32]
	ldr	w7, [x28]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	x3, x20
	bl	_pinctrl_utils_add_map_configs
	mov	x26, x0
	tbz	w0, #31, LBB0_9
	b	LBB0_15
LBB0_14:
	mov	x26, x0
LBB0_15:
	ldr	x0, [sp, #32]
	bl	_kfree
LBB0_16:
	mov	x0, x26
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pinmux"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"%pOF: could not parse node property\n"

l_.str.2:                               ; @.str.2
	.asciz	"no pins found in node %pOF\n"

	.comm	_PIN_MAP_TYPE_CONFIGS_GROUP,4,2 ; @PIN_MAP_TYPE_CONFIGS_GROUP
	.no_dead_strip	_atmel_pctl_dt_subnode_to_map
.subsections_via_symbols
