	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_get_nvm_image_att      ## -- Begin function qed_mcp_get_nvm_image_att
	.p2align	4, 0x90
_qed_mcp_get_nvm_image_att:             ## @qed_mcp_get_nvm_image_att
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	leal	-128(%r14), %eax
	cmpl	$5, %eax
	jae	LBB0_1
## %bb.3:
	movq	%rdx, %r15
	cltq
	leaq	l_switch.table.qed_mcp_get_nvm_image_att(%rip), %rcx
	movq	(%rcx,%rax,8), %rax
	movl	(%rax), %ebx
	movq	%r12, %rdi
	callq	_qed_mcp_nvm_info_populate
	movq	(%r12), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.8:
	movq	8(%r12), %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	(%rdx), %ebx
	je	LBB0_5
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%rcx
	addq	$12, %rdx
	cmpq	%rcx, %rax
	jne	LBB0_9
	jmp	LBB0_11
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_DP_NOTICE
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	xorl	%ecx, %ecx
LBB0_5:
	cmpq	%rax, %rcx
	jne	LBB0_6
LBB0_11:
	movq	_QED_MSG_STORAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %ecx
	callq	_DP_VERBOSE
	movq	_ENOENT@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	8(%r12), %rax
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %edx
	movl	%edx, 4(%r15)
	movl	4(%rax,%rcx,4), %eax
	movl	%eax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_NVM_TYPE_ISCSI_CFG,4,2         ## @NVM_TYPE_ISCSI_CFG
	.comm	_NVM_TYPE_FCOE_CFG,4,2          ## @NVM_TYPE_FCOE_CFG
	.comm	_NVM_TYPE_NVM_CFG1,4,2          ## @NVM_TYPE_NVM_CFG1
	.comm	_NVM_TYPE_DEFAULT_CFG,4,2       ## @NVM_TYPE_DEFAULT_CFG
	.comm	_NVM_TYPE_META,4,2              ## @NVM_TYPE_META
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown request of image_id %08x\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_QED_MSG_STORAGE,4,2            ## @QED_MSG_STORAGE
L_.str.1:                               ## @.str.1
	.asciz	"Failed to find nvram image of type %08x\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.qed_mcp_get_nvm_image_att
l_switch.table.qed_mcp_get_nvm_image_att:
	.quad	_NVM_TYPE_META
	.quad	_NVM_TYPE_NVM_CFG1
	.quad	_NVM_TYPE_ISCSI_CFG
	.quad	_NVM_TYPE_FCOE_CFG
	.quad	_NVM_TYPE_DEFAULT_CFG

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_qed_mcp_get_nvm_image_att      ; -- Begin function qed_mcp_get_nvm_image_att
	.p2align	2
_qed_mcp_get_nvm_image_att:             ; @qed_mcp_get_nvm_image_att
	.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, x1
	mov	x20, x0
	sub	w8, w1, #128
	cmp	w8, #5
	b.hs	LBB0_5
; %bb.1:
	mov	x21, x2
Lloh0:
	adrp	x9, l_switch.table.qed_mcp_get_nvm_image_att@PAGE
Lloh1:
	add	x9, x9, l_switch.table.qed_mcp_get_nvm_image_att@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w22, [x8]
	mov	x0, x20
	bl	_qed_mcp_nvm_info_populate
	ldr	x9, [x20]
	cbz	x9, LBB0_6
; %bb.2:
	mov	x8, #0
	ldr	x10, [x20, #8]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w22, w11
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, #1
	add	x10, x10, #12
	cmp	x9, x8
	b.ne	LBB0_3
	b	LBB0_8
LBB0_5:
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_DP_NOTICE
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	mov	x8, #0
LBB0_7:
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_8:
Lloh6:
	adrp	x8, _QED_MSG_STORAGE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _QED_MSG_STORAGE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, x19
	bl	_DP_VERBOSE
Lloh11:
	adrp	x8, _ENOENT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
LBB0_11:
	mov	w0, #0
	ldr	x9, [x20, #8]
	mov	w10, #12
	madd	x8, x8, x10, x9
	ldur	d0, [x8, #4]
	str	d0, [x21]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NVM_TYPE_ISCSI_CFG,4,2         ; @NVM_TYPE_ISCSI_CFG
	.comm	_NVM_TYPE_FCOE_CFG,4,2          ; @NVM_TYPE_FCOE_CFG
	.comm	_NVM_TYPE_NVM_CFG1,4,2          ; @NVM_TYPE_NVM_CFG1
	.comm	_NVM_TYPE_DEFAULT_CFG,4,2       ; @NVM_TYPE_DEFAULT_CFG
	.comm	_NVM_TYPE_META,4,2              ; @NVM_TYPE_META
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown request of image_id %08x\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_QED_MSG_STORAGE,4,2            ; @QED_MSG_STORAGE
l_.str.1:                               ; @.str.1
	.asciz	"Failed to find nvram image of type %08x\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.qed_mcp_get_nvm_image_att
l_switch.table.qed_mcp_get_nvm_image_att:
	.quad	_NVM_TYPE_META
	.quad	_NVM_TYPE_NVM_CFG1
	.quad	_NVM_TYPE_ISCSI_CFG
	.quad	_NVM_TYPE_FCOE_CFG
	.quad	_NVM_TYPE_DEFAULT_CFG

.subsections_via_symbols
