	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rza2_dt_node_to_map
_rza2_dt_node_to_map:                   ## @rza2_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, %r14
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r12
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_of_find_property
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	sarl	$2, %ebx
	movl	(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, %r14
	movl	(%r12), %edi
	movl	(%r13), %ecx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_devm_kcalloc
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edi
	movl	(%r13), %edx
	movl	$8, %esi
	callq	_devm_kzalloc
	testq	%r14, %r14
	je	LBB0_16
## %bb.3:
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_16
## %bb.4:
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	cmpl	$4, -60(%rbp)                   ## 4-byte Folded Reload
	jl	LBB0_10
## %bb.6:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$2, %eax
	movl	$1, %r12d
	cmovgel	%eax, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	leaq	-48(%rbp), %rcx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	_MUX_PIN_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-48(%rbp), %eax
	movl	%eax, (%r14,%rbx,4)
	movl	-48(%rbp), %edi
	callq	_MUX_FUNC
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_7
LBB0_10:
	movq	%r15, %rbx
	movq	(%r15), %rsi
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r14, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	xorl	%r8d, %r8d
	callq	_pinctrl_generic_add_group
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_15
## %bb.11:
	movq	(%rbx), %rax
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rdx)
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	movl	$1, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_pinmux_generic_add_function
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_14
## %bb.12:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_dev_dbg
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movl	$0, (%r15)
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movq	%rax, (%rdx)
	testq	%rax, %rax
	je	LBB0_13
## %bb.17:
	movq	_PIN_MAP_TYPE_MUX_GROUP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rax)
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	(%rdx), %rax
	movq	%rcx, 8(%rax)
	movl	$1, (%r15)
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_1:
	movl	(%r12), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_info
	movq	_ENOENT@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_15
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_15
LBB0_8:
	movl	%eax, %r13d
	jmp	LBB0_15
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_pinmux_generic_remove_function
	movl	%r15d, %r14d
LBB0_14:
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_pinctrl_generic_remove_group
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	(%rbx), %rdx
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movl	%r14d, %r13d
LBB0_15:
	movl	%r13d, %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"

L_.str.1:                               ## @.str.1
	.asciz	"Missing pinmux property\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MUX_PIN_ID_MASK,4,2            ## @MUX_PIN_ID_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Parsed %pOF with %d pins\n"

	.comm	_PIN_MAP_TYPE_MUX_GROUP,4,2     ## @PIN_MAP_TYPE_MUX_GROUP
L_.str.3:                               ## @.str.3
	.asciz	"Unable to parse DT node %s\n"

	.no_dead_strip	_rza2_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 rza2_dt_node_to_map
_rza2_dt_node_to_map:                   ; @rza2_dt_node_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	x23, x3
	mov	x25, x2
	mov	x19, x1
	mov	x21, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x20, 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_3
; %bb.1:
	ldr	w22, [x0]
	asr	w24, w22, #2
	ldr	w0, [x20]
Lloh2:
	adrp	x28, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x28, [x28, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x28]
	mov	x1, x24
	mov	w2, #4
	bl	_devm_kcalloc
	mov	x27, x0
	ldr	w0, [x20]
	ldr	w3, [x28]
	mov	x1, x24
	mov	w2, #4
	bl	_devm_kcalloc
	mov	x26, x0
	ldr	w0, [x20]
	ldr	w2, [x28]
	mov	w1, #8
	bl	_devm_kzalloc
	cmp	x27, #0
	ccmp	x26, #0, #4, ne
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_6
; %bb.2:
Lloh4:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x20]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_info
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w25, w8
LBB0_5:
	mov	x0, x25
	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
LBB0_6:
	stp	x23, x0, [sp, #16]              ; 16-byte Folded Spill
	str	x25, [sp, #8]                   ; 8-byte Folded Spill
	str	x21, [sp, #32]                  ; 8-byte Folded Spill
	cmp	w22, #4
	b.lt	LBB0_10
; %bb.7:
	mov	x22, #0
	cmp	w24, #1
	csinc	w21, w24, wzr, gt
Lloh10:
	adrp	x23, l_.str@PAGE
Lloh11:
	add	x23, x23, l_.str@PAGEOFF
Lloh12:
	adrp	x28, _MUX_PIN_ID_MASK@GOTPAGE
Lloh13:
	ldr	x28, [x28, _MUX_PIN_ID_MASK@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #44
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #44]
	ldr	w9, [x28]
	and	w8, w9, w8
	lsl	x25, x22, #2
	str	w8, [x27, x25]
	ldr	w0, [sp, #44]
	bl	_MUX_FUNC
	str	w0, [x26, x25]
	add	x22, x22, #1
	cmp	x21, x22
	b.ne	LBB0_8
LBB0_10:
	ldr	x1, [x19]
	ldr	x22, [sp, #32]                  ; 8-byte Folded Reload
	mov	x0, x22
	mov	x2, x27
	mov	x3, x24
	mov	x4, #0
	bl	_pinctrl_generic_add_group
	mov	x25, x0
	tbnz	w0, #31, LBB0_5
; %bb.11:
	ldr	x8, [x19]
	ldr	x2, [sp, #24]                   ; 8-byte Folded Reload
	str	x8, [x2]
	ldr	x1, [x19]
	mov	x0, x22
	mov	w3, #1
	mov	x4, x26
	bl	_pinmux_generic_add_function
	mov	x26, x0
	tbnz	w0, #31, LBB0_16
; %bb.12:
	ldr	w0, [x20]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	mov	x3, x24
	bl	_dev_dbg
	ldr	x21, [sp, #16]                  ; 8-byte Folded Reload
	str	wzr, [x21]
Lloh16:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	str	x0, [x9]
	cbz	x0, LBB0_15
; %bb.13:
	mov	w25, #0
Lloh19:
	adrp	x8, _PIN_MAP_TYPE_MUX_GROUP@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PIN_MAP_TYPE_MUX_GROUP@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	str	w8, [x0, #16]
	ldr	x8, [x19]
	str	x8, [x0]
	ldr	x9, [x9]
	str	x8, [x9, #8]
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_5
LBB0_14:
	mov	x25, x0
	b	LBB0_5
LBB0_15:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x22
	mov	x1, x26
	bl	_pinmux_generic_remove_function
	mov	x26, x21
LBB0_16:
	mov	x0, x22
	mov	x1, x25
	bl	_pinctrl_generic_remove_group
	ldr	w0, [x20]
	ldr	x2, [x19]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	mov	x25, x26
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pinmux"

l_.str.1:                               ; @.str.1
	.asciz	"Missing pinmux property\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MUX_PIN_ID_MASK,4,2            ; @MUX_PIN_ID_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Parsed %pOF with %d pins\n"

	.comm	_PIN_MAP_TYPE_MUX_GROUP,4,2     ; @PIN_MAP_TYPE_MUX_GROUP
l_.str.3:                               ; @.str.3
	.asciz	"Unable to parse DT node %s\n"

	.no_dead_strip	_rza2_dt_node_to_map
.subsections_via_symbols
