	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadEEProm
_ReadEEProm:                            ## @ReadEEProm
	.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	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_MICNG_EE_START@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	leaq	9(%r14), %rbx
	movq	_MICNG_EE_END@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jae	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$12, %r8d
	movq	%r13, %rdi
	movl	$80, %esi
	movq	%r14, %rdx
	leaq	-60(%rbp), %rcx
	callq	_i2c_read_eeprom
	movl	%eax, %ecx
	movl	$-1, %eax
	testl	%ecx, %ecx
	jne	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-60(%rbp), %ecx
	shll	$8, %ecx
	orl	-56(%rbp), %ecx
	movslq	%ecx, %rdx
	movq	_MICNG_EETAG_END0@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_MICNG_EETAG_END1@GOTPCREL(%rip), %rcx
	cmpq	%rdx, (%rcx)
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %ecx
	cmpq	%r15, %rdx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%ecx, %rax
	leaq	(%r14,%rax), %rbx
	addq	$18, %rbx
	addq	%rax, %r14
	addq	$9, %r14
	movq	(%r12), %rax
	cmpq	%rax, %rbx
	jb	LBB0_3
	jmp	LBB0_9
LBB0_1:
	xorl	%edx, %edx
                                        ## implicit-def: $ecx
LBB0_9:
	movslq	%ecx, %rsi
	leaq	(%rbx,%rsi), %rdi
	cmpq	%rax, %rdi
	jbe	LBB0_11
## %bb.10:
	leaq	L_.str(%rip), %rsi
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_11:
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	cmpq	%r8, %rsi
	cmovlq	%rsi, %r8
	xorl	%eax, %eax
	testq	%r8, %r8
	jle	LBB0_14
## %bb.12:
	movq	%r13, %rdi
	movl	$80, %esi
	movq	%rbx, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	callq	_i2c_read_eeprom
	testl	%eax, %eax
	jne	LBB0_14
## %bb.13:
	movslq	-52(%rbp), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	xorl	%eax, %eax
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r12), %rax
	movq	%r15, %rdx
	jmp	LBB0_9
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MICNG_EE_START,8,3             ## @MICNG_EE_START
	.comm	_MICNG_EE_END,8,3               ## @MICNG_EE_END
	.comm	_MICNG_EETAG_END0,8,3           ## @MICNG_EETAG_END0
	.comm	_MICNG_EETAG_END1,8,3           ## @MICNG_EETAG_END1
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reached EOEE @ Tag = %04x Length = %3d\n"

	.comm	_STATUS_BUFFER_OVERFLOW,4,2     ## @STATUS_BUFFER_OVERFLOW
	.no_dead_strip	_ReadEEProm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadEEProm
_ReadEEProm:                            ; @ReadEEProm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x23, [x0]
Lloh3:
	adrp	x8, _MICNG_EE_START@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MICNG_EE_START@GOTPAGEOFF]
Lloh5:
	ldr	x26, [x8]
	add	x25, x26, #9
Lloh6:
	adrp	x27, _MICNG_EE_END@GOTPAGE
Lloh7:
	ldr	x27, [x27, _MICNG_EE_END@GOTPAGEOFF]
	ldr	x9, [x27]
	cmp	x25, x9
	b.hs	LBB0_7
; %bb.1:
	mov	x24, x1
	str	x19, [sp]                       ; 8-byte Folded Spill
Lloh8:
	adrp	x28, _MICNG_EETAG_END0@GOTPAGE
Lloh9:
	ldr	x28, [x28, _MICNG_EETAG_END0@GOTPAGEOFF]
Lloh10:
	adrp	x19, _MICNG_EETAG_END1@GOTPAGE
Lloh11:
	ldr	x19, [x19, _MICNG_EETAG_END1@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #12
	mov	x0, x21
	mov	w1, #80
	mov	x2, x26
	mov	w4, #12
	bl	_i2c_read_eeprom
	cbnz	w0, LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w8, w9, [sp, #12]
	orr	w8, w9, w8, lsl #8
	sxtw	x10, w8
	ldr	x8, [x28]
	ldr	x9, [x19]
	cmp	x8, x10
	ccmp	x9, x10, #4, ne
	b.eq	LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [sp, #20]
	cmp	x10, x24
	b.eq	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x9, w8
	add	x9, x26, x9
	add	x26, x9, #9
	add	x25, x9, #18
	ldr	x9, [x27]
	cmp	x25, x9
	b.lo	LBB0_2
; %bb.6:
	mov	x24, x10
	b	LBB0_10
LBB0_7:
	mov	x24, #0
                                        ; implicit-def: $w8
	b	LBB0_11
LBB0_8:
	mov	w0, #-1
	b	LBB0_17
LBB0_9:
	ldr	x9, [x27]
LBB0_10:
	ldr	x19, [sp]                       ; 8-byte Folded Reload
LBB0_11:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x3, w8
	add	x8, x25, x3
	cmp	x8, x9
	b.ls	LBB0_13
; %bb.12:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	mov	x2, x24
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_dev_err
	mov	w0, #-1
	b	LBB0_17
LBB0_13:
	cmp	x3, x22
	csel	x4, x3, x22, lt
	cmp	x4, #1
	b.lt	LBB0_16
; %bb.14:
	mov	x0, x21
	mov	w1, #80
	mov	x2, x25
	mov	x3, x20
	bl	_i2c_read_eeprom
	cbnz	w0, LBB0_17
; %bb.15:
	ldrsw	x8, [sp, #20]
	str	x8, [x19]
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldr	x8, [sp, #24]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MICNG_EE_START,8,3             ; @MICNG_EE_START
	.comm	_MICNG_EE_END,8,3               ; @MICNG_EE_END
	.comm	_MICNG_EETAG_END0,8,3           ; @MICNG_EETAG_END0
	.comm	_MICNG_EETAG_END1,8,3           ; @MICNG_EETAG_END1
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reached EOEE @ Tag = %04x Length = %3d\n"

	.comm	_STATUS_BUFFER_OVERFLOW,4,2     ; @STATUS_BUFFER_OVERFLOW
	.no_dead_strip	_ReadEEProm
.subsections_via_symbols
