	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rza1_parse_pinmux_node
_rza1_parse_pinmux_node:                ## @rza1_parse_pinmux_node
	.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, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_of_find_property
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	leaq	-64(%rbp), %rdx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_pinconf_generic_parse_dt_config
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r13d
	movl	(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_23
LBB0_3:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	callq	_dev_dbg
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_22:
	subl	(%rax), %r13d
	jmp	LBB0_23
LBB0_4:
	cmpl	$0, -48(%rbp)
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.5:
	movl	$1, %ebx
	movq	_MUX_FLAGS_SWIO_OUTPUT@GOTPCREL(%rip), %r15
	movq	_MUX_FLAGS_SWIO_INPUT@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	movq	-8(%rax,%rbx,8), %rdi
	callq	_pinconf_to_config_param
	cmpl	$128, %eax
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$129, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r15), %r14
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r14d, %r14d
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-48(%rbp), %eax
	cmpq	%rax, %rbx
	jae	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	testq	%r14, %r14
	je	LBB0_6
	jmp	LBB0_14
LBB0_13:
	xorl	%r14d, %r14d
LBB0_14:
	movl	-56(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r13d
	sarl	$2, %r13d
	movq	-64(%rbp), %rdi
	callq	_kfree
	cmpl	$4, %ebx
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jb	LBB0_23
## %bb.15:
	cmpl	$2, %r13d
	movl	$1, %eax
	cmovael	%r13d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	leaq	-44(%rbp), %rcx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_20
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_MUX_PIN_ID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	-44(%rbp), %edi
	movl	%edi, (%r12)
	callq	_RZA1_PIN_ID_TO_PORT
	movl	%eax, 16(%r12)
	movl	(%r12), %edi
	callq	_RZA1_PIN_ID_TO_PIN
	movq	%rax, 8(%r12)
	movl	-44(%rbp), %edi
	callq	_MUX_FUNC
	movl	%eax, 32(%r12)
	movq	%r14, 24(%r12)
	movl	16(%r12), %edx
	movq	8(%r12), %rcx
	movq	_RZA1_NPORTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jge	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	movq	_RZA1_PINS_PER_PORT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jge	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	(%r12), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r15,4)
	incq	%r15
	addq	$40, %r12
	cmpq	%r15, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_16
	jmp	LBB0_23
LBB0_20:
	movl	%eax, %r13d
LBB0_23:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	leaq	L_.str(%rip), %r8
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pinmux"

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

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.2:                               ## @.str.2
	.asciz	"Unable to parse pin configuration options for %pOFn\n"

	.comm	_MUX_FLAGS_SWIO_INPUT,8,3       ## @MUX_FLAGS_SWIO_INPUT
	.comm	_MUX_FLAGS_SWIO_OUTPUT,8,3      ## @MUX_FLAGS_SWIO_OUTPUT
	.comm	_MUX_PIN_ID_MASK,4,2            ## @MUX_PIN_ID_MASK
	.comm	_RZA1_NPORTS,4,2                ## @RZA1_NPORTS
	.comm	_RZA1_PINS_PER_PORT,8,3         ## @RZA1_PINS_PER_PORT
L_.str.3:                               ## @.str.3
	.asciz	"Wrong port %u pin %u for %s property\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rza1_parse_pinmux_node
_rza1_parse_pinmux_node:                ; @rza1_parse_pinmux_node
	.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	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
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	w24, [x0]
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x19
	mov	x1, x21
	bl	_pinconf_generic_parse_dt_config
	cbz	w0, LBB0_5
; %bb.2:
	mov	x21, x0
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x19
	bl	_dev_err
	b	LBB0_20
LBB0_3:
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh8:
	adrp	x8, _ENOENT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_20
LBB0_5:
	asr	w21, w24, #2
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_13
; %bb.6:
	mov	x26, #0
Lloh10:
	adrp	x27, _MUX_FLAGS_SWIO_OUTPUT@GOTPAGE
Lloh11:
	ldr	x27, [x27, _MUX_FLAGS_SWIO_OUTPUT@GOTPAGEOFF]
Lloh12:
	adrp	x28, _MUX_FLAGS_SWIO_INPUT@GOTPAGE
Lloh13:
	ldr	x28, [x28, _MUX_FLAGS_SWIO_INPUT@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x25, [x27]
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x26, x26, #1
	ldr	w8, [sp, #20]
	cmp	x26, x8
	ccmp	x25, #0, #0, lo
	b.ne	LBB0_14
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #24]
	ldr	x0, [x8, x26, lsl #3]
	bl	_pinconf_to_config_param
	cmp	w0, #128
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w0, #129
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x25, [x28]
	b	LBB0_8
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x25, #0
	b	LBB0_8
LBB0_13:
	mov	x25, #0
LBB0_14:
	ldr	x0, [sp, #24]
	bl	_kfree
	cmp	w24, #4
	b.lo	LBB0_20
; %bb.15:
	mov	x24, #0
	cmp	w21, #1
	csinc	w26, w21, wzr, hi
	add	x27, x23, #16
Lloh14:
	adrp	x28, _RZA1_PINS_PER_PORT@GOTPAGE
Lloh15:
	ldr	x28, [x28, _RZA1_PINS_PER_PORT@GOTPAGEOFF]
Lloh16:
	adrp	x23, l_.str@PAGE
Lloh17:
	add	x23, x23, l_.str@PAGEOFF
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #16
	mov	x0, x19
	mov	x1, x23
	mov	x2, x24
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [sp, #16]
Lloh18:
	adrp	x9, _MUX_PIN_ID_MASK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MUX_PIN_ID_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	and	w0, w9, w8
	stur	w0, [x27, #-16]
	bl	_RZA1_PIN_ID_TO_PORT
	str	w0, [x27]
	ldur	w0, [x27, #-16]
	bl	_RZA1_PIN_ID_TO_PIN
	stur	x0, [x27, #-8]
	ldr	w0, [sp, #16]
	bl	_MUX_FUNC
	str	w0, [x27, #16]
	str	x25, [x27, #8]
	ldr	w2, [x27]
Lloh21:
	adrp	x8, _RZA1_NPORTS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _RZA1_NPORTS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x8]
	ldur	x8, [x27, #-8]
	ldr	x10, [x28]
	cmp	w2, w9
	ccmp	x8, x10, #0, lt
	b.ge	LBB0_21
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldur	w8, [x27, #-16]
	str	w8, [x22, x24, lsl #2]
	add	x24, x24, #1
	add	x27, x27, #40
	cmp	x26, x24
	b.ne	LBB0_16
	b	LBB0_20
LBB0_19:
	mov	x21, x0
LBB0_20:
	mov	x0, x21
	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
LBB0_21:
	ldr	w0, [x20]
	stp	x8, x23, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pinmux"

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

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.2:                               ; @.str.2
	.asciz	"Unable to parse pin configuration options for %pOFn\n"

	.comm	_MUX_FLAGS_SWIO_INPUT,8,3       ; @MUX_FLAGS_SWIO_INPUT
	.comm	_MUX_FLAGS_SWIO_OUTPUT,8,3      ; @MUX_FLAGS_SWIO_OUTPUT
	.comm	_MUX_PIN_ID_MASK,4,2            ; @MUX_PIN_ID_MASK
	.comm	_RZA1_NPORTS,4,2                ; @RZA1_NPORTS
	.comm	_RZA1_PINS_PER_PORT,8,3         ; @RZA1_PINS_PER_PORT
l_.str.3:                               ; @.str.3
	.asciz	"Wrong port %u pin %u for %s property\n"

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