	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_update_mng_version       ## -- Begin function bnx2x_update_mng_version
	.p2align	4, 0x90
_bnx2x_update_mng_version:              ## @bnx2x_update_mng_version
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_DRV_VER_NOT_LOADED@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_BP_FW_MB_IDX
	movl	%eax, %r14d
	movq	_func_os_drv_ver@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%rbx, %rdi
	callq	_SHMEM2_HAS
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	leaq	8(%rbx), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpq	$0, 24(%rbx)
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jne	LBB0_5
## %bb.2:
	movq	(%rbx), %rax
	movq	_BNX2X_STATE_OPEN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	_DRV_MODULE_VERSION@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	$1, %esi
	callq	_bnx2x_update_mng_version_utility
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_CNIC_LOADED
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_bnx2x_drv_info_iscsi_stat
	movq	16(%rbx), %rax
	movq	8(%rax), %rdi
	xorl	%esi, %esi
	callq	_bnx2x_update_mng_version_utility
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rbx), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%rbx, %rdi
	callq	_bnx2x_drv_info_fcoe_stat
	movq	16(%rbx), %rax
	movq	(%rax), %rdi
	xorl	%esi, %esi
	callq	_bnx2x_update_mng_version_utility
	movl	%eax, %r15d
	jmp	LBB0_7
LBB0_5:
	movl	%r15d, %r14d
LBB0_6:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
LBB0_7:
	movq	(%r13), %rax
	movq	%r13, %r12
	movslq	-48(%rbp), %r13                 ## 4-byte Folded Reload
	movq	(%rax,%r13,8), %rax
	movq	_DRV_PERS_ETHERNET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_SHMEM2_WR
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	_DRV_PERS_ISCSI@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_SHMEM2_WR
	movq	_func_os_drv_ver@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movq	_DRV_PERS_FCOE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_SHMEM2_WR
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	_BNX2X_MSG_MCP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_VER_NOT_LOADED,4,2         ## @DRV_VER_NOT_LOADED
	.comm	_func_os_drv_ver,8,3            ## @func_os_drv_ver
	.comm	_BNX2X_STATE_OPEN,8,3           ## @BNX2X_STATE_OPEN
	.comm	_DRV_MODULE_VERSION,8,3         ## @DRV_MODULE_VERSION
	.comm	_DRV_PERS_ETHERNET,8,3          ## @DRV_PERS_ETHERNET
	.comm	_DRV_PERS_ISCSI,8,3             ## @DRV_PERS_ISCSI
	.comm	_DRV_PERS_FCOE,8,3              ## @DRV_PERS_FCOE
	.comm	_BNX2X_MSG_MCP,4,2              ## @BNX2X_MSG_MCP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Setting driver version: ETH [%08x] iSCSI [%08x] FCoE [%08x]\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_update_mng_version       ; -- Begin function bnx2x_update_mng_version
	.p2align	2
_bnx2x_update_mng_version:              ; @bnx2x_update_mng_version
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, _DRV_VER_NOT_LOADED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_VER_NOT_LOADED@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	bl	_BP_FW_MB_IDX
	mov	x23, x0
Lloh3:
	adrp	x25, _func_os_drv_ver@GOTPAGE
Lloh4:
	ldr	x25, [x25, _func_os_drv_ver@GOTPAGEOFF]
	ldr	x1, [x25]
	mov	x0, x19
	bl	_SHMEM2_HAS
	cbz	w0, LBB0_8
; %bb.1:
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_5
; %bb.2:
	ldr	x8, [x19]
Lloh5:
	adrp	x9, _BNX2X_STATE_OPEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BNX2X_STATE_OPEN@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh8:
	adrp	x8, _DRV_MODULE_VERSION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DRV_MODULE_VERSION@GOTPAGEOFF]
Lloh10:
	ldr	x0, [x8]
	mov	w1, #1
	bl	_bnx2x_update_mng_version_utility
	mov	x22, x0
	mov	x0, x19
	bl	_CNIC_LOADED
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x19
	bl	_bnx2x_drv_info_iscsi_stat
	ldr	x8, [x19, #16]
	ldr	x0, [x8, #8]
	mov	w1, #0
	bl	_bnx2x_update_mng_version_utility
	mov	x24, x0
	ldr	x0, [x19, #16]
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x19
	bl	_bnx2x_drv_info_fcoe_stat
	ldr	x8, [x19, #16]
	ldr	x0, [x8]
	mov	w1, #0
	bl	_bnx2x_update_mng_version_utility
	mov	x21, x0
	b	LBB0_7
LBB0_5:
	mov	x22, x21
LBB0_6:
	mov	x24, x21
LBB0_7:
	ldr	x8, [x25]
	sbfiz	x23, x23, #3, #32
	ldr	x8, [x8, x23]
Lloh11:
	adrp	x9, _DRV_PERS_ETHERNET@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DRV_PERS_ETHERNET@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x2, x22
	bl	_SHMEM2_WR
	ldr	x8, [x25]
	ldr	x8, [x8, x23]
Lloh14:
	adrp	x9, _DRV_PERS_ISCSI@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRV_PERS_ISCSI@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x2, x24
	bl	_SHMEM2_WR
	ldr	x8, [x25]
	ldr	x8, [x8, x23]
Lloh17:
	adrp	x9, _DRV_PERS_FCOE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _DRV_PERS_FCOE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x2, x21
	bl	_SHMEM2_WR
	mov	x0, x20
	bl	_mutex_unlock
Lloh20:
	adrp	x8, _BNX2X_MSG_MCP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BNX2X_MSG_MCP@GOTPAGEOFF]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
Lloh24:
	ldr	w0, [x8]
	mov	x2, x22
	mov	x3, x24
	mov	x4, x21
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_DP
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_VER_NOT_LOADED,4,2         ; @DRV_VER_NOT_LOADED
	.comm	_func_os_drv_ver,8,3            ; @func_os_drv_ver
	.comm	_BNX2X_STATE_OPEN,8,3           ; @BNX2X_STATE_OPEN
	.comm	_DRV_MODULE_VERSION,8,3         ; @DRV_MODULE_VERSION
	.comm	_DRV_PERS_ETHERNET,8,3          ; @DRV_PERS_ETHERNET
	.comm	_DRV_PERS_ISCSI,8,3             ; @DRV_PERS_ISCSI
	.comm	_DRV_PERS_FCOE,8,3              ; @DRV_PERS_FCOE
	.comm	_BNX2X_MSG_MCP,4,2              ; @BNX2X_MSG_MCP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Setting driver version: ETH [%08x] iSCSI [%08x] FCoE [%08x]\n"

.subsections_via_symbols
