	.file	"extr_megaraid_sas_fp.c_get_strip_from_row.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"get_strip_from_rowreturns invalid strip for ld=%x, row=%lx\n"
	.text
	.p2align 4
	.type	get_strip_from_row, @function
get_strip_from_row:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rbx, QWORD PTR 8[rdi]
	mov	QWORD PTR 32[rsp], rdi
	mov	rdi, r14
	mov	QWORD PTR 40[rsp], rsi
	mov	rsi, rcx
	mov	QWORD PTR [rsp], rdx
	call	MR_LdRaidGet@PLT
	mov	r10, QWORD PTR [rbx]
	mov	r8, QWORD PTR [rsp]
	lea	rdx, 0[0+r14*8]
	mov	r12, rax
	add	r10, rdx
	cmp	QWORD PTR MAX_QUAD_DEPTH[rip], 0
	jne	.L6
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	QWORD PTR MAX_QUAD_DEPTH[rip], rbp
	jbe	.L4
.L6:
	mov	rcx, QWORD PTR [r10]
	lea	rax, 0[rbp+rbp*4]
	lea	r14, [rcx+rax*8]
	cmp	QWORD PTR [r14], 0
	je	.L4
	add	rbp, 1
	cmp	QWORD PTR 8[r14], r8
	jl	.L7
	cmp	QWORD PTR [r12], 0
	je	.L7
	lea	rax, 0[rbp+rbp*2]
	xor	ebx, ebx
	lea	rcx, -24[0+rax*8]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	add	rbx, 1
	cmp	QWORD PTR [r12], rbx
	jbe	.L7
.L9:
	mov	rsi, QWORD PTR [r15]
	mov	rax, rbx
	sal	rax, 4
	add	rax, QWORD PTR [rsi+rdx]
	cmp	QWORD PTR [rax], rbp
	jb	.L8
	mov	r13, QWORD PTR 8[rax]
	add	r13, rcx
	mov	rax, QWORD PTR 0[r13]
	cmp	rax, r8
	jg	.L8
	cmp	QWORD PTR 8[r13], r8
	jl	.L8
	mov	rdi, r8
	mov	esi, DWORD PTR 16[r13]
	mov	QWORD PTR 24[rsp], rcx
	sub	rdi, rax
	mov	QWORD PTR 16[rsp], r10
	mov	QWORD PTR 8[rsp], rdx
	mov	QWORD PTR [rsp], r8
	call	mega_mod64@PLT
	mov	r8, QWORD PTR [rsp]
	mov	rdx, QWORD PTR 8[rsp]
	test	rax, rax
	mov	r10, QWORD PTR 16[rsp]
	mov	rcx, QWORD PTR 24[rsp]
	jne	.L8
	mov	esi, DWORD PTR 16[r13]
	mov	rdi, r8
	sub	rdi, QWORD PTR 16[r14]
	sub	rdi, QWORD PTR 0[r13]
	call	mega_div64_32@PLT
	mov	rdx, QWORD PTR 24[r14]
	imul	rax, QWORD PTR [r14]
	add	rax, QWORD PTR 32[r14]
	add	rax, QWORD PTR [rdx+rbx*8]
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rax, QWORD PTR 32[rsp]
	mov	rdx, QWORD PTR 40[rsp]
	mov	rcx, r8
	lea	rsi, .LC0[rip]
	mov	rdi, QWORD PTR [rax]
	call	dev_err@PLT
	add	rsp, 56
	.cfi_def_cfa_offset 56
	mov	rax, -1
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_strip_from_row, .-get_strip_from_row
	.comm	MAX_QUAD_DEPTH,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_megaraid_sas_fp.c_get_strip_from_row.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"get_strip_from_rowreturns invalid strip for ld=%x, "
	.ascii	"row=%lx\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_strip_from_row, %function
get_strip_from_row:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	ip, r1
	mov	r8, r3
	mov	r3, r0
	sub	sp, sp, #20
	str	r1, [sp, #8]
	str	r0, [sp, #12]
	mov	r1, r8
	mov	r0, ip
	mov	r9, r2
	ldr	r4, [r3, #4]
	bl	MR_LdRaidGet
	ldr	r2, .L24
	ldr	r3, [r4]
	ldr	r1, [r2]
	str	r0, [sp]
	cmp	r1, #0
	beq	.L4
	ldr	r1, [sp, #8]
	mov	r6, #0
	add	r3, r3, r1, lsl #2
	lsl	r10, r1, #2
	b	.L6
.L7:
	ldr	r1, [r2]
	cmp	r1, r6
	bls	.L4
.L6:
	ldr	fp, [r3]
	add	r1, r6, r6, lsl #2
	ldr	r0, [fp, r1, lsl #2]
	add	fp, fp, r1, lsl #2
	cmp	r0, #0
	beq	.L4
	ldr	r1, [fp, #4]
	add	r6, r6, #1
	cmp	r1, r9
	blt	.L7
	ldr	r1, [sp]
	ldr	ip, [r1]
	cmp	ip, #0
	beq	.L7
	add	r7, r6, r6, lsl #1
	lsl	r7, r7, #2
	mov	r4, #0
	mov	r5, r3
	sub	r7, r7, #12
	str	fp, [sp, #4]
	b	.L9
.L8:
	add	r4, r4, #1
	cmp	ip, r4
	bls	.L23
.L9:
	ldr	r3, [r8]
	ldr	r3, [r3, r10]
	ldr	r1, [r3, r4, lsl #3]
	add	r3, r3, r4, lsl #3
	cmp	r1, r6
	bcc	.L8
	ldr	r3, [r3, #4]
	ldr	r0, [r3, r7]
	add	fp, r3, r7
	cmp	r0, r9
	bgt	.L8
	ldr	r1, [fp, #4]
	cmp	r1, r9
	blt	.L8
	ldr	r1, [fp, #8]
	sub	r0, r9, r0
	bl	mega_mod64
	cmp	r0, #0
	beq	.L19
	ldr	r3, [sp]
	add	r4, r4, #1
	ldr	ip, [r3]
	ldr	r2, .L24
	cmp	ip, r4
	bhi	.L9
.L23:
	ldr	r1, [r2]
	mov	r3, r5
	cmp	r1, r6
	bhi	.L6
.L4:
	ldr	r1, [sp, #12]
	mov	r3, r9
	ldr	r2, [sp, #8]
	ldr	r0, [r1]
	ldr	r1, .L24+4
	bl	dev_err
	mvn	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L19:
	mov	r5, fp
	ldr	fp, [sp, #4]
	ldr	r0, [r5]
	ldr	r3, [fp, #8]
	ldr	r1, [r5, #8]
	sub	r9, r9, r3
	sub	r0, r9, r0
	bl	mega_div64_32
	ldr	r1, [fp]
	ldr	r2, [fp, #16]
	ldr	r3, [fp, #12]
	mla	r0, r1, r0, r2
	ldr	r3, [r3, r4, lsl #2]
	add	r0, r0, r3
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	.align	2
.L24:
	.word	MAX_QUAD_DEPTH
	.word	.LC0
	.size	get_strip_from_row, .-get_strip_from_row
	.comm	MAX_QUAD_DEPTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
