	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_disable_kr2
_bnx2x_disable_kr2:                     ## @bnx2x_disable_kr2
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	_NETIF_MSG_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	leaq	_bnx2x_disable_kr2.reg_set(%rip), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	leaq	_bnx2x_disable_kr2.reg_set+12(%rip), %r14
	xorl	%r15d, %r15d
	leaq	_bnx2x_disable_kr2.reg_set(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %edx
	movl	-8(%r14), %r8d
	movl	-4(%r14), %ecx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_bnx2x_cl45_write
	incq	%r15
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %r14
	cmpq	%rax, %r15
	jl	LBB0_2
LBB0_3:
	movq	_LINK_ATTR_SYNC_KR2_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	andl	4(%rbx), %esi
	movl	%esi, 4(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_bnx2x_update_link_attr
	movq	_CHECK_KR2_RECOVERY_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @bnx2x_disable_kr2.reg_set
_bnx2x_disable_kr2.reg_set:
	.long	143                             ## 0x8f
	.long	136                             ## 0x88
	.long	30352                           ## 0x7690
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	134                             ## 0x86
	.long	58951                           ## 0xe647
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	135                             ## 0x87
	.long	50416                           ## 0xc4f0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	133                             ## 0x85
	.long	30352                           ## 0x7690
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	137                             ## 0x89
	.long	58951                           ## 0xe647
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	138                             ## 0x8a
	.long	50416                           ## 0xc4f0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	139                             ## 0x8b
	.long	12                              ## 0xc
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	141                             ## 0x8d
	.long	24576                           ## 0x6000
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	140                             ## 0x8c
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	142                             ## 0x8e
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	130                             ## 0x82
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	129                             ## 0x81
	.long	2807                            ## 0xaf7
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	128                             ## 0x80
	.long	2807                            ## 0xaf7
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	132                             ## 0x84
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	143                             ## 0x8f
	.long	131                             ## 0x83
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

	.comm	_NETIF_MSG_LINK,4,2             ## @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Disabling 20G-KR2\n"

	.comm	_LINK_ATTR_SYNC_KR2_ENABLE,4,2  ## @LINK_ATTR_SYNC_KR2_ENABLE
	.comm	_CHECK_KR2_RECOVERY_CNT,4,2     ## @CHECK_KR2_RECOVERY_CNT
	.no_dead_strip	_bnx2x_disable_kr2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_disable_kr2
_bnx2x_disable_kr2:                     ; @bnx2x_disable_kr2
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _NETIF_MSG_LINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_MSG_LINK@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh5:
	adrp	x0, _bnx2x_disable_kr2.reg_set@PAGE
Lloh6:
	add	x0, x0, _bnx2x_disable_kr2.reg_set@PAGEOFF
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
Lloh7:
	adrp	x25, _bnx2x_disable_kr2.reg_set@PAGE+12
Lloh8:
	add	x25, x25, _bnx2x_disable_kr2.reg_set@PAGEOFF+12
Lloh9:
	adrp	x23, _bnx2x_disable_kr2.reg_set@PAGE
Lloh10:
	add	x23, x23, _bnx2x_disable_kr2.reg_set@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w3, w2, [x25, #-4]
	ldur	w4, [x25, #-8]
	mov	x0, x22
	mov	x1, x21
	bl	_bnx2x_cl45_write
	add	x24, x24, #1
	mov	x0, x23
	bl	_ARRAY_SIZE
	add	x25, x25, #24
	cmp	x24, w0, sxtw
	b.lt	LBB0_2
LBB0_3:
Lloh11:
	adrp	x8, _LINK_ATTR_SYNC_KR2_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LINK_ATTR_SYNC_KR2_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w1, w9, w8
	str	w1, [x19, #4]
	mov	x0, x20
	bl	_bnx2x_update_link_attr
Lloh14:
	adrp	x8, _CHECK_KR2_RECOVERY_CNT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CHECK_KR2_RECOVERY_CNT@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @bnx2x_disable_kr2.reg_set
_bnx2x_disable_kr2.reg_set:
	.long	143                             ; 0x8f
	.long	136                             ; 0x88
	.long	30352                           ; 0x7690
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	134                             ; 0x86
	.long	58951                           ; 0xe647
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	135                             ; 0x87
	.long	50416                           ; 0xc4f0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	133                             ; 0x85
	.long	30352                           ; 0x7690
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	137                             ; 0x89
	.long	58951                           ; 0xe647
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	138                             ; 0x8a
	.long	50416                           ; 0xc4f0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	139                             ; 0x8b
	.long	12                              ; 0xc
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	141                             ; 0x8d
	.long	24576                           ; 0x6000
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	140                             ; 0x8c
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	142                             ; 0x8e
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	130                             ; 0x82
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	129                             ; 0x81
	.long	2807                            ; 0xaf7
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	128                             ; 0x80
	.long	2807                            ; 0xaf7
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	132                             ; 0x84
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	143                             ; 0x8f
	.long	131                             ; 0x83
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

	.comm	_NETIF_MSG_LINK,4,2             ; @NETIF_MSG_LINK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Disabling 20G-KR2\n"

	.comm	_LINK_ATTR_SYNC_KR2_ENABLE,4,2  ; @LINK_ATTR_SYNC_KR2_ENABLE
	.comm	_CHECK_KR2_RECOVERY_CNT,4,2     ; @CHECK_KR2_RECOVERY_CNT
	.no_dead_strip	_bnx2x_disable_kr2
.subsections_via_symbols
