	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vprbrd_gpiob_set
_vprbrd_gpiob_set:                      ## @vprbrd_gpiob_set
	.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	%edx, %r12d
	movl	%esi, %r13d
	movq	%rdi, %r14
	callq	_gpiochip_get_data
	movl	(%rax), %edx
	movl	$1, %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	btl	%r13d, %edx
	jae	LBB0_5
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r15
	movq	8(%r15), %r14
	testl	%r12d, %r12d
	je	LBB0_3
## %bb.2:
	orl	%ebx, 4(%rax)
	jmp	LBB0_4
LBB0_3:
	movl	%ebx, %ecx
	notl	%ecx
	andl	%ecx, 4(%rax)
LBB0_4:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_VPRBRD_GPIOB_CMD_SETVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movl	%r13d, %ecx
	shll	%cl, %r12d
	movl	%r12d, %edi
	callq	_cpu_to_be16
	movq	%rax, 8(%r14)
	movl	%ebx, %edi
	callq	_cpu_to_be16
	movq	%rax, (%r14)
	movl	4(%r15), %ebx
	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	%r14
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	cmpl	$24, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jne	LBB0_6
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VPRBRD_GPIOB_CMD_SETVAL,4,2    ## @VPRBRD_GPIOB_CMD_SETVAL
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usb error setting pin value\n"

	.no_dead_strip	_vprbrd_gpiob_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vprbrd_gpiob_set
_vprbrd_gpiob_set:                      ; @vprbrd_gpiob_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_gpiochip_get_data
	ldr	w8, [x0]
	mov	w9, #1
	lsl	w24, w9, w23
	tst	w8, w24
	b.eq	LBB0_5
; %bb.1:
	ldr	x20, [x0, #8]
	ldr	x21, [x20, #8]
	cbz	w22, LBB0_3
; %bb.2:
	ldr	w8, [x0, #4]
	orr	w8, w8, w24
	b	LBB0_4
LBB0_3:
	ldr	w8, [x0, #4]
	bic	w8, w8, w24
LBB0_4:
	str	w8, [x0, #4]
	mov	x0, x20
	bl	_mutex_lock
Lloh0:
	adrp	x8, _VPRBRD_GPIOB_CMD_SETVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPRBRD_GPIOB_CMD_SETVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #16]
	lsl	w0, w22, w23
	bl	_cpu_to_be16
	str	x0, [x21, #8]
	mov	x0, x24
	bl	_cpu_to_be16
	str	x0, [x21]
	ldr	w22, [x20, #4]
	mov	x0, x22
	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, x22
	mov	w4, #0
	mov	w5, #0
	mov	x6, x21
	mov	w7, #24
	bl	_usb_control_msg
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	cmp	w21, #24
	b.ne	LBB0_6
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_dev_err
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VPRBRD_GPIOB_CMD_SETVAL,4,2    ; @VPRBRD_GPIOB_CMD_SETVAL
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usb error setting pin value\n"

	.no_dead_strip	_vprbrd_gpiob_set
.subsections_via_symbols
