	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function e100_eeprom_load
_e100_eeprom_load:                      ## @e100_eeprom_load
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	$8, -44(%rbp)
	leaq	-44(%rbp), %rsi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_e100_eeprom_read
	movl	-44(%rbp), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	movl	%eax, (%r15)
	movl	$0, %r13d
	cmpl	$31, %ecx
	jne	LBB0_1
LBB0_5:
	movl	$47802, %edi                    ## imm = 0xBABA
	subl	%r13d, %edi
	callq	_cpu_to_le16
	movq	8(%r15), %rcx
	movslq	(%r15), %rdx
	cmpl	-4(%rcx,%rdx,4), %eax
	je	LBB0_8
## %bb.6:
	movq	_probe@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	callq	_netif_err
	movq	_eeprom_bad_csum_allow@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_8
## %bb.7:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r12
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%ecx, %rax
	cmpq	%rax, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_e100_eeprom_read
	movq	8(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movslq	(%r15), %rcx
	movq	%rcx, %rdx
	decq	%rdx
	cmpq	%rdx, %rbx
	jge	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %edi
	callq	_le16_to_cpu
	addl	%eax, %r13d
	movl	(%r15), %ecx
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_probe,4,2                      ## @probe
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM corrupted\n"

	.comm	_eeprom_bad_csum_allow,4,2      ## @eeprom_bad_csum_allow
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_e100_eeprom_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function e100_eeprom_load
_e100_eeprom_load:                      ; @e100_eeprom_load
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	w8, #8
	str	w8, [sp, #12]
	add	x1, sp, #12
	mov	w2, #0
	bl	_e100_eeprom_read
	mov	w21, #0
	ldr	w8, [sp, #12]
	mov	w9, #1
	lsl	w9, w9, w8
	str	w9, [x19]
	cmp	w8, #31
	b.ne	LBB0_4
LBB0_1:
	mov	w8, #47802
	sub	w0, w8, w21
	bl	_cpu_to_le16
	ldr	x8, [x19, #8]
	ldrsw	x9, [x19]
	add	x8, x8, x9, lsl #2
	ldur	w8, [x8, #-4]
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _probe@GOTPAGE
Lloh1:
	ldr	x8, [x8, _probe@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x19, #4]
Lloh3:
	adrp	x3, l_.str@PAGE
Lloh4:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_netif_err
Lloh5:
	adrp	x8, _eeprom_bad_csum_allow@GOTPAGE
Lloh6:
	ldr	x8, [x8, _eeprom_bad_csum_allow@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
LBB0_3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	mov	x20, #0
	mov	w21, #0
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x20
	bl	_e100_eeprom_read
	ldr	x8, [x19, #8]
	str	w0, [x8, x20, lsl #2]
	ldrsw	x8, [x19]
	sub	x9, x8, #1
	cmp	x20, x9
	b.ge	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_le16_to_cpu
	add	w21, w0, w21
	ldr	w8, [x19]
	b	LBB0_5
LBB0_8:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_probe,4,2                      ; @probe
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM corrupted\n"

	.comm	_eeprom_bad_csum_allow,4,2      ; @eeprom_bad_csum_allow
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_e100_eeprom_load
.subsections_via_symbols
