	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_xgxs_config_init
_bnx2x_xgxs_config_init:                ## @bnx2x_xgxs_config_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_SINGLE_MEDIA_DIRECT
	movl	$1, %r12d
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_LOOPBACK_XGXS@GOTPCREL(%rip), %rcx
	xorl	%r12d, %r12d
	cmpq	(%rcx), %rax
	sete	%r12b
LBB0_2:
	movq	_PHY_SGMII_FLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.10:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_DP
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_initialize_sgmii_process ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	callq	_SINGLE_MEDIA_DIRECT
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_FEATURE_CONFIG_OVERRIDE_PREEMPHASIS_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_6
## %bb.5:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_set_preemphasis
LBB0_6:
	movq	8(%r14), %rax
	movq	_SPEED_AUTO_NEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.7:
	movq	%rbx, %rdi
	callq	_SINGLE_MEDIA_DIRECT
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	(%rbx), %rax
	movq	_LOOPBACK_EXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
LBB0_11:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_bnx2x_set_autoneg
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_program_serdes           ## TAILCALL
LBB0_9:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_set_brcm_cl37_advertisement
	movl	16(%r14), %edx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_set_ieee_aneg_advertisement
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	%r12d, %ecx
	callq	_bnx2x_set_autoneg
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_restart_autoneg          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_LOOPBACK_XGXS,8,3              ## @LOOPBACK_XGXS
	.comm	_PHY_SGMII_FLAG,4,2             ## @PHY_SGMII_FLAG
	.comm	_FEATURE_CONFIG_OVERRIDE_PREEMPHASIS_ENABLED,4,2 ## @FEATURE_CONFIG_OVERRIDE_PREEMPHASIS_ENABLED
	.comm	_SPEED_AUTO_NEG,8,3             ## @SPEED_AUTO_NEG
	.comm	_LOOPBACK_EXT,8,3               ## @LOOPBACK_EXT
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"not SGMII, no AN\n"

L_.str.1:                               ## @.str.1
	.asciz	"not SGMII, AN\n"

L_.str.2:                               ## @.str.2
	.asciz	"SGMII\n"

	.no_dead_strip	_bnx2x_xgxs_config_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_xgxs_config_init
_bnx2x_xgxs_config_init:                ; @bnx2x_xgxs_config_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	mov	x0, x1
	bl	_SINGLE_MEDIA_DIRECT
	cbz	x0, LBB0_2
; %bb.1:
	mov	w22, #1
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _LOOPBACK_XGXS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _LOOPBACK_XGXS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w22, eq
LBB0_3:
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _PHY_SGMII_FLAG@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PHY_SGMII_FLAG@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh6:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bnx2x_initialize_sgmii_process
LBB0_5:
	mov	x0, x19
	bl	_SINGLE_MEDIA_DIRECT
	cbz	x0, LBB0_8
; %bb.6:
	ldr	w8, [x19, #8]
Lloh11:
	adrp	x9, _FEATURE_CONFIG_OVERRIDE_PREEMPHASIS_ENABLED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _FEATURE_CONFIG_OVERRIDE_PREEMPHASIS_ENABLED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x19
	bl	_bnx2x_set_preemphasis
LBB0_8:
	ldr	x8, [x20, #8]
Lloh14:
	adrp	x9, _SPEED_AUTO_NEG@GOTPAGE
Lloh15:
	ldr	x9, [x9, _SPEED_AUTO_NEG@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_SINGLE_MEDIA_DIRECT
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [x19]
Lloh17:
	adrp	x9, _LOOPBACK_EXT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LOOPBACK_EXT@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
LBB0_11:
Lloh20:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	w3, #0
	bl	_bnx2x_set_autoneg
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bnx2x_program_serdes
LBB0_12:
Lloh25:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	mov	x0, x21
	mov	x1, x19
	bl	_bnx2x_set_brcm_cl37_advertisement
	ldr	w2, [x20, #16]
	mov	x0, x21
	mov	x1, x19
	bl	_bnx2x_set_ieee_aneg_advertisement
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	mov	x3, x22
	bl	_bnx2x_set_autoneg
	mov	x0, x21
	mov	x1, x19
	mov	x2, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_bnx2x_restart_autoneg
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_LOOPBACK_XGXS,8,3              ; @LOOPBACK_XGXS
	.comm	_PHY_SGMII_FLAG,4,2             ; @PHY_SGMII_FLAG
	.comm	_FEATURE_CONFIG_OVERRIDE_PREEMPHASIS_ENABLED,4,2 ; @FEATURE_CONFIG_OVERRIDE_PREEMPHASIS_ENABLED
	.comm	_SPEED_AUTO_NEG,8,3             ; @SPEED_AUTO_NEG
	.comm	_LOOPBACK_EXT,8,3               ; @LOOPBACK_EXT
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"not SGMII, no AN\n"

l_.str.1:                               ; @.str.1
	.asciz	"not SGMII, AN\n"

l_.str.2:                               ; @.str.2
	.asciz	"SGMII\n"

	.no_dead_strip	_bnx2x_xgxs_config_init
.subsections_via_symbols
