	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_pf_flr_clnup
_bnx2x_pf_flr_clnup:                    ## @bnx2x_pf_flr_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
	movq	%rdi, %r15
	callq	_bnx2x_flr_clnup_poll_count
	movl	%eax, %r14d
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%r15, %rdi
	callq	_BP_ABS_FUNC
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	movl	%ebx, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DP
	movq	_PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_REG_WR
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_DP
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bnx2x_poll_hw_usage_counters
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_2:
	movq	%r15, %rdi
	callq	_BP_FUNC
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_bnx2x_send_final_clnup
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_7
LBB0_4:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_bnx2x_tx_hw_flushed
	movl	$100, %edi
	callq	_msleep
	movl	(%r15), %edi
	callq	_bnx2x_is_pcie_pending
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_BNX2X_ERR
LBB0_6:
	movq	%r15, %rdi
	callq	_bnx2x_hw_enable_status
	movq	_PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_REG_WR
	xorl	%r12d, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BNX2X_MSG_SP,4,2               ## @BNX2X_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cleanup after FLR PF[%d]\n"

	.comm	_PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ,4,2 ## @PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ
L_.str.1:                               ## @.str.1
	.asciz	"Polling usage counters\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
L_.str.2:                               ## @.str.2
	.asciz	"PCIE Transactions still pending\n"

	.comm	_PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER,4,2 ## @PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER
	.no_dead_strip	_bnx2x_pf_flr_clnup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_pf_flr_clnup
_bnx2x_pf_flr_clnup:                    ; @bnx2x_pf_flr_clnup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_bnx2x_flr_clnup_poll_count
	mov	x20, x0
Lloh0:
	adrp	x22, _BNX2X_MSG_SP@GOTPAGE
Lloh1:
	ldr	x22, [x22, _BNX2X_MSG_SP@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x19
	bl	_BP_ABS_FUNC
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_DP
Lloh4:
	adrp	x8, _PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_REG_WR
	ldr	w0, [x22]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_DP
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_poll_hw_usage_counters
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_BP_FUNC
	mov	x1, x0
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x20
	bl	_bnx2x_send_final_clnup
	cbz	x0, LBB0_4
LBB0_2:
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_4:
	mov	x0, x19
	mov	x1, x20
	bl	_bnx2x_tx_hw_flushed
	mov	w0, #100
	bl	_msleep
	ldr	w0, [x19]
	bl	_bnx2x_is_pcie_pending
	cbz	x0, LBB0_6
; %bb.5:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BNX2X_ERR
LBB0_6:
	mov	x0, x19
	bl	_bnx2x_hw_enable_status
Lloh14:
	adrp	x8, _PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_REG_WR
	mov	w0, #0
	b	LBB0_3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_BNX2X_MSG_SP,4,2               ; @BNX2X_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cleanup after FLR PF[%d]\n"

	.comm	_PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ,4,2 ; @PGLUE_B_REG_INTERNAL_PFID_ENABLE_TARGET_READ
l_.str.1:                               ; @.str.1
	.asciz	"Polling usage counters\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
l_.str.2:                               ; @.str.2
	.asciz	"PCIE Transactions still pending\n"

	.comm	_PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER,4,2 ; @PGLUE_B_REG_INTERNAL_PFID_ENABLE_MASTER
	.no_dead_strip	_bnx2x_pf_flr_clnup
.subsections_via_symbols
