	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_poll_link
_tg3_poll_link:                         ## @tg3_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_USE_LINKCHG_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_tg3_flag
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	_POLL_SERDES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_2
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movq	_SD_STATUS_LINK_CHG@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%ecx, %edx
	je	LBB0_7
## %bb.3:
	movq	_SD_STATUS_UPDATED@GOTPCREL(%rip), %rsi
	notl	%edx
	andl	%edx, %ecx
	orl	(%rsi), %ecx
	movl	%ecx, (%rax)
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_USE_PHYLIB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_tg3_flag
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_MAC_STATUS_SYNC_CHANGED@GOTPCREL(%rip), %rax
	movq	_MAC_STATUS_CFG_CHANGED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_MAC_STATUS@GOTPCREL(%rip), %rax
	movq	_MAC_STATUS_MI_COMPLETION@GOTPCREL(%rip), %rcx
	orl	(%rcx), %esi
	movl	(%rax), %edi
	movq	_MAC_STATUS_LNKSTATE_CHANGED@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_tw32_f
	movl	$40, %edi
	callq	_udelay
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_tg3_setup_phy
LBB0_6:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_spin_unlock                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_USE_LINKCHG_REG,4,2            ## @USE_LINKCHG_REG
	.comm	_POLL_SERDES,4,2                ## @POLL_SERDES
	.comm	_SD_STATUS_LINK_CHG,4,2         ## @SD_STATUS_LINK_CHG
	.comm	_SD_STATUS_UPDATED,4,2          ## @SD_STATUS_UPDATED
	.comm	_USE_PHYLIB,4,2                 ## @USE_PHYLIB
	.comm	_MAC_STATUS,4,2                 ## @MAC_STATUS
	.comm	_MAC_STATUS_SYNC_CHANGED,4,2    ## @MAC_STATUS_SYNC_CHANGED
	.comm	_MAC_STATUS_CFG_CHANGED,4,2     ## @MAC_STATUS_CFG_CHANGED
	.comm	_MAC_STATUS_MI_COMPLETION,4,2   ## @MAC_STATUS_MI_COMPLETION
	.comm	_MAC_STATUS_LNKSTATE_CHANGED,4,2 ## @MAC_STATUS_LNKSTATE_CHANGED
	.no_dead_strip	_tg3_poll_link
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_poll_link
_tg3_poll_link:                         ; @tg3_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	x8, _USE_LINKCHG_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _USE_LINKCHG_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_tg3_flag
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _POLL_SERDES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _POLL_SERDES@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag
	cbz	x0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	w9, [x8]
Lloh6:
	adrp	x10, _SD_STATUS_LINK_CHG@GOTPAGE
Lloh7:
	ldr	x10, [x10, _SD_STATUS_LINK_CHG@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_2
; %bb.4:
Lloh9:
	adrp	x11, _SD_STATUS_UPDATED@GOTPAGE
Lloh10:
	ldr	x11, [x11, _SD_STATUS_UPDATED@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	bic	w9, w9, w10
	orr	w9, w11, w9
	str	w9, [x8]
	mov	x0, x19
	bl	_spin_lock
Lloh12:
	adrp	x8, _USE_PHYLIB@GOTPAGE
Lloh13:
	ldr	x8, [x8, _USE_PHYLIB@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_tg3_flag
	cbz	x0, LBB0_6
; %bb.5:
Lloh15:
	adrp	x8, _MAC_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MAC_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _MAC_STATUS_SYNC_CHANGED@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAC_STATUS_SYNC_CHANGED@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _MAC_STATUS_CFG_CHANGED@GOTPAGE
Lloh22:
	ldr	x9, [x9, _MAC_STATUS_CFG_CHANGED@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _MAC_STATUS_MI_COMPLETION@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MAC_STATUS_MI_COMPLETION@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _MAC_STATUS_LNKSTATE_CHANGED@GOTPAGE
Lloh28:
	ldr	x9, [x9, _MAC_STATUS_LNKSTATE_CHANGED@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w1, w8, w9
	bl	_tw32_f
	mov	w0, #40
	bl	_udelay
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	w1, #0
	bl	_tg3_setup_phy
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_spin_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_USE_LINKCHG_REG,4,2            ; @USE_LINKCHG_REG
	.comm	_POLL_SERDES,4,2                ; @POLL_SERDES
	.comm	_SD_STATUS_LINK_CHG,4,2         ; @SD_STATUS_LINK_CHG
	.comm	_SD_STATUS_UPDATED,4,2          ; @SD_STATUS_UPDATED
	.comm	_USE_PHYLIB,4,2                 ; @USE_PHYLIB
	.comm	_MAC_STATUS,4,2                 ; @MAC_STATUS
	.comm	_MAC_STATUS_SYNC_CHANGED,4,2    ; @MAC_STATUS_SYNC_CHANGED
	.comm	_MAC_STATUS_CFG_CHANGED,4,2     ; @MAC_STATUS_CFG_CHANGED
	.comm	_MAC_STATUS_MI_COMPLETION,4,2   ; @MAC_STATUS_MI_COMPLETION
	.comm	_MAC_STATUS_LNKSTATE_CHANGED,4,2 ; @MAC_STATUS_LNKSTATE_CHANGED
	.no_dead_strip	_tg3_poll_link
.subsections_via_symbols
