	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_eeprom
_write_eeprom:                          ## @write_eeprom
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%esi, %esi
	jle	LBB0_5
## %bb.1:
	movq	_DATA_HEADER_EEPROM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	movq	_DATA_HEADER_ID_CAL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movl	%esi, %esi
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rdx, %rsi
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi,%rdx,8), %rcx
	cmpq	%r9, (%rcx)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r8, 8(%rcx)
	jne	LBB0_4
## %bb.6:
	movq	_ofname@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rcx), %edx
	movl	20(%rcx), %esi
	popq	%rbp
	jmp	_write_file                     ## TAILCALL
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.comm	_DATA_HEADER_EEPROM,8,3         ## @DATA_HEADER_EEPROM
	.comm	_DATA_HEADER_ID_CAL,8,3         ## @DATA_HEADER_ID_CAL
	.comm	_ofname,4,2                     ## @ofname
	.no_dead_strip	_write_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_eeprom
_write_eeprom:                          ; @write_eeprom
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EXIT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.1:
Lloh3:
	adrp	x9, _DATA_HEADER_EEPROM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DATA_HEADER_EEPROM@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _DATA_HEADER_ID_CAL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DATA_HEADER_ID_CAL@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	mov	w11, w1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #8
	subs	x11, x11, #1
	b.eq	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8]
	ldr	x13, [x12]
	cmp	x13, x9
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x13, [x12, #8]
	cmp	x13, x10
	b.ne	LBB0_2
; %bb.5:
Lloh9:
	adrp	x8, _ofname@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ofname@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	w2, w1, [x12, #16]
	b	_write_file
LBB0_6:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.comm	_DATA_HEADER_EEPROM,8,3         ; @DATA_HEADER_EEPROM
	.comm	_DATA_HEADER_ID_CAL,8,3         ; @DATA_HEADER_ID_CAL
	.comm	_ofname,4,2                     ; @ofname
	.no_dead_strip	_write_eeprom
.subsections_via_symbols
