	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i40e_read_nvm_buffer_aq
_i40e_read_nvm_buffer_aq:               ## @i40e_read_nvm_buffer_aq
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_I40E_SR_SECTOR_SIZE_IN_WORDS@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rax
	cqto
	idivq	%rsi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rdi
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	subq	%rdx, %rsi
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	subq	%r15, %rdi
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	callq	_min
	movq	%rax, %r13
	leaq	(%rax,%r15), %r14
	cmpq	(%r12), %r14
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%rax,%r15,8), %r8
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movq	%rbx, %rdx
	movq	%r13, %rcx
	movq	-64(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_i40e_read_nvm_aq
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	addq	%r13, %rbx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rax
	movq	%r14, %r15
	cmpq	%rax, %r14
	jl	LBB0_1
## %bb.12:
	testq	%rax, %rax
	jle	LBB0_13
## %bb.14:
	movq	%r12, %r15
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax,%rbx,4), %edi
	callq	_le16_to_cpu
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rbx,8)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incq	%rbx
	cmpq	(%r15), %rbx
	jl	LBB0_15
	jmp	LBB0_16
LBB0_10:
	movq	%rax, %r12
	jmp	LBB0_17
LBB0_13:
	xorl	%r12d, %r12d
LBB0_16:
	movq	%r14, %r15
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, (%rax)
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I40E_SR_SECTOR_SIZE_IN_WORDS,8,3 ## @I40E_SR_SECTOR_SIZE_IN_WORDS
	.no_dead_strip	_i40e_read_nvm_buffer_aq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i40e_read_nvm_buffer_aq
_i40e_read_nvm_buffer_aq:               ; @i40e_read_nvm_buffer_aq
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x3
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	w23, #0
	mov	x25, #0
Lloh0:
	adrp	x26, _I40E_SR_SECTOR_SIZE_IN_WORDS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _I40E_SR_SECTOR_SIZE_IN_WORDS@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x1, [x26]
	sdiv	x8, x21, x1
	msub	x8, x8, x1, x21
	ldr	x0, [x19]
	cbz	x8, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x1, x1, x8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	sub	x0, x0, x25
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	bl	_min
	mov	x24, x0
	ldr	x8, [x19]
	add	x27, x0, x25
	cmp	x27, x8
	csinc	w23, w23, wzr, lt
	add	x4, x20, x25, lsl #3
	mov	x0, x22
	mov	w1, #0
	mov	x2, x21
	mov	x3, x24
	mov	x5, x23
	bl	_i40e_read_nvm_aq
	cbnz	x0, LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x21, x24, x21
	ldr	x8, [x19]
	mov	x25, x27
	cmp	x27, x8
	b.lt	LBB0_1
; %bb.6:
	cmp	x8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, x21, lsl #2]
	bl	_le16_to_cpu
	str	x0, [x20, x21, lsl #3]
	add	x21, x21, #1
	ldr	x8, [x19]
	cmp	x21, x8
	b.lt	LBB0_8
LBB0_9:
	mov	x0, #0
	mov	x25, x27
LBB0_10:
	str	x25, [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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_I40E_SR_SECTOR_SIZE_IN_WORDS,8,3 ; @I40E_SR_SECTOR_SIZE_IN_WORDS
	.no_dead_strip	_i40e_read_nvm_buffer_aq
.subsections_via_symbols
