	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eeprom_set_valid               ## -- Begin function eeprom_set_valid
	.p2align	4, 0x90
_eeprom_set_valid:                      ## @eeprom_set_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%edi, %ebx
	movq	_EEPROM_MAGIC_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$65535, %esi                    ## imm = 0xFFFF
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_EEPROM_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_2:
	callq	_eeprom_update_word
	movq	_EEPROM_VERSION_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$255, %esi
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	movq	_EEPROM_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_eeprom_update_byte             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_MAGIC_ADDR,8,3          ## @EEPROM_MAGIC_ADDR
	.comm	_EEPROM_MAGIC,4,2               ## @EEPROM_MAGIC
	.comm	_EEPROM_VERSION_ADDR,8,3        ## @EEPROM_VERSION_ADDR
	.comm	_EEPROM_VERSION,4,2             ## @EEPROM_VERSION
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_eeprom_set_valid               ; -- Begin function eeprom_set_valid
	.p2align	2
_eeprom_set_valid:                      ; @eeprom_set_valid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _EEPROM_MAGIC_ADDR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_MAGIC_ADDR@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
Lloh3:
	adrp	x8, _EEPROM_MAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EEPROM_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w9, #65535
	cmp	w19, #0
	csel	w1, w9, w8, eq
	bl	_eeprom_update_word
Lloh6:
	adrp	x8, _EEPROM_VERSION_ADDR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEPROM_VERSION_ADDR@GOTPAGEOFF]
Lloh8:
	ldr	x0, [x8]
Lloh9:
	adrp	x8, _EEPROM_VERSION@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EEPROM_VERSION@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	mov	w9, #255
	cmp	w19, #0
	csel	w1, w9, w8, eq
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_eeprom_update_byte
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_MAGIC_ADDR,8,3          ; @EEPROM_MAGIC_ADDR
	.comm	_EEPROM_MAGIC,4,2               ; @EEPROM_MAGIC
	.comm	_EEPROM_VERSION_ADDR,8,3        ; @EEPROM_VERSION_ADDR
	.comm	_EEPROM_VERSION,4,2             ; @EEPROM_VERSION
.subsections_via_symbols
