	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2_5708_serdes_timer
_bnx2_5708_serdes_timer:                ## @bnx2_5708_serdes_timer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	(%rdi), %eax
	movq	_BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.1:
	movq	%rdi, %rbx
	movq	_BNX2_PHY_FLAG_2_5G_CAPABLE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.3:
	leaq	20(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movl	4(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	decl	%eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_12
LBB0_2:
	movl	$0, 4(%rbx)
	jmp	LBB0_13
LBB0_5:
	cmpq	$0, 8(%rbx)
	je	LBB0_6
LBB0_10:
	movq	_BNX2_TIMER_INTERVAL@GOTPCREL(%rip), %rax
LBB0_11:
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
LBB0_12:
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_AUTONEG_SPEED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rbx)
	je	LBB0_10
## %bb.7:
	movl	32(%rbx), %esi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_bnx2_read_phy
	movq	_BMCR_ANENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -20(%rbp)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_bnx2_enable_forced_2g5
	movq	_BNX2_SERDES_FORCED_TIMEOUT@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_9:
	movq	%rbx, %rdi
	callq	_bnx2_disable_forced_2g5
	movl	$2, 4(%rbx)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2_PHY_FLAG_REMOTE_PHY_CAP,4,2 ## @BNX2_PHY_FLAG_REMOTE_PHY_CAP
	.comm	_BNX2_PHY_FLAG_2_5G_CAPABLE,4,2 ## @BNX2_PHY_FLAG_2_5G_CAPABLE
	.comm	_AUTONEG_SPEED,4,2              ## @AUTONEG_SPEED
	.comm	_BMCR_ANENABLE,4,2              ## @BMCR_ANENABLE
	.comm	_BNX2_SERDES_FORCED_TIMEOUT,8,3 ## @BNX2_SERDES_FORCED_TIMEOUT
	.comm	_BNX2_TIMER_INTERVAL,8,3        ## @BNX2_TIMER_INTERVAL
	.no_dead_strip	_bnx2_5708_serdes_timer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2_5708_serdes_timer
_bnx2_5708_serdes_timer:                ; @bnx2_5708_serdes_timer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BNX2_PHY_FLAG_REMOTE_PHY_CAP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x9, _BNX2_PHY_FLAG_2_5G_CAPABLE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BNX2_PHY_FLAG_2_5G_CAPABLE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	add	x20, x19, #20
	mov	x0, x20
	bl	_spin_lock
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_5
; %bb.3:
	sub	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_8
LBB0_4:
	str	wzr, [x19, #4]
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
LBB0_6:
Lloh6:
	adrp	x8, _BNX2_TIMER_INTERVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNX2_TIMER_INTERVAL@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	str	x8, [x19, #24]
LBB0_8:
	mov	x0, x20
	bl	_spin_unlock
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
	ldr	w8, [x19, #16]
Lloh8:
	adrp	x9, _AUTONEG_SPEED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AUTONEG_SPEED@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.11:
	ldr	w1, [x19, #32]
	add	x2, sp, #12
	mov	x0, x19
	bl	_bnx2_read_phy
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _BMCR_ANENABLE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _BMCR_ANENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mov	x0, x19
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	bl	_bnx2_enable_forced_2g5
Lloh14:
	adrp	x8, _BNX2_SERDES_FORCED_TIMEOUT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BNX2_SERDES_FORCED_TIMEOUT@GOTPAGEOFF]
	b	LBB0_7
LBB0_13:
	bl	_bnx2_disable_forced_2g5
	mov	w8, #2
	str	w8, [x19, #4]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2_PHY_FLAG_REMOTE_PHY_CAP,4,2 ; @BNX2_PHY_FLAG_REMOTE_PHY_CAP
	.comm	_BNX2_PHY_FLAG_2_5G_CAPABLE,4,2 ; @BNX2_PHY_FLAG_2_5G_CAPABLE
	.comm	_AUTONEG_SPEED,4,2              ; @AUTONEG_SPEED
	.comm	_BMCR_ANENABLE,4,2              ; @BMCR_ANENABLE
	.comm	_BNX2_SERDES_FORCED_TIMEOUT,8,3 ; @BNX2_SERDES_FORCED_TIMEOUT
	.comm	_BNX2_TIMER_INTERVAL,8,3        ; @BNX2_TIMER_INTERVAL
	.no_dead_strip	_bnx2_5708_serdes_timer
.subsections_via_symbols
