	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fiber_autoneg
_fiber_autoneg:                         ## @fiber_autoneg
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	movq	_MAC_TX_AUTO_NEG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_tw32_f
	movq	_MAC_MODE_PORT_MODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	(%r13), %esi
	movq	_MAC_MODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_MAC_MODE_PORT_MODE_GMII@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_tw32_f
	movl	$40, %edi
	callq	_udelay
	movl	(%rbx), %edi
	movq	_MAC_MODE_SEND_CONFIGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r13), %esi
	callq	_tw32_f
	movl	$40, %edi
	callq	_udelay
	leaq	-80(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movq	_MR_AN_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -80(%rbp)
	movq	_ANEG_STATE_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	$0, -72(%rbp)
	movl	$194999, %r14d                  ## imm = 0x2F9B7
	movq	_ANEG_FAILED@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_tg3_fiber_aneg_smachine
	movl	%eax, %ebx
	movq	_ANEG_DONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	(%r15), %ebx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_udelay
	decl	%r14d
	jne	LBB0_1
LBB0_4:
	movq	_MAC_MODE_SEND_CONFIGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	(%r13), %esi
	movl	%esi, (%r13)
	movq	_MAC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_tw32_f
	movl	$40, %edi
	callq	_udelay
	movl	-76(%rbp), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	-80(%rbp), %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	movq	_ANEG_DONE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ebx
	jne	LBB0_6
## %bb.5:
	movq	_MR_AN_COMPLETE@GOTPCREL(%rip), %rax
	movq	_MR_LINK_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_MR_LP_ADV_FULL_DUPLEX@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	xorl	%eax, %eax
	testl	%ecx, %edx
	setne	%al
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ANEG_FAILED,4,2                ## @ANEG_FAILED
	.comm	_MAC_TX_AUTO_NEG,4,2            ## @MAC_TX_AUTO_NEG
	.comm	_MAC_MODE_PORT_MODE_MASK,4,2    ## @MAC_MODE_PORT_MODE_MASK
	.comm	_MAC_MODE,4,2                   ## @MAC_MODE
	.comm	_MAC_MODE_PORT_MODE_GMII,4,2    ## @MAC_MODE_PORT_MODE_GMII
	.comm	_MAC_MODE_SEND_CONFIGS,4,2      ## @MAC_MODE_SEND_CONFIGS
	.comm	_MR_AN_ENABLE,4,2               ## @MR_AN_ENABLE
	.comm	_ANEG_STATE_UNKNOWN,4,2         ## @ANEG_STATE_UNKNOWN
	.comm	_ANEG_DONE,4,2                  ## @ANEG_DONE
	.comm	_MR_AN_COMPLETE,4,2             ## @MR_AN_COMPLETE
	.comm	_MR_LINK_OK,4,2                 ## @MR_LINK_OK
	.comm	_MR_LP_ADV_FULL_DUPLEX,4,2      ## @MR_LP_ADV_FULL_DUPLEX
	.no_dead_strip	_fiber_autoneg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fiber_autoneg
_fiber_autoneg:                         ; @fiber_autoneg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _MAC_TX_AUTO_NEG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAC_TX_AUTO_NEG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_tw32_f
	ldr	w8, [x21]
Lloh3:
	adrp	x9, _MAC_MODE_PORT_MODE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAC_MODE_PORT_MODE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x23, _MAC_MODE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MAC_MODE@GOTPAGEOFF]
	bic	w8, w8, w9
	ldr	w0, [x23]
Lloh8:
	adrp	x9, _MAC_MODE_PORT_MODE_GMII@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MAC_MODE_PORT_MODE_GMII@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_tw32_f
	mov	w0, #40
	bl	_udelay
	ldr	w0, [x23]
	ldr	w8, [x21]
Lloh11:
	adrp	x24, _MAC_MODE_SEND_CONFIGS@GOTPAGE
Lloh12:
	ldr	x24, [x24, _MAC_MODE_SEND_CONFIGS@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w1, w9, w8
	bl	_tw32_f
	mov	w0, #40
	bl	_udelay
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #24
	bl	_memset
Lloh13:
	adrp	x8, _MR_AN_ENABLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MR_AN_ENABLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [sp, #8]
	orr	w8, w9, w8
	str	w8, [sp, #8]
Lloh16:
	adrp	x8, _ANEG_STATE_UNKNOWN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ANEG_STATE_UNKNOWN@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	mov	w26, #63927
	movk	w26, #2, lsl #16
Lloh19:
	adrp	x25, _ANEG_DONE@GOTPAGE
Lloh20:
	ldr	x25, [x25, _ANEG_DONE@GOTPAGEOFF]
Lloh21:
	adrp	x27, _ANEG_FAILED@GOTPAGE
Lloh22:
	ldr	x27, [x27, _ANEG_FAILED@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x21
	bl	_tg3_fiber_aneg_smachine
	mov	x22, x0
	ldr	w8, [x25]
	ldr	w9, [x27]
	cmp	w0, w8
	ccmp	w0, w9, #4, ne
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_udelay
	subs	w26, w26, #1
	b.ne	LBB0_1
LBB0_3:
	ldr	w8, [x24]
	ldr	w9, [x21]
	bic	w1, w9, w8
	str	w1, [x21]
	ldr	w0, [x23]
	bl	_tw32_f
	mov	w0, #40
	bl	_udelay
	ldp	w8, w9, [sp, #8]
	str	w9, [x20]
	str	w8, [x19]
	ldr	w9, [x25]
	cmp	w22, w9
	b.ne	LBB0_5
; %bb.4:
Lloh23:
	adrp	x9, _MR_AN_COMPLETE@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MR_AN_COMPLETE@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	adrp	x10, _MR_LINK_OK@GOTPAGE
Lloh27:
	ldr	x10, [x10, _MR_LINK_OK@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh29:
	adrp	x10, _MR_LP_ADV_FULL_DUPLEX@GOTPAGE
Lloh30:
	ldr	x10, [x10, _MR_LP_ADV_FULL_DUPLEX@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	cset	w0, ne
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_ANEG_FAILED,4,2                ; @ANEG_FAILED
	.comm	_MAC_TX_AUTO_NEG,4,2            ; @MAC_TX_AUTO_NEG
	.comm	_MAC_MODE_PORT_MODE_MASK,4,2    ; @MAC_MODE_PORT_MODE_MASK
	.comm	_MAC_MODE,4,2                   ; @MAC_MODE
	.comm	_MAC_MODE_PORT_MODE_GMII,4,2    ; @MAC_MODE_PORT_MODE_GMII
	.comm	_MAC_MODE_SEND_CONFIGS,4,2      ; @MAC_MODE_SEND_CONFIGS
	.comm	_MR_AN_ENABLE,4,2               ; @MR_AN_ENABLE
	.comm	_ANEG_STATE_UNKNOWN,4,2         ; @ANEG_STATE_UNKNOWN
	.comm	_ANEG_DONE,4,2                  ; @ANEG_DONE
	.comm	_MR_AN_COMPLETE,4,2             ; @MR_AN_COMPLETE
	.comm	_MR_LINK_OK,4,2                 ; @MR_LINK_OK
	.comm	_MR_LP_ADV_FULL_DUPLEX,4,2      ; @MR_LP_ADV_FULL_DUPLEX
	.no_dead_strip	_fiber_autoneg
.subsections_via_symbols
