	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load_eeprom_dump
_load_eeprom_dump:                      ## @load_eeprom_dump
	.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	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
LBB0_2:
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_3
LBB0_10:
	movq	%rbx, %rdi
	callq	_fclose
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$1080, %rsp                     ## imm = 0x438
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	-1104(%rbp), %r13
	leaq	-1108(%rbp), %r12
	leaq	-80(%rbp), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$1024, %esi                     ## imm = 0x400
	movq	%rbx, %rdx
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	testl	%eax, %eax
	jle	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	cltq
	movb	$0, -1(%rax,%r13)
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	subq	$8, %rsp
	movq	%r13, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdx
	movq	%r15, %rcx
	leaq	-76(%rbp), %r8
	leaq	-72(%rbp), %r9
	leaq	-52(%rbp), %rax
	pushq	%rax
	leaq	-56(%rbp), %rax
	pushq	%rax
	leaq	-60(%rbp), %rax
	pushq	%rax
	leaq	-64(%rbp), %rax
	pushq	%rax
	leaq	-68(%rbp), %rax
	pushq	%rax
	callq	_sscanf
	addq	$48, %rsp
	movslq	-1108(%rbp), %rax
	movaps	-80(%rbp), %xmm0
	movups	%xmm0, (%r14,%rax,4)
	leal	8(%rax), %ecx
	movl	%ecx, -1108(%rbp)
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, 16(%r14,%rax,4)
	movq	%rbx, %rdi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_4
	jmp	LBB0_10
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"r"

L_.str.1:                               ## @.str.1
	.asciz	"fopen"

L_.str.2:                               ## @.str.2
	.asciz	"%x: %x %x %x %x %x %x %x %x\n"

	.no_dead_strip	_load_eeprom_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load_eeprom_dump
_load_eeprom_dump:                      ; @load_eeprom_dump
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #1120
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-104]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x20, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	mov	x0, x20
	bl	_feof
	cbz	x0, LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_fclose
	ldur	x8, [x29, #-104]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.4:
	add	sp, sp, #1120
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	sub	x26, x29, #144
	sub	x8, x29, #144
	orr	x21, x8, #0x4
	orr	x22, x8, #0x8
	orr	x23, x8, #0xc
	add	x24, x8, #16
	add	x27, x8, #20
	add	x28, x8, #24
	add	x25, x8, #28
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #32
	mov	w1, #1024
	mov	x2, x20
	bl	_fgets
	cbz	x0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	bl	_feof
	cbnz	x0, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #32
	bl	_strlen
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #32
	bl	_strlen
	add	x8, sp, #32
	add	x8, x8, w0, sxtw
	sturb	wzr, [x8, #-1]
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, sp, #32
	bl	_strlen
	cbz	w0, LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	stp	x28, x25, [sp, #8]
	add	x0, sp, #32
	add	x2, sp, #28
	sub	x3, x29, #144
	str	x27, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x4, x21
	mov	x5, x22
	mov	x6, x23
	mov	x7, x24
	bl	_sscanf
	ldrsw	x8, [sp, #28]
	lsl	x9, x8, #2
	ldp	q0, q1, [x26]
	str	q0, [x19, x9]
	add	w9, w8, #4
	sbfiz	x9, x9, #2, #32
	add	w8, w8, #8
	str	w8, [sp, #28]
	str	q1, [x19, x9]
	mov	x0, x20
	bl	_feof
	cbz	x0, LBB0_6
	b	LBB0_3
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"r"

l_.str.1:                               ; @.str.1
	.asciz	"fopen"

l_.str.2:                               ; @.str.2
	.asciz	"%x: %x %x %x %x %x %x %x %x\n"

	.no_dead_strip	_load_eeprom_dump
.subsections_via_symbols
