	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vprbrd_gpioa_direction_input
_vprbrd_gpioa_direction_input:          ## @vprbrd_gpioa_direction_input
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	callq	_gpiochip_get_data
	movq	8(%rax), %r15
	movl	$-2, %edx
	movl	%r14d, %ecx
	roll	%cl, %edx
	movq	8(%r15), %rbx
	andl	%edx, (%rax)
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_VPRBRD_GPIOA_CMD_SETIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_gpioa_clk@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	%r14d, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 20(%rbx)
	movups	%xmm0, 4(%rbx)
	movl	4(%r15), %r14d
	xorl	%r12d, %r12d
	movl	%r14d, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_VPRBRD_USB_REQUEST_GPIOA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_VPRBRD_USB_TYPE_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_VPRBRD_USB_TIMEOUT_MS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movl	%r14d, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$44
	pushq	%rbx
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	cmpl	$44, %ebx
	cmovel	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPRBRD_GPIOA_CMD_SETIN,4,2     ## @VPRBRD_GPIOA_CMD_SETIN
	.comm	_gpioa_clk,4,2                  ## @gpioa_clk
	.comm	_VPRBRD_USB_REQUEST_GPIOA,4,2   ## @VPRBRD_USB_REQUEST_GPIOA
	.comm	_VPRBRD_USB_TYPE_OUT,4,2        ## @VPRBRD_USB_TYPE_OUT
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ## @VPRBRD_USB_TIMEOUT_MS
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_vprbrd_gpioa_direction_input
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vprbrd_gpioa_direction_input
_vprbrd_gpioa_direction_input:          ; @vprbrd_gpioa_direction_input
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	bl	_gpiochip_get_data
	ldr	x20, [x0, #8]
	ldr	x21, [x20, #8]
	mov	w8, #1
	lsl	w8, w8, w19
	ldr	w9, [x0]
	bic	w8, w9, w8
	str	w8, [x0]
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _VPRBRD_GPIOA_CMD_SETIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPRBRD_GPIOA_CMD_SETIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _gpioa_clk@GOTPAGE
Lloh4:
	ldr	x9, [x9, _gpioa_clk@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	stp	w9, w8, [x21, #36]
	str	w19, [x21]
	movi.2d	v0, #0000000000000000
	stur	q0, [x21, #4]
	stur	q0, [x21, #20]
	ldr	w19, [x20, #4]
	mov	x0, x19
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh6:
	adrp	x8, _VPRBRD_USB_REQUEST_GPIOA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VPRBRD_USB_REQUEST_GPIOA@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
Lloh9:
	adrp	x8, _VPRBRD_USB_TYPE_OUT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VPRBRD_USB_TYPE_OUT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _VPRBRD_USB_TIMEOUT_MS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VPRBRD_USB_TIMEOUT_MS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x19
	mov	w4, #0
	mov	w5, #0
	mov	x6, x21
	mov	w7, #44
	bl	_usb_control_msg
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
Lloh15:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w19, #44
	csneg	w0, wzr, w8, eq
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VPRBRD_GPIOA_CMD_SETIN,4,2     ; @VPRBRD_GPIOA_CMD_SETIN
	.comm	_gpioa_clk,4,2                  ; @gpioa_clk
	.comm	_VPRBRD_USB_REQUEST_GPIOA,4,2   ; @VPRBRD_USB_REQUEST_GPIOA
	.comm	_VPRBRD_USB_TYPE_OUT,4,2        ; @VPRBRD_USB_TYPE_OUT
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ; @VPRBRD_USB_TIMEOUT_MS
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_vprbrd_gpioa_direction_input
.subsections_via_symbols
