	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6xxx_phy_page_read        ## -- Begin function mv88e6xxx_phy_page_read
	.p2align	4, 0x90
_mv88e6xxx_phy_page_read:               ## @mv88e6xxx_phy_page_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_MV88E6XXX_PHY_PAGE@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_4
LBB0_2:
	movq	%r8, %r15
	movl	%ecx, %ebx
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_mv88e6xxx_phy_page_get
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_mv88e6xxx_phy_read
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_mv88e6xxx_phy_page_put
	movl	%ebx, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MV88E6XXX_PHY_PAGE,4,2         ## @MV88E6XXX_PHY_PAGE
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mv88e6xxx_phy_page_read        ; -- Begin function mv88e6xxx_phy_page_read
	.p2align	2
_mv88e6xxx_phy_page_read:               ; @mv88e6xxx_phy_page_read
	.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, _MV88E6XXX_PHY_PAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MV88E6XXX_PHY_PAGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w3
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_2:
	mov	x21, x4
	mov	x22, x3
	mov	x19, x1
	mov	x20, x0
	bl	_mv88e6xxx_phy_page_get
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	bl	_mv88e6xxx_phy_read
	mov	x21, x0
	mov	x0, x20
	mov	x1, x19
	bl	_mv88e6xxx_phy_page_put
	mov	x0, x21
LBB0_4:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MV88E6XXX_PHY_PAGE,4,2         ; @MV88E6XXX_PHY_PAGE
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
