	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_eeprom_dump
_do_eeprom_dump:                        ## @do_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$2, %r15d
	jge	LBB0_3
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_err
	cmpl	$2, %r15d
	jl	LBB0_9
LBB0_3:
	shrl	%r15d
	movq	_NUM_PER_LINE@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_fprintf
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	%r12d, %eax
	cltd
	idivl	%esi
	testl	%edx, %edx
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r13), %esi
	movl	%r12d, %eax
	cltd
	idivl	%esi
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r14,%r12,8), %eax
	decl	%esi
	leaq	L_.str.4(%rip), %rcx
	cmpl	%esi, %edx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.5(%rip), %rcx
	jmp	LBB0_8
LBB0_9:
	movl	$10, %edi
	movq	%rbx, %rsi
	callq	_fputc
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"w"

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

	.comm	_NUM_PER_LINE,4,2               ## @NUM_PER_LINE
L_.str.2:                               ## @.str.2
	.asciz	"%.4x: "

L_.str.3:                               ## @.str.3
	.asciz	"%.4x%s"

L_.str.4:                               ## @.str.4
	.asciz	"\n"

L_.str.5:                               ## @.str.5
	.asciz	" "

	.no_dead_strip	_do_eeprom_dump
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_eeprom_dump
_do_eeprom_dump:                        ; @do_eeprom_dump
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x19, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	mov	x20, x0
	cbz	x0, LBB0_2
; %bb.1:
	cmp	w21, #2
	b.ge	LBB0_3
	b	LBB0_7
LBB0_2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_err
	cmp	w21, #2
	b.lt	LBB0_7
LBB0_3:
	mov	x23, #0
	lsr	w24, w21, #1
Lloh4:
	adrp	x25, _NUM_PER_LINE@GOTPAGE
Lloh5:
	ldr	x25, [x25, _NUM_PER_LINE@GOTPAGEOFF]
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh8:
	adrp	x26, l_.str.5@PAGE
Lloh9:
	add	x26, x26, l_.str.5@PAGEOFF
Lloh10:
	adrp	x27, l_.str.4@PAGE
Lloh11:
	add	x27, x27, l_.str.4@PAGEOFF
Lloh12:
	adrp	x22, l_.str.3@PAGE
Lloh13:
	add	x22, x22, l_.str.3@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x10, [x19, x23, lsl #3]
	sub	w8, w8, #1
	cmp	w9, w8
	csel	x8, x27, x26, eq
	stp	x10, x8, [sp]
	mov	x0, x20
	mov	x1, x22
	bl	_fprintf
	add	x23, x23, #1
	cmp	x24, x23
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	sdiv	w9, w23, w8
	msub	w9, w9, w8, w23
	cbnz	w9, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x23, [sp]
	mov	x0, x20
	mov	x1, x21
	bl	_fprintf
	ldr	w8, [x25]
	sdiv	w9, w23, w8
	msub	w9, w9, w8, w23
	b	LBB0_4
LBB0_7:
	mov	w0, #10
	mov	x1, x20
	bl	_fputc
	mov	x0, x20
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_fclose
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"w"

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

	.comm	_NUM_PER_LINE,4,2               ; @NUM_PER_LINE
l_.str.2:                               ; @.str.2
	.asciz	"%.4x: "

l_.str.3:                               ; @.str.3
	.asciz	"%.4x%s"

l_.str.4:                               ; @.str.4
	.asciz	"\n"

l_.str.5:                               ; @.str.5
	.asciz	" "

	.no_dead_strip	_do_eeprom_dump
.subsections_via_symbols
