	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_EEP_READ@GOTPCREL(%rip), %rcx
	movzbl	%sil, %eax
	orl	(%rcx), %eax
	movq	%rdi, %r15
	movq	_EepromCtrl@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	addq	%rdi, %rsi
	movl	%eax, %edi
	callq	_outw
	movl	$-1001, %ebx                    ## imm = 0xFC17
	movq	_EEP_BUSY@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	incl	%ebx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r14), %rdi
	addq	%r15, %rdi
	callq	_inw
	testl	%eax, (%r12)
	jne	LBB0_1
## %bb.3:
	movq	_EepromData@GOTPCREL(%rip), %rax
	addq	(%rax), %r15
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_inw                            ## TAILCALL
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEP_READ,4,2                   ## @EEP_READ
	.comm	_EepromCtrl,8,3                 ## @EepromCtrl
	.comm	_EEP_BUSY,4,2                   ## @EEP_BUSY
	.comm	_EepromData,8,3                 ## @EepromData
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _EEP_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EEP_READ@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w9, w1, #0xff
	orr	w0, w8, w9
Lloh3:
	adrp	x20, _EepromCtrl@GOTPAGE
Lloh4:
	ldr	x20, [x20, _EepromCtrl@GOTPAGEOFF]
	ldr	x8, [x20]
	add	x1, x8, x19
	bl	_outw
	mov	w21, #-1001
Lloh5:
	adrp	x22, _EEP_BUSY@GOTPAGE
Lloh6:
	ldr	x22, [x22, _EEP_BUSY@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	adds	w21, w21, #1
	b.hs	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20]
	add	x0, x8, x19
	bl	_inw
	ldr	w8, [x22]
	tst	w8, w0
	b.ne	LBB0_1
; %bb.3:
Lloh7:
	adrp	x8, _EepromData@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EepromData@GOTPAGEOFF]
Lloh9:
	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
LBB0_4:
	mov	w0, #0
	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
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EEP_READ,4,2                   ; @EEP_READ
	.comm	_EepromCtrl,8,3                 ; @EepromCtrl
	.comm	_EEP_BUSY,4,2                   ; @EEP_BUSY
	.comm	_EepromData,8,3                 ; @EepromData
	.no_dead_strip	_read_eeprom
.subsections_via_symbols
