	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pinconf_map_to_setting         ## -- Begin function pinconf_map_to_setting
	.p2align	4, 0x90
_pinconf_map_to_setting:                ## @pinconf_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rsi), %r12
	movl	(%rsi), %eax
	cmpl	$129, %eax
	je	LBB0_4
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_6
## %bb.2:
	movl	8(%r14), %esi
	movq	%r12, %rdi
	callq	_pin_get_from_name
	movl	%eax, %r15d
	testl	%eax, %eax
	jns	LBB0_5
## %bb.3:
	movl	(%r12), %edi
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_8
LBB0_4:
	movl	8(%r14), %esi
	movq	%r12, %rdi
	callq	_pinctrl_get_group_selector
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_7
LBB0_5:
	movl	%r15d, 4(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 12(%rbx)
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
	xorl	%r15d, %r15d
	jmp	LBB0_9
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_9
LBB0_7:
	movl	(%r12), %edi
	movl	8(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
LBB0_8:
	callq	_dev_err
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not map pin config for \"%s\""

L_.str.1:                               ## @.str.1
	.asciz	"could not map group config for \"%s\""

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pinconf_map_to_setting         ; -- Begin function pinconf_map_to_setting
	.p2align	2
_pinconf_map_to_setting:                ; @pinconf_map_to_setting
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x22, [x1, #16]
	ldr	w8, [x1]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.2:
	ldr	w1, [x20, #8]
	mov	x0, x22
	bl	_pin_get_from_name
	mov	x19, x0
	tbz	w0, #31, LBB0_5
; %bb.3:
	ldr	w0, [x22]
	ldr	w2, [x20, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_4:
	ldr	w1, [x20, #8]
	mov	x0, x22
	bl	_pinctrl_get_group_selector
	mov	x19, x0
	tbnz	w0, #31, LBB0_7
LBB0_5:
	str	w19, [x21, #4]
	mov	w19, #0
	ldr	d0, [x20]
	str	d0, [x21, #8]
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_9
LBB0_7:
	ldr	w0, [x22]
	ldr	w2, [x20, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	bl	_dev_err
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not map pin config for \"%s\""

l_.str.1:                               ; @.str.1
	.asciz	"could not map group config for \"%s\""

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