	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_send_gpio_cmd          ## -- Begin function cx231xx_send_gpio_cmd
	.p2align	4, 0x90
_cx231xx_send_gpio_cmd:                 ## @cx231xx_send_gpio_cmd
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	%esi, %eax
	shrl	$16, %eax
	movq	%rax, -16(%rbp)
	testq	%r9, %r9
	je	LBB0_5
## %bb.1:
	testq	%r8, %r8
	jne	LBB0_2
## %bb.3:
	movq	_VRT_GET_GPIO@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	testq	%r8, %r8
	jne	LBB0_6
## %bb.7:
	movq	_VRT_SET_GPIO@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_2:
	movq	_VRT_GET_GPIE@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movzwl	%si, %eax
	movq	%rax, -32(%rbp)
	movq	%rcx, -56(%rbp)
	movq	$0, -40(%rbp)
	movq	%rdx, -48(%rbp)
	movq	_USB_DIR_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movq	%rcx, %rdx
	callq	_memset
	jmp	LBB0_9
LBB0_6:
	movq	_VRT_SET_GPIE@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movzwl	%si, %eax
	movq	%rax, -32(%rbp)
	movq	%rcx, -56(%rbp)
	movq	$0, -40(%rbp)
	movq	%rdx, -48(%rbp)
	movq	_USB_DIR_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
LBB0_9:
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_cx231xx_send_vendor_cmd
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_cx231xx_info
LBB0_11:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VRT_GET_GPIO,4,2               ## @VRT_GET_GPIO
	.comm	_VRT_SET_GPIO,4,2               ## @VRT_SET_GPIO
	.comm	_VRT_GET_GPIE,4,2               ## @VRT_GET_GPIE
	.comm	_VRT_SET_GPIE,4,2               ## @VRT_SET_GPIE
	.comm	_USB_DIR_IN,4,2                 ## @USB_DIR_IN
	.comm	_USB_DIR_OUT,4,2                ## @USB_DIR_OUT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UsbInterface::sendCommand, failed with status -%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_send_gpio_cmd          ; -- Begin function cx231xx_send_gpio_cmd
	.p2align	2
_cx231xx_send_gpio_cmd:                 ; @cx231xx_send_gpio_cmd
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	lsr	w8, w1, #16
	str	x8, [sp, #56]
	cbz	x5, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _VRT_GET_GPIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VRT_GET_GPIO@GOTPAGEOFF]
Lloh2:
	adrp	x9, _VRT_GET_GPIE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _VRT_GET_GPIE@GOTPAGEOFF]
	cmp	x4, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #48]
	and	w8, w1, #0xffff
	stp	xzr, x8, [sp, #32]
	stp	x3, x2, [sp, #16]
Lloh4:
	adrp	x8, _USB_DIR_IN@GOTPAGE
Lloh5:
	ldr	x8, [x8, _USB_DIR_IN@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	mov	x0, x2
	mov	w1, #0
	mov	x2, x3
	bl	_memset
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _VRT_SET_GPIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VRT_SET_GPIO@GOTPAGEOFF]
Lloh9:
	adrp	x9, _VRT_SET_GPIE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _VRT_SET_GPIE@GOTPAGEOFF]
	cmp	x4, #0
	csel	x8, x8, x9, eq
	ldr	w8, [x8]
	str	w8, [sp, #48]
	and	w8, w1, #0xffff
	stp	xzr, x8, [sp, #32]
	stp	x3, x2, [sp, #16]
Lloh11:
	adrp	x8, _USB_DIR_OUT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USB_DIR_OUT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #8]
LBB0_3:
	add	x1, sp, #8
	mov	x0, x19
	bl	_cx231xx_send_vendor_cmd
	mov	x19, x0
	tbz	w0, #31, LBB0_5
; %bb.4:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_cx231xx_info
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_VRT_GET_GPIO,4,2               ; @VRT_GET_GPIO
	.comm	_VRT_SET_GPIO,4,2               ; @VRT_SET_GPIO
	.comm	_VRT_GET_GPIE,4,2               ; @VRT_GET_GPIE
	.comm	_VRT_SET_GPIE,4,2               ; @VRT_SET_GPIE
	.comm	_USB_DIR_IN,4,2                 ; @USB_DIR_IN
	.comm	_USB_DIR_OUT,4,2                ; @USB_DIR_OUT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UsbInterface::sendCommand, failed with status -%d\n"

.subsections_via_symbols
