	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_nvm_flash_cfg_read
_qed_nvm_flash_cfg_read:                ## @qed_nvm_flash_cfg_read
	.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
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	callq	_QED_LEADING_HWFN
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_qed_ptt_acquire
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_NETIF_MSG_DRV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	callq	_DP_VERBOSE
	testl	%r13d, %r13d
	jne	LBB0_3
## %bb.4:
	movq	_QED_NVM_CFG_GET_FLAGS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_3:
	movq	_QED_NVM_CFG_GET_PF_FLAGS@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %r8d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r9
	leaq	-52(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	callq	_qed_mcp_nvm_get_cfg
	movl	%ebx, %ecx
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_DP_ERR
LBB0_7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_qed_ptt_release
LBB0_8:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_NETIF_MSG_DRV,4,2              ## @NETIF_MSG_DRV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Read config cmd = %d entity id %d\n"

	.comm	_QED_NVM_CFG_GET_PF_FLAGS,4,2   ## @QED_NVM_CFG_GET_PF_FLAGS
	.comm	_QED_NVM_CFG_GET_FLAGS,4,2      ## @QED_NVM_CFG_GET_FLAGS
L_.str.1:                               ## @.str.1
	.asciz	"Error %d reading %d\n"

	.no_dead_strip	_qed_nvm_flash_cfg_read
.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_cfg_read
_qed_nvm_flash_cfg_read:                ; @qed_nvm_flash_cfg_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x23, x3
	mov	x19, x2
	mov	x24, x1
	mov	x21, x0
	bl	_QED_LEADING_HWFN
	mov	x20, x0
	bl	_qed_ptt_acquire
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
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, x21
	mov	x3, x19
	mov	x4, x23
	bl	_DP_VERBOSE
Lloh5:
	adrp	x8, _QED_NVM_CFG_GET_PF_FLAGS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _QED_NVM_CFG_GET_PF_FLAGS@GOTPAGEOFF]
Lloh7:
	adrp	x9, _QED_NVM_CFG_GET_FLAGS@GOTPAGE
Lloh8:
	ldr	x9, [x9, _QED_NVM_CFG_GET_FLAGS@GOTPAGEOFF]
	cmp	w23, #0
	csel	x8, x9, x8, eq
	ldr	w4, [x8]
	ldr	x5, [x24]
	add	x6, sp, #12
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	mov	x3, x23
	bl	_qed_mcp_nvm_get_cfg
	mov	x23, x0
	cbz	w0, LBB0_3
; %bb.2:
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	mov	x3, x19
	bl	_DP_ERR
LBB0_3:
	mov	x0, x20
	mov	x1, x22
	bl	_qed_ptt_release
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
LBB0_5:
	mov	x0, x23
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_NETIF_MSG_DRV,4,2              ; @NETIF_MSG_DRV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Read config cmd = %d entity id %d\n"

	.comm	_QED_NVM_CFG_GET_PF_FLAGS,4,2   ; @QED_NVM_CFG_GET_PF_FLAGS
	.comm	_QED_NVM_CFG_GET_FLAGS,4,2      ; @QED_NVM_CFG_GET_FLAGS
l_.str.1:                               ; @.str.1
	.asciz	"Error %d reading %d\n"

	.no_dead_strip	_qed_nvm_flash_cfg_read
.subsections_via_symbols
