	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_nvm_flash_image_file_start
_qed_nvm_flash_image_file_start:        ## @qed_nvm_flash_image_file_start
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	$0, -36(%rbp)
	movq	(%rsi), %rax
	leaq	16(%rax), %rcx
	movq	%rcx, (%rsi)
	movl	16(%rax), %r12d
	xorl	%edi, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%r12d, %eax
	setne	%cl
	movl	%ecx, (%r15)
	movq	(%rbx), %rax
	leaq	16(%rax), %rcx
	movq	%rcx, (%rbx)
	movl	16(%rax), %r15d
	movq	_NETIF_MSG_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_DP_VERBOSE
	movq	_DRV_MB_PARAM_NVM_PUT_FILE_BEGIN_MBI@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	leaq	16(%rax), %rcx
	movq	%rcx, (%rbx)
	movl	16(%rax), %eax
	movl	%eax, -36(%rbp)
LBB0_2:
	movq	_QED_PUT_FILE_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %edx
	movl	$4, %r8d
	callq	_qed_mcp_nvm_write
	addq	$16, (%rbx)
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_MSG_DRV,4,2              ## @NETIF_MSG_DRV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"About to start a new file of type %02x\n"

	.comm	_DRV_MB_PARAM_NVM_PUT_FILE_BEGIN_MBI,4,2 ## @DRV_MB_PARAM_NVM_PUT_FILE_BEGIN_MBI
	.comm	_QED_PUT_FILE_BEGIN,4,2         ## @QED_PUT_FILE_BEGIN
	.no_dead_strip	_qed_nvm_flash_image_file_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_nvm_flash_image_file_start
_qed_nvm_flash_image_file_start:        ; @qed_nvm_flash_image_file_start
	.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, x2
	mov	x19, x1
	mov	x20, x0
	str	wzr, [sp, #12]
	ldr	x8, [x1]
	ldr	w22, [x8, #16]!
	str	x8, [x1]
	mov	w0, #0
	bl	_BIT
	tst	w0, w22
	cset	w8, ne
	str	w8, [x21]
	ldr	x8, [x19]
	ldr	w21, [x8, #16]!
	str	x8, [x19]
Lloh0:
	adrp	x8, _NETIF_MSG_DRV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NETIF_MSG_DRV@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	mov	x3, x21
	bl	_DP_VERBOSE
Lloh5:
	adrp	x8, _DRV_MB_PARAM_NVM_PUT_FILE_BEGIN_MBI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DRV_MB_PARAM_NVM_PUT_FILE_BEGIN_MBI@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w21, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	ldr	w9, [x8, #16]!
	str	x8, [x19]
	str	w9, [sp, #12]
LBB0_2:
Lloh8:
	adrp	x8, _QED_PUT_FILE_BEGIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _QED_PUT_FILE_BEGIN@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x3, sp, #12
	mov	x0, x20
	mov	x2, x21
	mov	w4, #4
	bl	_qed_mcp_nvm_write
	ldr	x8, [x19]
	add	x8, x8, #16
	str	x8, [x19]
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_MSG_DRV,4,2              ; @NETIF_MSG_DRV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"About to start a new file of type %02x\n"

	.comm	_DRV_MB_PARAM_NVM_PUT_FILE_BEGIN_MBI,4,2 ; @DRV_MB_PARAM_NVM_PUT_FILE_BEGIN_MBI
	.comm	_QED_PUT_FILE_BEGIN,4,2         ; @QED_PUT_FILE_BEGIN
	.no_dead_strip	_qed_nvm_flash_image_file_start
.subsections_via_symbols
