	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vprbrd_gpioa_get
_vprbrd_gpioa_get:                      ## @vprbrd_gpioa_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
	movl	%esi, %r15d
	callq	_gpiochip_get_data
	movl	(%rax), %ecx
	btl	%r15d, %ecx
	jae	LBB0_2
## %bb.1:
	movl	4(%rax), %eax
	xorl	%ebx, %ebx
	btl	%r15d, %eax
	setb	%bl
	jmp	LBB0_3
LBB0_2:
	movq	8(%rax), %r14
	movq	8(%r14), %r12
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_VPRBRD_GPIOA_CMD_GETIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%r12)
	movl	$0, (%r12)
	movl	%r15d, 4(%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r12)
	movups	%xmm0, 8(%r12)
	movl	4(%r14), %r15d
	xorl	%ebx, %ebx
	movl	%r15d, %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	%r15d, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$44
	pushq	%r12
	callq	_usb_control_msg
	addq	$32, %rsp
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	subl	(%rcx), %r13d
	cmpl	$44, %eax
	cmovel	%ebx, %r13d
	movl	4(%r14), %r15d
	movl	%r15d, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_VPRBRD_USB_REQUEST_GPIOA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_VPRBRD_USB_TYPE_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_VPRBRD_USB_TIMEOUT_MS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r10d
	subq	$8, %rsp
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$44
	pushq	%r12
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %r15d
	movl	32(%r12), %r12d
	andl	$1, %r12d
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	cmpl	$44, %r15d
	cmovel	%r13d, %ebx
	testl	%ebx, %ebx
	cmovel	%r12d, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPRBRD_GPIOA_CMD_GETIN,4,2     ## @VPRBRD_GPIOA_CMD_GETIN
	.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
	.comm	_VPRBRD_USB_TYPE_IN,4,2         ## @VPRBRD_USB_TYPE_IN
	.no_dead_strip	_vprbrd_gpioa_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vprbrd_gpioa_get
_vprbrd_gpioa_get:                      ; @vprbrd_gpioa_get
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x1
	bl	_gpiochip_get_data
	ldr	w8, [x0]
	lsr	w8, w8, w21
	tbz	w8, #0, LBB0_2
; %bb.1:
	ldr	w8, [x0, #4]
	lsr	w8, w8, w21
	and	w0, w8, #0x1
	b	LBB0_3
LBB0_2:
	ldr	x19, [x0, #8]
	ldr	x20, [x19, #8]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _VPRBRD_GPIOA_CMD_GETIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPRBRD_GPIOA_CMD_GETIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #40]
	stp	wzr, w21, [x20]
	movi.2d	v0, #0000000000000000
	stur	q0, [x20, #8]
	stur	q0, [x20, #24]
	ldr	w21, [x19, #4]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh3:
	adrp	x22, _VPRBRD_USB_REQUEST_GPIOA@GOTPAGE
Lloh4:
	ldr	x22, [x22, _VPRBRD_USB_REQUEST_GPIOA@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh5:
	adrp	x8, _VPRBRD_USB_TYPE_OUT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VPRBRD_USB_TYPE_OUT@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
Lloh8:
	adrp	x23, _VPRBRD_USB_TIMEOUT_MS@GOTPAGE
Lloh9:
	ldr	x23, [x23, _VPRBRD_USB_TIMEOUT_MS@GOTPAGEOFF]
	ldr	w8, [x23]
	str	w8, [sp]
	mov	x0, x21
	mov	w4, #0
	mov	w5, #0
	mov	x6, x20
	mov	w7, #44
	bl	_usb_control_msg
Lloh10:
	adrp	x24, _EREMOTEIO@GOTPAGE
Lloh11:
	ldr	x24, [x24, _EREMOTEIO@GOTPAGEOFF]
	ldr	w8, [x24]
	cmp	w0, #44
	csneg	w25, wzr, w8, eq
	ldr	w21, [x19, #4]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
	ldr	w2, [x22]
Lloh12:
	adrp	x8, _VPRBRD_USB_TYPE_IN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VPRBRD_USB_TYPE_IN@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	ldr	w8, [x23]
	str	w8, [sp]
	mov	x0, x21
	mov	w4, #0
	mov	w5, #0
	mov	x6, x20
	mov	w7, #44
	bl	_usb_control_msg
	mov	x21, x0
	ldr	w8, [x20, #32]
	and	w20, w8, #0x1
	mov	x0, x19
	bl	_mutex_unlock
	ldr	w8, [x24]
	cmp	w21, #44
	csneg	w8, w25, w8, eq
	cmp	w8, #0
	csel	w0, w20, w8, eq
LBB0_3:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VPRBRD_GPIOA_CMD_GETIN,4,2     ; @VPRBRD_GPIOA_CMD_GETIN
	.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
	.comm	_VPRBRD_USB_TYPE_IN,4,2         ; @VPRBRD_USB_TYPE_IN
	.no_dead_strip	_vprbrd_gpioa_get
.subsections_via_symbols
