	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_initialize_sgmii_process
_bnx2x_initialize_sgmii_process:        ## @bnx2x_initialize_sgmii_process
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rsi), %r13
	movq	_MDIO_REG_BANK_SERDES_DIGITAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	-48(%rbp), %r8
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_CL22_RD_OVER_CL45
	movq	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT@GOTPCREL(%rip), %rax
	movl	-48(%rbp), %ecx
	orl	(%rax), %ecx
	movq	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE@GOTPCREL(%rip), %rax
	movq	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	movq	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	notl	%r8d
	andl	%ecx, %r8d
	movl	%r8d, -48(%rbp)
	movq	_MDIO_REG_BANK_SERDES_DIGITAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_CL22_WR_OVER_CL45
	movl	(%r14), %eax
	movq	_SPEED_AUTO_NEG@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.12:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_bnx2x_restart_autoneg
	jmp	LBB0_13
LBB0_1:
	movq	%r14, %r15
	movq	_MDIO_REG_BANK_COMBO_IEEE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_COMBO_IEEE0_MII_CONTROL@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	leaq	-44(%rbp), %r8
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_CL22_RD_OVER_CL45
	movq	_MDIO_COMBO_IEEO_MII_CONTROL_AN_EN@GOTPCREL(%rip), %rcx
	movq	_MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	movq	_MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX@GOTPCREL(%rip), %rbx
	orl	(%rbx), %eax
	notl	%eax
	andl	-44(%rbp), %eax
	movl	%eax, -44(%rbp)
	movl	(%r15), %edx
	cmpl	$128, %edx
	je	LBB0_6
## %bb.2:
	cmpl	$130, %edx
	je	LBB0_8
## %bb.3:
	cmpl	$129, %edx
	jne	LBB0_7
## %bb.4:
	movq	_MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_6:
	movq	_MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000@GOTPCREL(%rip), %rcx
LBB0_5:
	orl	(%rcx), %eax
	movl	%eax, -44(%rbp)
	jmp	LBB0_8
LBB0_7:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
LBB0_8:
	movq	(%r12), %rax
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	movl	-44(%rbp), %r8d
	orl	(%rbx), %r8d
	movl	%r8d, -44(%rbp)
	jmp	LBB0_11
LBB0_9:
	movl	-44(%rbp), %r8d
LBB0_11:
	movq	_MDIO_REG_BANK_COMBO_IEEE0@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_CL22_WR_OVER_CL45
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_REG_BANK_SERDES_DIGITAL,4,2 ## @MDIO_REG_BANK_SERDES_DIGITAL
	.comm	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1,4,2 ## @MDIO_SERDES_DIGITAL_A_1000X_CONTROL1
	.comm	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT,4,2 ## @MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT
	.comm	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE,4,2 ## @MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE
	.comm	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET,4,2 ## @MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET
	.comm	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE,4,2 ## @MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE
	.comm	_SPEED_AUTO_NEG,4,2             ## @SPEED_AUTO_NEG
	.comm	_MDIO_REG_BANK_COMBO_IEEE0,4,2  ## @MDIO_REG_BANK_COMBO_IEEE0
	.comm	_MDIO_COMBO_IEEE0_MII_CONTROL,4,2 ## @MDIO_COMBO_IEEE0_MII_CONTROL
	.comm	_MDIO_COMBO_IEEO_MII_CONTROL_AN_EN,4,2 ## @MDIO_COMBO_IEEO_MII_CONTROL_AN_EN
	.comm	_MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK,4,2 ## @MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK
	.comm	_MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX,4,2 ## @MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX
	.comm	_MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100,4,2 ## @MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100
	.comm	_MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000,4,2 ## @MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid line_speed 0x%x\n"

	.comm	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.no_dead_strip	_bnx2x_initialize_sgmii_process
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_initialize_sgmii_process
_bnx2x_initialize_sgmii_process:        ; @bnx2x_initialize_sgmii_process
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x1]
Lloh0:
	adrp	x23, _MDIO_REG_BANK_SERDES_DIGITAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MDIO_REG_BANK_SERDES_DIGITAL@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh2:
	adrp	x24, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL1@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL1@GOTPAGEOFF]
	ldr	w3, [x24]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_RD_OVER_CL45
Lloh4:
	adrp	x8, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	orr	w8, w9, w8
Lloh7:
	adrp	x9, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x10, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh13:
	adrp	x10, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE@GOTPAGE
Lloh14:
	ldr	x10, [x10, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE@GOTPAGEOFF]
Lloh15:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bic	w4, w8, w9
	str	w4, [sp, #12]
	ldr	w2, [x23]
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_WR_OVER_CL45
	ldr	w8, [x21]
Lloh16:
	adrp	x9, _SPEED_AUTO_NEG@GOTPAGE
Lloh17:
	ldr	x9, [x9, _SPEED_AUTO_NEG@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_bnx2x_restart_autoneg
	b	LBB0_13
LBB0_2:
Lloh19:
	adrp	x22, _MDIO_REG_BANK_COMBO_IEEE0@GOTPAGE
Lloh20:
	ldr	x22, [x22, _MDIO_REG_BANK_COMBO_IEEE0@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh21:
	adrp	x23, _MDIO_COMBO_IEEE0_MII_CONTROL@GOTPAGE
Lloh22:
	ldr	x23, [x23, _MDIO_COMBO_IEEE0_MII_CONTROL@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_RD_OVER_CL45
Lloh23:
	adrp	x8, _MDIO_COMBO_IEEO_MII_CONTROL_AN_EN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MDIO_COMBO_IEEO_MII_CONTROL_AN_EN@GOTPAGEOFF]
Lloh25:
	adrp	x9, _MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK@GOTPAGE
Lloh26:
	ldr	x9, [x9, _MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh29:
	adrp	x24, _MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX@GOTPAGE
Lloh30:
	ldr	x24, [x24, _MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX@GOTPAGEOFF]
	ldr	w9, [x24]
	orr	w8, w8, w9
	ldr	w9, [sp, #8]
	bic	w8, w9, w8
	str	w8, [sp, #8]
	ldr	w2, [x21]
	cmp	w2, #128
	b.eq	LBB0_6
; %bb.3:
	cmp	w2, #130
	b.eq	LBB0_9
; %bb.4:
	cmp	w2, #129
	b.ne	LBB0_8
; %bb.5:
Lloh31:
	adrp	x9, _MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100@GOTPAGE
Lloh32:
	ldr	x9, [x9, _MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh33:
	adrp	x9, _MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000@GOTPAGE
Lloh34:
	ldr	x9, [x9, _MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000@GOTPAGEOFF]
LBB0_7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #8]
	b	LBB0_9
LBB0_8:
Lloh35:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
Lloh38:
	adrp	x1, l_.str@PAGE
Lloh39:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
LBB0_9:
	ldr	x8, [x19]
Lloh40:
	adrp	x9, _DUPLEX_FULL@GOTPAGE
Lloh41:
	ldr	x9, [x9, _DUPLEX_FULL@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	w8, [x24]
	ldr	w9, [sp, #8]
	orr	w4, w9, w8
	str	w4, [sp, #8]
	b	LBB0_12
LBB0_11:
	ldr	w4, [sp, #8]
LBB0_12:
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_WR_OVER_CL45
LBB0_13:
	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 AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_REG_BANK_SERDES_DIGITAL,4,2 ; @MDIO_REG_BANK_SERDES_DIGITAL
	.comm	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1,4,2 ; @MDIO_SERDES_DIGITAL_A_1000X_CONTROL1
	.comm	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT,4,2 ; @MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_INVERT_SIGNAL_DETECT
	.comm	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE,4,2 ; @MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_FIBER_MODE
	.comm	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET,4,2 ; @MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_AUTODET
	.comm	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE,4,2 ; @MDIO_SERDES_DIGITAL_A_1000X_CONTROL1_MSTR_MODE
	.comm	_SPEED_AUTO_NEG,4,2             ; @SPEED_AUTO_NEG
	.comm	_MDIO_REG_BANK_COMBO_IEEE0,4,2  ; @MDIO_REG_BANK_COMBO_IEEE0
	.comm	_MDIO_COMBO_IEEE0_MII_CONTROL,4,2 ; @MDIO_COMBO_IEEE0_MII_CONTROL
	.comm	_MDIO_COMBO_IEEO_MII_CONTROL_AN_EN,4,2 ; @MDIO_COMBO_IEEO_MII_CONTROL_AN_EN
	.comm	_MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK,4,2 ; @MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK
	.comm	_MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX,4,2 ; @MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX
	.comm	_MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100,4,2 ; @MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_100
	.comm	_MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000,4,2 ; @MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_1000
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid line_speed 0x%x\n"

	.comm	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.no_dead_strip	_bnx2x_initialize_sgmii_process
.subsections_via_symbols
