	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc95xx_read_eeprom
_smsc95xx_read_eeprom:                  ## @smsc95xx_read_eeprom
	.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	%rcx, %r14
	movl	%edx, %r12d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	testq	%r14, %r14
	sete	%dil
	callq	_BUG_ON
	movq	%rbx, %rdi
	callq	_smsc95xx_eeprom_confirm_not_busy
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	testl	%r12d, %r12d
	jle	LBB0_5
## %bb.2:
	movl	%r12d, %r12d
	movl	%r15d, %r13d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r13), %edx
	movq	_E2P_CMD_READ_@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_E2P_CMD_BUSY_@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_E2P_CMD_ADDR_@GOTPCREL(%rip), %rcx
	andl	(%rcx), %edx
	orl	%eax, %edx
	movl	%edx, -44(%rbp)
	movq	_E2P_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smsc95xx_write_reg
	movq	%rbx, %rdi
	callq	_smsc95xx_wait_eeprom
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_E2P_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rdx
	callq	_smsc95xx_read_reg
	movzbl	-44(%rbp), %eax
	movl	%eax, (%r14,%r15,4)
	incq	%r15
	cmpq	%r15, %r12
	jne	LBB0_3
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_E2P_CMD_BUSY_,4,2              ## @E2P_CMD_BUSY_
	.comm	_E2P_CMD_READ_,4,2              ## @E2P_CMD_READ_
	.comm	_E2P_CMD_ADDR_,4,2              ## @E2P_CMD_ADDR_
	.comm	_E2P_CMD,4,2                    ## @E2P_CMD
	.comm	_E2P_DATA,4,2                   ## @E2P_DATA
	.no_dead_strip	_smsc95xx_read_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc95xx_read_eeprom
_smsc95xx_read_eeprom:                  ; @smsc95xx_read_eeprom
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_BUG_ON
	cmp	x19, #0
	cset	w0, eq
	bl	_BUG_ON
	mov	x0, x21
	bl	_smsc95xx_eeprom_confirm_not_busy
	cbnz	w0, LBB0_6
; %bb.1:
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.2:
	mov	w22, w22
Lloh0:
	adrp	x23, _E2P_CMD_BUSY_@GOTPAGE
Lloh1:
	ldr	x23, [x23, _E2P_CMD_BUSY_@GOTPAGEOFF]
Lloh2:
	adrp	x24, _E2P_CMD_READ_@GOTPAGE
Lloh3:
	ldr	x24, [x24, _E2P_CMD_READ_@GOTPAGEOFF]
Lloh4:
	adrp	x25, _E2P_CMD_ADDR_@GOTPAGE
Lloh5:
	ldr	x25, [x25, _E2P_CMD_ADDR_@GOTPAGEOFF]
Lloh6:
	adrp	x26, _E2P_CMD@GOTPAGE
Lloh7:
	ldr	x26, [x26, _E2P_CMD@GOTPAGEOFF]
Lloh8:
	adrp	x27, _E2P_DATA@GOTPAGE
Lloh9:
	ldr	x27, [x27, _E2P_DATA@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x23]
	ldr	w9, [x24]
	orr	w8, w9, w8
	ldr	w9, [x25]
	and	w9, w9, w20
	orr	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_smsc95xx_write_reg
	mov	x0, x21
	bl	_smsc95xx_wait_eeprom
	tbnz	w0, #31, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x27]
	add	x2, sp, #12
	mov	x0, x21
	bl	_smsc95xx_read_reg
	ldrb	w8, [sp, #12]
	str	w8, [x19], #4
	add	w20, w20, #1
	subs	x22, x22, #1
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_E2P_CMD_BUSY_,4,2              ; @E2P_CMD_BUSY_
	.comm	_E2P_CMD_READ_,4,2              ; @E2P_CMD_READ_
	.comm	_E2P_CMD_ADDR_,4,2              ; @E2P_CMD_ADDR_
	.comm	_E2P_CMD,4,2                    ; @E2P_CMD
	.comm	_E2P_DATA,4,2                   ; @E2P_DATA
	.no_dead_strip	_smsc95xx_read_eeprom
.subsections_via_symbols
