	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vprbrd_gpiob_get
_vprbrd_gpiob_get:                      ## @vprbrd_gpiob_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, %r14d
	callq	_gpiochip_get_data
	movq	%rax, %r12
	movl	(%rax), %eax
	movl	$1, %ebx
	movl	%r14d, %ecx
	shll	%cl, %ebx
	btl	%r14d, %eax
	jae	LBB0_2
## %bb.1:
	andl	4(%r12), %ebx
	jmp	LBB0_4
LBB0_2:
	movq	8(%r12), %r15
	movq	8(%r15), %r13
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	4(%r15), %ebx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_VPRBRD_USB_REQUEST_GPIOB@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	%ebx, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	$4
	pushq	%r13
	callq	_usb_control_msg
	addq	$32, %rsp
	movl	%eax, %ebx
	movl	(%r13), %r13d
	movq	%r15, %rdi
	callq	_mutex_unlock
	cmpl	$4, %ebx
	jne	LBB0_4
## %bb.3:
	movl	%r13d, %edi
	callq	_be16_to_cpu
	movl	%eax, 4(%r12)
	xorl	%ebx, %ebx
	btl	%r14d, %eax
	setb	%bl
LBB0_4:
	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_USB_REQUEST_GPIOB,4,2   ## @VPRBRD_USB_REQUEST_GPIOB
	.comm	_VPRBRD_USB_TYPE_IN,4,2         ## @VPRBRD_USB_TYPE_IN
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ## @VPRBRD_USB_TIMEOUT_MS
	.no_dead_strip	_vprbrd_gpiob_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vprbrd_gpiob_get
_vprbrd_gpiob_get:                      ; @vprbrd_gpiob_get
	.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	x19, x1
	bl	_gpiochip_get_data
	mov	x20, x0
	ldr	w9, [x0]
	mov	w8, #1
	lsl	w8, w8, w19
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x20, #4]
	and	w21, w9, w8
	b	LBB0_4
LBB0_2:
	ldr	x23, [x20, #8]
	ldr	x22, [x23, #8]
	mov	x0, x23
	bl	_mutex_lock
	ldr	w21, [x23, #4]
	mov	x0, x21
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x8, _VPRBRD_USB_REQUEST_GPIOB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPRBRD_USB_REQUEST_GPIOB@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _VPRBRD_USB_TYPE_IN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VPRBRD_USB_TYPE_IN@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x8, _VPRBRD_USB_TIMEOUT_MS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VPRBRD_USB_TIMEOUT_MS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp]
	mov	x0, x21
	mov	w4, #0
	mov	w5, #0
	mov	x6, x22
	mov	w7, #4
	bl	_usb_control_msg
	mov	x21, x0
	ldr	w22, [x22]
	mov	x0, x23
	bl	_mutex_unlock
	cmp	w21, #4
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_be16_to_cpu
	str	w0, [x20, #4]
	lsr	w8, w0, w19
	and	w21, w8, #0x1
LBB0_4:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VPRBRD_USB_REQUEST_GPIOB,4,2   ; @VPRBRD_USB_REQUEST_GPIOB
	.comm	_VPRBRD_USB_TYPE_IN,4,2         ; @VPRBRD_USB_TYPE_IN
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ; @VPRBRD_USB_TIMEOUT_MS
	.no_dead_strip	_vprbrd_gpiob_get
.subsections_via_symbols
