	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tveeprom_read                  ## -- Begin function tveeprom_read
	.p2align	4, 0x90
_tveeprom_read:                         ## @tveeprom_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movb	$0, -25(%rbp)
	leaq	-25(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_master_send
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_i2c_master_recv
	cmpl	%r15d, %eax
	jne	LBB0_4
## %bb.2:
	movq	_DUMP_PREFIX_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, (%rsp)
	leaq	L_.str.2(%rip), %rdi
	movl	$16, %edx
	movl	$1, %ecx
	movq	%r14, %r8
	movl	%r15d, %r9d
	callq	_print_hex_dump_debug
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_info
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_warn
LBB0_5:
	movl	$-1, %eax
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Huh, no eeprom present (err=%d)?\n"

L_.str.1:                               ## @.str.1
	.asciz	"i2c eeprom read error (err=%d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"full 256-byte eeprom dump:"

	.comm	_DUMP_PREFIX_NONE,4,2           ## @DUMP_PREFIX_NONE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tveeprom_read                  ; -- Begin function tveeprom_read
	.p2align	2
_tveeprom_read:                         ; @tveeprom_read
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	strb	wzr, [sp, #15]
	add	x1, sp, #15
	mov	w2, #1
	bl	_i2c_master_send
	cmp	w0, #1
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_i2c_master_recv
	cmp	w0, w19
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _DUMP_PREFIX_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DUMP_PREFIX_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w2, #16
	mov	w3, #1
	mov	x4, x20
	mov	x5, x19
	mov	w6, #1
	bl	_print_hex_dump_debug
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	b	LBB0_5
LBB0_4:
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_warn
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Huh, no eeprom present (err=%d)?\n"

l_.str.1:                               ; @.str.1
	.asciz	"i2c eeprom read error (err=%d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"full 256-byte eeprom dump:"

	.comm	_DUMP_PREFIX_NONE,4,2           ; @DUMP_PREFIX_NONE
.subsections_via_symbols
