	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tg3_setup_fiber_by_hand
_tg3_setup_fiber_by_hand:               ## @tg3_setup_fiber_by_hand
	.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
	movq	_MAC_STATUS_PCS_SYNCED@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_18
## %bb.1:
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	_AUTONEG_ENABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_19
## %bb.2:
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_fiber_autoneg
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_12
## %bb.3:
	movl	-48(%rbp), %r15d
	movq	_ANEG_CFG_PS1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r15d, %eax
	je	LBB0_5
## %bb.4:
	movq	_ADVERTISE_1000XPAUSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	movq	_ANEG_CFG_PS2@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	je	LBB0_7
## %bb.6:
	movq	_ADVERTISE_1000XPSE_ASYM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_7:
	movl	-44(%rbp), %ebx
	movq	_MR_LP_ADV_SYM_PAUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	je	LBB0_9
## %bb.8:
	movq	_LPA_1000XPAUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_9:
	orl	%eax, %r15d
	movq	_MR_LP_ADV_ASYM_PAUSE@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	je	LBB0_11
## %bb.10:
	movq	_LPA_1000XPAUSE_ASYM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_11:
	orl	%ecx, %ebx
	movl	%ebx, %edi
	callq	_mii_adv_to_ethtool_adv_x
	movl	%eax, 16(%r12)
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	callq	_tg3_setup_flow_control
LBB0_12:
	movl	$29, %ebx
	movq	_MAC_STATUS@GOTPCREL(%rip), %r15
	movq	_MAC_STATUS_SYNC_CHANGED@GOTPCREL(%rip), %r12
	movq	_MAC_STATUS_CFG_CHANGED@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	$20, %edi
	callq	_udelay
	movl	(%r15), %edi
	movl	(%r13), %esi
	orl	(%r12), %esi
	callq	_tw32_f
	movl	$40, %edi
	callq	_udelay
	movl	(%r15), %edi
	callq	_tr32
	movl	(%r13), %edx
	orl	(%r12), %edx
	subl	$1, %ebx
	setb	%cl
	testl	%eax, %edx
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	testb	%cl, %cl
	je	LBB0_13
LBB0_15:
	movl	(%r15), %edi
	callq	_tr32
	movl	%eax, %ecx
	movl	$1, %eax
	testq	%r14, %r14
	jne	LBB0_20
## %bb.16:
	movq	_MAC_STATUS_PCS_SYNCED@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_18
## %bb.17:
	movq	_MAC_STATUS_RCVD_CFG@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	sete	%al
	jmp	LBB0_20
LBB0_18:
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_19:
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_tg3_setup_flow_control
	movq	_MAC_MODE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_MAC_MODE_SEND_CONFIGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r12), %esi
	callq	_tw32_f
	movl	$40, %edi
	callq	_udelay
	movl	(%rbx), %edi
	movl	(%r12), %esi
	callq	_tw32_f
	movl	$40, %edi
	callq	_udelay
	movl	$1, %eax
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC_STATUS_PCS_SYNCED,4,2      ## @MAC_STATUS_PCS_SYNCED
	.comm	_AUTONEG_ENABLE,8,3             ## @AUTONEG_ENABLE
	.comm	_ANEG_CFG_PS1,4,2               ## @ANEG_CFG_PS1
	.comm	_ADVERTISE_1000XPAUSE,4,2       ## @ADVERTISE_1000XPAUSE
	.comm	_ANEG_CFG_PS2,4,2               ## @ANEG_CFG_PS2
	.comm	_ADVERTISE_1000XPSE_ASYM,4,2    ## @ADVERTISE_1000XPSE_ASYM
	.comm	_MR_LP_ADV_SYM_PAUSE,4,2        ## @MR_LP_ADV_SYM_PAUSE
	.comm	_LPA_1000XPAUSE,4,2             ## @LPA_1000XPAUSE
	.comm	_MR_LP_ADV_ASYM_PAUSE,4,2       ## @MR_LP_ADV_ASYM_PAUSE
	.comm	_LPA_1000XPAUSE_ASYM,4,2        ## @LPA_1000XPAUSE_ASYM
	.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_RCVD_CFG,4,2        ## @MAC_STATUS_RCVD_CFG
	.comm	_MAC_MODE,4,2                   ## @MAC_MODE
	.comm	_MAC_MODE_SEND_CONFIGS,4,2      ## @MAC_MODE_SEND_CONFIGS
	.no_dead_strip	_tg3_setup_fiber_by_hand
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tg3_setup_fiber_by_hand
_tg3_setup_fiber_by_hand:               ; @tg3_setup_fiber_by_hand
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x23, _MAC_STATUS_PCS_SYNCED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAC_STATUS_PCS_SYNCED@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w1
	b.eq	LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh2:
	adrp	x9, _AUTONEG_ENABLE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AUTONEG_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.2:
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	bl	_fiber_autoneg
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _ANEG_CFG_PS1@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ANEG_CFG_PS1@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _ADVERTISE_1000XPAUSE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ADVERTISE_1000XPAUSE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh11:
	adrp	x10, _ANEG_CFG_PS2@GOTPAGE
Lloh12:
	ldr	x10, [x10, _ANEG_CFG_PS2@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
Lloh14:
	adrp	x11, _ADVERTISE_1000XPSE_ASYM@GOTPAGE
Lloh15:
	ldr	x11, [x11, _ADVERTISE_1000XPSE_ASYM@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w21, w8, w9
	ldr	w8, [sp, #8]
Lloh17:
	adrp	x9, _MR_LP_ADV_SYM_PAUSE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MR_LP_ADV_SYM_PAUSE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x10, _LPA_1000XPAUSE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _LPA_1000XPAUSE@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w9, w8
	csel	w9, wzr, w10, eq
Lloh23:
	adrp	x10, _MR_LP_ADV_ASYM_PAUSE@GOTPAGE
Lloh24:
	ldr	x10, [x10, _MR_LP_ADV_ASYM_PAUSE@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
Lloh26:
	adrp	x11, _LPA_1000XPAUSE_ASYM@GOTPAGE
Lloh27:
	ldr	x11, [x11, _LPA_1000XPAUSE_ASYM@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x11]
	tst	w10, w8
	csel	w8, wzr, w11, eq
	orr	w22, w8, w9
	mov	x0, x22
	bl	_mii_adv_to_ethtool_adv_x
	str	w0, [x20, #16]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_tg3_setup_flow_control
LBB0_4:
	mov	w20, #29
Lloh29:
	adrp	x21, _MAC_STATUS@GOTPAGE
Lloh30:
	ldr	x21, [x21, _MAC_STATUS@GOTPAGEOFF]
Lloh31:
	adrp	x22, _MAC_STATUS_SYNC_CHANGED@GOTPAGE
Lloh32:
	ldr	x22, [x22, _MAC_STATUS_SYNC_CHANGED@GOTPAGEOFF]
Lloh33:
	adrp	x24, _MAC_STATUS_CFG_CHANGED@GOTPAGE
Lloh34:
	ldr	x24, [x24, _MAC_STATUS_CFG_CHANGED@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #20
	bl	_udelay
	ldr	w0, [x21]
	ldr	w8, [x22]
	ldr	w9, [x24]
	orr	w1, w9, w8
	bl	_tw32_f
	mov	w0, #40
	bl	_udelay
	ldr	w0, [x21]
	bl	_tr32
	ldr	w8, [x22]
	ldr	w9, [x24]
	orr	w8, w9, w8
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	w20, #0, #4, ne
	sub	w20, w20, #1
	b.ne	LBB0_5
; %bb.6:
	ldr	w0, [x21]
	bl	_tr32
	cbnz	x19, LBB0_11
; %bb.7:
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_9
; %bb.8:
Lloh35:
	adrp	x8, _MAC_STATUS_RCVD_CFG@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MAC_STATUS_RCVD_CFG@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w0, eq
	b	LBB0_12
LBB0_9:
	mov	w0, #0
	b	LBB0_12
LBB0_10:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_tg3_setup_flow_control
Lloh38:
	adrp	x19, _MAC_MODE@GOTPAGE
Lloh39:
	ldr	x19, [x19, _MAC_MODE@GOTPAGEOFF]
	ldr	w0, [x19]
	ldr	w8, [x20]
Lloh40:
	adrp	x9, _MAC_MODE_SEND_CONFIGS@GOTPAGE
Lloh41:
	ldr	x9, [x9, _MAC_MODE_SEND_CONFIGS@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_tw32_f
	mov	w0, #40
	bl	_udelay
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_tw32_f
	mov	w0, #40
	bl	_udelay
LBB0_11:
	mov	w0, #1
LBB0_12:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC_STATUS_PCS_SYNCED,4,2      ; @MAC_STATUS_PCS_SYNCED
	.comm	_AUTONEG_ENABLE,8,3             ; @AUTONEG_ENABLE
	.comm	_ANEG_CFG_PS1,4,2               ; @ANEG_CFG_PS1
	.comm	_ADVERTISE_1000XPAUSE,4,2       ; @ADVERTISE_1000XPAUSE
	.comm	_ANEG_CFG_PS2,4,2               ; @ANEG_CFG_PS2
	.comm	_ADVERTISE_1000XPSE_ASYM,4,2    ; @ADVERTISE_1000XPSE_ASYM
	.comm	_MR_LP_ADV_SYM_PAUSE,4,2        ; @MR_LP_ADV_SYM_PAUSE
	.comm	_LPA_1000XPAUSE,4,2             ; @LPA_1000XPAUSE
	.comm	_MR_LP_ADV_ASYM_PAUSE,4,2       ; @MR_LP_ADV_ASYM_PAUSE
	.comm	_LPA_1000XPAUSE_ASYM,4,2        ; @LPA_1000XPAUSE_ASYM
	.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_RCVD_CFG,4,2        ; @MAC_STATUS_RCVD_CFG
	.comm	_MAC_MODE,4,2                   ; @MAC_MODE
	.comm	_MAC_MODE_SEND_CONFIGS,4,2      ; @MAC_MODE_SEND_CONFIGS
	.no_dead_strip	_tg3_setup_fiber_by_hand
.subsections_via_symbols
