	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_8726_set_limiting_mode
_bnx2x_8726_set_limiting_mode:          ## @bnx2x_8726_set_limiting_mode
	.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, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_REG_ROM_VER2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %r8
	callq	_bnx2x_cl45_read
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	-48(%rbp), %rdx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_EDC_MODE_LIMITING@GOTPCREL(%rip), %r13
	movl	(%r12), %edi
	cmpq	%rbx, (%r13)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MDIO_PMA_REG_ROM_VER2@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r13), %r8d
	movq	%r15, %rdi
	movq	%r14, %rsi
	jmp	LBB0_4
LBB0_2:
	movq	_MDIO_PMA_REG_ROM_VER2@GOTPCREL(%rip), %r12
	movq	_MDIO_PMA_DEVAD@GOTPCREL(%rip), %rbx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	-48(%rbp), %rax
	cmpq	(%r13), %rax
	jne	LBB0_5
## %bb.3:
	movl	(%rbx), %edx
	movq	_MDIO_PMA_REG_LRM_MODE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_bnx2x_cl45_write
	movl	(%rbx), %edx
	movl	(%r12), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$296, %r8d                      ## imm = 0x128
	callq	_bnx2x_cl45_write
	movl	(%rbx), %edx
	movq	_MDIO_PMA_REG_MISC_CTRL0@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$16392, %r8d                    ## imm = 0x4008
	callq	_bnx2x_cl45_write
	movl	(%rbx), %edx
	movl	(%r13), %ecx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	$43690, %r8d                    ## imm = 0xAAAA
LBB0_4:
	callq	_bnx2x_cl45_write
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MDIO_PMA_DEVAD,4,2             ## @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_ROM_VER2,4,2      ## @MDIO_PMA_REG_ROM_VER2
	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Current Limiting mode is 0x%x\n"

	.comm	_EDC_MODE_LIMITING,8,3          ## @EDC_MODE_LIMITING
L_.str.1:                               ## @.str.1
	.asciz	"Setting LIMITING MODE\n"

L_.str.2:                               ## @.str.2
	.asciz	"Setting LRM MODE\n"

	.comm	_MDIO_PMA_REG_LRM_MODE,4,2      ## @MDIO_PMA_REG_LRM_MODE
	.comm	_MDIO_PMA_REG_MISC_CTRL0,4,2    ## @MDIO_PMA_REG_MISC_CTRL0
	.no_dead_strip	_bnx2x_8726_set_limiting_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_8726_set_limiting_mode
_bnx2x_8726_set_limiting_mode:          ; @bnx2x_8726_set_limiting_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x22, _MDIO_PMA_DEVAD@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MDIO_PMA_DEVAD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh2:
	adrp	x23, _MDIO_PMA_REG_ROM_VER2@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MDIO_PMA_REG_ROM_VER2@GOTPAGEOFF]
	ldr	w3, [x23]
	add	x4, sp, #8
	bl	_bnx2x_cl45_read
Lloh4:
	adrp	x25, _NETIF_MSG_LINK@GOTPAGE
Lloh5:
	ldr	x25, [x25, _NETIF_MSG_LINK@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh8:
	adrp	x24, _EDC_MODE_LIMITING@GOTPAGE
Lloh9:
	ldr	x24, [x24, _EDC_MODE_LIMITING@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	w0, [x25]
	cmp	x8, x21
	b.ne	LBB0_2
; %bb.1:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	ldr	w2, [x22]
	ldr	w3, [x23]
	ldr	w4, [x24]
	mov	x0, x20
	mov	x1, x19
	b	LBB0_4
LBB0_2:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DP
	ldr	x8, [sp, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	w2, [x22]
Lloh14:
	adrp	x21, _MDIO_PMA_REG_LRM_MODE@GOTPAGE
Lloh15:
	ldr	x21, [x21, _MDIO_PMA_REG_LRM_MODE@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #0
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
	ldr	w3, [x23]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #296
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
Lloh16:
	adrp	x8, _MDIO_PMA_REG_MISC_CTRL0@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MDIO_PMA_REG_MISC_CTRL0@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #16392
	bl	_bnx2x_cl45_write
	ldr	w2, [x22]
	ldr	w3, [x21]
	mov	x0, x20
	mov	x1, x19
	mov	w4, #43690
LBB0_4:
	bl	_bnx2x_cl45_write
LBB0_5:
	mov	w0, #0
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MDIO_PMA_DEVAD,4,2             ; @MDIO_PMA_DEVAD
	.comm	_MDIO_PMA_REG_ROM_VER2,4,2      ; @MDIO_PMA_REG_ROM_VER2
	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Current Limiting mode is 0x%x\n"

	.comm	_EDC_MODE_LIMITING,8,3          ; @EDC_MODE_LIMITING
l_.str.1:                               ; @.str.1
	.asciz	"Setting LIMITING MODE\n"

l_.str.2:                               ; @.str.2
	.asciz	"Setting LRM MODE\n"

	.comm	_MDIO_PMA_REG_LRM_MODE,4,2      ; @MDIO_PMA_REG_LRM_MODE
	.comm	_MDIO_PMA_REG_MISC_CTRL0,4,2    ; @MDIO_PMA_REG_MISC_CTRL0
	.no_dead_strip	_bnx2x_8726_set_limiting_mode
.subsections_via_symbols
