	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmfx_pinctrl_gpio_function_enable
_stmfx_pinctrl_gpio_function_enable:    ## @stmfx_pinctrl_gpio_function_enable
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	_STMFX_FUNC_GPIO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	$15, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	movl	%eax, 4(%rbx)
	movq	%r15, %rdi
	movl	$16, %esi
	callq	_pinctrl_find_gpio_range_from_pin
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_STMFX_FUNC_ALTGPIO_LOW@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	$19, %edi
	movl	$16, %esi
	callq	_GENMASK
	orl	%eax, 4(%rbx)
LBB0_2:
	movq	%r15, %rdi
	movl	$20, %esi
	callq	_pinctrl_find_gpio_range_from_pin
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_STMFX_FUNC_ALTGPIO_HIGH@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
	movl	$23, %edi
	movl	$20, %esi
	callq	_GENMASK
	orl	%eax, 4(%rbx)
LBB0_4:
	movl	(%rbx), %edi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_stmfx_function_enable          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STMFX_FUNC_GPIO,4,2            ## @STMFX_FUNC_GPIO
	.comm	_STMFX_FUNC_ALTGPIO_LOW,4,2     ## @STMFX_FUNC_ALTGPIO_LOW
	.comm	_STMFX_FUNC_ALTGPIO_HIGH,4,2    ## @STMFX_FUNC_ALTGPIO_HIGH
	.no_dead_strip	_stmfx_pinctrl_gpio_function_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmfx_pinctrl_gpio_function_enable
_stmfx_pinctrl_gpio_function_enable:    ; @stmfx_pinctrl_gpio_function_enable
	.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	x19, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _STMFX_FUNC_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STMFX_FUNC_GPIO@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	w0, #15
	mov	w1, #0
	bl	_GENMASK
	str	w0, [x19, #4]
	mov	x0, x21
	mov	w1, #16
	bl	_pinctrl_find_gpio_range_from_pin
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _STMFX_FUNC_ALTGPIO_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STMFX_FUNC_ALTGPIO_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w20, w8, w20
	mov	w0, #19
	mov	w1, #16
	bl	_GENMASK
	ldr	w8, [x19, #4]
	orr	w8, w8, w0
	str	w8, [x19, #4]
LBB0_2:
	mov	x0, x21
	mov	w1, #20
	bl	_pinctrl_find_gpio_range_from_pin
	cbz	x0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _STMFX_FUNC_ALTGPIO_HIGH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STMFX_FUNC_ALTGPIO_HIGH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w20, w8, w20
	mov	w0, #23
	mov	w1, #20
	bl	_GENMASK
	ldr	w8, [x19, #4]
	orr	w8, w8, w0
	str	w8, [x19, #4]
LBB0_4:
	ldr	w0, [x19]
	mov	x1, x20
	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
	b	_stmfx_function_enable
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_STMFX_FUNC_GPIO,4,2            ; @STMFX_FUNC_GPIO
	.comm	_STMFX_FUNC_ALTGPIO_LOW,4,2     ; @STMFX_FUNC_ALTGPIO_LOW
	.comm	_STMFX_FUNC_ALTGPIO_HIGH,4,2    ; @STMFX_FUNC_ALTGPIO_HIGH
	.no_dead_strip	_stmfx_pinctrl_gpio_function_enable
.subsections_via_symbols
