	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvebu_pinmux_set
_mvebu_pinmux_set:                      ## @mvebu_pinmux_set
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	movq	16(%rax), %r13
	movl	%ebx, %r14d
	leaq	(,%r14,4), %rbx
	addq	8(%rax), %rbx
	movl	%r12d, %r12d
	shlq	$4, %r12
	leaq	(%r12,%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13,%r12), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_mvebu_pinctrl_find_setting_by_name
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	movl	(%rbx), %esi
	leaq	-72(%rbp), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %ecx
	callq	_mvebu_pinconf_group_set
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	%eax, %r14d
	movl	(%r15), %edi
	movq	8(%r13,%r12), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rax,%rcx,4), %edx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_5
LBB0_1:
	movl	(%r15), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	8(%r13,%r12), %rax
	movl	(%rax,%r14,4), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_5
LBB0_3:
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$40, %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 setting %s in group %s\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"cannot set group %s to %s\n"

	.no_dead_strip	_mvebu_pinmux_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvebu_pinmux_set
_mvebu_pinmux_set:                      ; @mvebu_pinmux_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x19, x0
	mov	w24, w22
	ldp	x8, x25, [x0, #8]
	mov	w23, w21
	add	x21, x8, w21, uxtw #2
	add	x22, x25, w22, uxtw #4
	ldr	w2, [x22]
	mov	x1, x21
	bl	_mvebu_pinctrl_find_setting_by_name
	cbz	x0, LBB0_3
; %bb.1:
	ldr	x8, [x0]
	str	x8, [sp, #8]
	ldr	w1, [x21]
	add	x2, sp, #8
	mov	x0, x20
	mov	w3, #1
	bl	_mvebu_pinconf_group_set
	mov	x20, x0
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19]
	add	x8, x25, x24, lsl #4
	ldr	x8, [x8, #8]
	ldr	w2, [x8, x23, lsl #2]
	ldr	w3, [x22]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19]
	ldr	w2, [x22]
	add	x8, x25, x24, lsl #4
	ldr	x8, [x8, #8]
	ldr	w3, [x8, x23, lsl #2]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to find setting %s in group %s\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"cannot set group %s to %s\n"

	.no_dead_strip	_mvebu_pinmux_set
.subsections_via_symbols
