	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vprbrd_gpiob_setdir
_vprbrd_gpiob_setdir:                   ## @vprbrd_gpiob_setdir
	.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	%esi, %ebx
	movq	%rdi, %r14
	movq	8(%rdi), %r15
	movq	_VPRBRD_GPIOB_CMD_SETDIR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r15)
	movl	%ebx, %ecx
	shll	%cl, %edx
	movl	%edx, %edi
	callq	_cpu_to_be16
	movq	%rax, 8(%r15)
	movl	$1, %edi
	movl	%ebx, %ecx
	shll	%cl, %edi
	callq	_cpu_to_be16
	movq	%rax, (%r15)
	movl	(%r14), %ebx
	xorl	%r14d, %r14d
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_sndctrlpipe
	movq	_VPRBRD_USB_REQUEST_GPIOB@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	%ebx, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$24
	pushq	%r15
	callq	_usb_control_msg
	addq	$32, %rsp
	movq	_EREMOTEIO@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	subl	(%rdx), %ecx
	cmpl	$24, %eax
	cmovel	%r14d, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPRBRD_GPIOB_CMD_SETDIR,4,2    ## @VPRBRD_GPIOB_CMD_SETDIR
	.comm	_VPRBRD_USB_REQUEST_GPIOB,4,2   ## @VPRBRD_USB_REQUEST_GPIOB
	.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_gpiob_setdir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vprbrd_gpiob_setdir
_vprbrd_gpiob_setdir:                   ; @vprbrd_gpiob_setdir
	.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
	mov	x20, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _VPRBRD_GPIOB_CMD_SETDIR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPRBRD_GPIOB_CMD_SETDIR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	lsl	w0, w2, w1
	bl	_cpu_to_be16
	str	x0, [x21, #8]
	mov	w8, #1
	lsl	w0, w8, w19
	bl	_cpu_to_be16
	str	x0, [x21]
	ldr	w19, [x20]
	mov	x0, x19
	mov	w1, #0
	bl	_usb_sndctrlpipe
	mov	x1, x0
Lloh3:
	adrp	x8, _VPRBRD_USB_REQUEST_GPIOB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VPRBRD_USB_REQUEST_GPIOB@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _VPRBRD_USB_TYPE_OUT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VPRBRD_USB_TYPE_OUT@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _VPRBRD_USB_TIMEOUT_MS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VPRBRD_USB_TIMEOUT_MS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x19
	mov	w4, #0
	mov	w5, #0
	mov	x6, x21
	mov	w7, #24
	bl	_usb_control_msg
Lloh12:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, #24
	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	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_GPIOB_CMD_SETDIR,4,2    ; @VPRBRD_GPIOB_CMD_SETDIR
	.comm	_VPRBRD_USB_REQUEST_GPIOB,4,2   ; @VPRBRD_USB_REQUEST_GPIOB
	.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_gpiob_setdir
.subsections_via_symbols
