	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vf_gpio_pin_configure
_vf_gpio_pin_configure:                 ## @vf_gpio_pin_configure
	.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	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_GPIO_LOCK
	movq	_GPIO_PIN_INPUT@GOTPCREL(%rip), %rcx
	movq	_GPIO_PIN_OUTPUT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %eax
	orl	(%rcx), %eax
	testl	%ebx, %eax
	je	LBB0_4
## %bb.1:
	notl	%eax
	andl	(%r15), %eax
	movl	%eax, (%r15)
	movl	(%rdx), %edx
	testl	%ebx, %edx
	je	LBB0_3
## %bb.2:
	orl	%eax, %edx
	movl	%edx, (%r15)
	jmp	LBB0_4
LBB0_3:
	orl	(%rcx), %eax
	movl	%eax, (%r15)
	movl	4(%r15), %edi
	callq	_GPIO_PCOR
	movb	4(%r15), %cl
	movl	$1, %edx
	shll	%cl, %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_WRITE4
LBB0_4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_GPIO_UNLOCK                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GPIO_PIN_INPUT,4,2             ## @GPIO_PIN_INPUT
	.comm	_GPIO_PIN_OUTPUT,4,2            ## @GPIO_PIN_OUTPUT
	.no_dead_strip	_vf_gpio_pin_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vf_gpio_pin_configure
_vf_gpio_pin_configure:                 ; @vf_gpio_pin_configure
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_GPIO_LOCK
Lloh0:
	adrp	x8, _GPIO_PIN_INPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GPIO_PIN_INPUT@GOTPAGEOFF]
	ldr	w10, [x8]
Lloh2:
	adrp	x9, _GPIO_PIN_OUTPUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GPIO_PIN_OUTPUT@GOTPAGEOFF]
	ldr	w11, [x9]
	orr	w10, w11, w10
	tst	w10, w21
	b.eq	LBB0_4
; %bb.1:
	ldr	w11, [x20]
	bic	w10, w11, w10
	str	w10, [x20]
	ldr	w9, [x9]
	tst	w9, w21
	b.eq	LBB0_3
; %bb.2:
	orr	w8, w9, w10
	str	w8, [x20]
	b	LBB0_4
LBB0_3:
	ldr	w8, [x8]
	orr	w8, w8, w10
	str	w8, [x20]
	ldr	w0, [x20, #4]
	bl	_GPIO_PCOR
	mov	x1, x0
	ldr	w8, [x20, #4]
	mov	w9, #1
	lsl	w2, w9, w8
	mov	x0, x19
	bl	_WRITE4
LBB0_4:
	mov	x0, x19
	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	_GPIO_UNLOCK
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GPIO_PIN_INPUT,4,2             ; @GPIO_PIN_INPUT
	.comm	_GPIO_PIN_OUTPUT,4,2            ; @GPIO_PIN_OUTPUT
	.no_dead_strip	_vf_gpio_pin_configure
.subsections_via_symbols
