	.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	%edi, %r14d
	movq	_DLINK_EEPROM@GOTPCREL(%rip), %rax
	addl	(%rax), %r14d
	movq	_EE_READ_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$8, %eax
	orl	%esi, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_outb
	movq	_EE_EEP@GOTPCREL(%rip), %r15
	movq	_EE_CS@GOTPCREL(%rip), %r12
	movzwl	(%r12), %eax
	orw	(%r15), %ax
	movswl	%ax, %edi
	movl	%r14d, %esi
	callq	_outb
	movl	$10, %ebx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_EE_DO@GOTPCREL(%rip), %rax
	movzwl	(%rax), %r13d
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movzwl	(%r15), %eax
	orw	%r13w, %ax
	orw	(%r12), %ax
	movswl	%ax, %edi
	movl	%r14d, %esi
	callq	_outb_p
	orw	(%r15), %r13w
	orw	(%r12), %r13w
	movq	_EE_CK@GOTPCREL(%rip), %rax
	orw	(%rax), %r13w
	movswl	%r13w, %edi
	movl	%r14d, %esi
	callq	_outb_p
	addl	$-1, %ebx
	jae	LBB0_5
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	btl	%ebx, %eax
	jb	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_4
LBB0_5:
	movzwl	(%r12), %eax
	orw	(%r15), %ax
	movswl	%ax, %edi
	movl	%r14d, %esi
	callq	_outb
	xorl	%ebx, %ebx
	movl	$17, %r13d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	(%r12), %eax
	orw	(%r15), %ax
	movq	_EE_CK@GOTPCREL(%rip), %rcx
	orw	(%rcx), %ax
	movswl	%ax, %edi
	movl	%r14d, %esi
	callq	_outb_p
	movl	%r14d, %edi
	callq	_inb
	xorl	%ecx, %ecx
	movq	_EE_DI@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	setne	%cl
	leal	(%rcx,%rbx,2), %ebx
	movzwl	(%r12), %eax
	orw	(%r15), %ax
	movswl	%ax, %edi
	movl	%r14d, %esi
	callq	_outb_p
	decl	%r13d
	cmpl	$1, %r13d
	ja	LBB0_6
## %bb.7:
	xorl	%edi, %edi
	movl	%r14d, %esi
	callq	_outb
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DLINK_EEPROM,4,2               ## @DLINK_EEPROM
	.comm	_EE_READ_CMD,4,2                ## @EE_READ_CMD
	.comm	_EE_EEP,2,1                     ## @EE_EEP
	.comm	_EE_CS,2,1                      ## @EE_CS
	.comm	_EE_DO,2,1                      ## @EE_DO
	.comm	_EE_CK,2,1                      ## @EE_CK
	.comm	_EE_DI,4,2                      ## @EE_DI
	.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x8, _DLINK_EEPROM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DLINK_EEPROM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w19, w8, w0
Lloh3:
	adrp	x8, _EE_READ_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EE_READ_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	orr	w20, w1, w8, lsl #8
	mov	w0, #0
	mov	x1, x19
	bl	_outb
Lloh6:
	adrp	x21, _EE_EEP@GOTPAGE
Lloh7:
	ldr	x21, [x21, _EE_EEP@GOTPAGEOFF]
	ldrh	w8, [x21]
Lloh8:
	adrp	x22, _EE_CS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _EE_CS@GOTPAGEOFF]
	ldrh	w9, [x22]
	orr	w8, w9, w8
	sxth	w0, w8
	mov	x1, x19
	bl	_outb
	mov	w24, #10
Lloh10:
	adrp	x25, _EE_DO@GOTPAGE
Lloh11:
	ldr	x25, [x25, _EE_DO@GOTPAGEOFF]
Lloh12:
	adrp	x23, _EE_CK@GOTPAGE
Lloh13:
	ldr	x23, [x23, _EE_CK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w8, w20, w24
	sbfx	w8, w8, #0, #1
	ldrh	w9, [x25]
	ldrh	w10, [x21]
	ldrh	w11, [x22]
	and	w26, w8, w9
	orr	w8, w26, w10
	orr	w8, w8, w11
	sxth	w0, w8
	mov	x1, x19
	bl	_outb_p
	ldrh	w8, [x21]
	ldrh	w9, [x22]
	ldrh	w10, [x23]
	orr	w8, w8, w26
	orr	w8, w8, w9
	orr	w8, w8, w10
	sxth	w0, w8
	mov	x1, x19
	bl	_outb_p
	sub	w24, w24, #1
	cmn	w24, #1
	b.ne	LBB0_1
; %bb.2:
	ldrh	w8, [x21]
	ldrh	w9, [x22]
	orr	w8, w9, w8
	sxth	w0, w8
	mov	x1, x19
	bl	_outb
	mov	w20, #0
	mov	w24, #17
Lloh14:
	adrp	x25, _EE_DI@GOTPAGE
Lloh15:
	ldr	x25, [x25, _EE_DI@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrh	w8, [x21]
	ldrh	w9, [x22]
	orr	w8, w9, w8
	ldrh	w9, [x23]
	orr	w8, w8, w9
	sxth	w0, w8
	mov	x1, x19
	bl	_outb_p
	mov	x0, x19
	bl	_inb
	ldr	w8, [x25]
	tst	w8, w0
	cset	w8, ne
	bfi	w8, w20, #1, #31
	mov	x20, x8
	ldrh	w8, [x21]
	ldrh	w9, [x22]
	orr	w8, w9, w8
	sxth	w0, w8
	mov	x1, x19
	bl	_outb_p
	sub	w24, w24, #1
	cmp	w24, #1
	b.hi	LBB0_3
; %bb.4:
	mov	w0, #0
	mov	x1, x19
	bl	_outb
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DLINK_EEPROM,4,2               ; @DLINK_EEPROM
	.comm	_EE_READ_CMD,4,2                ; @EE_READ_CMD
	.comm	_EE_EEP,2,1                     ; @EE_EEP
	.comm	_EE_CS,2,1                      ; @EE_CS
	.comm	_EE_DO,2,1                      ; @EE_DO
	.comm	_EE_CK,2,1                      ; @EE_CK
	.comm	_EE_DI,4,2                      ; @EE_DI
	.no_dead_strip	_read_eeprom
.subsections_via_symbols
