	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_parity_recover
_bnx2x_parity_recover:                  ## @bnx2x_parity_recover
	.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, %r12
	movl	$0, -44(%rbp)
	movq	_NETIF_MSG_HW@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_bnx2x_leader_reset
	testl	%eax, %eax
	jne	LBB0_15
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$129, %eax
	jne	LBB0_24
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_DP
	movq	%r12, %rdi
	leaq	-44(%rbp), %rsi
	xorl	%edx, %edx
	callq	_bnx2x_chk_parity_attn
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_WARN_ON
	movq	%r12, %rdi
	callq	_bnx2x_trylock_leader_lock
	testl	%eax, %eax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_bnx2x_set_reset_in_progress
	cmpl	$0, -44(%rbp)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_bnx2x_set_reset_global
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, 4(%r12)
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_UNLOAD_RECOVERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_bnx2x_nic_unload
	testl	%eax, %eax
	jne	LBB0_24
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$128, (%r12)
	xorl	%eax, %eax
	callq	_smp_mb
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_DP
	movl	4(%r12), %ebx
	movq	%r12, %rdi
	callq	_BP_PATH
	testl	%ebx, %ebx
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	testl	%eax, %eax
	sete	%sil
	movq	%r12, %rdi
	callq	_bnx2x_get_load_status
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_BP_PATH
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_bnx2x_get_load_status
	movl	%eax, %r14d
	movq	%r12, %rdi
	callq	_bnx2x_reset_is_global
	movl	%eax, -44(%rbp)
	testl	%r14d, %r14d
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r13d, %r13d
	je	LBB0_14
	jmp	LBB0_13
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_bnx2x_reset_is_done
	movq	%r12, %rdi
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	callq	_bnx2x_trylock_leader_lock
	testl	%eax, %eax
	je	LBB0_13
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, 4(%r12)
	jmp	LBB0_1
LBB0_15:
	movq	%r12, %rdi
	callq	_bnx2x_recovery_failed
	jmp	LBB0_24
LBB0_19:
	callq	_bnx2x_reset_is_global
	testl	%eax, %eax
	je	LBB0_20
LBB0_13:
	addq	$28, %r12
	movq	_HZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	movq	%r12, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_schedule_delayed_work
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	8(%r12), %r14
	movq	16(%r12), %r15
	movq	_BNX2X_RECOVERY_NIC_LOADING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	movq	_LOAD_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_bnx2x_nic_load
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	incq	%r14
	movl	24(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_netdev_err
	movl	24(%r12), %edi
	callq	_netif_device_detach
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_bnx2x_set_power_state
	jmp	LBB0_23
LBB0_22:
	movq	_BNX2X_RECOVERY_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	incq	%r15
LBB0_23:
	xorl	%eax, %eax
	callq	_smp_mb
	movq	%r15, 16(%r12)
	movq	%r14, 8(%r12)
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_HW,4,2               ## @NETIF_MSG_HW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Handling parity\n"

L_.str.1:                               ## @.str.1
	.asciz	"State is BNX2X_RECOVERY_INIT\n"

	.comm	_UNLOAD_RECOVERY,4,2            ## @UNLOAD_RECOVERY
L_.str.2:                               ## @.str.2
	.asciz	"State is BNX2X_RECOVERY_WAIT\n"

	.comm	_HZ,4,2                         ## @HZ
	.comm	_BNX2X_RECOVERY_NIC_LOADING,4,2 ## @BNX2X_RECOVERY_NIC_LOADING
	.comm	_LOAD_NORMAL,4,2                ## @LOAD_NORMAL
L_.str.3:                               ## @.str.3
	.asciz	"Recovery failed. Power cycle needed\n"

	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.comm	_BNX2X_RECOVERY_DONE,4,2        ## @BNX2X_RECOVERY_DONE
	.no_dead_strip	_bnx2x_parity_recover
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_parity_recover
_bnx2x_parity_recover:                  ; @bnx2x_parity_recover
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x24, _NETIF_MSG_HW@GOTPAGE
Lloh1:
	ldr	x24, [x24, _NETIF_MSG_HW@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
Lloh4:
	adrp	x20, l_.str.2@PAGE
Lloh5:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	w25, #1
Lloh6:
	adrp	x26, _UNLOAD_RECOVERY@GOTPAGE
Lloh7:
	ldr	x26, [x26, _UNLOAD_RECOVERY@GOTPAGEOFF]
	mov	w27, #128
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_bnx2x_leader_reset
	cbnz	w0, LBB0_17
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #129
	b.ne	LBB0_20
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	mov	x1, x21
	bl	_DP
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #0
	bl	_bnx2x_chk_parity_attn
	cmp	w0, #0
	cset	w0, eq
	bl	_WARN_ON
	mov	x0, x19
	bl	_bnx2x_trylock_leader_lock
	cbz	w0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_bnx2x_set_reset_in_progress
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_bnx2x_set_reset_global
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w25, [x19, #4]
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x26]
	mov	x0, x19
	mov	w2, #0
	bl	_bnx2x_nic_unload
	cbnz	w0, LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w27, [x19]
	bl	_smp_mb
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	mov	x1, x20
	bl	_DP
	ldr	w22, [x19, #4]
	mov	x0, x19
	bl	_BP_PATH
	mov	x1, x0
	cbz	w22, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	cmp	w1, #0
	cset	w1, eq
	mov	x0, x19
	bl	_bnx2x_get_load_status
	mov	x22, x0
	mov	x0, x19
	bl	_BP_PATH
	mov	x1, x0
	mov	x0, x19
	bl	_bnx2x_get_load_status
	mov	x23, x0
	mov	x0, x19
	bl	_bnx2x_reset_is_global
	str	w0, [sp, #12]
	cbnz	w23, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	cbz	w0, LBB0_1
; %bb.13:                               ;   in Loop: Header=BB0_2 Depth=1
	cbz	w22, LBB0_1
	b	LBB0_19
LBB0_14:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_bnx2x_reset_is_done
	cbnz	w0, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_bnx2x_trylock_leader_lock
	cbz	w0, LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_2 Depth=1
	str	w25, [x19, #4]
	b	LBB0_2
LBB0_17:
	mov	x0, x19
	bl	_bnx2x_recovery_failed
	b	LBB0_20
LBB0_18:
	mov	x0, x19
	bl	_bnx2x_reset_is_global
	cbz	w0, LBB0_21
LBB0_19:
	add	x0, x19, #28
Lloh10:
	adrp	x8, _HZ@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HZ@GOTPAGEOFF]
Lloh12:
	ldrsw	x8, [x8]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	bl	_schedule_delayed_work
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_21:
Lloh13:
	adrp	x8, _BNX2X_RECOVERY_NIC_LOADING@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BNX2X_RECOVERY_NIC_LOADING@GOTPAGEOFF]
	ldp	x20, x21, [x19, #8]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh16:
	adrp	x8, _LOAD_NORMAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LOAD_NORMAL@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2x_nic_load
	cbz	w0, LBB0_23
; %bb.22:
	add	x20, x20, #1
	ldr	w0, [x19, #24]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_netdev_err
	ldr	w0, [x19, #24]
	bl	_netif_device_detach
Lloh21:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2x_set_power_state
	b	LBB0_24
LBB0_23:
Lloh24:
	adrp	x8, _BNX2X_RECOVERY_DONE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BNX2X_RECOVERY_DONE@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	str	w8, [x19]
	add	x21, x21, #1
LBB0_24:
	bl	_smp_mb
	stp	x20, x21, [x19, #8]
	b	LBB0_20
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_HW,4,2               ; @NETIF_MSG_HW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Handling parity\n"

l_.str.1:                               ; @.str.1
	.asciz	"State is BNX2X_RECOVERY_INIT\n"

	.comm	_UNLOAD_RECOVERY,4,2            ; @UNLOAD_RECOVERY
l_.str.2:                               ; @.str.2
	.asciz	"State is BNX2X_RECOVERY_WAIT\n"

	.comm	_HZ,4,2                         ; @HZ
	.comm	_BNX2X_RECOVERY_NIC_LOADING,4,2 ; @BNX2X_RECOVERY_NIC_LOADING
	.comm	_LOAD_NORMAL,4,2                ; @LOAD_NORMAL
l_.str.3:                               ; @.str.3
	.asciz	"Recovery failed. Power cycle needed\n"

	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.comm	_BNX2X_RECOVERY_DONE,4,2        ; @BNX2X_RECOVERY_DONE
	.no_dead_strip	_bnx2x_parity_recover
.subsections_via_symbols
