	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_update_mfw_dump          ## -- Begin function bnx2x_update_mfw_dump
	.p2align	4, 0x90
_bnx2x_update_mfw_dump:                 ## @bnx2x_update_mfw_dump
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_drv_info@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movq	8(%r15), %rdx
	callq	_SHMEM2_HAS
	testl	%eax, %eax
	je	LBB0_4
## %bb.1:
	movl	12(%r15), %r14d
	xorl	%eax, %eax
	callq	_ktime_get_real_seconds
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_SHMEM2_WR
	movq	_DRV_MODULE_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_bnx2x_update_mng_version_utility
	movl	8(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_SHMEM2_WR
	movl	4(%r15), %r14d
	movq	_XSEM_REG_PRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_RD
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_SHMEM2_WR
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_SHMEM2_RD
	movl	%eax, %ebx
	movq	_FIRST_DUMP_VALID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
LBB0_3:
	movq	_SECOND_DUMP_VALID@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.5:
	movq	_NETIF_MSG_IFUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DP                             ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drv_info,16,2                  ## @drv_info
	.comm	_DRV_MODULE_VERSION,4,2         ## @DRV_MODULE_VERSION
	.comm	_XSEM_REG_PRAM,4,2              ## @XSEM_REG_PRAM
	.comm	_FIRST_DUMP_VALID,4,2           ## @FIRST_DUMP_VALID
	.comm	_NETIF_MSG_IFUP,4,2             ## @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A valid On-Chip MFW dump found on 1st partition\n"

	.comm	_SECOND_DUMP_VALID,4,2          ## @SECOND_DUMP_VALID
L_.str.1:                               ## @.str.1
	.asciz	"A valid On-Chip MFW dump found on 2nd partition\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_update_mfw_dump          ; -- Begin function bnx2x_update_mfw_dump
	.p2align	2
_bnx2x_update_mfw_dump:                 ; @bnx2x_update_mfw_dump
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _drv_info@GOTPAGE
Lloh1:
	ldr	x21, [x21, _drv_info@GOTPAGEOFF]
	ldp	x1, x2, [x21]
	bl	_SHMEM2_HAS
	cbz	w0, LBB0_5
; %bb.1:
	ldr	w20, [x21, #12]
	bl	_ktime_get_real_seconds
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_SHMEM2_WR
Lloh2:
	adrp	x8, _DRV_MODULE_VERSION@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRV_MODULE_VERSION@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #1
	bl	_bnx2x_update_mng_version_utility
	mov	x2, x0
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_SHMEM2_WR
	ldr	w20, [x21, #4]
Lloh5:
	adrp	x8, _XSEM_REG_PRAM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XSEM_REG_PRAM@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_RD
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_SHMEM2_WR
	ldr	w1, [x21]
	mov	x0, x19
	bl	_SHMEM2_RD
	mov	x19, x0
Lloh8:
	adrp	x8, _FIRST_DUMP_VALID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FIRST_DUMP_VALID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x20, _NETIF_MSG_IFUP@GOTPAGE
Lloh12:
	ldr	x20, [x20, _NETIF_MSG_IFUP@GOTPAGEOFF]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x20]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
LBB0_3:
Lloh15:
	adrp	x8, _SECOND_DUMP_VALID@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SECOND_DUMP_VALID@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x20]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	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
	b	_DP
LBB0_5:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_drv_info,16,2                  ; @drv_info
	.comm	_DRV_MODULE_VERSION,4,2         ; @DRV_MODULE_VERSION
	.comm	_XSEM_REG_PRAM,4,2              ; @XSEM_REG_PRAM
	.comm	_FIRST_DUMP_VALID,4,2           ; @FIRST_DUMP_VALID
	.comm	_NETIF_MSG_IFUP,4,2             ; @NETIF_MSG_IFUP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A valid On-Chip MFW dump found on 1st partition\n"

	.comm	_SECOND_DUMP_VALID,4,2          ; @SECOND_DUMP_VALID
l_.str.1:                               ; @.str.1
	.asciz	"A valid On-Chip MFW dump found on 2nd partition\n"

.subsections_via_symbols
