	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_pmx_set_gpio_direction
_st_pmx_set_gpio_direction:             ## @st_pmx_set_gpio_direction
	.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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movq	%rsi, %rdi
	callq	_gpio_range_to_bank
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r14d, %esi
	xorl	%edx, %edx
	callq	_st_pctl_set_function
	testl	%r15d, %r15d
	jne	LBB0_1
## %bb.2:
	movq	_ST_GPIO_DIRECTION_OUT@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_ST_GPIO_DIRECTION_IN@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_st_gpio_direction
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_GPIO_DIRECTION_IN,4,2       ## @ST_GPIO_DIRECTION_IN
	.comm	_ST_GPIO_DIRECTION_OUT,4,2      ## @ST_GPIO_DIRECTION_OUT
	.no_dead_strip	_st_pmx_set_gpio_direction
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_pmx_set_gpio_direction
_st_pmx_set_gpio_direction:             ; @st_pmx_set_gpio_direction
	.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, x3
	mov	x20, x2
	mov	x0, x1
	bl	_gpio_range_to_bank
	mov	x21, x0
	mov	x1, x20
	mov	w2, #0
	bl	_st_pctl_set_function
Lloh0:
	adrp	x8, _ST_GPIO_DIRECTION_IN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_GPIO_DIRECTION_IN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _ST_GPIO_DIRECTION_OUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _ST_GPIO_DIRECTION_OUT@GOTPAGEOFF]
	cmp	w19, #0
	csel	x8, x9, x8, eq
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x20
	bl	_st_gpio_direction
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_GPIO_DIRECTION_IN,4,2       ; @ST_GPIO_DIRECTION_IN
	.comm	_ST_GPIO_DIRECTION_OUT,4,2      ; @ST_GPIO_DIRECTION_OUT
	.no_dead_strip	_st_pmx_set_gpio_direction
.subsections_via_symbols
