	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EEPROM_Read@GOTPCREL(%rip), %rcx
	movslq	%esi, %rax
	addq	(%rcx), %rax
	movl	%edi, %r15d
	movq	_Wn0EepromCmd@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	%r15, %rsi
	movq	%rax, %rdi
	callq	_outw
	movl	$-1620, %ebx                    ## imm = 0xF9AC
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	addq	%r15, %rdi
	callq	_inw
	testw	%ax, %ax
	jns	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	1(%rbx), %eax
	testl	%ebx, %ebx
	movl	%eax, %ebx
	jne	LBB0_1
LBB0_3:
	movq	_Wn0EepromData@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_inw                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_Read,8,3                ## @EEPROM_Read
	.comm	_Wn0EepromCmd,8,3               ## @Wn0EepromCmd
	.comm	_Wn0EepromData,8,3              ## @Wn0EepromData
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _EEPROM_Read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEPROM_Read@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	add	x8, x8, w1, sxtw
	mov	w19, w0
Lloh3:
	adrp	x20, _Wn0EepromCmd@GOTPAGE
Lloh4:
	ldr	x20, [x20, _Wn0EepromCmd@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x1, x9, x19
	mov	x0, x8
	bl	_outw
	mov	w8, #-1620
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x21, x8
	ldr	x8, [x20]
	add	x0, x8, x19
	bl	_inw
	tbz	w0, #15, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w21, #1
	cbnz	w21, LBB0_1
LBB0_3:
Lloh5:
	adrp	x8, _Wn0EepromData@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Wn0EepromData@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x0, x8, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_inw
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_Read,8,3                ; @EEPROM_Read
	.comm	_Wn0EepromCmd,8,3               ; @Wn0EepromCmd
	.comm	_Wn0EepromData,8,3              ; @Wn0EepromData
	.no_dead_strip	_read_eeprom
.subsections_via_symbols
