	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_eeprom
_read_eeprom:                           ## @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
	movl	%esi, %r12d
	movl	%edi, %ebx
	movq	%rdx, %rdi
	callq	_netdev_priv
	movl	(%rax), %r14d
	addl	%ebx, %r14d
	movq	_EE_READ_CMD@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_EECS@GOTPCREL(%rip), %rax
	movzwl	(%rax), %r15d
	movl	%ebx, %edi
	callq	_eepro_sw2bank1
	movq	_STATUS_REG@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	addw	%bx, %ax
	movswl	%ax, %esi
	xorl	%edi, %edi
	callq	_outb
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_eepro_sw2bank2
	movswl	%r14w, %r13d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movswl	%r15w, %r15d
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_outb
	movl	$8, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	orl	%r15d, %eax
	movswl	%ax, %ebx
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_outb
	movq	_EESK@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	orw	%bx, %ax
	movswl	%ax, %edi
	movl	%r13d, %esi
	callq	_outb
	xorl	%eax, %eax
	callq	_eeprom_delay
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_outb
	xorl	%eax, %eax
	callq	_eeprom_delay
	addl	$-1, %r14d
	jae	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	btl	%r14d, %r12d
	movl	$0, %eax
	jae	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_EEDI@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	jmp	LBB0_3
LBB0_4:
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_outb
	movl	$17, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_EESK@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	orw	%r15w, %ax
	movswl	%ax, %edi
	movl	%r13d, %esi
	callq	_outb
	xorl	%eax, %eax
	callq	_eeprom_delay
	movl	%r13d, %edi
	callq	_inb
	xorl	%r12d, %r12d
	movq	_EEDO@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	setne	%r12b
	movl	%r15d, %edi
	movl	%r13d, %esi
	callq	_outb
	xorl	%eax, %eax
	callq	_eeprom_delay
	andl	$32767, %ebx                    ## imm = 0x7FFF
	leal	(%r12,%rbx,2), %ebx
	decl	%r14d
	cmpl	$1, %r14d
	ja	LBB0_5
## %bb.6:
	movq	_EECS@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	notl	%eax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	andl	%eax, %r14d
	movq	_EESK@GOTPCREL(%rip), %rax
	movzwl	(%rax), %eax
	orw	%r14w, %ax
	movswl	%ax, %edi
	movl	%r13d, %esi
	callq	_outb
	xorl	%eax, %eax
	callq	_eeprom_delay
	movswl	%r14w, %edi
	movl	%r13d, %esi
	callq	_outb
	xorl	%eax, %eax
	callq	_eeprom_delay
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_eepro_sw2bank0
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EE_READ_CMD,4,2                ## @EE_READ_CMD
	.comm	_EECS,2,1                       ## @EECS
	.comm	_STATUS_REG,2,1                 ## @STATUS_REG
	.comm	_EEDI,2,1                       ## @EEDI
	.comm	_EESK,2,1                       ## @EESK
	.comm	_EEDO,4,2                       ## @EEDO
	.no_dead_strip	_read_eeprom
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_eeprom
_read_eeprom:                           ; @read_eeprom
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
	mov	x0, x2
	bl	_netdev_priv
	ldr	w8, [x0]
	add	w25, w8, w19
Lloh0:
	adrp	x8, _EE_READ_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EE_READ_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w22, w8, w20
Lloh3:
	adrp	x23, _EECS@GOTPAGE
Lloh4:
	ldr	x23, [x23, _EECS@GOTPAGEOFF]
	ldrsh	w21, [x23]
	and	w24, w21, #0xffff
	mov	x0, x19
	bl	_eepro_sw2bank1
Lloh5:
	adrp	x8, _STATUS_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATUS_REG@GOTPAGEOFF]
	ldrh	w8, [x8]
	add	w8, w8, w19
	sxth	w1, w8
	mov	w0, #0
	bl	_outb
	mov	x0, x19
	bl	_eepro_sw2bank2
	sxth	w20, w25
	mov	x0, x21
	mov	x1, x20
	bl	_outb
	mov	w26, #8
Lloh7:
	adrp	x27, _EEDI@GOTPAGE
Lloh8:
	ldr	x27, [x27, _EEDI@GOTPAGEOFF]
Lloh9:
	adrp	x25, _EESK@GOTPAGE
Lloh10:
	ldr	x25, [x25, _EESK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w22, w26
	sbfx	w8, w8, #0, #1
	ldrh	w9, [x27]
	and	w8, w8, w9
	orr	w28, w8, w24
	sxth	w21, w28
	mov	x0, x21
	mov	x1, x20
	bl	_outb
	ldrh	w8, [x25]
	orr	w8, w28, w8
	sxth	w0, w8
	mov	x1, x20
	bl	_outb
	bl	_eeprom_delay
	mov	x0, x21
	mov	x1, x20
	bl	_outb
	bl	_eeprom_delay
	sub	w26, w26, #1
	cmn	w26, #1
	b.ne	LBB0_1
; %bb.2:
	sxth	w22, w24
	mov	x0, x22
	mov	x1, x20
	bl	_outb
	mov	w21, #0
	mov	w26, #17
Lloh11:
	adrp	x27, _EEDO@GOTPAGE
Lloh12:
	ldr	x27, [x27, _EEDO@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrh	w8, [x25]
	orr	w8, w8, w24
	sxth	w0, w8
	mov	x1, x20
	bl	_outb
	bl	_eeprom_delay
	mov	x0, x20
	bl	_inb
	ldr	w8, [x27]
	tst	w8, w0
	cset	w28, ne
	mov	x0, x22
	mov	x1, x20
	bl	_outb
	bl	_eeprom_delay
	bfi	w28, w21, #1, #15
	mov	x21, x28
	sub	w26, w26, #1
	cmp	w26, #1
	b.hi	LBB0_3
; %bb.4:
	ldrh	w8, [x23]
	bic	w22, w24, w8
	ldrh	w8, [x25]
	orr	w8, w22, w8
	sxth	w0, w8
	mov	x1, x20
	bl	_outb
	bl	_eeprom_delay
	sxth	w0, w22
	mov	x1, x20
	bl	_outb
	bl	_eeprom_delay
	mov	x0, x19
	bl	_eepro_sw2bank0
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_EE_READ_CMD,4,2                ; @EE_READ_CMD
	.comm	_EECS,2,1                       ; @EECS
	.comm	_STATUS_REG,2,1                 ; @STATUS_REG
	.comm	_EEDI,2,1                       ; @EEDI
	.comm	_EESK,2,1                       ; @EESK
	.comm	_EEDO,4,2                       ; @EEDO
	.no_dead_strip	_read_eeprom
.subsections_via_symbols
