	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rza2_set_mux
_rza2_set_mux:                          ## @rza2_set_mux
	.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
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r13
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_pinctrl_generic_get_group
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pinmux_generic_get_function
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	cmpl	$0, (%rbx)
	je	LBB0_6
## %bb.4:
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_port_names@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %edi
	callq	_RZA2_PIN_ID_TO_PORT
	movl	(%r15,%rax,4), %r15d
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %edi
	callq	_RZA2_PIN_ID_TO_PIN
	movl	(%r12,%r14,4), %r8d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_dbg
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %edi
	callq	_RZA2_PIN_ID_TO_PORT
	movq	%rax, %r15
	movq	8(%rbx), %rax
	movl	(%rax,%r14,4), %edi
	callq	_RZA2_PIN_ID_TO_PIN
	movl	(%r12,%r14,4), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_rza2_set_pin_function
	incq	%r14
	movl	(%rbx), %eax
	cmpq	%rax, %r14
	jb	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting P%c_%d to PSEL=%d\n"

	.comm	_port_names,8,3                 ## @port_names
	.no_dead_strip	_rza2_set_mux
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rza2_set_mux
_rza2_set_mux:                          ; @rza2_set_mux
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	x21, x1
	mov	x22, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	mov	x0, x22
	mov	x1, x20
	bl	_pinctrl_generic_get_group
	cbz	x0, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x22
	mov	x1, x21
	bl	_pinmux_generic_get_function
	cbz	x0, LBB0_6
; %bb.2:
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.3:
	mov	x24, #0
	ldr	x25, [x0]
Lloh0:
	adrp	x26, _port_names@GOTPAGE
Lloh1:
	ldr	x26, [x26, _port_names@GOTPAGEOFF]
Lloh2:
	adrp	x21, l_.str@PAGE
Lloh3:
	add	x21, x21, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w22, [x19, #4]
	ldr	x23, [x26]
	ldr	x8, [x20, #8]
	lsl	x27, x24, #2
	ldr	w0, [x8, x27]
	bl	_RZA2_PIN_ID_TO_PORT
	ldr	w23, [x23, x0, lsl #2]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x27]
	bl	_RZA2_PIN_ID_TO_PIN
	mov	x3, x0
	ldr	w4, [x25, x27]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	bl	_dev_dbg
	ldr	w22, [x19]
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x27]
	bl	_RZA2_PIN_ID_TO_PORT
	mov	x23, x0
	ldr	x8, [x20, #8]
	ldr	w0, [x8, x27]
	bl	_RZA2_PIN_ID_TO_PIN
	mov	x2, x0
	ldr	w3, [x25, x27]
	mov	x0, x22
	mov	x1, x23
	bl	_rza2_set_pin_function
	add	x24, x24, #1
	ldr	w8, [x20]
	cmp	x24, x8
	b.lo	LBB0_4
LBB0_5:
	mov	w0, #0
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting P%c_%d to PSEL=%d\n"

	.comm	_port_names,8,3                 ; @port_names
	.no_dead_strip	_rza2_set_mux
.subsections_via_symbols
