	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_program_serdes
_bnx2x_program_serdes:                  ## @bnx2x_program_serdes
	.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, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %r14
	movq	_MDIO_REG_BANK_COMBO_IEEE0@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_COMBO_IEEE0_MII_CONTROL@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_CL22_RD_OVER_CL45
	movq	_MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_MDIO_COMBO_IEEO_MII_CONTROL_AN_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	orl	%eax, %r8d
	movq	_MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r8d
	notl	%r8d
	andl	-44(%rbp), %r8d
	movl	%r8d, -44(%rbp)
	movq	(%rbx), %rcx
	movq	_DUPLEX_FULL@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_2
## %bb.1:
	orl	%eax, %r8d
	movl	%r8d, -44(%rbp)
LBB0_2:
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_CL22_WR_OVER_CL45
	movq	_MDIO_REG_BANK_SERDES_DIGITAL@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_SERDES_DIGITAL_MISC1@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_CL22_RD_OVER_CL45
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movq	_MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_MASK@GOTPCREL(%rip), %rcx
	movq	_MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	(%rcx), %r8d
	orl	%eax, %r8d
	notl	%r8d
	andl	-44(%rbp), %r8d
	movl	%r8d, -44(%rbp)
	movq	(%r15), %rcx
	movq	_SPEED_1000@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.3:
	movq	_SPEED_100@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.4:
	movq	_SPEED_10@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_7
## %bb.5:
	movq	_MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_156_25M@GOTPCREL(%rip), %rdx
	orl	%eax, %r8d
	orl	(%rdx), %r8d
	movl	%r8d, -44(%rbp)
	movq	_SPEED_10000@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_7
## %bb.6:
	movq	_MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_CX4@GOTPCREL(%rip), %rax
	orl	(%rax), %r8d
	movl	%r8d, -44(%rbp)
LBB0_7:
	movl	(%r12), %edx
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_CL22_WR_OVER_CL45
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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_FULL_DUPLEX,4,2 ## @MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX
	.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	_DUPLEX_FULL,8,3                ## @DUPLEX_FULL
	.comm	_MDIO_REG_BANK_SERDES_DIGITAL,4,2 ## @MDIO_REG_BANK_SERDES_DIGITAL
	.comm	_MDIO_SERDES_DIGITAL_MISC1,4,2  ## @MDIO_SERDES_DIGITAL_MISC1
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MDIO_REG_BANK_SERDES_DIGITAL = 0x%x\n"

	.comm	_MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_MASK,4,2 ## @MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_MASK
	.comm	_MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_SEL,4,2 ## @MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_SEL
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_SPEED_100,8,3                  ## @SPEED_100
	.comm	_SPEED_10,8,3                   ## @SPEED_10
	.comm	_MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_156_25M,4,2 ## @MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_156_25M
	.comm	_SPEED_10000,8,3                ## @SPEED_10000
	.comm	_MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_CX4,4,2 ## @MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_CX4
	.no_dead_strip	_bnx2x_program_serdes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_program_serdes
_bnx2x_program_serdes:                  ; @bnx2x_program_serdes
	.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	x19, x0
	ldr	x20, [x1]
Lloh0:
	adrp	x22, _MDIO_REG_BANK_COMBO_IEEE0@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MDIO_REG_BANK_COMBO_IEEE0@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x23, _MDIO_COMBO_IEEE0_MII_CONTROL@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MDIO_COMBO_IEEE0_MII_CONTROL@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_RD_OVER_CL45
Lloh4:
	adrp	x8, _MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _MDIO_COMBO_IEEO_MII_CONTROL_AN_EN@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MDIO_COMBO_IEEO_MII_CONTROL_AN_EN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w9, w9, w8
Lloh10:
	adrp	x10, _MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK@GOTPAGE
Lloh11:
	ldr	x10, [x10, _MDIO_COMBO_IEEO_MII_CONTROL_MAN_SGMII_SP_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w9, w10
	ldr	w10, [sp, #12]
	bic	w4, w10, w9
	str	w4, [sp, #12]
	ldr	x9, [x19]
Lloh13:
	adrp	x10, _DUPLEX_FULL@GOTPAGE
Lloh14:
	ldr	x10, [x10, _DUPLEX_FULL@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.1:
	orr	w4, w4, w8
	str	w4, [sp, #12]
LBB0_2:
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_WR_OVER_CL45
Lloh16:
	adrp	x22, _MDIO_REG_BANK_SERDES_DIGITAL@GOTPAGE
Lloh17:
	ldr	x22, [x22, _MDIO_REG_BANK_SERDES_DIGITAL@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh18:
	adrp	x23, _MDIO_SERDES_DIGITAL_MISC1@GOTPAGE
Lloh19:
	ldr	x23, [x23, _MDIO_SERDES_DIGITAL_MISC1@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_RD_OVER_CL45
Lloh20:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	ldr	w2, [sp, #12]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh25:
	adrp	x8, _MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_MASK@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_MASK@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x8]
Lloh28:
	adrp	x8, _MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_SEL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_SEL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	orr	w9, w8, w9
	ldr	w10, [sp, #12]
	bic	w4, w10, w9
	str	w4, [sp, #12]
	ldr	x9, [x21]
Lloh31:
	adrp	x10, _SPEED_1000@GOTPAGE
Lloh32:
	ldr	x10, [x10, _SPEED_1000@GOTPAGEOFF]
Lloh33:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_7
; %bb.3:
Lloh34:
	adrp	x10, _SPEED_100@GOTPAGE
Lloh35:
	ldr	x10, [x10, _SPEED_100@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_7
; %bb.4:
Lloh37:
	adrp	x10, _SPEED_10@GOTPAGE
Lloh38:
	ldr	x10, [x10, _SPEED_10@GOTPAGEOFF]
Lloh39:
	ldr	x10, [x10]
	cmp	x9, x10
	b.eq	LBB0_7
; %bb.5:
Lloh40:
	adrp	x10, _MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_156_25M@GOTPAGE
Lloh41:
	ldr	x10, [x10, _MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_156_25M@GOTPAGEOFF]
Lloh42:
	ldr	w10, [x10]
	orr	w8, w4, w8
	orr	w4, w8, w10
	str	w4, [sp, #12]
Lloh43:
	adrp	x8, _SPEED_10000@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SPEED_10000@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
Lloh46:
	adrp	x8, _MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_CX4@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_CX4@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	orr	w4, w8, w4
	str	w4, [sp, #12]
LBB0_7:
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x19
	bl	_CL22_WR_OVER_CL45
	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	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 AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.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_FULL_DUPLEX,4,2 ; @MDIO_COMBO_IEEO_MII_CONTROL_FULL_DUPLEX
	.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	_DUPLEX_FULL,8,3                ; @DUPLEX_FULL
	.comm	_MDIO_REG_BANK_SERDES_DIGITAL,4,2 ; @MDIO_REG_BANK_SERDES_DIGITAL
	.comm	_MDIO_SERDES_DIGITAL_MISC1,4,2  ; @MDIO_SERDES_DIGITAL_MISC1
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MDIO_REG_BANK_SERDES_DIGITAL = 0x%x\n"

	.comm	_MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_MASK,4,2 ; @MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_MASK
	.comm	_MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_SEL,4,2 ; @MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_SEL
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_SPEED_100,8,3                  ; @SPEED_100
	.comm	_SPEED_10,8,3                   ; @SPEED_10
	.comm	_MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_156_25M,4,2 ; @MDIO_SERDES_DIGITAL_MISC1_REFCLK_SEL_156_25M
	.comm	_SPEED_10000,8,3                ; @SPEED_10000
	.comm	_MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_CX4,4,2 ; @MDIO_SERDES_DIGITAL_MISC1_FORCE_SPEED_10G_CX4
	.no_dead_strip	_bnx2x_program_serdes
.subsections_via_symbols
