	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_test_and_report_link_chg
_tg3_test_and_report_link_chg:          ## @tg3_test_and_report_link_chg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	cmpl	%esi, (%rdi)
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	testl	%esi, %esi
	je	LBB0_3
## %bb.2:
	callq	_netif_carrier_on
	jmp	LBB0_5
LBB0_3:
	callq	_netif_carrier_off
	movl	4(%rbx), %eax
	movq	_TG3_PHYFLG_MII_SERDES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movq	_TG3_PHYFLG_PARALLEL_DETECT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, 4(%rbx)
LBB0_5:
	movq	%rbx, %rdi
	callq	_tg3_link_report
	movl	$1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TG3_PHYFLG_MII_SERDES,4,2      ## @TG3_PHYFLG_MII_SERDES
	.comm	_TG3_PHYFLG_PARALLEL_DETECT,4,2 ## @TG3_PHYFLG_PARALLEL_DETECT
	.no_dead_strip	_tg3_test_and_report_link_chg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_test_and_report_link_chg
_tg3_test_and_report_link_chg:          ; @tg3_test_and_report_link_chg
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	ldr	w0, [x0, #8]
	cbz	w1, LBB0_4
; %bb.3:
	bl	_netif_carrier_on
	b	LBB0_6
LBB0_4:
	bl	_netif_carrier_off
	ldr	w8, [x19, #4]
Lloh0:
	adrp	x9, _TG3_PHYFLG_MII_SERDES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TG3_PHYFLG_MII_SERDES@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
Lloh3:
	adrp	x9, _TG3_PHYFLG_PARALLEL_DETECT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TG3_PHYFLG_PARALLEL_DETECT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x19, #4]
LBB0_6:
	mov	x0, x19
	bl	_tg3_link_report
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TG3_PHYFLG_MII_SERDES,4,2      ; @TG3_PHYFLG_MII_SERDES
	.comm	_TG3_PHYFLG_PARALLEL_DETECT,4,2 ; @TG3_PHYFLG_PARALLEL_DETECT
	.no_dead_strip	_tg3_test_and_report_link_chg
.subsections_via_symbols
