	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm5461_poll_link
_bcm5461_poll_link:                     ## @bcm5461_poll_link
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_MII_NCONFIG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	$31744, %edx                    ## imm = 0x7C00
	callq	_sungem_phy_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_sungem_phy_read
	movq	_BCM5461_MODE_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	sarl	%eax
	movq	_BCM54XX_COPPER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_genmii_poll_link               ## TAILCALL
LBB0_1:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$28672, %edx                    ## imm = 0x7000
	callq	_sungem_phy_write
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_sungem_phy_read
	movq	_BCM5461_FIBER_LINK@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	testl	%eax, (%rdx)
	setne	%cl
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MII_NCONFIG,4,2                ## @MII_NCONFIG
	.comm	_BCM5461_MODE_MASK,4,2          ## @BCM5461_MODE_MASK
	.comm	_BCM54XX_COPPER,4,2             ## @BCM54XX_COPPER
	.comm	_BCM5461_FIBER_LINK,4,2         ## @BCM5461_FIBER_LINK
	.no_dead_strip	_bcm5461_poll_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm5461_poll_link
_bcm5461_poll_link:                     ; @bcm5461_poll_link
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x20, _MII_NCONFIG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MII_NCONFIG@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	w2, #31744
	bl	_sungem_phy_write
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sungem_phy_read
Lloh2:
	adrp	x8, _BCM5461_MODE_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BCM5461_MODE_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh5:
	adrp	x9, _BCM54XX_COPPER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BCM54XX_COPPER@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, w8, asr #1
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_genmii_poll_link
LBB0_2:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #28672
	bl	_sungem_phy_write
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sungem_phy_read
Lloh8:
	adrp	x8, _BCM5461_FIBER_LINK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BCM5461_FIBER_LINK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, ne
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MII_NCONFIG,4,2                ; @MII_NCONFIG
	.comm	_BCM5461_MODE_MASK,4,2          ; @BCM5461_MODE_MASK
	.comm	_BCM54XX_COPPER,4,2             ; @BCM54XX_COPPER
	.comm	_BCM5461_FIBER_LINK,4,2         ; @BCM5461_FIBER_LINK
	.no_dead_strip	_bcm5461_poll_link
.subsections_via_symbols
