	.file	"extr_read.c_raid6_recover2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	raid6_recover2
	.type	raid6_recover2, @function
raid6_recover2:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	eax, -2[rsi]
	mov	r15d, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	lea	r14d, -3[rsi]
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r9
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 8[rsp], rdi
	mov	DWORD PTR 40[rsp], eax
	cmp	eax, ecx
	je	.L2
	mov	r13d, ecx
	cmp	eax, r8d
	je	.L35
	movsx	rax, edx
	lea	rax, [r9+rax*4]
	mov	QWORD PTR 16[rsp], rax
	cmp	ecx, r14d
	je	.L22
	cmp	r8d, r14d
	je	.L22
	mov	eax, edx
	mov	rdx, QWORD PTR 8[rsp]
	mov	rdi, r9
	imul	eax, r14d
	cdqe
	lea	rsi, [rdx+rax*4]
	mov	edx, r15d
	mov	QWORD PTR 32[rsp], rsi
	call	RtlCopyMemory@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, r15d
	call	RtlCopyMemory@PLT
.L11:
	sub	ebx, 4
	imul	ebx, r15d
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L37:
	cmp	r12d, r14d
	je	.L12
	mov	rdx, QWORD PTR 8[rsp]
	movsx	rax, ebx
	mov	rdi, rbp
	lea	rsi, [rdx+rax*4]
	mov	edx, r15d
	mov	QWORD PTR 32[rsp], rsi
	call	do_xor@PLT
	mov	rsi, QWORD PTR 32[rsp]
	mov	rdi, QWORD PTR 16[rsp]
	mov	edx, r15d
	call	do_xor@PLT
.L13:
	sub	ebx, r15d
	test	r14d, r14d
	jle	.L36
.L14:
	sub	r14d, 1
	mov	esi, r15d
	mov	rdi, rbp
	call	galois_double@PLT
	cmp	r13d, r14d
	jne	.L37
.L21:
	mov	DWORD PTR 44[rsp], r13d
	sub	ebx, r15d
	test	r14d, r14d
	jg	.L14
	.p2align 4,,10
	.p2align 3
.L36:
	mov	ecx, DWORD PTR 44[rsp]
	mov	edx, DWORD PTR 28[rsp]
	mov	r13d, 255
	sub	r13d, ecx
	mov	eax, edx
	sub	eax, ecx
	lea	edi, [rdx+r13]
	cmp	ecx, edx
	cmovl	edi, eax
	call	gpow2@PLT
	mov	edi, r13d
	mov	r12d, eax
	call	gpow2@PLT
	mov	esi, r12d
	mov	edi, 1
	xor	esi, 1
	mov	r13d, eax
	call	gdiv@PLT
	mov	edi, r12d
	mov	ebx, eax
	mov	esi, eax
	call	gmul@PLT
	mov	edi, r13d
	mov	esi, ebx
	xor	r13d, r13d
	mov	DWORD PTR 28[rsp], eax
	call	gmul@PLT
	mov	rdx, QWORD PTR 8[rsp]
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR 40[rsp]
	imul	eax, r15d
	movsx	rcx, eax
	add	eax, r15d
	cdqe
	lea	r12, [rdx+rcx*4]
	lea	r14, [rdx+rax*4]
	lea	eax, -1[r15]
	mov	QWORD PTR 8[rsp], rax
	test	r15d, r15d
	jle	.L19
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rax, QWORD PTR 16[rsp]
	mov	edi, DWORD PTR 28[rsp]
	mov	esi, DWORD PTR [r12+r13*4]
	xor	esi, DWORD PTR [rax+r13*4]
	call	gmul@PLT
	mov	edi, DWORD PTR 32[rsp]
	mov	esi, DWORD PTR [r14+r13*4]
	xor	esi, DWORD PTR 0[rbp+r13*4]
	mov	ebx, eax
	call	gmul@PLT
	xor	ebx, eax
	mov	rax, r13
	mov	DWORD PTR 0[rbp+r13*4], ebx
	add	r13, 1
	cmp	rax, QWORD PTR 8[rsp]
	jne	.L18
.L19:
	mov	rbx, QWORD PTR 16[rsp]
	mov	edx, r15d
	mov	rsi, rbp
	mov	rdi, rbx
	call	do_xor@PLT
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edx, r15d
	mov	rsi, r12
	mov	rdi, rbx
	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
	jmp	do_xor@PLT
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	mov	r12d, ecx
.L2:
	cmp	r12d, r14d
	je	.L38
	mov	eax, r15d
	mov	rdx, QWORD PTR 8[rsp]
	mov	rdi, rbp
	imul	eax, r14d
	cdqe
	lea	rsi, [rdx+rax*4]
	mov	edx, r15d
	call	RtlCopyMemory@PLT
.L5:
	lea	r13d, -4[rbx]
	imul	r13d, r15d
	.p2align 4,,10
	.p2align 3
.L7:
	sub	r14d, 1
	mov	esi, r15d
	mov	rdi, rbp
	call	galois_double@PLT
	cmp	r12d, r14d
	je	.L6
	mov	rcx, QWORD PTR 8[rsp]
	movsx	rax, r13d
	mov	edx, r15d
	mov	rdi, rbp
	lea	rsi, [rcx+rax*4]
	call	do_xor@PLT
.L6:
	sub	r13d, r15d
	test	r14d, r14d
	jg	.L7
	sub	ebx, 1
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, r15d
	mov	rdi, rbp
	imul	ebx, r15d
	movsx	rbx, ebx
	lea	rsi, [rax+rbx*4]
	call	do_xor@PLT
	test	r12d, r12d
	jne	.L39
	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
.L12:
	.cfi_restore_state
	cmp	r13d, r14d
	je	.L21
	mov	eax, DWORD PTR 28[rsp]
	cmp	r12d, r14d
	cmove	eax, r12d
	mov	DWORD PTR 28[rsp], eax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L22:
	mov	esi, r15d
	mov	rdi, rbp
	call	RtlZeroMemory@PLT
	mov	rdi, QWORD PTR 16[rsp]
	mov	esi, r15d
	call	RtlZeroMemory@PLT
	cmp	r13d, r14d
	mov	eax, 0
	cmove	eax, r13d
	mov	DWORD PTR 44[rsp], eax
	mov	eax, 0
	cmovne	eax, r14d
	mov	DWORD PTR 28[rsp], eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L38:
	mov	esi, r15d
	mov	rdi, rbp
	call	RtlZeroMemory@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L39:
	add	rsp, 56
	.cfi_def_cfa_offset 56
	mov	edx, r15d
	mov	esi, r12d
	mov	rdi, rbp
	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
	jmp	galois_divpower@PLT
	.cfi_endproc
.LFE0:
	.size	raid6_recover2, .-raid6_recover2
	.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_read.c_raid6_recover2.c"
	.text
	.align	2
	.global	raid6_recover2
	.syntax unified
	.arm
	.fpu softvfp
	.type	raid6_recover2, %function
raid6_recover2:
	@ args = 8, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r3
	sub	r3, r1, #2
	sub	sp, sp, #28
	cmp	r3, r8
	mov	r5, r1
	mov	r4, r2
	ldr	r7, [sp, #64]
	ldr	r6, [sp, #68]
	str	r3, [sp, #12]
	str	r0, [sp, #4]
	sub	fp, r1, #3
	beq	.L2
	cmp	r3, r7
	beq	.L26
	cmp	r7, fp
	cmpne	r8, fp
	add	r3, r6, r2, lsl #2
	lsl	r9, r2, #2
	str	r3, [sp, #8]
	bne	.L9
	mov	r1, r2
	mov	r0, r6
	bl	RtlZeroMemory
	mov	r1, r4
	add	r0, r6, r4, lsl #2
	bl	RtlZeroMemory
	cmp	r8, fp
	moveq	r3, r8
	movne	r3, #0
	movne	r10, fp
	moveq	r10, #0
	str	r3, [sp, #16]
.L10:
	ldr	r3, [sp, #4]
	sub	r5, r5, #4
	mla	r3, r9, r5, r3
	rsb	r9, r4, r4, lsl #30
	mov	r5, r3
	lsl	r9, r9, #2
	b	.L13
.L11:
	cmp	r8, fp
	streq	r8, [sp, #16]
	beq	.L12
	cmp	r7, fp
	moveq	r10, fp
.L12:
	cmp	fp, #0
	add	r5, r5, r9
	ble	.L27
.L13:
	mov	r1, r4
	mov	r0, r6
	sub	fp, fp, #1
	bl	galois_double
	cmp	r8, fp
	cmpne	r7, fp
	beq	.L11
	mov	r1, r5
	mov	r2, r4
	mov	r0, r6
	bl	do_xor
	mov	r1, r5
	mov	r2, r4
	ldr	r0, [sp, #8]
	bl	do_xor
	cmp	fp, #0
	add	r5, r5, r9
	bgt	.L13
.L27:
	ldr	r3, [sp, #16]
	cmp	r3, r10
	rsb	r5, r3, #255
	sublt	r0, r10, r3
	addge	r0, r10, r5
	bl	gpow2
	mov	r7, r0
	mov	r0, r5
	bl	gpow2
	eor	r1, r7, #1
	mov	r8, r0
	mov	r0, #1
	bl	gdiv
	mov	r5, r0
	mov	r0, r7
	mov	r1, r5
	bl	gmul
	mov	r10, r0
	mov	r1, r5
	mov	r0, r8
	bl	gmul
	ldr	r3, [sp, #12]
	ldr	r2, [sp, #4]
	mul	r3, r4, r3
	cmp	r4, #0
	add	r9, r3, r4
	add	r3, r2, r3, lsl #2
	mov	r5, r10
	lsl	r9, r9, #2
	str	r3, [sp, #12]
	ble	.L18
	ldr	r3, [sp, #4]
	sub	r9, r9, #4
	add	r9, r3, r9
	ldr	r3, [sp, #12]
	mov	r8, r6
	sub	r10, r3, #4
	ldr	r3, [sp, #8]
	str	r4, [sp, #4]
	sub	fp, r3, #4
	mov	r4, fp
	str	r6, [sp, #16]
	mov	r7, #0
	mov	r6, r10
	mov	fp, r0
	mov	r10, r5
.L17:
	ldr	ip, [r6, #4]!
	ldr	r1, [r4, #4]!
	mov	r0, r10
	eor	r1, r1, ip
	bl	gmul
	ldr	r1, [r8]
	ldr	ip, [r9, #4]!
	mov	r5, r0
	eor	r1, r1, ip
	mov	r0, fp
	bl	gmul
	ldr	r3, [sp, #4]
	add	r7, r7, #1
	eor	r5, r5, r0
	cmp	r3, r7
	str	r5, [r8], #4
	bne	.L17
	mov	r4, r3
	ldr	r6, [sp, #16]
.L18:
	ldr	r5, [sp, #8]
	mov	r1, r6
	mov	r2, r4
	mov	r0, r5
	bl	do_xor
	mov	r2, r4
	mov	r0, r5
	ldr	r1, [sp, #12]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	do_xor
.L26:
	mov	r7, r8
.L2:
	cmp	r7, fp
	beq	.L28
	mul	r1, fp, r4
	ldr	r3, [sp, #4]
	mov	r2, r4
	mov	r0, r6
	add	r1, r3, r1, lsl #2
	bl	RtlCopyMemory
.L5:
	sub	r8, r5, #4
	mul	r8, r4, r8
	ldr	r3, [sp, #4]
	rsb	r9, r4, r4, lsl #30
	add	r8, r3, r8, lsl #2
	lsl	r9, r9, #2
.L7:
	mov	r1, r4
	mov	r0, r6
	sub	fp, fp, #1
	bl	galois_double
	cmp	r7, fp
	beq	.L6
	mov	r2, r4
	mov	r1, r8
	mov	r0, r6
	bl	do_xor
.L6:
	cmp	fp, #0
	add	r8, r8, r9
	bgt	.L7
	sub	r1, r5, #1
	mul	r1, r4, r1
	ldr	r3, [sp, #4]
	mov	r2, r4
	mov	r0, r6
	add	r1, r3, r1, lsl #2
	bl	do_xor
	cmp	r7, #0
	bne	.L29
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	mul	r1, fp, r2
	ldr	r3, [sp, #4]
	mov	r0, r6
	add	r1, r3, r1, lsl #2
	str	r1, [sp, #20]
	bl	RtlCopyMemory
	mov	r2, r4
	ldr	r1, [sp, #20]
	add	r0, r6, r4, lsl #2
	bl	RtlCopyMemory
	b	.L10
.L28:
	mov	r1, r4
	mov	r0, r6
	bl	RtlZeroMemory
	b	.L5
.L29:
	mov	r2, r4
	mov	r1, r7
	mov	r0, r6
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	galois_divpower
	.size	raid6_recover2, .-raid6_recover2
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
