	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sprd_dt_node_to_map
_sprd_dt_node_to_map:                   ## @sprd_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r14
	movq	$0, -64(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -48(%rbp)
	movl	(%rbx), %esi
	movq	%rax, %rdi
	callq	_sprd_pinctrl_find_group_by_name
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_count_strings
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_21
## %bb.3:
	cmpl	$1, %r15d
	jne	LBB0_4
## %bb.5:
	movq	_PIN_MAP_TYPE_CONFIGS_PIN@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movl	(%r14), %r14d
	movq	%rbx, %rdi
	callq	_of_node_full_name
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_21
LBB0_4:
	movq	_PIN_MAP_TYPE_CONFIGS_GROUP@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_string
	testl	%eax, %eax
	jns	LBB0_10
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_9
## %bb.8:
	movl	(%r14), %r15d
	movq	%rbx, %rdi
	callq	_of_node_full_name
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_dev_err
LBB0_9:
	movq	$0, -56(%rbp)
LBB0_10:
	leaq	-64(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_pinconf_generic_parse_dt_config
	testl	%eax, %eax
	js	LBB0_11
## %bb.12:
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	$0, (%rbx)
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	$0, (%r14)
	xorl	%eax, %eax
	cmpq	$0, -56(%rbp)
	setne	%al
	leal	1(%rax), %r8d
	cmpl	$0, -44(%rbp)
	cmovel	%eax, %r8d
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	_pinctrl_utils_reserve_map
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_20
## %bb.13:
	movq	-56(%rbp), %r9
	testq	%r9, %r9
	je	LBB0_15
## %bb.14:
	movq	(%r12), %r8
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	_pinctrl_utils_add_map_mux
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_20
LBB0_15:
	movl	-44(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_20
## %bb.16:
	movq	_PIN_MAP_TYPE_CONFIGS_PIN@GOTPCREL(%rip), %rcx
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	cmpl	(%rcx), %r10d
	jne	LBB0_18
## %bb.17:
	movq	8(%r12), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_pin_get_name
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	movq	%rax, %r8
	movl	-44(%rbp), %eax
	jmp	LBB0_19
LBB0_11:
	movl	%eax, %r15d
	movl	(%r14), %r14d
	movq	%rbx, %rdi
	callq	_of_node_full_name
	leaq	L_.str.4(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_21
LBB0_18:
	movq	(%r12), %r8
LBB0_19:
	movq	-64(%rbp), %r9
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	pushq	%r10
	pushq	%rax
	callq	_pinctrl_utils_add_map_configs
	addq	$16, %rsp
	movl	%eax, %r15d
LBB0_20:
	movq	-64(%rbp), %rdi
	callq	_kfree
LBB0_21:
	movl	%r15d, %eax
	addq	$56, %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 %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"pins"

	.comm	_PIN_MAP_TYPE_CONFIGS_PIN,4,2   ## @PIN_MAP_TYPE_CONFIGS_PIN
	.comm	_PIN_MAP_TYPE_CONFIGS_GROUP,4,2 ## @PIN_MAP_TYPE_CONFIGS_GROUP
L_.str.2:                               ## @.str.2
	.asciz	"function"

L_.str.3:                               ## @.str.3
	.asciz	"%s: could not parse property function\n"

L_.str.4:                               ## @.str.4
	.asciz	"%s: could not parse node property\n"

	.no_dead_strip	_sprd_dt_node_to_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sprd_dt_node_to_map
_sprd_dt_node_to_map:                   ; @sprd_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	x19, x3
	mov	x20, x2
	mov	x24, x1
	mov	x21, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x25, x0
	stp	xzr, xzr, [sp, #16]
	ldr	w1, [x24]
	bl	_sprd_pinctrl_find_group_by_name
	cbz	x0, LBB0_13
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_of_property_count_strings
	mov	x26, x0
	tbnz	w0, #31, LBB0_18
; %bb.2:
Lloh2:
	adrp	x27, _PIN_MAP_TYPE_CONFIGS_PIN@GOTPAGE
Lloh3:
	ldr	x27, [x27, _PIN_MAP_TYPE_CONFIGS_PIN@GOTPAGEOFF]
Lloh4:
	adrp	x8, _PIN_MAP_TYPE_CONFIGS_GROUP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PIN_MAP_TYPE_CONFIGS_GROUP@GOTPAGEOFF]
	cmp	w26, #1
	csel	x8, x27, x8, eq
	ldr	w22, [x8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #8
	mov	x0, x24
	bl	_of_property_read_string
	tbz	w0, #31, LBB0_6
; %bb.3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w26, [x25]
	mov	x0, x24
	bl	_of_node_full_name
	mov	x2, x0
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x26
	bl	_dev_err
LBB0_5:
	str	xzr, [sp, #8]
LBB0_6:
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x24
	mov	x1, x21
	bl	_pinconf_generic_parse_dt_config
	tbnz	w0, #31, LBB0_14
; %bb.7:
	str	xzr, [x20]
	str	wzr, [x19]
	ldr	x8, [sp, #8]
	cmp	x8, #0
	cset	w8, ne
	ldr	w9, [sp, #20]
	mov	w10, #1
	cinc	w10, w10, ne
	cmp	w9, #0
	csel	w4, w8, w10, eq
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_pinctrl_utils_reserve_map
	mov	x26, x0
	tbnz	w0, #31, LBB0_17
; %bb.8:
	ldr	x5, [sp, #8]
	cbz	x5, LBB0_10
; %bb.9:
	ldr	x4, [x23]
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	bl	_pinctrl_utils_add_map_mux
	mov	x26, x0
	tbnz	w0, #31, LBB0_17
LBB0_10:
	ldr	w6, [sp, #20]
	cbz	w6, LBB0_17
; %bb.11:
	ldr	w8, [x27]
	cmp	w22, w8
	b.ne	LBB0_15
; %bb.12:
	ldr	x8, [x23, #8]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_pin_get_name
	mov	x4, x0
	ldr	w6, [sp, #20]
	b	LBB0_16
LBB0_13:
	ldr	w19, [x25]
	mov	x0, x24
	bl	_of_node_full_name
	mov	x2, x0
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh15:
	adrp	x8, _EINVAL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w26, w8
	b	LBB0_18
LBB0_14:
	mov	x26, x0
	ldr	w19, [x25]
	mov	x0, x24
	bl	_of_node_full_name
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_18
LBB0_15:
	ldr	x4, [x23]
LBB0_16:
	ldr	x5, [sp, #24]
	add	x2, sp, #16
	mov	x0, x21
	mov	x1, x20
	mov	x3, x19
	mov	x7, x22
	bl	_pinctrl_utils_add_map_configs
	mov	x26, x0
LBB0_17:
	ldr	x0, [sp, #24]
	bl	_kfree
LBB0_18:
	mov	x0, x26
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to find group for node %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"pins"

	.comm	_PIN_MAP_TYPE_CONFIGS_PIN,4,2   ; @PIN_MAP_TYPE_CONFIGS_PIN
	.comm	_PIN_MAP_TYPE_CONFIGS_GROUP,4,2 ; @PIN_MAP_TYPE_CONFIGS_GROUP
l_.str.2:                               ; @.str.2
	.asciz	"function"

l_.str.3:                               ; @.str.3
	.asciz	"%s: could not parse property function\n"

l_.str.4:                               ; @.str.4
	.asciz	"%s: could not parse node property\n"

	.no_dead_strip	_sprd_dt_node_to_map
.subsections_via_symbols
