	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_nvm_read_section
_iwl_nvm_read_section:                  ## @iwl_nvm_read_section
	.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, %r14d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_IWL_NVM_DEFAULT_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	addl	%r12d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%rbx), %eax
	movq	(%r15), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx), %rcx
	cmpl	(%rcx), %eax
	jg	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	%r12d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	callq	_iwl_nvm_read_chunk
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	%r13d, %ebx
	cmpl	%r12d, %r13d
	je	LBB0_1
## %bb.6:
	movq	(%r15), %rax
	movl	4(%rax), %edi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_iwl_nvm_fixups
	movq	(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_EEPROM
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_ERR
	movq	_ENOBUFS@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_4:
	movq	(%r15), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	xorl	%eax, %eax
	callq	_IWL_DEBUG_EEPROM
	movl	%r13d, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_NVM_DEFAULT_CHUNK_SIZE,4,2 ## @IWL_NVM_DEFAULT_CHUNK_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EEPROM size is too small for NVM\n"

	.comm	_ENOBUFS,4,2                    ## @ENOBUFS
L_.str.1:                               ## @.str.1
	.asciz	"Cannot read NVM from section %d offset %d, length %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"NVM section %d read completed\n"

	.no_dead_strip	_iwl_nvm_read_section
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_nvm_read_section
_iwl_nvm_read_section:                  ; @iwl_nvm_read_section
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	mov	w19, #0
Lloh0:
	adrp	x8, _IWL_NVM_DEFAULT_CHUNK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_NVM_DEFAULT_CHUNK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	add	w25, w23, w3
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldr	w8, [x8]
	add	w9, w25, w19
	cmp	w9, w8
	b.gt	LBB0_5
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x23
	mov	x4, x22
	bl	_iwl_nvm_read_chunk
	mov	x24, x0
	tbnz	w0, #31, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w19, w24, w19
	cmp	w24, w23
	b.eq	LBB0_1
; %bb.4:
	ldr	x8, [x21]
	ldr	w0, [x8, #4]
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	bl	_iwl_nvm_fixups
	ldr	x8, [x21]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_IWL_DEBUG_EEPROM
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_IWL_ERR
Lloh7:
	adrp	x8, _ENOBUFS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOBUFS@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_7
LBB0_6:
	ldr	x8, [x21]
	ldr	w0, [x8]
	stp	x19, x23, [sp]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_IWL_DEBUG_EEPROM
	mov	x19, x24
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_NVM_DEFAULT_CHUNK_SIZE,4,2 ; @IWL_NVM_DEFAULT_CHUNK_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EEPROM size is too small for NVM\n"

	.comm	_ENOBUFS,4,2                    ; @ENOBUFS
l_.str.1:                               ; @.str.1
	.asciz	"Cannot read NVM from section %d offset %d, length %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"NVM section %d read completed\n"

	.no_dead_strip	_iwl_nvm_read_section
.subsections_via_symbols
