	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EEPROM_write16                 ## -- Begin function EEPROM_write16
	.p2align	4, 0x90
_EEPROM_write16:                        ## @EEPROM_write16
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r12d
	xorl	%eax, %eax
	callq	_SekCyclesDone
	movq	_last_write@GOTPCREL(%rip), %r15
	subl	(%r15), %eax
	cmpl	$15, %eax
	jg	LBB0_1
## %bb.4:
	movq	_EL_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	xorl	%eax, %eax
	callq	_SekCyclesDone
	subl	(%r15), %eax
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_elprintf
	movl	%r12d, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EEPROM_upd_pending             ## TAILCALL
LBB0_1:
	movq	_Pico@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	movl	%ebx, %edi
	sarl	$6, %edi
	callq	_EEPROM_write_do
	movl	%r12d, %edi
	callq	_EEPROM_upd_pending
	xorl	(%r14), %ebx
	testb	$-64, %bl
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_SekCyclesDone
	movl	%eax, (%r15)
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_last_write,4,2                 ## @last_write
	.comm	_EL_EEPROM,4,2                  ## @EL_EEPROM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eeprom: skip because cycles=%i"

	.comm	_Pico,4,2                       ## @Pico
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_EEPROM_write16                 ; -- Begin function EEPROM_write16
	.p2align	2
_EEPROM_write16:                        ; @EEPROM_write16
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	bl	_SekCyclesDone
Lloh0:
	adrp	x21, _last_write@GOTPAGE
Lloh1:
	ldr	x21, [x21, _last_write@GOTPAGEOFF]
	ldr	w8, [x21]
	sub	w8, w0, w8
	cmp	w8, #15
	b.gt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EL_EEPROM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EL_EEPROM@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	bl	_SekCyclesDone
	ldr	w8, [x21]
	sub	w2, w0, w8
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_elprintf
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_EEPROM_upd_pending
LBB0_2:
Lloh7:
	adrp	x20, _Pico@GOTPAGE
Lloh8:
	ldr	x20, [x20, _Pico@GOTPAGEOFF]
	ldr	w22, [x20]
	asr	w0, w22, #6
	bl	_EEPROM_write_do
	mov	x0, x19
	bl	_EEPROM_upd_pending
	ldr	w8, [x20]
	eor	w8, w8, w22
	tst	w8, #0xc0
	b.eq	LBB0_4
; %bb.3:
	bl	_SekCyclesDone
	str	w0, [x21]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_last_write,4,2                 ; @last_write
	.comm	_EL_EEPROM,4,2                  ; @EL_EEPROM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eeprom: skip because cycles=%i"

	.comm	_Pico,4,2                       ; @Pico
.subsections_via_symbols
