	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_prev_unload_uncommon
_bnx2x_prev_unload_uncommon:            ## @bnx2x_prev_unload_uncommon
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_BNX2X_DEV_INFO
	movq	%rbx, %rdi
	callq	_bnx2x_prev_is_path_marked
	testq	%rax, %rax
	je	LBB0_1
## %bb.9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_bnx2x_prev_mcp_done            ## TAILCALL
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_BNX2X_DEV_INFO
	movq	%rbx, %rdi
	callq	_bnx2x_prev_is_after_undi
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	movq	_FW_MSG_CODE_DRV_LOAD_FUNCTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_bnx2x_compare_fw_ver
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	L_.str.2(%rip), %rdi
	callq	_BNX2X_DEV_INFO
	movq	%rbx, %rdi
	callq	_bnx2x_do_flr
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	leaq	L_.str.4(%rip), %rdi
	callq	_BNX2X_DEV_INFO
LBB0_6:
	movq	%rbx, %rdi
	callq	_bnx2x_prev_mcp_done
	testl	%eax, %eax
	jne	LBB0_8
## %bb.7:
	movq	_BNX2X_PREV_WAIT_NEEDED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	leaq	L_.str.3(%rip), %rdi
	callq	_BNX2X_DEV_INFO
	xorl	%eax, %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Uncommon unload Flow\n"

L_.str.1:                               ## @.str.1
	.asciz	"Path is unmarked\n"

	.comm	_FW_MSG_CODE_DRV_LOAD_FUNCTION,4,2 ## @FW_MSG_CODE_DRV_LOAD_FUNCTION
L_.str.2:                               ## @.str.2
	.asciz	"FW version matches our own. Attempting FLR\n"

L_.str.3:                               ## @.str.3
	.asciz	"FLR successful\n"

L_.str.4:                               ## @.str.4
	.asciz	"Could not FLR\n"

	.comm	_BNX2X_PREV_WAIT_NEEDED,4,2     ## @BNX2X_PREV_WAIT_NEEDED
	.no_dead_strip	_bnx2x_prev_unload_uncommon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_prev_unload_uncommon
_bnx2x_prev_unload_uncommon:            ; @bnx2x_prev_unload_uncommon
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BNX2X_DEV_INFO
	mov	x0, x19
	bl	_bnx2x_prev_is_path_marked
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_bnx2x_prev_mcp_done
LBB0_2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BNX2X_DEV_INFO
	mov	x0, x19
	bl	_bnx2x_prev_is_after_undi
	cbnz	x0, LBB0_6
; %bb.3:
Lloh4:
	adrp	x8, _FW_MSG_CODE_DRV_LOAD_FUNCTION@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FW_MSG_CODE_DRV_LOAD_FUNCTION@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_bnx2x_compare_fw_ver
	cbnz	w0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BNX2X_DEV_INFO
	mov	x0, x19
	bl	_bnx2x_do_flr
	cbz	w0, LBB0_8
LBB0_5:
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_BNX2X_DEV_INFO
LBB0_6:
	mov	x0, x19
	bl	_bnx2x_prev_mcp_done
Lloh11:
	adrp	x8, _BNX2X_PREV_WAIT_NEEDED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BNX2X_PREV_WAIT_NEEDED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w0, w8, w0, eq
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_BNX2X_DEV_INFO
	mov	w0, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Uncommon unload Flow\n"

l_.str.1:                               ; @.str.1
	.asciz	"Path is unmarked\n"

	.comm	_FW_MSG_CODE_DRV_LOAD_FUNCTION,4,2 ; @FW_MSG_CODE_DRV_LOAD_FUNCTION
l_.str.2:                               ; @.str.2
	.asciz	"FW version matches our own. Attempting FLR\n"

l_.str.3:                               ; @.str.3
	.asciz	"FLR successful\n"

l_.str.4:                               ; @.str.4
	.asciz	"Could not FLR\n"

	.comm	_BNX2X_PREV_WAIT_NEEDED,4,2     ; @BNX2X_PREV_WAIT_NEEDED
	.no_dead_strip	_bnx2x_prev_unload_uncommon
.subsections_via_symbols
