	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_compare_fw_ver           ## -- Begin function bnx2x_compare_fw_ver
	.p2align	4, 0x90
_bnx2x_compare_fw_ver:                  ## @bnx2x_compare_fw_ver
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_FW_MSG_CODE_DRV_LOAD_COMMON_CHIP@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	cmpq	%rsi, (%rax)
	je	LBB0_7
## %bb.1:
	movq	_FW_MSG_CODE_DRV_LOAD_COMMON@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_7
## %bb.2:
	movl	%edx, %r14d
	movq	_BCM_5710_FW_MINOR_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$8, %eax
	cltq
	movq	_BCM_5710_FW_REVISION_VERSION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	shll	$16, %ecx
	movslq	%ecx, %rcx
	addq	%rax, %rcx
	movq	_BCM_5710_FW_ENGINEERING_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shll	$24, %eax
	movslq	%eax, %rbx
	addq	%rcx, %rbx
	movq	_XSEM_REG_PRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_REG_RD
	movq	%rax, %r12
	movq	_BNX2X_MSG_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_DP
	cmpq	%r12, %rbx
	je	LBB0_7
## %bb.3:
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_BNX2X_ERR
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_BNX2X_DEV_INFO
LBB0_6:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_MSG_CODE_DRV_LOAD_COMMON_CHIP,8,3 ## @FW_MSG_CODE_DRV_LOAD_COMMON_CHIP
	.comm	_FW_MSG_CODE_DRV_LOAD_COMMON,8,3 ## @FW_MSG_CODE_DRV_LOAD_COMMON
	.comm	_BCM_5710_FW_MINOR_VERSION,4,2  ## @BCM_5710_FW_MINOR_VERSION
	.comm	_BCM_5710_FW_REVISION_VERSION,4,2 ## @BCM_5710_FW_REVISION_VERSION
	.comm	_BCM_5710_FW_ENGINEERING_VERSION,4,2 ## @BCM_5710_FW_ENGINEERING_VERSION
	.comm	_XSEM_REG_PRAM,4,2              ## @XSEM_REG_PRAM
	.comm	_BNX2X_MSG_SP,4,2               ## @BNX2X_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"loaded fw %x, my fw %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"bnx2x with FW %x was already loaded which mismatches my %x FW. Aborting\n"

L_.str.2:                               ## @.str.2
	.asciz	"bnx2x with FW %x was already loaded which mismatches my %x FW, possibly due to MF UNDI\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_compare_fw_ver           ; -- Begin function bnx2x_compare_fw_ver
	.p2align	2
_bnx2x_compare_fw_ver:                  ; @bnx2x_compare_fw_ver
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _FW_MSG_CODE_DRV_LOAD_COMMON_CHIP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_MSG_CODE_DRV_LOAD_COMMON_CHIP@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _FW_MSG_CODE_DRV_LOAD_COMMON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FW_MSG_CODE_DRV_LOAD_COMMON@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x1
	ccmp	x9, x1, #4, ne
	b.eq	LBB0_2
; %bb.1:
	mov	x19, x2
Lloh6:
	adrp	x8, _BCM_5710_FW_MINOR_VERSION@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BCM_5710_FW_MINOR_VERSION@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w8, w8, #8
Lloh9:
	adrp	x9, _BCM_5710_FW_REVISION_VERSION@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BCM_5710_FW_REVISION_VERSION@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	lsl	w9, w9, #16
	sxtw	x9, w9
	add	x8, x9, w8, sxtw
Lloh12:
	adrp	x9, _BCM_5710_FW_ENGINEERING_VERSION@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BCM_5710_FW_ENGINEERING_VERSION@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	lsl	w9, w9, #24
	add	x20, x8, w9, sxtw
Lloh15:
	adrp	x8, _XSEM_REG_PRAM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _XSEM_REG_PRAM@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	bl	_REG_RD
	mov	x21, x0
Lloh18:
	adrp	x8, _BNX2X_MSG_SP@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BNX2X_MSG_SP@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_DP
	cmp	x20, x21
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #0
	b	LBB0_7
LBB0_3:
	cbz	w19, LBB0_5
; %bb.4:
Lloh23:
	adrp	x0, l_.str.1@PAGE
Lloh24:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_BNX2X_ERR
	b	LBB0_6
LBB0_5:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x21
	mov	x2, x20
	bl	_BNX2X_DEV_INFO
LBB0_6:
Lloh27:
	adrp	x8, _EBUSY@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_MSG_CODE_DRV_LOAD_COMMON_CHIP,8,3 ; @FW_MSG_CODE_DRV_LOAD_COMMON_CHIP
	.comm	_FW_MSG_CODE_DRV_LOAD_COMMON,8,3 ; @FW_MSG_CODE_DRV_LOAD_COMMON
	.comm	_BCM_5710_FW_MINOR_VERSION,4,2  ; @BCM_5710_FW_MINOR_VERSION
	.comm	_BCM_5710_FW_REVISION_VERSION,4,2 ; @BCM_5710_FW_REVISION_VERSION
	.comm	_BCM_5710_FW_ENGINEERING_VERSION,4,2 ; @BCM_5710_FW_ENGINEERING_VERSION
	.comm	_XSEM_REG_PRAM,4,2              ; @XSEM_REG_PRAM
	.comm	_BNX2X_MSG_SP,4,2               ; @BNX2X_MSG_SP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"loaded fw %x, my fw %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"bnx2x with FW %x was already loaded which mismatches my %x FW. Aborting\n"

l_.str.2:                               ; @.str.2
	.asciz	"bnx2x with FW %x was already loaded which mismatches my %x FW, possibly due to MF UNDI\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
