	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function falcon_xmac_link_ok_retry
_falcon_xmac_link_ok_retry:             ## @falcon_xmac_link_ok_retry
	.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	%esi, %ebx
	movq	%rdi, %r14
	callq	_falcon_xmac_link_ok
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_LOOPBACK_MASK
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_LOOPBACKS_EXTERNAL
	andl	%r12d, %eax
	movq	_LOOPBACKS_WS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_8
## %bb.1:
	movl	4(%r14), %edi
	callq	_ef4_phy_mode_disabled
	testq	%rax, %rax
	jne	LBB0_8
## %bb.2:
	movq	%r14, %rdi
	callq	_falcon_stop_nic_stats
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.3:
	testl	%ebx, %ebx
	je	LBB0_7
## %bb.4:
	decl	%ebx
	movq	_hw@GOTPCREL(%rip), %r13
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movl	(%r14), %edx
	movq	%r14, %rdi
	movq	%r12, %rcx
	callq	_netif_dbg
	movq	%r14, %rdi
	callq	_falcon_reset_xaui
	movl	$200, %edi
	callq	_udelay
	movq	%r14, %rdi
	callq	_falcon_xmac_link_ok
	movl	%eax, %r15d
	addl	$-1, %ebx
	setb	%al
	testl	%r15d, %r15d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testb	%al, %al
	jne	LBB0_5
LBB0_7:
	movq	%r14, %rdi
	callq	_falcon_start_nic_stats
LBB0_8:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LOOPBACKS_WS,4,2               ## @LOOPBACKS_WS
	.comm	_hw,4,2                         ## @hw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bashing xaui\n"

	.no_dead_strip	_falcon_xmac_link_ok_retry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function falcon_xmac_link_ok_retry
_falcon_xmac_link_ok_retry:             ; @falcon_xmac_link_ok_retry
	.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	x21, x1
	mov	x19, x0
	bl	_falcon_xmac_link_ok
	mov	x20, x0
	mov	x0, x19
	bl	_LOOPBACK_MASK
	mov	x22, x0
	mov	x0, x19
	bl	_LOOPBACKS_EXTERNAL
	and	w8, w0, w22
Lloh0:
	adrp	x9, _LOOPBACKS_WS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LOOPBACKS_WS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w8, w9
	b.ne	LBB0_8
; %bb.1:
	ldr	w0, [x19, #4]
	bl	_ef4_phy_mode_disabled
	cbnz	x0, LBB0_8
; %bb.2:
	mov	x0, x19
	bl	_falcon_stop_nic_stats
	cbnz	w20, LBB0_7
; %bb.3:
	cbz	w21, LBB0_7
; %bb.4:
	sub	w22, w21, #1
Lloh3:
	adrp	x23, _hw@GOTPAGE
Lloh4:
	ldr	x23, [x23, _hw@GOTPAGEOFF]
Lloh5:
	adrp	x21, l_.str@PAGE
Lloh6:
	add	x21, x21, l_.str@PAGEOFF
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	ldr	w2, [x19]
	mov	x0, x19
	mov	x3, x21
	bl	_netif_dbg
	mov	x0, x19
	bl	_falcon_reset_xaui
	mov	w0, #200
	bl	_udelay
	mov	x0, x19
	bl	_falcon_xmac_link_ok
	mov	x20, x0
	subs	w22, w22, #1
	cset	w8, hs
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	tbnz	w8, #0, LBB0_5
LBB0_7:
	mov	x0, x19
	bl	_falcon_start_nic_stats
LBB0_8:
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_LOOPBACKS_WS,4,2               ; @LOOPBACKS_WS
	.comm	_hw,4,2                         ; @hw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bashing xaui\n"

	.no_dead_strip	_falcon_xmac_link_ok_retry
.subsections_via_symbols
