	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ice_aq_read_nvm
_ice_aq_read_nvm:                       ## @ice_aq_read_nvm
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$16777216, %edx                 ## imm = 0x1000000
	jae	LBB0_1
## %bb.2:
	movl	%r9d, %r14d
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movl	%esi, %r12d
	movq	%rdi, %r15
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	_ice_aqc_opc_nvm_read@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdi
	callq	_ice_fill_dflt_direct_cmd_desc
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movq	_ICE_AQC_NVM_LAST_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, -56(%rbp)
LBB0_4:
	movl	%r12d, %edi
	callq	_cpu_to_le16
	movq	%rax, -64(%rbp)
	movzwl	%bx, %edi
	callq	_cpu_to_le16
	movq	%rax, -72(%rbp)
	shrl	$16, %ebx
	movl	%ebx, -88(%rbp)
	movl	%r13d, %edi
	callq	_cpu_to_le16
	movq	%rax, -80(%rbp)
	leaq	-88(%rbp), %rsi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r13d, %ecx
	movq	16(%rbp), %r8
	callq	_ice_aq_send_cmd
	jmp	LBB0_5
LBB0_1:
	movq	_ICE_ERR_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ICE_ERR_PARAM,4,2              ## @ICE_ERR_PARAM
	.comm	_ice_aqc_opc_nvm_read,4,2       ## @ice_aqc_opc_nvm_read
	.comm	_ICE_AQC_NVM_LAST_CMD,4,2       ## @ICE_AQC_NVM_LAST_CMD
	.no_dead_strip	_ice_aq_read_nvm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ice_aq_read_nvm
_ice_aq_read_nvm:                       ; @ice_aq_read_nvm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	lsr	w8, w2, #24
	cbnz	w8, LBB0_4
; %bb.1:
	mov	x19, x6
	mov	x25, x5
	mov	x21, x4
	mov	x20, x3
	mov	x23, x2
	mov	x24, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _ice_aqc_opc_nvm_read@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ice_aqc_opc_nvm_read@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_ice_fill_dflt_direct_cmd_desc
	cbz	w25, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _ICE_AQC_NVM_LAST_CMD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICE_AQC_NVM_LAST_CMD@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #40]
	orr	w8, w9, w8
	str	w8, [sp, #40]
LBB0_3:
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [sp, #32]
	and	w0, w23, #0xffff
	bl	_cpu_to_le16
	str	x0, [sp, #24]
	lsr	w8, w23, #16
	str	w8, [sp, #8]
	mov	x0, x20
	bl	_cpu_to_le16
	str	x0, [sp, #16]
	add	x1, sp, #8
	mov	x0, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_ice_aq_send_cmd
	b	LBB0_5
LBB0_4:
Lloh6:
	adrp	x8, _ICE_ERR_PARAM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ICE_ERR_PARAM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_5:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ICE_ERR_PARAM,4,2              ; @ICE_ERR_PARAM
	.comm	_ice_aqc_opc_nvm_read,4,2       ; @ice_aqc_opc_nvm_read
	.comm	_ICE_AQC_NVM_LAST_CMD,4,2       ; @ICE_AQC_NVM_LAST_CMD
	.no_dead_strip	_ice_aq_read_nvm
.subsections_via_symbols
