	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vprbrd_i2c_write
_vprbrd_i2c_write:                      ## @vprbrd_i2c_write
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rbx
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r15d
	movq	_VPRBRD_I2C_CMD_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	$0, 4(%rbx)
	movl	$0, 12(%rbx)
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r15d, %r15d
	jle	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	16384(%r12), %edi
	callq	_cpu_to_le16
	movl	%eax, 24(%rbx)
	cmpl	$504, %r15d                     ## imm = 0x1F8
	jb	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movabsq	$1065151889663, %rax            ## imm = 0xF8000000FF
	movq	%rax, 16(%rbx)
	addl	$-503, %r15d                    ## imm = 0xFE09
	addl	$503, %r12d                     ## imm = 0x1F7
	movl	$507, %r14d                     ## imm = 0x1FB
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$256, %r15d                     ## imm = 0x100
	jae	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, 16(%rbx)
	movl	$0, 20(%rbx)
	jmp	LBB0_8
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$255, 16(%rbx)
	leal	-255(%r15), %eax
	movl	%eax, 20(%rbx)
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %r14d
	addl	$4, %r14d
	xorl	%r15d, %r15d
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %esi
	addl	%r12d, %esi
	leal	-4(%r14), %edx
	callq	_memcpy
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r13d
	movq	_VPRBRD_EP_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_usb_sndbulkpipe
	movq	_VPRBRD_USB_TIMEOUT_MS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%r13d, %edi
	movl	%eax, %esi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	leaq	-44(%rbp), %r8
	callq	_usb_bulk_msg
	testl	%eax, %eax
	js	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	cmpl	-44(%rbp), %r14d
	je	LBB0_1
LBB0_11:
	movq	_EREMOTEIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_2:
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPRBRD_I2C_CMD_WRITE,4,2       ## @VPRBRD_I2C_CMD_WRITE
	.comm	_VPRBRD_EP_OUT,4,2              ## @VPRBRD_EP_OUT
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ## @VPRBRD_USB_TIMEOUT_MS
	.comm	_EREMOTEIO,4,2                  ## @EREMOTEIO
	.no_dead_strip	_vprbrd_i2c_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function vprbrd_i2c_write
lCPI0_0:
	.long	255                             ; 0xff
	.long	248                             ; 0xf8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vprbrd_i2c_write:                      ; @vprbrd_i2c_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x1
	mov	x20, x0
	mov	w24, #0
	ldr	x21, [x0, #8]
	ldr	w25, [x1]
Lloh0:
	adrp	x8, _VPRBRD_I2C_CMD_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPRBRD_I2C_CMD_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #28]
	str	xzr, [x21, #8]
	str	wzr, [x21, #4]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	d8, [x8, lCPI0_0@PAGEOFF]
Lloh5:
	adrp	x26, _VPRBRD_EP_OUT@GOTPAGE
Lloh6:
	ldr	x26, [x26, _VPRBRD_EP_OUT@GOTPAGEOFF]
Lloh7:
	adrp	x27, _VPRBRD_USB_TIMEOUT_MS@GOTPAGE
Lloh8:
	ldr	x27, [x27, _VPRBRD_USB_TIMEOUT_MS@GOTPAGEOFF]
	mov	w28, #255
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w25, #1
	b.lt	LBB0_11
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w0, w24, #4, lsl #12            ; =16384
	bl	_cpu_to_le16
	str	w0, [x21, #24]
	cmp	w25, #504
	b.lo	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	str	d8, [x21, #16]
	sub	w25, w25, #503
	add	w24, w24, #503
	mov	w22, #507
	b	LBB0_8
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	cmp	w25, #256
	b.hs	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	stp	w25, wzr, [x21, #16]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	sub	w8, w25, #255
	stp	w28, w8, [x21, #16]
LBB0_7:                                 ;   in Loop: Header=BB0_1 Depth=1
	add	w22, w25, #4
	mov	w25, #0
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x21]
	ldr	w8, [x19, #4]
	add	w1, w8, w24
	sub	w2, w22, #4
	bl	_memcpy
	ldr	w23, [x20]
	ldr	w1, [x26]
	mov	x0, x23
	bl	_usb_sndbulkpipe
	mov	x1, x0
	ldr	w5, [x27]
	add	x4, sp, #12
	mov	x0, x23
	mov	x2, x21
	mov	x3, x22
	bl	_usb_bulk_msg
	tbnz	w0, #31, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [sp, #12]
	cmp	w22, w8
	b.eq	LBB0_1
LBB0_10:
Lloh9:
	adrp	x8, _EREMOTEIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EREMOTEIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_12
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VPRBRD_I2C_CMD_WRITE,4,2       ; @VPRBRD_I2C_CMD_WRITE
	.comm	_VPRBRD_EP_OUT,4,2              ; @VPRBRD_EP_OUT
	.comm	_VPRBRD_USB_TIMEOUT_MS,4,2      ; @VPRBRD_USB_TIMEOUT_MS
	.comm	_EREMOTEIO,4,2                  ; @EREMOTEIO
	.no_dead_strip	_vprbrd_i2c_write
.subsections_via_symbols
