	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeprom_i2c_update
_eeprom_i2c_update:                     ## @eeprom_i2c_update
	.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
	movq	_eeprom_i2c@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_58
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	xorl	%eax, %eax
	callq	_Detect_START
	xorl	%eax, %eax
	callq	_Detect_STOP
	cmpl	$0, 32(%rbx)
	je	LBB0_58
## %bb.3:
	cmpl	$0, 28(%rbx)
	jne	LBB0_58
## %bb.4:
	movl	4(%rbx), %eax
	cmpl	$8, %eax
	jg	LBB0_37
## %bb.5:
	movl	8(%rbx), %edx
	orl	20(%rbx), %edx
	movb	$8, %cl
	subb	%al, %cl
	movl	$1, %eax
	shll	%cl, %eax
	movzwl	%dx, %ecx
	cmpl	$0, 12(%rbx)
	je	LBB0_53
## %bb.6:
	movq	_sram@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	orl	%eax, (%rdx,%rcx,4)
	jmp	LBB0_54
LBB0_7:
	xorl	%eax, %eax
	callq	_Detect_START
LBB0_8:
	xorl	%eax, %eax
	callq	_Detect_STOP
	jmp	LBB0_58
LBB0_9:
	xorl	%eax, %eax
	callq	_Detect_START
	xorl	%eax, %eax
	callq	_Detect_STOP
	cmpl	$0, 32(%rbx)
	je	LBB0_58
## %bb.10:
	cmpl	$0, 28(%rbx)
	jne	LBB0_58
## %bb.11:
	movl	4(%rbx), %eax
	cmpl	$8, %eax
	jle	LBB0_56
## %bb.12:
	movl	$1, 4(%rbx)
	cmpl	$0, 12(%rbx)
	je	LBB0_58
## %bb.13:
	movl	$129, (%rbx)
	jmp	LBB0_58
LBB0_14:
	xorl	%eax, %eax
	callq	_Detect_START
	xorl	%eax, %eax
	callq	_Detect_STOP
	cmpl	$0, 32(%rbx)
	je	LBB0_58
## %bb.15:
	cmpl	$0, 28(%rbx)
	jne	LBB0_58
## %bb.16:
	movl	4(%rbx), %eax
	cmpl	$8, %eax
	jg	LBB0_45
## %bb.17:
	movl	36(%rbx), %esi
	incl	%esi
	movb	$9, %cl
	subb	%al, %cl
	movl	$1, %edx
	movl	$1, %edi
	shll	%cl, %edi
	cmpl	%edi, %esi
	jl	LBB0_25
## %bb.18:
	movb	$8, %cl
	jmp	LBB0_19
LBB0_21:
	xorl	%eax, %eax
	callq	_Detect_START
	xorl	%eax, %eax
	callq	_Detect_STOP
	cmpl	$0, 32(%rbx)
	je	LBB0_58
## %bb.22:
	cmpl	$0, 28(%rbx)
	jne	LBB0_58
## %bb.23:
	movl	4(%rbx), %eax
	cmpl	$8, %eax
	jg	LBB0_46
## %bb.24:
	movl	36(%rbx), %esi
	incl	%esi
	movb	$17, %cl
	subb	%al, %cl
	movl	$1, %edx
	movl	$1, %edi
	shll	%cl, %edi
	cmpl	%edi, %esi
	jge	LBB0_47
LBB0_25:
	sarl	20(%rbx)
	jmp	LBB0_56
LBB0_26:
	xorl	%eax, %eax
	callq	_Detect_START
	xorl	%eax, %eax
	callq	_Detect_STOP
	movl	32(%rbx), %edx
	movl	4(%rbx), %eax
	movl	28(%rbx), %ecx
	testl	%edx, %edx
	jne	LBB0_29
## %bb.27:
	testl	%ecx, %ecx
	je	LBB0_29
## %bb.28:
	testl	%eax, %eax
	je	LBB0_37
LBB0_29:
	testl	%edx, %edx
	je	LBB0_58
## %bb.30:
	testl	%ecx, %ecx
	jne	LBB0_58
## %bb.31:
	testl	%eax, %eax
	jle	LBB0_58
## %bb.32:
	cmpl	$7, %eax
	ja	LBB0_49
## %bb.33:
	movl	12(%rbx), %edx
	movb	$7, %cl
	subb	%al, %cl
	shll	%cl, %edx
	orl	%edx, 8(%rbx)
	jmp	LBB0_56
LBB0_34:
	xorl	%eax, %eax
	callq	_Detect_START
	xorl	%eax, %eax
	callq	_Detect_STOP
	movl	32(%rbx), %edx
	movl	4(%rbx), %eax
	movl	28(%rbx), %ecx
	testl	%edx, %edx
	jne	LBB0_38
## %bb.35:
	testl	%ecx, %ecx
	je	LBB0_38
## %bb.36:
	testl	%eax, %eax
	jne	LBB0_38
LBB0_37:
	movl	$1, 4(%rbx)
	jmp	LBB0_58
LBB0_38:
	testl	%edx, %edx
	je	LBB0_58
## %bb.39:
	testl	%ecx, %ecx
	jne	LBB0_58
## %bb.40:
	testl	%eax, %eax
	jle	LBB0_58
## %bb.41:
	leal	-5(%rax), %ecx
	cmpl	$2, %ecx
	ja	LBB0_51
## %bb.42:
	cmpl	$16, 40(%rbx)
	je	LBB0_44
## %bb.43:
	movb	$15, %cl
	subb	%al, %cl
	movl	$1, %edx
	shll	%cl, %edx
	cmpl	%edx, 36(%rbx)
	jge	LBB0_63
LBB0_44:
	movl	12(%rbx), %edx
	movb	$7, %cl
	subb	%al, %cl
	shll	%cl, %edx
	orl	%edx, 20(%rbx)
	jmp	LBB0_67
LBB0_45:
	movl	36(%rbx), %eax
	andl	%eax, 8(%rbx)
	movabsq	$4294967424, %rax               ## imm = 0x100000080
	movq	%rax, (%rbx)
	jmp	LBB0_58
LBB0_46:
	movabsq	$4294967428, %rax               ## imm = 0x100000084
	movq	%rax, (%rbx)
	jmp	LBB0_58
LBB0_47:
	movb	$16, %cl
LBB0_19:
	subb	%al, %cl
	shll	%cl, %edx
	cmpl	$0, 12(%rbx)
	je	LBB0_20
## %bb.48:
	orl	%edx, 8(%rbx)
	jmp	LBB0_56
LBB0_49:
	cmpl	$8, %eax
	jne	LBB0_59
## %bb.50:
	movl	12(%rbx), %eax
	movl	%eax, 16(%rbx)
	movl	$9, %eax
	jmp	LBB0_57
LBB0_51:
	cmpl	$8, %eax
	jne	LBB0_60
## %bb.52:
	movl	12(%rbx), %eax
	movl	%eax, 16(%rbx)
	movl	$8, %eax
	jmp	LBB0_67
LBB0_20:
	notl	%edx
	andl	%edx, 8(%rbx)
	jmp	LBB0_56
LBB0_53:
	notl	%eax
	movq	_sram@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	andl	%eax, (%rdx,%rcx,4)
LBB0_54:
	movl	4(%rbx), %eax
	cmpl	$8, %eax
	jne	LBB0_56
## %bb.55:
	movl	8(%rbx), %ecx
	movl	44(%rbx), %edx
	movl	$65535, %esi                    ## imm = 0xFFFF
	subl	%edx, %esi
	andl	%ecx, %esi
	incl	%ecx
	andl	%edx, %ecx
	orl	%esi, %ecx
	movl	%ecx, 8(%rbx)
LBB0_56:
	incl	%eax
LBB0_57:
	movl	%eax, 4(%rbx)
LBB0_58:
	movl	24(%rbx), %eax
	movl	28(%rbx), %ecx
	movl	%ecx, 32(%rbx)
	movl	%eax, 12(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_59:
	movl	36(%rbx), %eax
	andl	%eax, 8(%rbx)
	xorl	%eax, %eax
	cmpl	$0, 16(%rbx)
	setne	%al
	leal	(%rax,%rax,2), %eax
	orl	$128, %eax
	movl	%eax, (%rbx)
	movl	$1, %eax
	jmp	LBB0_57
LBB0_60:
	jbe	LBB0_67
## %bb.61:
	movl	16(%rbx), %ecx
	cmpl	$16, 40(%rbx)
	jne	LBB0_65
## %bb.62:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	sete	%al
	addl	%eax, %eax
	addl	$131, %eax
	movl	%eax, (%rbx)
	shll	$16, 20(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_67
LBB0_63:
	cmpl	$0, 12(%rbx)
	je	LBB0_66
## %bb.64:
	orl	%edx, 8(%rbx)
	jmp	LBB0_67
LBB0_65:
	xorl	%eax, %eax
	cmpl	$1, %ecx
	movl	$0, %ecx
	adcl	$131, %ecx
	movl	%ecx, (%rbx)
	shll	$8, 20(%rbx)
	jmp	LBB0_67
LBB0_66:
	notl	%edx
	andl	%edx, 8(%rbx)
LBB0_67:
	incl	%eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_58
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_14
	.long	L0_0_set_21
	.long	L0_0_set_26
	.long	L0_0_set_34
	.end_data_region
                                        ## -- End function
	.comm	_eeprom_i2c,48,2                ## @eeprom_i2c
	.comm	_sram,8,3                       ## @sram
	.no_dead_strip	_eeprom_i2c_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function eeprom_i2c_update
lCPI0_0:
	.long	128                             ; 0x80
	.long	1                               ; 0x1
lCPI0_1:
	.long	132                             ; 0x84
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_eeprom_i2c_update:                     ; @eeprom_i2c_update
	.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
Lloh0:
	adrp	x19, _eeprom_i2c@GOTPAGE
Lloh1:
	ldr	x19, [x19, _eeprom_i2c@GOTPAGEOFF]
	ldr	w8, [x19]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_54
; %bb.1:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	bl	_Detect_START
	bl	_Detect_STOP
	ldp	w9, w8, [x19, #28]
	cmp	w8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_54
; %bb.3:
	ldr	w8, [x19, #4]
	cmp	w8, #8
	b.gt	LBB0_45
; %bb.4:
	ldr	w9, [x19, #20]
	ldp	w10, w11, [x19, #8]
	orr	w9, w10, w9
	and	x9, x9, #0xffff
	mov	w10, #8
	sub	w8, w10, w8
	mov	w10, #1
	lsl	w8, w10, w8
Lloh4:
	adrp	x10, _sram@GOTPAGE
Lloh5:
	ldr	x10, [x10, _sram@GOTPAGEOFF]
	cbz	w11, LBB0_40
; %bb.5:
	ldr	x10, [x10]
	lsl	x9, x9, #2
	ldr	w11, [x10, x9]
	orr	w8, w11, w8
	b	LBB0_41
LBB0_6:
	bl	_Detect_START
LBB0_7:
	bl	_Detect_STOP
	b	LBB0_54
LBB0_8:
	bl	_Detect_START
	bl	_Detect_STOP
	ldp	w9, w8, [x19, #28]
	cmp	w8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_54
; %bb.9:
	ldr	w8, [x19, #4]
	cmp	w8, #8
	b.le	LBB0_52
; %bb.10:
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w8, [x19, #12]
	cbz	w8, LBB0_54
; %bb.11:
	mov	w8, #129
	str	w8, [x19]
	b	LBB0_54
LBB0_12:
	bl	_Detect_START
	bl	_Detect_STOP
	ldp	w9, w8, [x19, #28]
	cmp	w8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_54
; %bb.13:
	ldr	w8, [x19, #4]
	ldr	w9, [x19, #36]
	cmp	w8, #8
	b.gt	LBB0_31
; %bb.14:
	add	w10, w9, #1
	mov	w9, #9
	sub	w11, w9, w8
	mov	w9, #1
	lsl	w11, w9, w11
	cmp	w10, w11
	b.lt	LBB0_19
; %bb.15:
	ldr	w10, [x19, #12]
	mov	w11, #8
	b	LBB0_34
LBB0_16:
	bl	_Detect_START
	bl	_Detect_STOP
	ldp	w9, w8, [x19, #28]
	cmp	w8, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_54
; %bb.17:
	ldr	w8, [x19, #4]
	cmp	w8, #8
	b.gt	LBB0_32
; %bb.18:
	ldr	w9, [x19, #36]
	add	w10, w9, #1
	mov	w9, #17
	sub	w11, w9, w8
	mov	w9, #1
	lsl	w11, w9, w11
	cmp	w10, w11
	b.ge	LBB0_33
LBB0_19:
	ldr	w9, [x19, #20]
	asr	w9, w9, #1
	b	LBB0_30
LBB0_20:
	bl	_Detect_START
	bl	_Detect_STOP
	ldp	w10, w9, [x19, #28]
	ldr	w8, [x19, #4]
	cmp	w9, #0
	ccmp	w10, #0, #4, eq
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_45
; %bb.21:
	cmp	w9, #0
	ccmp	w10, #0, #0, ne
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_54
; %bb.22:
	cmp	w8, #7
	b.hi	LBB0_36
; %bb.23:
	mov	w9, #7
	sub	w9, w9, w8
	ldp	w11, w10, [x19, #8]
	lsl	w9, w10, w9
	b	LBB0_43
LBB0_24:
	bl	_Detect_START
	bl	_Detect_STOP
	ldp	w10, w9, [x19, #28]
	ldr	w8, [x19, #4]
	cmp	w9, #0
	ccmp	w10, #0, #4, eq
	ccmp	w8, #0, #0, ne
	b.eq	LBB0_45
; %bb.25:
	cmp	w9, #0
	ccmp	w10, #0, #0, ne
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_54
; %bb.26:
	sub	w9, w8, #5
	cmp	w9, #2
	b.hi	LBB0_38
; %bb.27:
	ldr	w9, [x19, #40]
	cmp	w9, #16
	b.eq	LBB0_29
; %bb.28:
	ldr	w10, [x19, #36]
	mov	w9, #15
	sub	w9, w9, w8
	mov	w11, #1
	lsl	w9, w11, w9
	cmp	w10, w9
	b.ge	LBB0_49
LBB0_29:
	ldr	w9, [x19, #12]
	mov	w10, #7
	sub	w10, w10, w8
	lsl	w9, w9, w10
	ldr	w10, [x19, #20]
	orr	w9, w10, w9
LBB0_30:
	str	w9, [x19, #20]
	b	LBB0_52
LBB0_31:
	ldr	w8, [x19, #8]
	and	w8, w8, w9
	str	w8, [x19, #8]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	b	LBB0_54
LBB0_32:
Lloh8:
	adrp	x8, lCPI0_1@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x19]
	b	LBB0_54
LBB0_33:
	ldr	w10, [x19, #12]
	mov	w11, #16
LBB0_34:
	sub	w11, w11, w8
	lsl	w9, w9, w11
	cbz	w10, LBB0_50
LBB0_35:
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	b	LBB0_51
LBB0_36:
	cmp	w8, #8
	b.ne	LBB0_44
; %bb.37:
	ldr	w8, [x19, #12]
	str	w8, [x19, #16]
	mov	w8, #9
	b	LBB0_53
LBB0_38:
	cmp	w8, #8
	b.ne	LBB0_46
; %bb.39:
	ldr	w8, [x19, #12]
	str	w8, [x19, #16]
	mov	w8, #8
	b	LBB0_52
LBB0_40:
	ldr	x10, [x10]
	lsl	x9, x9, #2
	ldr	w11, [x10, x9]
	bic	w8, w11, w8
LBB0_41:
	str	w8, [x10, x9]
	ldr	w8, [x19, #4]
	cmp	w8, #8
	b.ne	LBB0_52
; %bb.42:
	ldr	w9, [x19, #8]
	ldr	w10, [x19, #44]
	mov	w11, #65535
	sub	w11, w11, w10
	and	w11, w11, w9
	add	w9, w9, #1
	and	w9, w9, w10
LBB0_43:
	orr	w9, w11, w9
	b	LBB0_51
LBB0_44:
	ldr	w8, [x19, #36]
	ldr	w9, [x19, #8]
	and	w8, w9, w8
	str	w8, [x19, #8]
	ldr	w8, [x19, #16]
	mov	w9, #131
	mov	w10, #128
	cmp	w8, #0
	csel	w8, w10, w9, eq
	str	w8, [x19]
LBB0_45:
	mov	w8, #1
	b	LBB0_53
LBB0_46:
	cmp	w8, #9
	b.lo	LBB0_52
; %bb.47:
	ldr	w8, [x19, #40]
	ldr	w9, [x19, #16]
	cmp	w8, #16
	b.ne	LBB0_55
; %bb.48:
	mov	w8, #0
	mov	w10, #131
	mov	w11, #133
	cmp	w9, #0
	csel	w9, w11, w10, eq
	str	w9, [x19]
	ldr	w9, [x19, #20]
	lsl	w9, w9, #16
	b	LBB0_30
LBB0_49:
	ldr	w10, [x19, #12]
	cbnz	w10, LBB0_35
LBB0_50:
	ldr	w10, [x19, #8]
	bic	w9, w10, w9
LBB0_51:
	str	w9, [x19, #8]
LBB0_52:
	add	w8, w8, #1
LBB0_53:
	str	w8, [x19, #4]
LBB0_54:
	ldp	w9, w8, [x19, #24]
	str	w8, [x19, #32]
	str	w9, [x19, #12]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_55:
	mov	w8, #0
	cmp	w9, #0
	mov	w9, #131
	cinc	w9, w9, eq
	str	w9, [x19]
	ldr	w9, [x19, #20]
	lsl	w9, w9, #8
	b	LBB0_30
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_24-LBB0_2)>>2
                                        ; -- End function
	.comm	_eeprom_i2c,48,2                ; @eeprom_i2c
	.comm	_sram,8,3                       ; @sram
	.no_dead_strip	_eeprom_i2c_update
.subsections_via_symbols
