	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mv88e6xxx_mdio_read
_mv88e6xxx_mdio_read:                   ## @mv88e6xxx_mdio_read
	.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	(%rdi), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	%rbx, %rdi
	callq	_mv88e6xxx_reg_lock
	movq	(%rbx), %rax
	movq	8(%rax), %rax
	leaq	-36(%rbp), %r8
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	*(%rax)
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_mv88e6xxx_reg_unlock
	movq	_MII_PHYSID2@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_6
## %bb.3:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_MV88E6XXX_FAMILY_6165@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movl	-36(%rbp), %eax
	testl	$1008, %eax                     ## imm = 0x3F0
	jne	LBB0_6
## %bb.5:
	movq	_MV88E6XXX_PORT_SWITCH_ID_PROD_6390@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	sarl	$4, %ecx
	orl	%eax, %ecx
	movl	%ecx, -36(%rbp)
LBB0_6:
	testl	%r14d, %r14d
	jne	LBB0_8
## %bb.7:
	movl	-36(%rbp), %r14d
	jmp	LBB0_8
LBB0_1:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.comm	_MII_PHYSID2,4,2                ## @MII_PHYSID2
	.comm	_MV88E6XXX_FAMILY_6165,8,3      ## @MV88E6XXX_FAMILY_6165
	.comm	_MV88E6XXX_PORT_SWITCH_ID_PROD_6390,4,2 ## @MV88E6XXX_PORT_SWITCH_ID_PROD_6390
	.no_dead_strip	_mv88e6xxx_mdio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mv88e6xxx_mdio_read
_mv88e6xxx_mdio_read:                   ; @mv88e6xxx_mdio_read
	.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
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	x0, x20
	bl	_mv88e6xxx_reg_lock
	ldr	x8, [x20]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	mov	x3, x19
	blr	x8
	mov	x21, x0
	mov	x0, x20
	bl	_mv88e6xxx_reg_unlock
Lloh0:
	adrp	x8, _MII_PHYSID2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_PHYSID2@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _MV88E6XXX_FAMILY_6165@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MV88E6XXX_FAMILY_6165@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:
	ldr	w8, [sp, #12]
	tst	w8, #0x3f0
	b.ne	LBB0_5
; %bb.4:
Lloh6:
	adrp	x9, _MV88E6XXX_PORT_SWITCH_ID_PROD_6390@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MV88E6XXX_PORT_SWITCH_ID_PROD_6390@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9, asr #4
	str	w8, [sp, #12]
LBB0_5:
	ldr	w8, [sp, #12]
	cmp	w21, #0
	csel	w0, w8, w21, eq
	b	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.comm	_MII_PHYSID2,4,2                ; @MII_PHYSID2
	.comm	_MV88E6XXX_FAMILY_6165,8,3      ; @MV88E6XXX_FAMILY_6165
	.comm	_MV88E6XXX_PORT_SWITCH_ID_PROD_6390,4,2 ; @MV88E6XXX_PORT_SWITCH_ID_PROD_6390
	.no_dead_strip	_mv88e6xxx_mdio_read
.subsections_via_symbols
