	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vprbrd_i2c_status
_vprbrd_i2c_status:                     ## @vprbrd_i2c_status
	.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
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movl	(%rax), %ebx
	xorl	%r15d, %r15d
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_usb_rcvctrlpipe
	movq	_VPRBRD_USB_REQUEST_I2C@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
	movq	_EREMOTEIO@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rsi
	testl	%r12d, %r12d
	jne	LBB0_4
## %bb.1:
	cmpl	$4, %eax
	jne	LBB0_4
## %bb.2:
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	cmpl	$0, (%r13)
	je	LBB0_6
## %bb.3:
	movq	_EPROTO@GOTPCREL(%rip), %rbx
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_dev_err
	subl	(%rbx), %r15d
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%r15d, %r15d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_VPRBRD_USB_REQUEST_I2C,4,2     ## @VPRBRD_USB_REQUEST_I2C
	.comm	_VPRBRD_USB_TYPE_IN,4,2         ## @VPRBRD_USB_TYPE_IN
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ## @VPRBRD_USB_TIMEOUT_MS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failure in usb communication\n"

	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
L_.str.1:                               ## @.str.1
	.asciz	"  status = %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"failure: i2c protocol error\n"

	.comm	_EPROTO,4,2                     ## @EPROTO
	.no_dead_strip	_vprbrd_i2c_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vprbrd_i2c_status
_vprbrd_i2c_status:                     ; @vprbrd_i2c_status
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	w22, [x8]
	mov	x0, x22
	mov	w1, #0
	bl	_usb_rcvctrlpipe
	mov	x1, x0
Lloh0:
	adrp	x8, _VPRBRD_USB_REQUEST_I2C@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPRBRD_USB_REQUEST_I2C@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, x22
	mov	w4, #0
	mov	w5, #0
	mov	x6, x20
	mov	w7, #4
	bl	_usb_control_msg
Lloh9:
	adrp	x22, _EREMOTEIO@GOTPAGE
Lloh10:
	ldr	x22, [x22, _EREMOTEIO@GOTPAGEOFF]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	cbnz	w21, LBB0_4
; %bb.1:
	cmp	w0, #4
	b.ne	LBB0_4
; %bb.2:
	ldr	w2, [x20]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x20]
	cbz	w8, LBB0_6
; %bb.3:
Lloh15:
	adrp	x22, _EPROTO@GOTPAGE
Lloh16:
	ldr	x22, [x22, _EPROTO@GOTPAGEOFF]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x19
	bl	_dev_err
	ldr	w8, [x22]
	neg	w0, w8
LBB0_5:
	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
LBB0_6:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VPRBRD_USB_REQUEST_I2C,4,2     ; @VPRBRD_USB_REQUEST_I2C
	.comm	_VPRBRD_USB_TYPE_IN,4,2         ; @VPRBRD_USB_TYPE_IN
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ; @VPRBRD_USB_TIMEOUT_MS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failure in usb communication\n"

	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
l_.str.1:                               ; @.str.1
	.asciz	"  status = %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"failure: i2c protocol error\n"

	.comm	_EPROTO,4,2                     ; @EPROTO
	.no_dead_strip	_vprbrd_i2c_status
.subsections_via_symbols
