	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vprbrd_i2c_receive
_vprbrd_i2c_receive:                    ## @vprbrd_i2c_receive
	.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, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_VPRBRD_EP_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_usb_sndbulkpipe
	movq	_VPRBRD_USB_TIMEOUT_MS@GOTPCREL(%rip), %r13
	movl	(%r13), %r9d
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	movl	$4, %ecx
	callq	_usb_bulk_msg
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	xorl	%ebx, %ebx
	cmpl	$4, -44(%rbp)
	je	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_3:
	movq	_VPRBRD_EP_IN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_usb_rcvbulkpipe
	movl	(%r13), %r9d
	leaq	-44(%rbp), %r8
	movq	%r12, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_usb_bulk_msg
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	cmpl	%r14d, -44(%rbp)
	je	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EREMOTEIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	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_EP_OUT,4,2              ## @VPRBRD_EP_OUT
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ## @VPRBRD_USB_TIMEOUT_MS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failure transmitting usb\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.comm	_VPRBRD_EP_IN,4,2               ## @VPRBRD_EP_IN
L_.str.1:                               ## @.str.1
	.asciz	"failure receiving usb\n"

	.no_dead_strip	_vprbrd_i2c_receive
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vprbrd_i2c_receive
_vprbrd_i2c_receive:                    ; @vprbrd_i2c_receive
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _VPRBRD_EP_OUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPRBRD_EP_OUT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_usb_sndbulkpipe
	mov	x1, x0
Lloh3:
	adrp	x24, _VPRBRD_USB_TIMEOUT_MS@GOTPAGE
Lloh4:
	ldr	x24, [x24, _VPRBRD_USB_TIMEOUT_MS@GOTPAGEOFF]
	ldr	w5, [x24]
	add	x4, sp, #12
	mov	x0, x19
	mov	x2, x21
	mov	w3, #4
	bl	_usb_bulk_msg
Lloh5:
	adrp	x23, _EREMOTEIO@GOTPAGE
Lloh6:
	ldr	x23, [x23, _EREMOTEIO@GOTPAGEOFF]
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #4
	b.ne	LBB0_3
; %bb.2:
	mov	w22, #0
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w8, [x23]
	neg	w22, w8
LBB0_4:
Lloh9:
	adrp	x8, _VPRBRD_EP_IN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VPRBRD_EP_IN@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_usb_rcvbulkpipe
	mov	x1, x0
	ldr	w5, [x24]
	add	x4, sp, #12
	mov	x0, x19
	mov	x2, x21
	mov	x3, x20
	bl	_usb_bulk_msg
	tbnz	w0, #31, LBB0_6
; %bb.5:
	ldr	w8, [sp, #12]
	cmp	w8, w20
	b.eq	LBB0_7
LBB0_6:
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	w8, [x23]
	neg	w22, w8
LBB0_7:
	mov	x0, x22
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VPRBRD_EP_OUT,4,2              ; @VPRBRD_EP_OUT
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ; @VPRBRD_USB_TIMEOUT_MS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failure transmitting usb\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.comm	_VPRBRD_EP_IN,4,2               ; @VPRBRD_EP_IN
l_.str.1:                               ; @.str.1
	.asciz	"failure receiving usb\n"

	.no_dead_strip	_vprbrd_i2c_receive
.subsections_via_symbols
