	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdio_ctrl_phy_82552_v
_mdio_ctrl_phy_82552_v:                 ## @mdio_ctrl_phy_82552_v
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r12
	movq	%rdi, %r13
	movq	_MII_BMCR@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	jne	LBB0_7
## %bb.1:
	movq	_mdi_write@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_7
## %bb.2:
	movq	_BMCR_ANRESTART@GOTPCREL(%rip), %rax
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_7
## %bb.3:
	movl	(%r13), %esi
	movl	4(%r13), %edi
	movq	_MII_ADVERTISE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_mdio_read
	movq	_ADVERTISE_100FULL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rax
	movq	_BMCR_FULLDPLX@GOTPCREL(%rip), %rcx
	orl	(%rax), %ebx
	orl	(%rcx), %ebx
	jmp	LBB0_7
LBB0_5:
	movq	_ADVERTISE_100HALF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	movq	_BMCR_SPEED100@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
LBB0_7:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	movl	%ebx, %r8d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mdio_ctrl_hw                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_BMCR,8,3                   ## @MII_BMCR
	.comm	_mdi_write,8,3                  ## @mdi_write
	.comm	_BMCR_ANRESTART,4,2             ## @BMCR_ANRESTART
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_MII_ADVERTISE,4,2              ## @MII_ADVERTISE
	.comm	_ADVERTISE_100FULL,4,2          ## @ADVERTISE_100FULL
	.comm	_BMCR_SPEED100,4,2              ## @BMCR_SPEED100
	.comm	_BMCR_FULLDPLX,4,2              ## @BMCR_FULLDPLX
	.comm	_ADVERTISE_100HALF,4,2          ## @ADVERTISE_100HALF
	.no_dead_strip	_mdio_ctrl_phy_82552_v
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdio_ctrl_phy_82552_v
_mdio_ctrl_phy_82552_v:                 ; @mdio_ctrl_phy_82552_v
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _MII_BMCR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MII_BMCR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _mdi_write@GOTPAGE
Lloh4:
	ldr	x9, [x9, _mdi_write@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x3
	ccmp	x9, x2, #0, eq
	b.ne	LBB0_6
; %bb.1:
Lloh6:
	adrp	x8, _BMCR_ANRESTART@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BMCR_ANRESTART@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w19
	b.eq	LBB0_6
; %bb.2:
	ldp	w1, w0, [x23]
Lloh12:
	adrp	x8, _MII_ADVERTISE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MII_ADVERTISE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	bl	_mdio_read
Lloh15:
	adrp	x8, _ADVERTISE_100FULL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADVERTISE_100FULL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
Lloh18:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _BMCR_FULLDPLX@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BMCR_FULLDPLX@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w8, w19
	orr	w19, w8, w9
	b	LBB0_6
LBB0_4:
Lloh24:
	adrp	x8, _ADVERTISE_100HALF@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ADVERTISE_100HALF@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh27:
	adrp	x8, _BMCR_SPEED100@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BMCR_SPEED100@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_6:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_mdio_ctrl_hw
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_BMCR,8,3                   ; @MII_BMCR
	.comm	_mdi_write,8,3                  ; @mdi_write
	.comm	_BMCR_ANRESTART,4,2             ; @BMCR_ANRESTART
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_MII_ADVERTISE,4,2              ; @MII_ADVERTISE
	.comm	_ADVERTISE_100FULL,4,2          ; @ADVERTISE_100FULL
	.comm	_BMCR_SPEED100,4,2              ; @BMCR_SPEED100
	.comm	_BMCR_FULLDPLX,4,2              ; @BMCR_FULLDPLX
	.comm	_ADVERTISE_100HALF,4,2          ; @ADVERTISE_100HALF
	.no_dead_strip	_mdio_ctrl_phy_82552_v
.subsections_via_symbols
