	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp7045_read_eeprom
_vp7045_read_eeprom:                    ## @vp7045_read_eeprom
	.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	%rsi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movl	%edx, %r14d
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r13), %eax
	movl	%eax, -68(%rbp)
	movq	_GET_EE_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$5, (%rsp)
	movq	%rbx, %rdi
	leaq	-68(%rbp), %rdx
	movl	$1, %ecx
	leaq	-56(%rbp), %r8
	movl	$2, %r9d
	callq	_vp7045_usb_op
	movl	-52(%rbp), %eax
	movl	%eax, (%r12,%r15,4)
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_3
## %bb.4:
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
LBB0_5:
	leaq	L_.str(%rip), %rdi
	movl	%ecx, %esi
	movl	%ebx, %edx
	callq	_deb_info
	movq	_deb_info@GOTPCREL(%rip), %rdx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_debug_dump
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GET_EE_VALUE,4,2               ## @GET_EE_VALUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VP7045 EEPROM read (offs: %d, len: %d) : "

	.no_dead_strip	_vp7045_read_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp7045_read_eeprom
_vp7045_read_eeprom:                    ; @vp7045_read_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x3
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, x2
	mov	x22, x0
Lloh3:
	adrp	x23, _GET_EE_VALUE@GOTPAGE
Lloh4:
	ldr	x23, [x23, _GET_EE_VALUE@GOTPAGEOFF]
	mov	x24, x19
	mov	x25, x21
	mov	w26, w2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w25, [sp, #12]
	ldr	w1, [x23]
	add	x2, sp, #12
	add	x4, sp, #16
	mov	x0, x22
	mov	w3, #1
	mov	w5, #2
	mov	w6, #5
	bl	_vp7045_usb_op
	ldr	w8, [sp, #20]
	str	w8, [x24], #4
	add	w25, w25, #1
	subs	x26, x26, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w20, #0
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_deb_info
Lloh7:
	adrp	x2, _deb_info@GOTPAGE
Lloh8:
	ldr	x2, [x2, _deb_info@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_debug_dump
	ldr	x8, [sp, #24]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_GET_EE_VALUE,4,2               ; @GET_EE_VALUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VP7045 EEPROM read (offs: %d, len: %d) : "

	.no_dead_strip	_vp7045_read_eeprom
.subsections_via_symbols
