	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rockchip_dt_node_to_map
_rockchip_dt_node_to_map:               ## @rockchip_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %rbx
	movl	(%r14), %esi
	movq	%rax, %rdi
	callq	_pinctrl_name_to_group
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r13
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	incl	%ebx
	movl	(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %esi
	movl	$24, %edx
	callq	_devm_kcalloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movq	%r14, %rdi
	callq	_of_get_parent
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	_PIN_MAP_TYPE_MUX_GROUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 20(%r15)
	movl	(%rax), %ecx
	movl	%ecx, 4(%r15)
	movl	(%r14), %ecx
	movl	%ecx, (%r15)
	movq	%rax, %rdi
	callq	_of_node_put
	cmpl	$0, (%r13)
	jle	LBB0_6
## %bb.4:
	addq	$44, %r15
	xorl	%ebx, %ebx
	movq	_PIN_MAP_TYPE_CONFIGS_PIN@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	movl	%eax, (%r15)
	movq	16(%r13), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r12, %rdi
	callq	_pin_get_name
	movl	%eax, -4(%r15)
	movq	8(%r13), %rax
	movl	4(%rax,%rbx,8), %ecx
	movl	%ecx, -8(%r15)
	movl	(%rax,%rbx,8), %eax
	movl	%eax, -12(%r15)
	incq	%rbx
	movslq	(%r13), %rax
	addq	$24, %r15
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movl	(%r12), %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_dev_dbg
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_7:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_dev_err
	jmp	LBB0_10
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_9:
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_devm_kfree
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$24, %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	_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	_rockchip_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 rockchip_dt_node_to_map
_rockchip_dt_node_to_map:               ; @rockchip_dt_node_to_map
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x24, x3
	mov	x19, x2
	mov	x23, x1
	mov	x20, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x21, x0
	ldr	w1, [x23]
	bl	_pinctrl_name_to_group
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
	ldr	w8, [x0]
	add	w21, w8, #1
	ldr	w0, [x20]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x1, x21
	mov	w2, #24
	bl	_devm_kcalloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x25, x0
	str	x0, [x19]
	str	w21, [x24]
	mov	x0, x23
	bl	_of_get_parent
	cbz	x0, LBB0_9
; %bb.3:
Lloh3:
	adrp	x8, _PIN_MAP_TYPE_MUX_GROUP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PIN_MAP_TYPE_MUX_GROUP@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x25, #20]
	ldr	w8, [x0]
	ldr	w9, [x23]
	stp	w9, w8, [x25]
	bl	_of_node_put
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.4:
	mov	x23, #0
	add	x24, x25, #44
Lloh6:
	adrp	x25, _PIN_MAP_TYPE_CONFIGS_PIN@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PIN_MAP_TYPE_CONFIGS_PIN@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	str	w8, [x24]
	ldr	x8, [x22, #16]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x20
	bl	_pin_get_name
	stur	w0, [x24, #-4]
	ldr	x8, [x22, #8]
	ldr	d0, [x8, x23, lsl #3]
	stur	d0, [x24, #-12]
	add	x23, x23, #1
	ldrsw	x8, [x22]
	add	x24, x24, #24
	cmp	x23, x8
	b.lt	LBB0_5
LBB0_6:
	ldr	w0, [x20]
	ldr	x8, [x19]
	ldp	w3, w2, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x4, x21
	bl	_dev_dbg
	mov	w0, #0
	b	LBB0_12
LBB0_7:
	ldr	w0, [x21]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x23
	bl	_dev_err
	b	LBB0_10
LBB0_8:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
	ldr	w0, [x20]
	mov	x1, x25
	bl	_devm_kfree
LBB0_10:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.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	_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	_rockchip_dt_node_to_map
.subsections_via_symbols
