	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_send_final_clnup         ## -- Begin function bnx2x_send_final_clnup
	.p2align	4, 0x90
_bnx2x_send_final_clnup:                ## @bnx2x_send_final_clnup
	.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
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	_BAR_CSTRORM_INTMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%esi, %edi
	callq	_CSTORM_FINAL_CLEANUP_COMPLETE_OFFSET
	movl	%eax, %r13d
	addl	%ebx, %r13d
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_REG_RD
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_BNX2X_ERR
	movl	$1, %r12d
	jmp	LBB0_5
LBB0_2:
	movq	_XSTORM_AGG_INT_FINAL_CLEANUP_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP_GEN_PARAM
	movl	%eax, %ebx
	movq	_XSTORM_AGG_INT_FINAL_CLEANUP_COMP_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_OP_GEN_TYPE
	orl	%eax, %ebx
	movl	%r12d, %edi
	callq	_OP_GEN_AGG_VECT
	orl	%eax, %ebx
	movq	_SDM_OP_GEN_AGG_VECT_IDX_VALID_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	btsl	%eax, %ebx
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	_XSDM_REG_OPERATION_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_REG_WR
	movl	$1, %r12d
	movq	%r14, %rdi
	movl	%r13d, %esi
	movl	$1, %edx
	movl	%r15d, %ecx
	callq	_bnx2x_flr_clnup_reg_poll
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_REG_WR
	xorl	%r12d, %r12d
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	callq	_BNX2X_ERR
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_REG_RD
	leaq	L_.str.3(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_DP
	xorl	%eax, %eax
	callq	_bnx2x_panic
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BAR_CSTRORM_INTMEM,4,2         ## @BAR_CSTRORM_INTMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cleanup complete was not 0 before sending\n"

	.comm	_XSTORM_AGG_INT_FINAL_CLEANUP_INDEX,4,2 ## @XSTORM_AGG_INT_FINAL_CLEANUP_INDEX
	.comm	_XSTORM_AGG_INT_FINAL_CLEANUP_COMP_TYPE,4,2 ## @XSTORM_AGG_INT_FINAL_CLEANUP_COMP_TYPE
	.comm	_SDM_OP_GEN_AGG_VECT_IDX_VALID_SHIFT,4,2 ## @SDM_OP_GEN_AGG_VECT_IDX_VALID_SHIFT
	.comm	_BNX2X_MSG_SP,4,2               ## @BNX2X_MSG_SP
L_.str.1:                               ## @.str.1
	.asciz	"sending FW Final cleanup\n"

	.comm	_XSDM_REG_OPERATION_GEN,4,2     ## @XSDM_REG_OPERATION_GEN
L_.str.2:                               ## @.str.2
	.asciz	"FW final cleanup did not succeed\n"

L_.str.3:                               ## @.str.3
	.asciz	"At timeout completion address contained %x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_send_final_clnup         ; -- Begin function bnx2x_send_final_clnup
	.p2align	2
_bnx2x_send_final_clnup:                ; @bnx2x_send_final_clnup
	.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	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _BAR_CSTRORM_INTMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BAR_CSTRORM_INTMEM@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x1
	bl	_CSTORM_FINAL_CLEANUP_COMPLETE_OFFSET
	add	w20, w0, w20
	mov	x0, x19
	mov	x1, x20
	bl	_REG_RD
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_ERR
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x8, _XSTORM_AGG_INT_FINAL_CLEANUP_INDEX@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XSTORM_AGG_INT_FINAL_CLEANUP_INDEX@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_OP_GEN_PARAM
	mov	x23, x0
Lloh8:
	adrp	x8, _XSTORM_AGG_INT_FINAL_CLEANUP_COMP_TYPE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XSTORM_AGG_INT_FINAL_CLEANUP_COMP_TYPE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_OP_GEN_TYPE
	orr	w23, w0, w23
	mov	x0, x22
	bl	_OP_GEN_AGG_VECT
	orr	w8, w23, w0
Lloh11:
	adrp	x9, _SDM_OP_GEN_AGG_VECT_IDX_VALID_SHIFT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _SDM_OP_GEN_AGG_VECT_IDX_VALID_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	mov	w10, #1
	lsl	w9, w10, w9
	orr	w22, w8, w9
Lloh14:
	adrp	x23, _BNX2X_MSG_SP@GOTPAGE
Lloh15:
	ldr	x23, [x23, _BNX2X_MSG_SP@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
Lloh18:
	adrp	x8, _XSDM_REG_OPERATION_GEN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _XSDM_REG_OPERATION_GEN@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_REG_WR
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	mov	x3, x21
	bl	_bnx2x_flr_clnup_reg_poll
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_REG_WR
	mov	w0, #0
	b	LBB0_6
LBB0_4:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BNX2X_ERR
	ldr	w21, [x23]
	mov	x0, x19
	mov	x1, x20
	bl	_REG_RD
	str	x0, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_DP
	bl	_bnx2x_panic
LBB0_5:
	mov	w0, #1
LBB0_6:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_BAR_CSTRORM_INTMEM,4,2         ; @BAR_CSTRORM_INTMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cleanup complete was not 0 before sending\n"

	.comm	_XSTORM_AGG_INT_FINAL_CLEANUP_INDEX,4,2 ; @XSTORM_AGG_INT_FINAL_CLEANUP_INDEX
	.comm	_XSTORM_AGG_INT_FINAL_CLEANUP_COMP_TYPE,4,2 ; @XSTORM_AGG_INT_FINAL_CLEANUP_COMP_TYPE
	.comm	_SDM_OP_GEN_AGG_VECT_IDX_VALID_SHIFT,4,2 ; @SDM_OP_GEN_AGG_VECT_IDX_VALID_SHIFT
	.comm	_BNX2X_MSG_SP,4,2               ; @BNX2X_MSG_SP
l_.str.1:                               ; @.str.1
	.asciz	"sending FW Final cleanup\n"

	.comm	_XSDM_REG_OPERATION_GEN,4,2     ; @XSDM_REG_OPERATION_GEN
l_.str.2:                               ; @.str.2
	.asciz	"FW final cleanup did not succeed\n"

l_.str.3:                               ; @.str.3
	.asciz	"At timeout completion address contained %x\n"

.subsections_via_symbols
