	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_get_nvm_image          ## -- Begin function qed_mcp_get_nvm_image
	.p2align	4, 0x90
_qed_mcp_get_nvm_image:                 ## @qed_mcp_get_nvm_image
	.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
	movl	%ecx, %r15d
	movq	%rdx, %r13
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	%ecx, %edx
	callq	_memset
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_qed_mcp_get_nvm_image_att
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	-48(%rbp), %r8d
	cmpl	$4, %r8d
	jg	LBB0_3
## %bb.2:
	movq	_QED_MSG_STORAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_3:
	cmpl	%r15d, %r8d
	jle	LBB0_5
## %bb.4:
	movq	_QED_MSG_STORAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	movl	%r14d, %ecx
	movl	%r15d, %r9d
	xorl	%eax, %eax
	callq	_DP_VERBOSE
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_6
LBB0_5:
	movl	(%r12), %edi
	movl	-44(%rbp), %esi
	movq	%r13, %rdx
	movl	%r8d, %ecx
	callq	_qed_mcp_nvm_read
	movl	%eax, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QED_MSG_STORAGE,4,2            ## @QED_MSG_STORAGE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Image [%d] is too small - only %d bytes\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Image [%d] is too big - %08x bytes where only %08x are available\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_get_nvm_image          ; -- Begin function qed_mcp_get_nvm_image
	.p2align	2
_qed_mcp_get_nvm_image:                 ; @qed_mcp_get_nvm_image
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	mov	x0, x2
	mov	w1, #0
	mov	x2, x3
	bl	_memset
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x19
	bl	_qed_mcp_get_nvm_image_att
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	w4, [sp, #8]
	cmp	w4, #4
	b.gt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _QED_MSG_STORAGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _QED_MSG_STORAGE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_DP_VERBOSE
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	cmp	w4, w21
	b.le	LBB0_6
; %bb.4:
Lloh7:
	adrp	x8, _QED_MSG_STORAGE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _QED_MSG_STORAGE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	str	x21, [sp]
	mov	x0, x20
	mov	x3, x19
	bl	_DP_VERBOSE
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	ldr	w0, [x20]
	ldr	w1, [sp, #12]
	mov	x2, x22
	mov	x3, x4
	bl	_qed_mcp_nvm_read
LBB0_7:
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_QED_MSG_STORAGE,4,2            ; @QED_MSG_STORAGE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Image [%d] is too small - only %d bytes\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Image [%d] is too big - %08x bytes where only %08x are available\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
