	.file	"extr_raid5.c_raid5_compute_sector.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	raid5_compute_sector
	.type	raid5_compute_sector, @function
raid5_compute_sector:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	test	edx, edx
	mov	r8d, DWORD PTR 20[rdi]
	mov	eax, DWORD PTR 12[rdi]
	cmovne	r8d, DWORD PTR 16[rdi]
	cmovne	eax, DWORD PTR 8[rdi]
	mov	r9d, DWORD PTR 4[rdi]
	cmovne	r9d, DWORD PTR [rdi]
	mov	r14d, r8d
	mov	esi, eax
	sub	r14d, DWORD PTR 24[rdi]
	mov	DWORD PTR 8[rsp], r8d
	mov	edi, r12d
	mov	DWORD PTR 12[rsp], r9d
	mov	ebp, eax
	call	sector_div@PLT
	mov	esi, r14d
	mov	edi, r12d
	mov	DWORD PTR 4[rsp], eax
	call	sector_div@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	r9d, DWORD PTR 12[rsp]
	mov	DWORD PTR [r15], eax
	mov	edx, DWORD PTR 28[rbx]
	cmp	edx, 5
	je	.L3
	cmp	edx, 6
	je	.L4
	xor	eax, eax
	mov	ebx, -1
	cmp	edx, 4
	cmovne	r14d, ebx
.L5:
	test	r13, r13
	je	.L32
	mov	DWORD PTR 0[r13], r14d
	mov	DWORD PTR 4[r13], ebx
	mov	DWORD PTR 8[r13], eax
.L32:
	mov	eax, r12d
	imul	eax, ebp
	add	eax, DWORD PTR 4[rsp]
	add	rsp, 24
	.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
	lea	edx, -128[r9]
	cmp	edx, 13
	ja	.L6
	lea	rsi, .L14[rip]
	movsx	rdx, DWORD PTR [rsi+rdx*4]
	add	rdx, rsi
	notrack jmp	rdx
	.section	.rodata
	.align 4
	.align 4
.L14:
	.long	.L27-.L14
	.long	.L26-.L14
	.long	.L25-.L14
	.long	.L24-.L14
	.long	.L23-.L14
	.long	.L22-.L14
	.long	.L21-.L14
	.long	.L20-.L14
	.long	.L19-.L14
	.long	.L18-.L14
	.long	.L17-.L14
	.long	.L16-.L14
	.long	.L15-.L14
	.long	.L13-.L14
	.text
	.p2align 4,,10
	.p2align 3
.L3:
	lea	edx, -132[r9]
	cmp	edx, 9
	ja	.L6
	lea	rsi, .L8[rip]
	movsx	rdx, DWORD PTR [rsi+rdx*4]
	add	rdx, rsi
	notrack jmp	rdx
	.section	.rodata
	.align 4
	.align 4
.L8:
	.long	.L12-.L8
	.long	.L6-.L8
	.long	.L11-.L8
	.long	.L36-.L8
	.long	.L6-.L8
	.long	.L10-.L8
	.long	.L6-.L8
	.long	.L9-.L8
	.long	.L6-.L8
	.long	.L7-.L8
	.text
.L11:
	mov	esi, r8d
	mov	edi, r12d
	call	sector_div@PLT
	mov	r14d, eax
	mov	eax, DWORD PTR [r15]
	cmp	eax, r14d
	jge	.L47
.L36:
	xor	eax, eax
	mov	ebx, -1
	jmp	.L5
.L6:
	xor	eax, eax
	mov	ebx, -1
	mov	r14d, -1
	call	BUG@PLT
	xor	eax, eax
	jmp	.L5
.L12:
	mov	esi, r8d
	mov	edi, r12d
	mov	DWORD PTR 8[rsp], r8d
	call	sector_div@PLT
	mov	r14d, eax
.L50:
	mov	eax, DWORD PTR [r15]
	mov	r8d, DWORD PTR 8[rsp]
	mov	ebx, -1
	lea	eax, 1[r14+rax]
	cdq
	idiv	r8d
	xor	eax, eax
	mov	DWORD PTR [r15], edx
	jmp	.L5
.L7:
	mov	esi, r8d
	mov	edi, r12d
	call	sector_div@PLT
	sub	r14d, eax
	mov	eax, DWORD PTR [r15]
	cmp	eax, r14d
	jl	.L36
.L47:
	add	eax, 1
	mov	ebx, -1
	mov	DWORD PTR [r15], eax
	xor	eax, eax
	jmp	.L5
.L9:
	mov	esi, r8d
	mov	edi, r12d
	mov	DWORD PTR 8[rsp], r8d
	call	sector_div@PLT
	sub	r14d, eax
	jmp	.L50
.L10:
	add	eax, 1
	mov	ebx, -1
	xor	r14d, r14d
	mov	DWORD PTR [r15], eax
	xor	eax, eax
	jmp	.L5
.L18:
	add	eax, 2
	mov	ebx, 1
	xor	r14d, r14d
	mov	DWORD PTR [r15], eax
	xor	eax, eax
	jmp	.L5
.L19:
	add	eax, 1
	lea	ebx, -1[r8]
	xor	r14d, r14d
	mov	DWORD PTR [r15], eax
	xor	eax, eax
	jmp	.L5
.L15:
	lea	ebx, -1[r8]
	mov	edi, r12d
	mov	esi, ebx
	call	sector_div@PLT
	mov	edx, DWORD PTR [r15]
	sub	r14d, eax
	xor	eax, eax
	cmp	edx, r14d
	jl	.L5
.L54:
	add	edx, 1
	mov	DWORD PTR [r15], edx
	jmp	.L5
.L13:
	lea	edx, -1[r8]
	mov	esi, r8d
	mov	edi, r12d
	mov	DWORD PTR 8[rsp], edx
	call	sector_div@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	r14d, edx
	sub	r14d, eax
	lea	ebx, 1[r14]
	cmp	edx, r14d
	je	.L52
.L29:
	mov	edx, DWORD PTR [r15]
	xor	eax, eax
	cmp	edx, r14d
	jl	.L5
.L48:
	add	edx, 2
	mov	DWORD PTR [r15], edx
	jmp	.L5
.L26:
	lea	edx, -1[r8]
	lea	edi, 1[r12]
	mov	esi, r8d
	mov	DWORD PTR 8[rsp], edx
	call	sector_div@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	r14d, edx
	sub	r14d, eax
	lea	ebx, 1[r14]
	cmp	edx, r14d
	je	.L49
.L31:
	mov	edx, DWORD PTR [r15]
	mov	eax, 1
	cmp	edx, r14d
	jl	.L5
	jmp	.L48
.L27:
	mov	esi, r8d
	mov	edi, r12d
	mov	DWORD PTR 8[rsp], r8d
	call	sector_div@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	r14d, eax
	lea	ebx, 1[rax]
	sub	r8d, 1
	cmp	r8d, eax
	jne	.L31
.L49:
	add	DWORD PTR [r15], 1
	mov	eax, 1
	xor	ebx, ebx
	jmp	.L5
.L20:
	lea	ebx, 1[r14]
	xor	eax, eax
	jmp	.L5
.L21:
	mov	esi, r8d
	mov	edi, r12d
	mov	DWORD PTR 8[rsp], r8d
	call	sector_div@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	r14d, eax
	lea	ebx, 1[rax]
	sub	r8d, 1
	cmp	r8d, eax
	jne	.L29
.L52:
	add	DWORD PTR [r15], 1
	xor	eax, eax
	xor	ebx, ebx
	jmp	.L5
.L22:
	lea	ebx, -1[r8]
	mov	edi, r12d
	mov	esi, ebx
	call	sector_div@PLT
	mov	edx, DWORD PTR [r15]
	mov	r14d, eax
	xor	eax, eax
	cmp	edx, r14d
	jl	.L5
	jmp	.L54
.L23:
	mov	esi, r8d
	mov	edi, r12d
	mov	DWORD PTR 8[rsp], r8d
	call	sector_div@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	r14d, eax
	lea	eax, 1[rax]
.L51:
	cdq
	idiv	r8d
	mov	eax, DWORD PTR [r15]
	lea	eax, 2[r14+rax]
	mov	ebx, edx
	cdq
	idiv	r8d
	xor	eax, eax
	mov	DWORD PTR [r15], edx
	jmp	.L5
.L24:
	lea	ebx, -1[r8]
	mov	edi, r12d
	mov	esi, ebx
	call	sector_div@PLT
	mov	r14d, eax
.L53:
	mov	eax, DWORD PTR [r15]
	lea	eax, 1[r14+rax]
	cdq
	idiv	ebx
	xor	eax, eax
	mov	DWORD PTR [r15], edx
	jmp	.L5
.L25:
	mov	esi, r8d
	mov	edi, r12d
	mov	DWORD PTR 8[rsp], r8d
	call	sector_div@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	r9d, eax
	lea	eax, -1[r8]
	sub	eax, r9d
	mov	r14d, eax
	lea	eax, -1[rax+r8]
	cdq
	idiv	r8d
	mov	eax, DWORD PTR [r15]
	lea	eax, 1[r14+rax]
	mov	ebx, edx
	cdq
	idiv	r8d
	mov	eax, 1
	mov	DWORD PTR [r15], edx
	jmp	.L5
.L16:
	mov	esi, r8d
	mov	edi, r12d
	mov	DWORD PTR 8[rsp], r8d
	call	sector_div@PLT
	mov	r8d, DWORD PTR 8[rsp]
	mov	r9d, eax
	lea	eax, -1[r8]
	sub	eax, r9d
	mov	r14d, eax
	lea	eax, 1[rax]
	jmp	.L51
.L17:
	lea	ebx, -1[r8]
	mov	edi, r12d
	mov	esi, ebx
	call	sector_div@PLT
	sub	r14d, eax
	jmp	.L53
	.cfi_endproc
.LFE0:
	.size	raid5_compute_sector, .-raid5_compute_sector
	.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_raid5.c_raid5_compute_sector.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.global	raid5_compute_sector
	.syntax unified
	.arm
	.fpu softvfp
	.type	raid5_compute_sector, %function
raid5_compute_sector:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	ldr	ip, [r0, #12]
	cmp	r2, #0
	ldr	fp, [r0, #8]
	mov	r7, r1
	moveq	fp, ip
	ldr	r2, [r5, #20]
	ldr	r0, [r0, #16]
	moveq	r9, r2
	ldr	r2, [r5, #4]
	movne	r9, r0
	mov	r1, fp
	mov	r0, r7
	mov	r8, r3
	ldr	r4, [r5]
	ldr	r6, [r5, #24]
	moveq	r4, r2
	bl	sector_div
	sub	r6, r9, r6
	mov	r10, r0
	mov	r1, r6
	mov	r0, r7
	bl	sector_div
	str	r0, [r8]
	ldr	r2, [r5, #28]
	cmp	r2, #5
	beq	.L3
	cmp	r2, #6
	beq	.L4
	cmp	r2, #4
	mvnne	r4, #0
	movne	r2, #0
	movne	r6, r4
	beq	.L36
.L5:
	ldr	r3, [sp, #40]
	mla	r0, fp, r7, r10
	cmp	r3, #0
	strne	r6, [r3]
	strne	r4, [r3, #4]
	strne	r2, [r3, #8]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L3:
	sub	r2, r4, #132
	cmp	r2, #9
	ldrls	pc, [pc, r2, asl #2]
	b	.L6
.L8:
	.word	.L12
	.word	.L6
	.word	.L11
	.word	.L36
	.word	.L6
	.word	.L10
	.word	.L6
	.word	.L9
	.word	.L6
	.word	.L7
.L11:
	mov	r1, r9
	mov	r0, r7
	bl	sector_div
	ldr	r3, [r8]
	mov	r6, r0
	cmp	r3, r0
	bge	.L48
.L36:
	mov	r2, #0
	mvn	r4, #0
	b	.L5
.L4:
	sub	r2, r4, #128
	cmp	r2, #13
	ldrls	pc, [pc, r2, asl #2]
	b	.L6
.L14:
	.word	.L27
	.word	.L26
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L18
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L13
.L6:
	mvn	r4, #0
	bl	BUG
	mov	r6, r4
	mov	r2, #0
	b	.L5
.L12:
	mov	r1, r9
	mov	r0, r7
	bl	sector_div
	mov	r6, r0
	ldr	r2, [r8]
.L51:
	add	r0, r6, #1
	add	r0, r0, r2
	mov	r1, r9
	bl	__aeabi_idivmod
	mvn	r4, #0
	mov	r2, #0
	str	r1, [r8]
	b	.L5
.L7:
	mov	r1, r9
	mov	r0, r7
	bl	sector_div
	ldr	r3, [r8]
	sub	r6, r6, r0
	cmp	r3, r6
	blt	.L36
.L48:
	add	r3, r3, #1
	mov	r2, #0
	mvn	r4, #0
	str	r3, [r8]
	b	.L5
.L9:
	mov	r1, r9
	mov	r0, r7
	bl	sector_div
	ldr	r2, [r8]
	sub	r6, r6, r0
	b	.L51
.L10:
	mov	r2, #0
	add	r0, r0, #1
	mov	r6, r2
	mvn	r4, #0
	str	r0, [r8]
	b	.L5
.L27:
	mov	r1, r9
	mov	r0, r7
	bl	sector_div
	sub	r3, r9, #1
	cmp	r3, r0
	mov	r6, r0
	ldr	r3, [r8]
	add	r4, r0, #1
	beq	.L50
.L31:
	cmp	r3, r6
	movlt	r2, #1
	addge	r3, r3, #2
	movge	r2, #1
	strge	r3, [r8]
	b	.L5
.L25:
	mov	r1, r9
	mov	r0, r7
	bl	sector_div
	sub	r6, r9, #1
	sub	r6, r6, r0
	add	r0, r9, r6
	mov	r1, r9
	sub	r0, r0, #1
	bl	__aeabi_idivmod
	ldr	r2, [r8]
	add	r0, r6, #1
	add	r0, r0, r2
	mov	r4, r1
	mov	r1, r9
	bl	__aeabi_idivmod
	mov	r2, #1
	str	r1, [r8]
	b	.L5
.L15:
	sub	r4, r9, #1
	mov	r1, r4
	mov	r0, r7
	bl	sector_div
	ldr	r3, [r8]
	sub	r6, r6, r0
	cmp	r3, r6
	blt	.L42
.L54:
	add	r3, r3, #1
	mov	r2, #0
	str	r3, [r8]
	b	.L5
.L24:
	sub	r4, r9, #1
	mov	r1, r4
	mov	r0, r7
	bl	sector_div
	mov	r6, r0
	ldr	r3, [r8]
.L55:
	add	r0, r6, #1
	mov	r1, r4
	add	r0, r0, r3
	bl	__aeabi_idivmod
	mov	r2, #0
	str	r1, [r8]
	b	.L5
.L22:
	sub	r4, r9, #1
	mov	r1, r4
	mov	r0, r7
	bl	sector_div
	ldr	r3, [r8]
	mov	r6, r0
	cmp	r3, r0
	bge	.L54
.L42:
	mov	r2, #0
	b	.L5
.L23:
	mov	r1, r9
	mov	r0, r7
	bl	sector_div
	mov	r1, r9
	mov	r6, r0
	add	r0, r0, #1
.L49:
	bl	__aeabi_idivmod
	ldr	r2, [r8]
	add	r0, r6, #2
	add	r0, r0, r2
	mov	r4, r1
	mov	r1, r9
	bl	__aeabi_idivmod
	mov	r2, #0
	str	r1, [r8]
	b	.L5
.L26:
	mov	r1, r9
	add	r0, r7, #1
	bl	sector_div
	sub	r3, r9, #1
	sub	r6, r3, r0
	cmp	r3, r6
	add	r4, r6, #1
	ldr	r3, [r8]
	bne	.L31
.L50:
	mov	r2, #1
	add	r3, r3, r2
	mov	r4, #0
	str	r3, [r8]
	b	.L5
.L17:
	sub	r4, r9, #1
	mov	r1, r4
	mov	r0, r7
	bl	sector_div
	ldr	r3, [r8]
	sub	r6, r6, r0
	b	.L55
.L18:
	mov	r2, #0
	add	r0, r0, #2
	mov	r6, r2
	mov	r4, #1
	str	r0, [r8]
	b	.L5
.L19:
	mov	r2, #0
	add	r0, r0, #1
	mov	r6, r2
	str	r0, [r8]
	sub	r4, r9, #1
	b	.L5
.L20:
	mov	r2, #0
	add	r4, r6, #1
	b	.L5
.L21:
	mov	r1, r9
	mov	r0, r7
	bl	sector_div
	sub	r3, r9, #1
	cmp	r3, r0
	mov	r6, r0
	add	r4, r0, #1
	beq	.L53
.L29:
	ldr	r3, [r8]
	cmp	r3, r6
	blt	.L42
	add	r3, r3, #2
	mov	r2, #0
	str	r3, [r8]
	b	.L5
.L16:
	mov	r1, r9
	mov	r0, r7
	bl	sector_div
	sub	r6, r9, #1
	sub	r6, r6, r0
	mov	r1, r9
	add	r0, r6, #1
	b	.L49
.L13:
	mov	r1, r9
	mov	r0, r7
	bl	sector_div
	sub	r3, r9, #1
	sub	r6, r3, r0
	cmp	r3, r6
	add	r4, r6, #1
	bne	.L29
.L53:
	mov	r2, #0
	ldr	r3, [r8]
	mov	r4, r2
	add	r3, r3, #1
	str	r3, [r8]
	b	.L5
	.size	raid5_compute_sector, .-raid5_compute_sector
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
