	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmfx_pinconf_get
_stmfx_pinconf_get:                     ## @stmfx_pinconf_get
	.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
	movl	%esi, %r15d
	movq	%rdi, %rbx
	callq	_pinctrl_dev_get_drvdata
	movq	%rax, %r13
	movq	(%r14), %rdi
	callq	_pinconf_to_config_param
	movl	%eax, %r12d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_pinctrl_find_gpio_range_from_pin_nolock
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%r12, %rbx
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_stmfx_gpio_get_direction
	movl	%eax, %r12d
	testl	%eax, %eax
	js	LBB0_24
## %bb.4:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_stmfx_pinconf_get_type
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_stmfx_pinconf_get_pupd
	testl	%eax, %eax
	js	LBB0_7
## %bb.8:
	leal	-128(%rbx), %ecx
	cmpl	$5, %ecx
	ja	LBB0_20
## %bb.9:
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_18:
	testl	%r12d, %r12d
	je	LBB0_19
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_24
LBB0_5:
	movl	%r14d, %r12d
	jmp	LBB0_24
LBB0_7:
	movl	%eax, %r12d
	jmp	LBB0_24
LBB0_20:
	movq	_ENOTSUPP@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_17:
	testl	%r12d, %r12d
	setne	%al
	testl	%r14d, %r14d
	setne	%cl
	orl	%r14d, %r12d
	sete	%dl
	andb	%al, %cl
	orb	%dl, %cl
	movzbl	%cl, %r12d
	jmp	LBB0_23
LBB0_16:
	testl	%r12d, %r12d
	sete	%al
	testl	%r14d, %r14d
	setne	%cl
	movl	%eax, %edx
	andb	%cl, %dl
	orb	%cl, %al
	xorb	$1, %al
	orb	%dl, %al
	jmp	LBB0_22
LBB0_15:
	testl	%r14d, %r14d
	setne	%cl
	testl	%eax, %eax
	setne	%al
	andb	%cl, %al
	jmp	LBB0_22
LBB0_21:
	testl	%r12d, %r12d
	setne	%cl
	testl	%r14d, %r14d
	setne	%dl
	andb	%cl, %dl
	testl	%eax, %eax
	sete	%al
	andb	%dl, %al
LBB0_22:
	movzbl	%al, %r12d
LBB0_23:
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_pinconf_to_config_packed
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%r12d, %r12d
LBB0_24:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testl	%r12d, %r12d
	je	LBB0_11
## %bb.13:
	xorl	%r12d, %r12d
	testl	%r14d, %r14d
	jne	LBB0_23
	jmp	LBB0_14
LBB0_19:
	movq	%r13, %rdi
	movl	%r15d, %esi
	callq	_stmfx_gpio_get
	movl	%eax, %r12d
	testl	%eax, %eax
	jns	LBB0_23
	jmp	LBB0_24
LBB0_11:
	testl	%r14d, %r14d
	je	LBB0_14
## %bb.12:
	xorl	%r12d, %r12d
	testl	%eax, %eax
	jne	LBB0_23
LBB0_14:
	movl	$1, %r12d
	jmp	LBB0_23
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_21
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_ENOTSUPP,4,2                   ## @ENOTSUPP
	.no_dead_strip	_stmfx_pinconf_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmfx_pinconf_get
_stmfx_pinconf_get:                     ; @stmfx_pinconf_get
	.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	x22, x1
	mov	x21, x0
	bl	_pinctrl_dev_get_drvdata
	mov	x23, x0
	ldr	x0, [x19]
	bl	_pinconf_to_config_param
	mov	x20, x0
	mov	x0, x21
	mov	x1, x22
	bl	_pinctrl_find_gpio_range_from_pin_nolock
	cbz	x0, LBB0_7
; %bb.1:
	mov	x0, x23
	mov	x1, x22
	bl	_stmfx_gpio_get_direction
	mov	x21, x0
	tbnz	w0, #31, LBB0_24
; %bb.2:
	mov	x0, x23
	mov	x1, x22
	bl	_stmfx_pinconf_get_type
	mov	x24, x0
	tbnz	w0, #31, LBB0_9
; %bb.3:
	mov	x0, x23
	mov	x1, x22
	bl	_stmfx_pinconf_get_pupd
	tbnz	w0, #31, LBB0_10
; %bb.4:
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_11
; %bb.5:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	cbz	w21, LBB0_18
LBB0_7:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_24
LBB0_9:
	mov	x21, x24
	b	LBB0_24
LBB0_10:
	mov	x21, x0
	b	LBB0_24
LBB0_11:
Lloh4:
	adrp	x8, _ENOTSUPP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOTSUPP@GOTPAGEOFF]
	b	LBB0_8
LBB0_12:
	orr	w8, w21, w24
	cmp	w21, #0
	ccmp	w24, #0, #4, ne
	ccmp	w8, #0, #4, eq
	cset	w21, eq
	b	LBB0_23
LBB0_13:
	cmp	w21, #0
	cset	w8, eq
	cmp	w24, #0
	cset	w9, ne
	and	w10, w8, w9
	orr	w8, w8, w9
	eor	w8, w8, #0x1
	orr	w21, w10, w8
	b	LBB0_23
LBB0_14:
	cmp	w24, #0
	ccmp	w0, #0, #4, ne
	cset	w21, ne
	b	LBB0_23
LBB0_15:
	cmp	w21, #0
	ccmp	w24, #0, #4, ne
	ccmp	w0, #0, #0, ne
	cset	w21, eq
	b	LBB0_23
LBB0_16:
	cbz	w21, LBB0_19
; %bb.17:
	cbnz	w24, LBB0_21
	b	LBB0_22
LBB0_18:
	mov	x0, x23
	mov	x1, x22
	bl	_stmfx_gpio_get
	mov	x21, x0
	tbz	w0, #31, LBB0_23
	b	LBB0_24
LBB0_19:
	cbz	w24, LBB0_22
; %bb.20:
	cbz	w0, LBB0_22
LBB0_21:
	mov	w21, #0
	b	LBB0_23
LBB0_22:
	mov	w21, #1
LBB0_23:
	mov	x0, x20
	mov	x1, x21
	bl	_pinconf_to_config_packed
	mov	w21, #0
	str	x0, [x19]
LBB0_24:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_16-LBB0_6)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_ENOTSUPP,4,2                   ; @ENOTSUPP
	.no_dead_strip	_stmfx_pinconf_get
.subsections_via_symbols
