	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_g2_eeprom_read8
_mv88e6xxx_g2_eeprom_read8:             ## @mv88e6xxx_g2_eeprom_read8
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	_MV88E6XXX_G2_EEPROM_CMD_OP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, -36(%rbp)
	callq	_mv88e6xxx_g2_eeprom_wait
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_MV88E6390_G2_EEPROM_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_mv88e6xxx_g2_write
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_mv88e6xxx_g2_eeprom_cmd
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_MV88E6XXX_G2_EEPROM_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movq	%r15, %rdi
	callq	_mv88e6xxx_g2_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movzbl	-36(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_G2_EEPROM_CMD_OP_READ,4,2 ## @MV88E6XXX_G2_EEPROM_CMD_OP_READ
	.comm	_MV88E6390_G2_EEPROM_ADDR,4,2   ## @MV88E6390_G2_EEPROM_ADDR
	.comm	_MV88E6XXX_G2_EEPROM_CMD,4,2    ## @MV88E6XXX_G2_EEPROM_CMD
	.no_dead_strip	_mv88e6xxx_g2_eeprom_read8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_g2_eeprom_read8
_mv88e6xxx_g2_eeprom_read8:             ; @mv88e6xxx_g2_eeprom_read8
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MV88E6XXX_G2_EEPROM_CMD_OP_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MV88E6XXX_G2_EEPROM_CMD_OP_READ@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	str	w21, [sp, #12]
	bl	_mv88e6xxx_g2_eeprom_wait
	cbnz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x8, _MV88E6390_G2_EEPROM_ADDR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MV88E6390_G2_EEPROM_ADDR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_mv88e6xxx_g2_write
	cbnz	w0, LBB0_5
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	bl	_mv88e6xxx_g2_eeprom_cmd
	cbnz	w0, LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _MV88E6XXX_G2_EEPROM_CMD@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MV88E6XXX_G2_EEPROM_CMD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_mv88e6xxx_g2_read
	cbnz	w0, LBB0_5
; %bb.4:
	ldrb	w8, [sp, #12]
	str	w8, [x19]
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_G2_EEPROM_CMD_OP_READ,4,2 ; @MV88E6XXX_G2_EEPROM_CMD_OP_READ
	.comm	_MV88E6390_G2_EEPROM_ADDR,4,2   ; @MV88E6390_G2_EEPROM_ADDR
	.comm	_MV88E6XXX_G2_EEPROM_CMD,4,2    ; @MV88E6XXX_G2_EEPROM_CMD
	.no_dead_strip	_mv88e6xxx_g2_eeprom_read8
.subsections_via_symbols
