	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_8727_config_speed
_bnx2x_8727_config_speed:               ## @bnx2x_8727_config_speed
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %r14
	movq	(%rdi), %rax
	movq	_SPEED_1000@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	8(%rbx), %rcx
	movq	_ETH_PHY_SFP_1G_FIBER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_5
LBB0_2:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$64, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_10G_CTRL2@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$13, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r12), %edx
	movl	(%r13), %ecx
	leaq	-48(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_read
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	%r15, %rdi
	callq	_DUAL_MEDIA
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%r12), %edx
	movq	_MDIO_PMA_REG_8727_PCS_GP@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	-44(%rbp), %r8
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_read
	movl	$3072, %r8d                     ## imm = 0xC00
	orl	-44(%rbp), %r8d
	movl	%r8d, -44(%rbp)
	movl	(%r12), %edx
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_bnx2x_cl45_write
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_SPEED_AUTO_NEG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.6:
	movl	16(%rbx), %eax
	movq	_PORT_HW_CFG_SPEED_CAPABILITY_D0_1G@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.7:
	movq	_PORT_HW_CFG_SPEED_CAPABILITY_D0_10G@GOTPCREL(%rip), %rcx
	notl	%eax
	testl	%eax, (%rcx)
	jne	LBB0_8
LBB0_10:
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_MDIO_AN_REG_8727_MISC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$32, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r15), %edx
	movq	_MDIO_AN_REG_CL37_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$256, %r8d                      ## imm = 0x100
	callq	_bnx2x_cl45_write
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_MDIO_PMA_REG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$8256, %r8d                     ## imm = 0x2040
	callq	_bnx2x_cl45_write
	movl	(%r15), %edx
	movq	_MDIO_PMA_REG_10G_CTRL2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$8, %r8d
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_cl45_write               ## TAILCALL
LBB0_8:
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_AN_DEVAD@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_MDIO_AN_REG_8727_MISC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	movl	(%r15), %edx
	movq	_MDIO_AN_REG_CL37_AN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$4864, %r8d                     ## imm = 0x1300
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_SPEED_1000,8,3                 ## @SPEED_1000
	.comm	_ETH_PHY_SFP_1G_FIBER,8,3       ## @ETH_PHY_SFP_1G_FIBER
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting 1G force\n"

	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_CTRL,4,2          ## @MDIO_PMA_REG_CTRL
	.comm	_MDIO_PMA_REG_10G_CTRL2,4,2     ## @MDIO_PMA_REG_10G_CTRL2
L_.str.1:                               ## @.str.1
	.asciz	"1.7 = 0x%x\n"

	.comm	_MDIO_PMA_REG_8727_PCS_GP,4,2   ## @MDIO_PMA_REG_8727_PCS_GP
	.comm	_SPEED_AUTO_NEG,8,3             ## @SPEED_AUTO_NEG
	.comm	_PORT_HW_CFG_SPEED_CAPABILITY_D0_1G,4,2 ## @PORT_HW_CFG_SPEED_CAPABILITY_D0_1G
	.comm	_PORT_HW_CFG_SPEED_CAPABILITY_D0_10G,4,2 ## @PORT_HW_CFG_SPEED_CAPABILITY_D0_10G
L_.str.2:                               ## @.str.2
	.asciz	"Setting 1G clause37\n"

	.comm	_MDIO_AN_DEVAD,4,2              ## @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_8727_MISC_CTRL,4,2 ## @MDIO_AN_REG_8727_MISC_CTRL
	.comm	_MDIO_AN_REG_CL37_AN,4,2        ## @MDIO_AN_REG_CL37_AN
	.no_dead_strip	_bnx2x_8727_config_speed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_8727_config_speed
_bnx2x_8727_config_speed:               ; @bnx2x_8727_config_speed
	.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, x1
	mov	x19, x0
	ldr	x20, [x1]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _SPEED_1000@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SPEED_1000@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	ldr	x9, [x19, #8]
Lloh3:
	adrp	x10, _ETH_PHY_SFP_1G_FIBER@GOTPAGE
Lloh4:
	ldr	x10, [x10, _ETH_PHY_SFP_1G_FIBER@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_5
LBB0_2:
Lloh6:
	adrp	x23, _NETIF_MSG_LINK@GOTPAGE
Lloh7:
	ldr	x23, [x23, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh10:
	adrp	x22, _MDIO_PMA_DEVAD@GOTPAGE
Lloh11:
	ldr	x22, [x22, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh12:
	adrp	x8, _MDIO_PMA_REG_CTRL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MDIO_PMA_REG_CTRL@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #64
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
Lloh15:
	adrp	x24, _MDIO_PMA_REG_10G_CTRL2@GOTPAGE
Lloh16:
	ldr	x24, [x24, _MDIO_PMA_REG_10G_CTRL2@GOTPAGEOFF]
	ldr	w3, [x24]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #13
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
	ldr	w3, [x24]
	add	x4, sp, #12
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w0, [x23]
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	mov	x0, x21
	bl	_DUAL_MEDIA
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w2, [x22]
Lloh19:
	adrp	x21, _MDIO_PMA_REG_8727_PCS_GP@GOTPAGE
Lloh20:
	ldr	x21, [x21, _MDIO_PMA_REG_8727_PCS_GP@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x4, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_read
	ldr	w8, [sp, #8]
	orr	w4, w8, #0xc00
	str	w4, [sp, #8]
	ldr	w2, [x22]
	ldr	w3, [x21]
	mov	x0, x20
	mov	x1, x19
	bl	_bnx2x_cl45_write
LBB0_4:
	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
LBB0_5:
Lloh21:
	adrp	x9, _SPEED_AUTO_NEG@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SPEED_AUTO_NEG@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	ldr	w8, [x19, #16]
Lloh24:
	adrp	x9, _PORT_HW_CFG_SPEED_CAPABILITY_D0_1G@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PORT_HW_CFG_SPEED_CAPABILITY_D0_1G@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh27:
	adrp	x9, _PORT_HW_CFG_SPEED_CAPABILITY_D0_10G@GOTPAGE
Lloh28:
	ldr	x9, [x9, _PORT_HW_CFG_SPEED_CAPABILITY_D0_10G@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	bics	wzr, w9, w8
	b.ne	LBB0_10
LBB0_8:
Lloh30:
	adrp	x21, _MDIO_AN_DEVAD@GOTPAGE
Lloh31:
	ldr	x21, [x21, _MDIO_AN_DEVAD@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh32:
	adrp	x8, _MDIO_AN_REG_8727_MISC_CTRL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _MDIO_AN_REG_8727_MISC_CTRL@GOTPAGEOFF]
Lloh34:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #32
	bl	_bnx2x_cl45_write
	ldr	w2, [x21]
Lloh35:
	adrp	x8, _MDIO_AN_REG_CL37_AN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _MDIO_AN_REG_CL37_AN@GOTPAGEOFF]
Lloh37:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #256
	bl	_bnx2x_cl45_write
Lloh38:
	adrp	x21, _MDIO_PMA_DEVAD@GOTPAGE
Lloh39:
	ldr	x21, [x21, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh40:
	adrp	x8, _MDIO_PMA_REG_CTRL@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MDIO_PMA_REG_CTRL@GOTPAGEOFF]
Lloh42:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #8256
	bl	_bnx2x_cl45_write
	ldr	w2, [x21]
Lloh43:
	adrp	x8, _MDIO_PMA_REG_10G_CTRL2@GOTPAGE
Lloh44:
	ldr	x8, [x8, _MDIO_PMA_REG_10G_CTRL2@GOTPAGEOFF]
Lloh45:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #8
LBB0_9:
	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
	b	_bnx2x_cl45_write
LBB0_10:
Lloh46:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh47:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
Lloh49:
	adrp	x1, l_.str.2@PAGE
Lloh50:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
Lloh51:
	adrp	x21, _MDIO_AN_DEVAD@GOTPAGE
Lloh52:
	ldr	x21, [x21, _MDIO_AN_DEVAD@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh53:
	adrp	x8, _MDIO_AN_REG_8727_MISC_CTRL@GOTPAGE
Lloh54:
	ldr	x8, [x8, _MDIO_AN_REG_8727_MISC_CTRL@GOTPAGEOFF]
Lloh55:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	ldr	w2, [x21]
Lloh56:
	adrp	x8, _MDIO_AN_REG_CL37_AN@GOTPAGE
Lloh57:
	ldr	x8, [x8, _MDIO_AN_REG_CL37_AN@GOTPAGEOFF]
Lloh58:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #4864
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_SPEED_1000,8,3                 ; @SPEED_1000
	.comm	_ETH_PHY_SFP_1G_FIBER,8,3       ; @ETH_PHY_SFP_1G_FIBER
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting 1G force\n"

	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_CTRL,4,2          ; @MDIO_PMA_REG_CTRL
	.comm	_MDIO_PMA_REG_10G_CTRL2,4,2     ; @MDIO_PMA_REG_10G_CTRL2
l_.str.1:                               ; @.str.1
	.asciz	"1.7 = 0x%x\n"

	.comm	_MDIO_PMA_REG_8727_PCS_GP,4,2   ; @MDIO_PMA_REG_8727_PCS_GP
	.comm	_SPEED_AUTO_NEG,8,3             ; @SPEED_AUTO_NEG
	.comm	_PORT_HW_CFG_SPEED_CAPABILITY_D0_1G,4,2 ; @PORT_HW_CFG_SPEED_CAPABILITY_D0_1G
	.comm	_PORT_HW_CFG_SPEED_CAPABILITY_D0_10G,4,2 ; @PORT_HW_CFG_SPEED_CAPABILITY_D0_10G
l_.str.2:                               ; @.str.2
	.asciz	"Setting 1G clause37\n"

	.comm	_MDIO_AN_DEVAD,4,2              ; @MDIO_AN_DEVAD
	.comm	_MDIO_AN_REG_8727_MISC_CTRL,4,2 ; @MDIO_AN_REG_8727_MISC_CTRL
	.comm	_MDIO_AN_REG_CL37_AN,4,2        ; @MDIO_AN_REG_CL37_AN
	.no_dead_strip	_bnx2x_8727_config_speed
.subsections_via_symbols
