	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_dbg_nvm_image
_qed_dbg_nvm_image:                     ## @qed_dbg_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	shlq	$2, %rbx
	addq	8(%rdi), %rbx
	movq	$0, (%rdx)
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%ecx, %esi
	callq	_qed_dbg_nvm_image_length
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_DP_NOTICE
	movq	-40(%rbp), %rdi
	movl	$8, %esi
	callq	_roundup
	movq	%rax, -40(%rbp)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	%rax, %rcx
	callq	_qed_mcp_get_nvm_image
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	_QED_NVM_IMAGE_NVM_META@GOTPCREL(%rip), %rcx
	movq	-40(%rbp), %rax
	cmpl	%r15d, (%rcx)
	je	LBB0_6
## %bb.3:
	testq	%rax, %rax
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12,%rbx), %rdi
	callq	_cpu_to_be32
	movq	%rax, (%r12,%rbx)
	addq	$4, %rbx
	movq	-40(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	%rax, (%r14)
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Collecting a debug feature [\"nvram image %d\"]\n"

	.comm	_QED_NVM_IMAGE_NVM_META,4,2     ## @QED_NVM_IMAGE_NVM_META
	.no_dead_strip	_qed_dbg_nvm_image
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_dbg_nvm_image
_qed_dbg_nvm_image:                     ; @qed_dbg_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	x19, x2
	mov	x20, x1
	ldp	x9, x8, [x0]
	add	x22, x8, x9, lsl #2
	str	xzr, [x2]
	add	x2, sp, #8
	mov	x0, x22
	mov	x1, x3
	bl	_qed_dbg_nvm_image_length
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w0, [x22]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_DP_NOTICE
	ldr	x0, [sp, #8]
	mov	w1, #8
	bl	_roundup
	mov	x3, x0
	str	x0, [sp, #8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_qed_mcp_get_nvm_image
	cbnz	w0, LBB0_6
; %bb.2:
Lloh2:
	adrp	x8, _QED_NVM_IMAGE_NVM_META@GOTPAGE
Lloh3:
	ldr	x8, [x8, _QED_NVM_IMAGE_NVM_META@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	ldr	x8, [sp, #8]
	cmp	w9, w21
	ccmp	x8, #1, #8, ne
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, x21]
	bl	_cpu_to_be32
	str	x0, [x20, x21]
	add	x21, x21, #4
	ldr	x8, [sp, #8]
	cmp	x21, x8
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
	str	x8, [x19]
LBB0_6:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Collecting a debug feature [\"nvram image %d\"]\n"

	.comm	_QED_NVM_IMAGE_NVM_META,4,2     ; @QED_NVM_IMAGE_NVM_META
	.no_dead_strip	_qed_dbg_nvm_image
.subsections_via_symbols
