	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmfx_pinconf_set
_stmfx_pinconf_set:                     ## @stmfx_pinconf_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
	movl	%ecx, %r12d
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_pinctrl_find_gpio_range_from_pin_nolock
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_stmfx_gpio_get_direction
	testl	%eax, %eax
	js	LBB0_19
## %bb.2:
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.3:
	movl	%r12d, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13,%r12,8), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %ebx
	movq	(%r13,%r12,8), %rdi
	callq	_pinconf_to_config_argument
	addl	$-128, %ebx
	cmpl	$6, %ebx
	ja	LBB0_20
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rbx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_stmfx_pinconf_set_type
	jmp	LBB0_14
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_stmfx_gpio_direction_output
	jmp	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_stmfx_pinconf_set_type
	jmp	LBB0_14
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_stmfx_pinconf_set_type
	testl	%eax, %eax
	jne	LBB0_19
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	jmp	LBB0_13
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_stmfx_pinconf_set_type
	testl	%eax, %eax
	jne	LBB0_19
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	callq	_stmfx_pinconf_set_pupd
LBB0_14:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%eax, %eax
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	incq	%r12
	cmpq	%r12, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_4
LBB0_16:
	xorl	%eax, %eax
	jmp	LBB0_19
LBB0_17:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_18:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rcx
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pin %d is not available\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_stmfx_pinconf_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmfx_pinconf_set
_stmfx_pinconf_set:                     ; @stmfx_pinconf_set
	.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	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x23, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x21, x0
	mov	x0, x23
	mov	x1, x19
	bl	_pinctrl_find_gpio_range_from_pin_nolock
	cbz	x0, LBB0_16
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_stmfx_gpio_get_direction
	tbnz	w0, #31, LBB0_19
; %bb.2:
	cbz	w22, LBB0_18
; %bb.3:
	mov	w23, w22
Lloh0:
	adrp	x24, lJTI0_0@PAGE
Lloh1:
	add	x24, x24, lJTI0_0@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	mov	x0, x21
	mov	x1, x19
	bl	_stmfx_gpio_direction_output
	cbnz	w0, LBB0_19
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #8
	subs	x23, x23, #1
	b.eq	LBB0_18
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20]
	bl	_pinconf_to_config_param
	mov	x22, x0
	ldr	x0, [x20]
	bl	_pinconf_to_config_argument
	sub	w8, w22, #128
	cmp	w8, #6
	b.hi	LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	adr	x9, LBB0_4
	ldrb	w10, [x24, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_stmfx_pinconf_set_type
	cbz	w0, LBB0_5
	b	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	bl	_stmfx_pinconf_set_type
	cbnz	w0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	w2, #1
	bl	_stmfx_pinconf_set_type
	cbnz	w0, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	mov	x1, x19
	mov	w2, #0
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_stmfx_pinconf_set_pupd
	cbz	w0, LBB0_5
	b	LBB0_19
LBB0_16:
	ldr	w0, [x23]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_19
LBB0_18:
	mov	w0, #0
LBB0_19:
	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:
Lloh6:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_17
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pin %d is not available\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_stmfx_pinconf_set
.subsections_via_symbols
