	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_setting
_add_setting:                           ## @add_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	12(%rdx), %esi
	callq	_find_state
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	12(%r14), %esi
	movq	%r15, %rdi
	callq	_create_state
	movq	%rax, %rbx
LBB0_2:
	movq	%rbx, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_3
## %bb.22:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_3:
	movl	(%r14), %eax
	movq	_PIN_MAP_TYPE_DUMMY_STATE@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpl	(%rcx), %eax
	je	LBB0_21
## %bb.4:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r12
	movl	(%r14), %eax
	movl	%eax, (%r12)
	testq	%r13, %r13
	je	LBB0_12
## %bb.8:
	movq	%r13, 16(%r12)
	jmp	LBB0_9
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_12:
	movl	8(%r14), %edi
	callq	_get_pinctrl_dev_from_devname
	movq	%rax, 16(%r12)
	testq	%rax, %rax
	je	LBB0_13
LBB0_9:
	movl	4(%r14), %eax
	movl	%eax, 8(%r12)
	movl	(%r14), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_10
## %bb.16:
	movq	%r14, %rdi
	movq	%r12, %r14
	movq	%r12, %rsi
	callq	_pinconf_map_to_setting
	movl	%eax, %r12d
	jmp	LBB0_18
LBB0_10:
	cmpl	$128, %eax
	jne	LBB0_17
## %bb.11:
	movq	%r14, %rdi
	movq	%r12, %r14
	movq	%r12, %rsi
	callq	_pinmux_map_to_setting
	movl	%eax, %r12d
	jmp	LBB0_18
LBB0_17:
	movq	%r12, %r14
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_18:
	testl	%r12d, %r12d
	js	LBB0_19
## %bb.20:
	addq	$4, %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_list_add_tail
	xorl	%r12d, %r12d
	jmp	LBB0_21
LBB0_19:
	movq	%r14, %rdi
	callq	_kfree
LBB0_21:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	%r12, %rdi
	callq	_kfree
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_14
## %bb.15:
	movl	(%r15), %edi
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_14:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_PIN_MAP_TYPE_DUMMY_STATE,4,2   ## @PIN_MAP_TYPE_DUMMY_STATE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unknown pinctrl device %s in map entry, deferring probe"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_add_setting
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_setting
_add_setting:                           ; @add_setting
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x23, x1
	mov	x21, x0
	ldr	w1, [x2, #12]
	bl	_find_state
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x19, #12]
	mov	x0, x21
	bl	_create_state
	mov	x20, x0
LBB0_2:
	mov	x0, x20
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_PTR_ERR
LBB0_4:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _PIN_MAP_TYPE_DUMMY_STATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PIN_MAP_TYPE_DUMMY_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_18
; %bb.5:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	cbz	x0, LBB0_8
; %bb.6:
	mov	x22, x0
	ldr	w8, [x19]
	str	w8, [x0]
	cbz	x23, LBB0_10
; %bb.7:
	str	x23, [x22, #16]
	b	LBB0_11
LBB0_8:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_19
LBB0_10:
	ldr	w0, [x19, #8]
	bl	_get_pinctrl_dev_from_devname
	str	x0, [x22, #16]
	cbz	x0, LBB0_21
LBB0_11:
	ldp	w8, w9, [x19]
	str	w9, [x22, #8]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, x22
	bl	_pinconf_map_to_setting
	mov	x19, x0
	b	LBB0_16
LBB0_13:
	cmp	w8, #128
	b.ne	LBB0_15
; %bb.14:
	mov	x0, x19
	mov	x1, x22
	bl	_pinmux_map_to_setting
	mov	x19, x0
	b	LBB0_16
LBB0_15:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_16:
	tbnz	w19, #31, LBB0_20
; %bb.17:
	add	x0, x22, #4
	mov	x1, x20
	bl	_list_add_tail
LBB0_18:
	mov	w19, #0
LBB0_19:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_20:
	mov	x0, x22
	bl	_kfree
	b	LBB0_19
LBB0_21:
	mov	x0, x22
	bl	_kfree
	ldp	w1, w0, [x19, #4]
	bl	_strcmp
	cbz	w0, LBB0_23
; %bb.22:
	ldr	w0, [x21]
	ldr	w2, [x19, #8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
Lloh13:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
	b	LBB0_9
LBB0_23:
Lloh15:
	adrp	x8, _ENODEV@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_PIN_MAP_TYPE_DUMMY_STATE,4,2   ; @PIN_MAP_TYPE_DUMMY_STATE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unknown pinctrl device %s in map entry, deferring probe"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_add_setting
.subsections_via_symbols
