	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pinmux_map_to_setting          ## -- Begin function pinmux_map_to_setting
	.p2align	4, 0x90
_pinmux_map_to_setting:                 ## @pinmux_map_to_setting
	.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	8(%rsi), %r15
	movq	8(%r15), %rax
	movq	(%rax), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.3:
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	(%rdi), %rsi
	movq	%r15, %rdi
	callq	_pinmux_func_name_to_selector
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movl	%r13d, (%r12)
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	*(%rbx)
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_9
## %bb.10:
	movq	8(%r14), %rbx
	movq	-56(%rbp), %rdi
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.11:
	movq	%rbx, %rdx
	callq	_match_string
	testl	%eax, %eax
	jns	LBB0_14
## %bb.12:
	movl	%eax, %r13d
	movl	(%r15), %edi
	movq	(%r14), %rcx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_17
LBB0_1:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_17
LBB0_4:
	movl	(%r15), %edi
	movq	(%r14), %rdx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_7:
	movl	%eax, %r13d
	movl	(%r15), %edi
	movq	(%r14), %rdx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_5
LBB0_9:
	movl	(%r15), %edi
	movq	(%r14), %rdx
	leaq	L_.str.3(%rip), %rsi
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_2
LBB0_13:
	movq	(%rdi), %rbx
LBB0_14:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_pinctrl_get_group_selector
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_15
## %bb.16:
	movl	%r13d, 4(%r12)
	xorl	%r13d, %r13d
	jmp	LBB0_17
LBB0_15:
	movl	(%r15), %edi
	movq	8(%r14), %rdx
	leaq	L_.str.5(%rip), %rsi
LBB0_5:
	xorl	%eax, %eax
	callq	_dev_err
LBB0_17:
	movl	%r13d, %eax
	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	"does not support mux function\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"invalid function %s in map table\n"

L_.str.2:                               ## @.str.2
	.asciz	"can't query groups for function %s\n"

L_.str.3:                               ## @.str.3
	.asciz	"function %s can't be selected on any group\n"

L_.str.4:                               ## @.str.4
	.asciz	"invalid group \"%s\" for function \"%s\"\n"

L_.str.5:                               ## @.str.5
	.asciz	"invalid group %s in map table\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pinmux_map_to_setting          ; -- Begin function pinmux_map_to_setting
	.p2align	2
_pinmux_map_to_setting:                 ; @pinmux_map_to_setting
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	ldr	x21, [x1, #8]
	ldr	x8, [x21, #8]
	ldr	x23, [x8]
	cbz	x23, LBB0_7
; %bb.1:
	mov	x22, x1
	mov	x20, x0
	ldr	x1, [x0]
	mov	x0, x21
	bl	_pinmux_func_name_to_selector
	mov	x19, x0
	tbnz	w0, #31, LBB0_9
; %bb.2:
	str	w19, [x22]
	ldr	x8, [x23]
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x21
	mov	x1, x19
	blr	x8
	tbnz	w0, #31, LBB0_10
; %bb.3:
	ldr	w1, [sp, #20]
	cbz	w1, LBB0_11
; %bb.4:
	ldr	x23, [x20, #8]
	ldr	x0, [sp, #24]
	cbz	x23, LBB0_12
; %bb.5:
	mov	x2, x23
	bl	_match_string
	tbz	w0, #31, LBB0_13
; %bb.6:
	mov	x19, x0
	ldr	w0, [x21]
	ldr	x8, [x20]
	stp	x23, x8, [sp]
Lloh0:
	adrp	x1, l_.str.4@PAGE
Lloh1:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_16
LBB0_7:
	ldr	w0, [x21]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_17
LBB0_9:
	ldr	w0, [x21]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_16
LBB0_10:
	mov	x19, x0
	ldr	w0, [x21]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_16
LBB0_11:
	ldr	w0, [x21]
	ldr	x8, [x20]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_8
LBB0_12:
	ldr	x23, [x0]
LBB0_13:
	mov	x0, x21
	mov	x1, x23
	bl	_pinctrl_get_group_selector
	mov	x19, x0
	tbnz	w0, #31, LBB0_15
; %bb.14:
	str	w19, [x22, #4]
	mov	w19, #0
	b	LBB0_17
LBB0_15:
	ldr	w0, [x21]
	ldr	x8, [x20, #8]
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_16:
	bl	_dev_err
LBB0_17:
	mov	x0, x19
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"does not support mux function\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"invalid function %s in map table\n"

l_.str.2:                               ; @.str.2
	.asciz	"can't query groups for function %s\n"

l_.str.3:                               ; @.str.3
	.asciz	"function %s can't be selected on any group\n"

l_.str.4:                               ; @.str.4
	.asciz	"invalid group \"%s\" for function \"%s\"\n"

l_.str.5:                               ; @.str.5
	.asciz	"invalid group %s in map table\n"

.subsections_via_symbols
