	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EEPROM_write_do
_EEPROM_write_do:                       ## @EEPROM_write_do
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_Pico@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	4(%rax), %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	8(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	12(%rax), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_EL_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %r12d
	shrl	%r12d
	andl	$1, %r12d
	andl	$1, %r14d
	movl	%edi, %ebx
	andl	$2, %ebx
	movl	%ebx, %r15d
	shrl	%r15d
	movl	%edi, -48(%rbp)                 ## 4-byte Spill
	movl	%edi, %r13d
	andl	$1, %r13d
	xorl	%eax, %eax
	callq	_SekCyclesDone
	movq	_last_write@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	movl	%r13d, %r9d
	xorl	%eax, %eax
	callq	_elprintf
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%r8d, %r12d
	andl	$8191, %r12d                    ## imm = 0x1FFF
	testl	%esi, %ebx
	je	LBB0_4
## %bb.1:
	testl	%r13d, %r13d
	jne	LBB0_10
## %bb.2:
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.3:
	movq	_EL_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%esi, %ebx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_elprintf
	xorl	%edi, %edi
	movl	%ebx, %esi
	orl	$8, %esi
	movq	_Pico@GOTPCREL(%rip), %r15
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_41
LBB0_4:
	movl	%esi, %eax
	andl	$10, %eax
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.5:
	cmpl	$8, %eax
	jne	LBB0_13
## %bb.6:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	incl	%ecx
	movq	_SRam@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_29
## %bb.7:
	testb	$1, %r13b
	movq	_Pico@GOTPCREL(%rip), %r15
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_32
## %bb.8:
	cmpl	$18, %ecx
	jne	LBB0_32
## %bb.9:
	incl	%r8d
	andl	$8191, %r8d                     ## imm = 0x1FFF
	movl	$9, %r14d
	movl	%r8d, %r12d
	jmp	LBB0_39
LBB0_10:
	testl	%r13d, %r13d
	movq	_Pico@GOTPCREL(%rip), %r15
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_28
## %bb.11:
	testl	%r14d, %r14d
	jne	LBB0_28
## %bb.12:
	movq	_EL_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%esi, %r14d
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_elprintf
	movl	%r14d, %esi
	andl	$-9, %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_41
LBB0_13:
	movq	%r13, %r9
	testl	%ebx, %ebx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jne	LBB0_35
## %bb.14:
	cmpl	$10, %eax
	movq	_Pico@GOTPCREL(%rip), %r15
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_41
## %bb.15:
	movq	_SRam@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_36
## %bb.16:
	cmpl	$27, %edi
	ja	LBB0_18
## %bb.17:
	movl	$134480384, %ecx                ## imm = 0x8040200
	btl	%edi, %ecx
	jb	LBB0_41
LBB0_18:
	cmpl	$3, %eax
	jne	LBB0_20
## %bb.19:
	cmpl	$27, %edi
	ja	LBB0_22
LBB0_20:
	cmpl	$2, %eax
	jne	LBB0_49
## %bb.21:
	cmpl	$19, %edi
	jb	LBB0_49
LBB0_22:
	testb	$1, %r13b
	jne	LBB0_41
## %bb.23:
	movq	8(%r14), %rax
	movb	(%rax,%r12), %cl
	addb	%cl, %cl
	orb	%cl, %r9b
	movq	%r9, %rcx
	movb	%r9b, (%rax,%r12)
	cmpl	$35, %edi
	je	LBB0_25
## %bb.24:
	cmpl	$26, %edi
	jne	LBB0_27
LBB0_25:
	movl	%r8d, %eax
	andl	$8176, %eax                     ## imm = 0x1FF0
	incl	%r8d
	andl	$15, %r8d
	orl	%eax, %r8d
	movq	_EL_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movzbl	%cl, %ecx
	leaq	L_.str.4(%rip), %rsi
	movl	%r8d, %edx
	jmp	LBB0_26
LBB0_28:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	jmp	LBB0_41
LBB0_29:
	cmpl	$18, %ecx
	movq	_Pico@GOTPCREL(%rip), %r15
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_38
## %bb.30:
	movl	$9, %r14d
	testb	$1, %r8b
	je	LBB0_39
## %bb.31:
	addl	$2, %r8d
	movzbl	%r8b, %r12d
	jmp	LBB0_39
LBB0_32:
	cmpl	$2, %eax
	jne	LBB0_34
## %bb.33:
	movl	$18, %r14d
	cmpl	$27, %ecx
	je	LBB0_39
LBB0_34:
	cmpl	$36, %ecx
	movl	$27, %r14d
	cmovnel	%ecx, %r14d
	jmp	LBB0_39
LBB0_35:
	movq	_Pico@GOTPCREL(%rip), %r15
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	jmp	LBB0_41
LBB0_36:
	cmpl	$9, %edi
	jne	LBB0_42
## %bb.37:
	movl	$9, %edi
	jmp	LBB0_41
LBB0_38:
	movl	%ecx, %r14d
LBB0_39:
	movq	_EL_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_elprintf
	movl	%r14d, %edi
LBB0_40:
	movl	-52(%rbp), %esi                 ## 4-byte Reload
LBB0_41:
	andl	$252, %esi
	andl	$3, %ebx
	orl	%esi, %ebx
	movl	%ebx, (%r15)
	movzbl	%dil, %eax
	movl	%eax, 8(%r15)
	movzbl	%r13b, %eax
	movl	%eax, 12(%r15)
	movl	%r12d, 4(%r15)
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_42:
	jbe	LBB0_46
## %bb.43:
	testb	$1, %r8b
	jne	LBB0_41
## %bb.44:
	movq	8(%r14), %rax
	movl	%r12d, %ecx
	shrq	%rcx
	movb	(%rax,%rcx), %dl
	addb	%dl, %dl
	orb	%dl, %r9b
	movb	%r9b, (%rax,%rcx)
	cmpl	$17, %edi
	jne	LBB0_27
## %bb.45:
	movl	%r8d, %eax
	andl	$249, %eax
	addl	$2, %r8d
	andl	$6, %r8d
	orl	%eax, %r8d
	movq	_EL_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r8d, %edx
	shrl	%edx
	movzbl	%r9b, %ecx
	leaq	L_.str.4(%rip), %rsi
LBB0_26:
	xorl	%eax, %eax
	movq	%r8, %r12
	callq	_elprintf
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
LBB0_27:
	movl	$1, 16(%r14)
	jmp	LBB0_41
LBB0_46:
	leal	(%r12,%r12), %eax
	movzbl	%al, %edx
	movq	%r9, %r12
	orl	%edx, %r12d
	cmpl	$8, %edi
	jne	LBB0_48
## %bb.47:
	movq	_EL_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	shrl	%edx
	movl	%esi, %r14d
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_elprintf
	movl	%r14d, %esi
	movl	$8, %edi
LBB0_48:
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	jmp	LBB0_41
LBB0_49:
	cmpl	$10, %edi
	jb	LBB0_56
## %bb.50:
	testb	$1, %r13b
	jne	LBB0_41
## %bb.51:
	leal	(%r12,%r12), %ecx
	cmpl	$2, %eax
	movl	$254, %eax
	movl	$8190, %r12d                    ## imm = 0x1FFE
	cmovel	%eax, %r12d
	andl	%ecx, %r12d
	orl	%r9d, %r12d
	cmpl	$26, %edi
	je	LBB0_53
## %bb.52:
	cmpl	$17, %edi
	jne	LBB0_41
LBB0_53:
	movq	_EL_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_elprintf
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	cmpl	$17, %edi
	jne	LBB0_40
## %bb.54:
	cmpl	$2, (%r14)
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	jne	LBB0_41
## %bb.55:
	movzbl	%r12b, %eax
	movl	%r13d, %r12d
	andl	$14, %r12d
	shll	$7, %r12d
	orl	%eax, %r12d
	movl	$17, %edi
	jmp	LBB0_41
LBB0_56:
	leal	(%r9,%r13,2), %r13d
	cmpl	$8, %edi
	jne	LBB0_41
## %bb.57:
	movq	_EL_EEPROM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%esi, %r14d
	leaq	L_.str.6(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_elprintf
	movl	%r14d, %esi
	movl	$8, %edi
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_Pico,16,2                      ## @Pico
	.comm	_EL_EEPROM,4,2                  ## @EL_EEPROM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"eeprom: scl/sda: %i/%i -> %i/%i, newtime=%i"

	.comm	_last_write,8,3                 ## @last_write
L_.str.1:                               ## @.str.1
	.asciz	"eeprom: -start-"

L_.str.2:                               ## @.str.2
	.asciz	"eeprom: -stop-"

	.comm	_SRam,24,3                      ## @SRam
L_.str.3:                               ## @.str.3
	.asciz	"eeprom: scyc: %i"

L_.str.4:                               ## @.str.4
	.asciz	"eeprom: write done, addr inc to: %x, last byte=%02x"

L_.str.5:                               ## @.str.5
	.asciz	"eeprom: addr reg done: %x"

L_.str.6:                               ## @.str.6
	.asciz	"eeprom: slave done: %x"

L_.str.7:                               ## @.str.7
	.asciz	"eeprom: addr done: %x"

	.no_dead_strip	_EEPROM_write_do
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EEPROM_write_do
_EEPROM_write_do:                       ; @EEPROM_write_do
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, _Pico@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Pico@GOTPAGEOFF]
	ldp	w22, w27, [x8]
	ldp	w19, w21, [x8, #8]
Lloh2:
	adrp	x8, _EL_EEPROM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EL_EEPROM@GOTPAGEOFF]
	ubfx	w25, w22, #1, #1
Lloh4:
	ldr	w20, [x8]
	and	w23, w22, #0x1
	and	w28, w0, #0x2
	ubfx	w24, w0, #1, #1
	str	w0, [sp, #44]                   ; 4-byte Folded Spill
	and	w26, w0, #0x1
	bl	_SekCyclesDone
Lloh5:
	adrp	x8, _last_write@GOTPAGE
Lloh6:
	ldr	x8, [x8, _last_write@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	sub	x8, x0, x8
	str	x8, [sp, #32]
	mov	x8, x26
	stp	x24, x8, [sp, #16]
	stp	x25, x23, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_elprintf
	and	x20, x27, #0x1fff
	tst	w28, w22
	b.eq	LBB0_4
; %bb.1:
	cbnz	w26, LBB0_10
; %bb.2:
	cbz	w23, LBB0_10
; %bb.3:
Lloh10:
	adrp	x8, _EL_EEPROM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EL_EEPROM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_elprintf
	mov	w24, #0
	orr	w22, w22, #0x8
	b	LBB0_13
LBB0_4:
	mov	w8, #10
	and	w8, w22, w8
	cbz	w28, LBB0_17
; %bb.5:
	cmp	w8, #8
	b.ne	LBB0_17
; %bb.6:
	mov	x24, x19
	add	w8, w24, #1
Lloh15:
	adrp	x9, _SRam@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SRam@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	mov	x23, x21
	cbz	w9, LBB0_30
; %bb.7:
Lloh18:
	adrp	x21, _Pico@GOTPAGE
Lloh19:
	ldr	x21, [x21, _Pico@GOTPAGEOFF]
	ldr	w19, [sp, #44]                  ; 4-byte Folded Reload
	tbz	w23, #0, LBB0_31
; %bb.8:
	cmp	w8, #18
	b.ne	LBB0_31
; %bb.9:
	add	w8, w27, #1
	and	w20, w8, #0x1fff
	mov	w24, #9
	b	LBB0_32
LBB0_10:
	cbz	w26, LBB0_29
; %bb.11:
	mov	x24, x19
	cbnz	w23, LBB0_13
; %bb.12:
Lloh20:
	adrp	x8, _EL_EEPROM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EL_EEPROM@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_elprintf
	and	w22, w22, #0xfffffff7
LBB0_13:
	mov	x23, x21
LBB0_14:
Lloh25:
	adrp	x21, _Pico@GOTPAGE
Lloh26:
	ldr	x21, [x21, _Pico@GOTPAGEOFF]
LBB0_15:
	ldr	w19, [sp, #44]                  ; 4-byte Folded Reload
LBB0_16:
	and	w8, w22, #0xfc
	and	w9, w24, #0xff
	and	w10, w23, #0xff
	stp	w9, w10, [x21, #8]
	bfxil	w8, w19, #0, #2
	stp	w8, w20, [x21]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_17:
	mov	x23, x21
	mov	x24, x19
	cbnz	w28, LBB0_14
; %bb.18:
	cmp	w8, #10
	b.ne	LBB0_14
; %bb.19:
Lloh27:
	adrp	x28, _SRam@GOTPAGE
Lloh28:
	ldr	x28, [x28, _SRam@GOTPAGEOFF]
	ldr	w8, [x28]
	cbz	w8, LBB0_33
; %bb.20:
	cmp	w24, #27
	mov	w9, #1
	lsl	w9, w9, w24
	mov	w10, #512
	movk	w10, #2052, lsl #16
	and	w9, w9, w10
	ccmp	w9, #0, #4, ls
	b.ne	LBB0_14
; %bb.21:
	cmp	w8, #3
	b.ne	LBB0_23
; %bb.22:
	cmp	w24, #27
	b.hi	LBB0_25
LBB0_23:
	cmp	w8, #2
	b.ne	LBB0_43
; %bb.24:
	cmp	w24, #19
	b.lo	LBB0_43
LBB0_25:
	tbnz	w23, #0, LBB0_14
; %bb.26:
	ldr	x8, [x28, #8]
	ldrb	w9, [x8, x20]
	bfi	w26, w9, #1, #31
	strb	w26, [x8, x20]
	cmp	w24, #35
	b.eq	LBB0_28
; %bb.27:
	cmp	w24, #26
	b.ne	LBB0_39
LBB0_28:
	and	w20, w27, #0x1ff0
	add	w8, w27, #1
	bfxil	w20, w8, #0, #4
Lloh29:
	adrp	x8, _EL_EEPROM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EL_EEPROM@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	and	x8, x26, #0xff
	stp	x20, x8, [sp]
Lloh32:
	adrp	x1, l_.str.4@PAGE
Lloh33:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_elprintf
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	b	LBB0_39
LBB0_29:
	mov	x23, x21
Lloh34:
	adrp	x21, _Pico@GOTPAGE
Lloh35:
	ldr	x21, [x21, _Pico@GOTPAGEOFF]
	mov	x24, x19
	b	LBB0_15
LBB0_30:
	mov	w9, #9
	add	w10, w27, #2
	and	w10, w10, #0xff
	mov	w11, #9
	tst	w27, #0x1
	csel	w9, w9, w11, eq
	csel	w10, w20, w10, eq
	cmp	w8, #18
	csel	w20, w20, w10, ne
	csinc	w24, w9, w24, eq
Lloh36:
	adrp	x21, _Pico@GOTPAGE
Lloh37:
	ldr	x21, [x21, _Pico@GOTPAGEOFF]
	ldr	w19, [sp, #44]                  ; 4-byte Folded Reload
	b	LBB0_32
LBB0_31:
	mov	w10, #18
	mov	w11, #27
	cmp	w8, #36
	csel	w11, w11, w8, eq
	cmp	w9, #2
	ccmp	w8, #27, #0, eq
	csel	w24, w10, w11, eq
LBB0_32:
Lloh38:
	adrp	x8, _EL_EEPROM@GOTPAGE
Lloh39:
	ldr	x8, [x8, _EL_EEPROM@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	str	x24, [sp]
Lloh41:
	adrp	x1, l_.str.3@PAGE
Lloh42:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_elprintf
	b	LBB0_16
LBB0_33:
	cmp	w24, #9
	b.ne	LBB0_35
; %bb.34:
	mov	w24, #9
	b	LBB0_14
LBB0_35:
	cmp	w24, #10
	b.lo	LBB0_40
; %bb.36:
	tbnz	w27, #0, LBB0_14
; %bb.37:
	ldr	x8, [x28, #8]
	mov	w9, w20
	lsr	x9, x9, #1
	ldrb	w10, [x8, x9]
	bfi	w26, w10, #1, #31
	strb	w26, [x8, x9]
	cmp	w24, #17
	b.ne	LBB0_39
; %bb.38:
	mov	w8, #249
	and	w8, w27, w8
	add	w9, w27, #2
	and	w9, w9, #0x6
	orr	w20, w9, w8
Lloh43:
	adrp	x8, _EL_EEPROM@GOTPAGE
Lloh44:
	ldr	x8, [x8, _EL_EEPROM@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	lsr	w8, w20, #1
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	and	x9, x26, #0xff
	stp	x8, x9, [sp]
Lloh46:
	adrp	x1, l_.str.4@PAGE
Lloh47:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_elprintf
LBB0_39:
	mov	w8, #1
	str	w8, [x28, #16]
	b	LBB0_14
LBB0_40:
	bfi	w26, w20, #1, #7
	cmp	w24, #8
	b.ne	LBB0_42
; %bb.41:
	ubfiz	w8, w20, #1, #7
Lloh48:
	adrp	x9, _EL_EEPROM@GOTPAGE
Lloh49:
	ldr	x9, [x9, _EL_EEPROM@GOTPAGEOFF]
Lloh50:
	ldr	w0, [x9]
	lsr	w8, w8, #1
	str	x8, [sp]
Lloh51:
	adrp	x1, l_.str.7@PAGE
Lloh52:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_elprintf
	mov	w24, #8
LBB0_42:
	mov	x20, x26
	b	LBB0_14
LBB0_43:
	cmp	w24, #10
	b.lo	LBB0_48
; %bb.44:
	tbnz	w23, #0, LBB0_14
; %bb.45:
	mov	w9, #8190
	mov	w10, #254
	cmp	w8, #2
	csel	w8, w10, w9, eq
	and	w8, w8, w20, lsl #1
	orr	w20, w8, w26
	cmp	w24, #26
	b.eq	LBB0_47
; %bb.46:
	cmp	w24, #17
	b.ne	LBB0_14
LBB0_47:
Lloh53:
	adrp	x8, _EL_EEPROM@GOTPAGE
Lloh54:
	ldr	x8, [x8, _EL_EEPROM@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	mov	x8, x20
	str	x8, [sp]
Lloh56:
	adrp	x1, l_.str.5@PAGE
Lloh57:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_elprintf
	ldr	w8, [x28]
	lsl	w9, w23, #7
	and	w9, w9, #0x700
	bfxil	w9, w20, #0, #8
	mov	w10, #17
	cmp	w8, #2
	csel	w8, w24, w10, ne
	csel	w9, w20, w9, ne
	cmp	w24, #17
	csel	w24, w24, w8, ne
	csel	w20, w20, w9, ne
	b	LBB0_14
LBB0_48:
	bfi	w26, w23, #1, #31
	cmp	w24, #8
	b.ne	LBB0_50
; %bb.49:
Lloh58:
	adrp	x8, _EL_EEPROM@GOTPAGE
Lloh59:
	ldr	x8, [x8, _EL_EEPROM@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	mov	x8, x26
	str	x8, [sp]
Lloh61:
	adrp	x1, l_.str.6@PAGE
Lloh62:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_elprintf
	mov	w24, #8
LBB0_50:
	mov	x23, x26
	b	LBB0_14
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_Pico,16,2                      ; @Pico
	.comm	_EL_EEPROM,4,2                  ; @EL_EEPROM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"eeprom: scl/sda: %i/%i -> %i/%i, newtime=%i"

	.comm	_last_write,8,3                 ; @last_write
l_.str.1:                               ; @.str.1
	.asciz	"eeprom: -start-"

l_.str.2:                               ; @.str.2
	.asciz	"eeprom: -stop-"

	.comm	_SRam,24,3                      ; @SRam
l_.str.3:                               ; @.str.3
	.asciz	"eeprom: scyc: %i"

l_.str.4:                               ; @.str.4
	.asciz	"eeprom: write done, addr inc to: %x, last byte=%02x"

l_.str.5:                               ; @.str.5
	.asciz	"eeprom: addr reg done: %x"

l_.str.6:                               ; @.str.6
	.asciz	"eeprom: slave done: %x"

l_.str.7:                               ; @.str.7
	.asciz	"eeprom: addr done: %x"

	.no_dead_strip	_EEPROM_write_do
.subsections_via_symbols
