	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_set_parallel_detection
_bnx2x_set_parallel_detection:          ## @bnx2x_set_parallel_detection
	.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	%rdi, %rbx
	movq	(%rsi), %r14
	movq	_MDIO_REG_BANK_SERDES_DIGITAL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL2@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_CL22_RD_OVER_CL45
	movl	(%rbx), %edx
	movq	_PORT_HW_CFG_SPEED_CAPABILITY_D0_1G@GOTPCREL(%rip), %rax
	movq	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_PRL_DT_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%edx, (%rax)
	je	LBB0_2
## %bb.1:
	orl	-44(%rbp), %ecx
	jmp	LBB0_3
LBB0_2:
	notl	%ecx
	andl	-44(%rbp), %ecx
LBB0_3:
	movl	%ecx, -44(%rbp)
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movl	-44(%rbp), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_CL22_WR_OVER_CL45
	movq	8(%rbx), %rax
	movq	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.4:
	movq	_PORT_HW_CFG_SPEED_CAPABILITY_D0_10G@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.5:
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_REG_BANK_10G_PARALLEL_DETECT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_CL22_WR_OVER_CL45
	movl	(%r15), %edx
	movq	_MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_CL22_RD_OVER_CL45
	movq	_MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL_PARDET10G_EN@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %r8d
	orl	(%rax), %r8d
	movl	%r8d, -44(%rbp)
	movl	(%r15), %edx
	movl	(%r12), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_CL22_WR_OVER_CL45
	movq	_MDIO_REG_BANK_XGXS_BLOCK2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_XGXS_BLOCK2_UNICORE_MODE_10G@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_CX4_XGXS@GOTPCREL(%rip), %rax
	movq	_MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_HIGIG_XGXS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	orl	(%rax), %r8d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_CL22_WR_OVER_CL45
LBB0_6:
	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_CONTROL2,4,2 ## @MDIO_SERDES_DIGITAL_A_1000X_CONTROL2
	.comm	_PORT_HW_CFG_SPEED_CAPABILITY_D0_1G,4,2 ## @PORT_HW_CFG_SPEED_CAPABILITY_D0_1G
	.comm	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_PRL_DT_EN,4,2 ## @MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_PRL_DT_EN
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"phy->speed_cap_mask = 0x%x, control2 = 0x%x\n"

	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT,8,3 ## @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT
	.comm	_PORT_HW_CFG_SPEED_CAPABILITY_D0_10G,4,2 ## @PORT_HW_CFG_SPEED_CAPABILITY_D0_10G
L_.str.1:                               ## @.str.1
	.asciz	"XGXS\n"

	.comm	_MDIO_REG_BANK_10G_PARALLEL_DETECT,4,2 ## @MDIO_REG_BANK_10G_PARALLEL_DETECT
	.comm	_MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK,4,2 ## @MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK
	.comm	_MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK_CNT,4,2 ## @MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK_CNT
	.comm	_MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL,4,2 ## @MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL
	.comm	_MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL_PARDET10G_EN,4,2 ## @MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL_PARDET10G_EN
	.comm	_MDIO_REG_BANK_XGXS_BLOCK2,4,2  ## @MDIO_REG_BANK_XGXS_BLOCK2
	.comm	_MDIO_XGXS_BLOCK2_UNICORE_MODE_10G,4,2 ## @MDIO_XGXS_BLOCK2_UNICORE_MODE_10G
	.comm	_MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_CX4_XGXS,4,2 ## @MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_CX4_XGXS
	.comm	_MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_HIGIG_XGXS,4,2 ## @MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_HIGIG_XGXS
	.no_dead_strip	_bnx2x_set_parallel_detection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_set_parallel_detection
_bnx2x_set_parallel_detection:          ; @bnx2x_set_parallel_detection
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x0
	ldr	x20, [x1]
Lloh0:
	adrp	x21, _MDIO_REG_BANK_SERDES_DIGITAL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MDIO_REG_BANK_SERDES_DIGITAL@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh2:
	adrp	x22, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL2@GOTPAGE
Lloh3:
	ldr	x22, [x22, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL2@GOTPAGEOFF]
	ldr	w3, [x22]
	add	x4, sp, #28
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_RD_OVER_CL45
Lloh4:
	adrp	x9, _PORT_HW_CFG_SPEED_CAPABILITY_D0_1G@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PORT_HW_CFG_SPEED_CAPABILITY_D0_1G@GOTPAGEOFF]
	ldr	w8, [x19]
Lloh6:
	ldr	w10, [x9]
Lloh7:
	adrp	x9, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_PRL_DT_EN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_PRL_DT_EN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w10, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w10, [sp, #28]
	orr	w9, w10, w9
	b	LBB0_3
LBB0_2:
	ldr	w10, [sp, #28]
	bic	w9, w10, w9
LBB0_3:
	str	w9, [sp, #28]
Lloh10:
	adrp	x23, _NETIF_MSG_LINK@GOTPAGE
Lloh11:
	ldr	x23, [x23, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x23]
	stp	x8, x9, [sp]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	ldr	w2, [x21]
	ldr	w3, [x22]
	ldr	w4, [sp, #28]
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_WR_OVER_CL45
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w8, [x19]
Lloh17:
	adrp	x9, _PORT_HW_CFG_SPEED_CAPABILITY_D0_10G@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PORT_HW_CFG_SPEED_CAPABILITY_D0_10G@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x23]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh22:
	adrp	x21, _MDIO_REG_BANK_10G_PARALLEL_DETECT@GOTPAGE
Lloh23:
	ldr	x21, [x21, _MDIO_REG_BANK_10G_PARALLEL_DETECT@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh24:
	adrp	x8, _MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
Lloh27:
	adrp	x8, _MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK_CNT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK_CNT@GOTPAGEOFF]
Lloh29:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_WR_OVER_CL45
	ldr	w2, [x21]
Lloh30:
	adrp	x22, _MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL@GOTPAGE
Lloh31:
	ldr	x22, [x22, _MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL@GOTPAGEOFF]
	ldr	w3, [x22]
	add	x4, sp, #28
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_RD_OVER_CL45
Lloh32:
	adrp	x8, _MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL_PARDET10G_EN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL_PARDET10G_EN@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [sp, #28]
	orr	w4, w9, w8
	str	w4, [sp, #28]
	ldr	w2, [x21]
	ldr	w3, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_WR_OVER_CL45
Lloh35:
	adrp	x8, _MDIO_REG_BANK_XGXS_BLOCK2@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MDIO_REG_BANK_XGXS_BLOCK2@GOTPAGEOFF]
Lloh37:
	ldr	w2, [x8]
Lloh38:
	adrp	x8, _MDIO_XGXS_BLOCK2_UNICORE_MODE_10G@GOTPAGE
Lloh39:
	ldr	x8, [x8, _MDIO_XGXS_BLOCK2_UNICORE_MODE_10G@GOTPAGEOFF]
Lloh40:
	adrp	x9, _MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_CX4_XGXS@GOTPAGE
Lloh41:
	ldr	x9, [x9, _MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_CX4_XGXS@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
Lloh43:
	ldr	w8, [x9]
Lloh44:
	adrp	x9, _MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_HIGIG_XGXS@GOTPAGE
Lloh45:
	ldr	x9, [x9, _MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_HIGIG_XGXS@GOTPAGEOFF]
Lloh46:
	ldr	w9, [x9]
	orr	w4, w9, w8
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_WR_OVER_CL45
LBB0_6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh42
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_REG_BANK_SERDES_DIGITAL,4,2 ; @MDIO_REG_BANK_SERDES_DIGITAL
	.comm	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL2,4,2 ; @MDIO_SERDES_DIGITAL_A_1000X_CONTROL2
	.comm	_PORT_HW_CFG_SPEED_CAPABILITY_D0_1G,4,2 ; @PORT_HW_CFG_SPEED_CAPABILITY_D0_1G
	.comm	_MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_PRL_DT_EN,4,2 ; @MDIO_SERDES_DIGITAL_A_1000X_CONTROL2_PRL_DT_EN
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phy->speed_cap_mask = 0x%x, control2 = 0x%x\n"

	.comm	_PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT,8,3 ; @PORT_HW_CFG_XGXS_EXT_PHY_TYPE_DIRECT
	.comm	_PORT_HW_CFG_SPEED_CAPABILITY_D0_10G,4,2 ; @PORT_HW_CFG_SPEED_CAPABILITY_D0_10G
l_.str.1:                               ; @.str.1
	.asciz	"XGXS\n"

	.comm	_MDIO_REG_BANK_10G_PARALLEL_DETECT,4,2 ; @MDIO_REG_BANK_10G_PARALLEL_DETECT
	.comm	_MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK,4,2 ; @MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK
	.comm	_MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK_CNT,4,2 ; @MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_LINK_CNT
	.comm	_MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL,4,2 ; @MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL
	.comm	_MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL_PARDET10G_EN,4,2 ; @MDIO_10G_PARALLEL_DETECT_PAR_DET_10G_CONTROL_PARDET10G_EN
	.comm	_MDIO_REG_BANK_XGXS_BLOCK2,4,2  ; @MDIO_REG_BANK_XGXS_BLOCK2
	.comm	_MDIO_XGXS_BLOCK2_UNICORE_MODE_10G,4,2 ; @MDIO_XGXS_BLOCK2_UNICORE_MODE_10G
	.comm	_MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_CX4_XGXS,4,2 ; @MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_CX4_XGXS
	.comm	_MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_HIGIG_XGXS,4,2 ; @MDIO_XGXS_BLOCK2_UNICORE_MODE_10G_HIGIG_XGXS
	.no_dead_strip	_bnx2x_set_parallel_detection
.subsections_via_symbols
