	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function vprbrd_i2c_read
LCPI0_0:
	.long	2                               ## 0x2
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	2                               ## 0x2
LCPI0_1:
	.long	255                             ## 0xff
	.long	255                             ## 0xff
	.long	0                               ## 0x0
	.long	0                               ## 0x0
LCPI0_2:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_vprbrd_i2c_read:                       ## @vprbrd_i2c_read
	.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	$40, %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), %r12
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %ebx
	movq	_VPRBRD_I2C_CMD_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	testl	%ebx, %ebx
	jle	LBB0_22
## %bb.1:
	leaq	4(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %ebx
	testl	%r15d, %r15d
	jle	LBB0_22
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	16384(%r14), %edi
	callq	_cpu_to_le16
	movq	%rax, 40(%r12)
	cmpl	$255, %ebx
	ja	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, (%r12)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movl	$0, 16(%rax)
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$510, %ebx                      ## imm = 0x1FE
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-255(%rbx), %eax
	movl	%eax, (%r12)
	movl	$255, 4(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$512, %ebx                      ## imm = 0x200
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-510(%rbx), %eax
	movl	%eax, (%r12)
	movaps	LCPI0_1(%rip), %xmm0            ## xmm0 = [255,255,0,0]
	movups	%xmm0, 4(%r12)
	movl	$0, 20(%r12)
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r12)
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_vprbrd_i2c_receive
	testl	%eax, %eax
	js	LBB0_23
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edi
	addl	%r14d, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	testl	%r13d, %r13d
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_vprbrd_i2c_receive
	testl	%eax, %eax
	js	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %eax
	leal	(%r14,%rax), %edi
	addl	$512, %edi                      ## imm = 0x200
	movq	%r12, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	jmp	LBB0_21
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$767, %ebx                      ## imm = 0x2FF
	ja	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %r13d
	addl	$-512, %r13d                    ## imm = 0xFE00
	movabsq	$1095216660482, %rax            ## imm = 0xFF00000002
	movq	%rax, (%r12)
	movl	$255, 8(%r12)
	movl	%r13d, 12(%r12)
	movq	$0, 16(%r12)
	jmp	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1022, %ebx                     ## imm = 0x3FE
	ja	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	-512(%rbx), %r13d
	movabsq	$1095216660482, %rax            ## imm = 0xFF00000002
	movq	%rax, (%r12)
	movl	$255, 8(%r12)
	addl	$-767, %ebx                     ## imm = 0xFD01
	movl	%ebx, 12(%r12)
	movq	$255, 16(%r12)
	jmp	LBB0_11
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$1024, %ebx                     ## imm = 0x400
	ja	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	-512(%rbx), %r13d
	movabsq	$1095216660482, %rax            ## imm = 0xFF00000002
	movq	%rax, (%r12)
	movl	$255, 8(%r12)
	addl	$-1022, %ebx                    ## imm = 0xFC02
	movl	%ebx, 12(%r12)
	movabsq	$1095216660735, %rax            ## imm = 0xFF000000FF
	movq	%rax, 16(%r12)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$512, %ebx                      ## imm = 0x200
	xorl	%r15d, %r15d
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [2,255,255,2]
	movups	%xmm0, (%r12)
	movabsq	$1095216660735, %rax            ## imm = 0xFF000000FF
	movq	%rax, 16(%r12)
	addl	$-1024, %ebx                    ## imm = 0xFC00
	addl	$1024, %r14d                    ## imm = 0x400
	movl	$512, %r13d                     ## imm = 0x200
	movl	%ebx, %r15d
	movl	$512, %ebx                      ## imm = 0x200
	jmp	LBB0_17
LBB0_22:
	xorl	%eax, %eax
LBB0_23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VPRBRD_I2C_CMD_READ,4,2        ## @VPRBRD_I2C_CMD_READ
	.no_dead_strip	_vprbrd_i2c_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function vprbrd_i2c_read
lCPI0_0:
	.long	2                               ; 0x2
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	2                               ; 0x2
lCPI0_2:
	.long	255                             ; 0xff
	.long	255                             ; 0xff
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
lCPI0_1:
	.long	2                               ; 0x2
	.long	255                             ; 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_vprbrd_i2c_read:                       ; @vprbrd_i2c_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	d11, d10, [sp, #32]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	ldr	x21, [x0, #8]
	ldr	w22, [x1]
Lloh0:
	adrp	x8, _VPRBRD_I2C_CMD_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VPRBRD_I2C_CMD_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x21, #48]
	cmp	w22, #1
	b.lt	LBB0_20
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w24, #0
	add	x25, x21, #4
Lloh3:
	adrp	x8, lCPI0_2@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_2@PAGEOFF]
	str	q0, [sp, #16]                   ; 16-byte Folded Spill
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d8, [x8, lCPI0_1@PAGEOFF]
	add	x26, x21, #8
	mov	w27, #255
	movi	d9, #0x000000000000ff
	movi	d10, #0x0000ff000000ff
Lloh7:
	adrp	x8, lCPI0_0@PAGE
Lloh8:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [sp]                        ; 16-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, x28
	cmp	w28, #0
	b.le	LBB0_20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	w0, w24, #4, lsl #12            ; =16384
	bl	_cpu_to_le16
	str	x0, [x21, #40]
	subs	w8, w22, #255
	b.hi	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
	mov	w23, #0
	str	w22, [x21]
	stp	xzr, xzr, [x25]
	str	wzr, [x25, #16]
	b	LBB0_16
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	w9, w22, #510
	b.hi	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
	mov	w23, #0
	stp	w8, w27, [x21]
	stp	xzr, xzr, [x26]
	b	LBB0_16
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	w23, w22, #512
	b.hi	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
	mov	w23, #0
	str	w9, [x21]
	ldr	q0, [sp, #16]                   ; 16-byte Folded Reload
	stur	q0, [x21, #4]
	str	wzr, [x21, #20]
	b	LBB0_16
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	subs	w8, w22, #767
	b.hi	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
	str	d8, [x21]
	stp	w27, w23, [x21, #8]
	mov	w22, #512
	str	xzr, [x21, #16]
	b	LBB0_16
LBB0_11:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w9, w22, #1022
	b.hi	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
	str	d8, [x21]
	stp	w27, w8, [x21, #8]
	mov	w22, #512
	str	d9, [x21, #16]
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_3 Depth=1
	subs	w28, w22, #1024
	b.hi	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w28, #0
	str	d8, [x21]
	stp	w27, w9, [x21, #8]
	mov	w22, #512
	str	d10, [x21, #16]
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	q0, [sp]                        ; 16-byte Folded Reload
	str	q0, [x21]
	str	d10, [x21, #16]
	add	w24, w24, #1024
	mov	w22, #512
	mov	w23, #512
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_cpu_to_le16
	str	x0, [x21, #32]
	mov	x0, x23
	bl	_cpu_to_le16
	str	x0, [x21, #24]
	ldr	w0, [x20]
	mov	x1, x21
	mov	x2, x22
	bl	_vprbrd_i2c_receive
	tbnz	w0, #31, LBB0_21
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #4]
	add	w0, w8, w24
	mov	x1, x21
	mov	x2, x22
	bl	_memcpy
	cbz	w23, LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x20]
	mov	x1, x21
	mov	x2, x23
	bl	_vprbrd_i2c_receive
	tbnz	w0, #31, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w24, w8
	add	w0, w8, #512
	mov	x1, x21
	mov	x2, x23
	bl	_memcpy
	b	LBB0_2
LBB0_20:
	mov	w0, #0
LBB0_21:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpAdrp	Lloh3, Lloh5
	.loh AdrpLdr	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VPRBRD_I2C_CMD_READ,4,2        ; @VPRBRD_I2C_CMD_READ
	.no_dead_strip	_vprbrd_i2c_read
.subsections_via_symbols
