	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ns2_pin_config_set
_ns2_pin_config_set:                    ## @ns2_pin_config_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	%esi, %edx
	movq	(%rax,%rdx,8), %rdx
	movq	_ENOTSUPP@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	subl	(%rsi), %eax
	cmpl	$-1, (%rdx)
	je	LBB0_16
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_16
## %bb.2:
	movq	%rdi, %r14
	movl	%ecx, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%r13,8), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %ebx
	movq	(%r12,%r13,8), %rdi
	callq	_pinconf_to_config_argument
	addl	$-128, %ebx
	cmpl	$5, %ebx
	ja	LBB0_15
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rbx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_ns2_pin_set_slew
	jmp	LBB0_8
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_ns2_pin_set_enable
	jmp	LBB0_8
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_ns2_pin_set_strength
	jmp	LBB0_8
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$1, %edx
	jmp	LBB0_6
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	jmp	LBB0_7
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	%r15d, %esi
	xorl	%edx, %edx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_ns2_pin_set_pull
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	js	LBB0_16
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	cmpq	%r13, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_3
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	xorl	%eax, %eax
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	subl	(%rcx), %eax
	jmp	LBB0_16
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid configuration\n"

	.no_dead_strip	_ns2_pin_config_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ns2_pin_config_set
_ns2_pin_config_set:                    ; @ns2_pin_config_set
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8, w1, uxtw #3]
Lloh0:
	adrp	x23, _ENOTSUPP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ENOTSUPP@GOTPAGEOFF]
	ldr	w8, [x8]
	cmn	w8, #1
	ccmp	w3, #0, #4, ne
	b.ne	LBB0_3
LBB0_1:
	ldr	w8, [x23]
	neg	w0, w8
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	mov	w24, w3
Lloh2:
	adrp	x25, lJTI0_0@PAGE
Lloh3:
	add	x25, x25, lJTI0_0@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ns2_pin_set_strength
	tbnz	w0, #31, LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x19, x19, #8
	subs	x24, x24, #1
	b.eq	LBB0_2
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x22, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_argument
	sub	w8, w22, #128
	cmp	w8, #5
	b.hi	LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	adr	x9, LBB0_4
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ns2_pin_set_slew
	tbz	w0, #31, LBB0_5
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_ns2_pin_set_enable
	tbz	w0, #31, LBB0_5
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	b	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	w3, #1
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w3, #0
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_ns2_pin_set_pull
	tbz	w0, #31, LBB0_5
	b	LBB0_2
LBB0_15:
	ldr	w0, [x20]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_10-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_12-LBB0_4)>>2
                                        ; -- End function
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid configuration\n"

	.no_dead_strip	_ns2_pin_config_set
.subsections_via_symbols
