	.file	"extr_vdev_raidz.c_vdev_raidz_reconstruct.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vdev_raidz_reconstruct
	.type	vdev_raidz_reconstruct, @function
vdev_raidz_reconstruct:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 56
	mov	QWORD PTR -80[rbp], rsi
	mov	rsi, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR VDEV_RAIDZ_MAXPARITY[rip]
	lea	rax, 15[0+rax*4]
	mov	rcx, rax
	mov	rdx, rax
	and	rcx, -4096
	and	rdx, -16
	sub	rsi, rcx
	mov	rcx, rsi
	cmp	rsp, rcx
	je	.L3
.L37:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L37
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L38
.L4:
	mov	rdx, rax
	mov	rsi, rsp
	and	rax, -4096
	mov	QWORD PTR -72[rbp], rsp
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L6
.L39:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L39
.L6:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L40
.L7:
	mov	r14, rsp
	cmp	ebx, 1
	jle	.L12
	mov	rsi, QWORD PTR -80[rbp]
	lea	eax, -2[rbx]
	mov	r15, rsi
	lea	r13, 4[rsi+rax*4]
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR [r15]
	xor	edi, edi
	cmp	DWORD PTR 4[r15], eax
	setg	dil
	add	r15, 4
	call	ASSERT@PLT
	cmp	r13, r15
	jne	.L11
.L12:
	mov	edx, DWORD PTR 4[r12]
	mov	esi, DWORD PTR [r12]
	xor	r13d, r13d
	mov	eax, edx
	mov	r11d, esi
	sub	eax, esi
	mov	DWORD PTR -84[rbp], eax
	test	edx, edx
	jle	.L10
	mov	r15d, DWORD PTR B_TRUE[rip]
	lea	r10d, -1[rdx]
	xor	eax, eax
	xor	r13d, r13d
	mov	r8d, DWORD PTR B_FALSE[rip]
	xor	edx, edx
	mov	DWORD PTR -88[rbp], r15d
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L43:
	mov	rdi, QWORD PTR -72[rbp]
	movsx	rcx, r13d
	add	r13d, 1
	mov	DWORD PTR [rdi+rcx*4], r9d
.L15:
	lea	rcx, 1[rax]
	cmp	r10, rax
	je	.L41
.L27:
	mov	rax, rcx
.L18:
	mov	r9d, eax
	mov	ecx, eax
	cmp	esi, eax
	jle	.L13
	mov	DWORD PTR [r14+rax*4], r8d
.L13:
	cmp	ebx, edx
	jle	.L14
	mov	r15, QWORD PTR -80[rbp]
	movsx	rdi, edx
	cmp	DWORD PTR [r15+rdi*4], ecx
	je	.L42
.L14:
	mov	rdi, QWORD PTR 8[r12]
	cmp	QWORD PTR [rdi+rax*8], 0
	jne	.L43
	cmp	esi, ecx
	jle	.L44
	mov	ecx, DWORD PTR -88[rbp]
	sub	r11d, 1
	mov	DWORD PTR [r14+rax*4], ecx
	lea	rcx, 1[rax]
	cmp	r10, rax
	jne	.L27
.L41:
	mov	eax, DWORD PTR -84[rbp]
	lea	edx, [rax+r11]
.L10:
	xor	edi, edi
	cmp	ebx, r13d
	mov	DWORD PTR -80[rbp], r11d
	setle	dil
	mov	DWORD PTR -88[rbp], edx
	call	ASSERT@PLT
	mov	r15d, DWORD PTR -84[rbp]
	mov	edi, r15d
	not	edi
	shr	edi, 31
	call	ASSERT@PLT
	mov	edx, DWORD PTR -88[rbp]
	xor	edi, edi
	cmp	r13d, edx
	sete	dil
	call	ASSERT@PLT
	movsx	r11, DWORD PTR -80[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, r15d
	mov	rsi, r14
	mov	rdi, r12
	lea	r9, [rax+r11*4]
	mov	rdx, r9
	mov	QWORD PTR -80[rbp], r9
	call	vdev_raidz_math_reconstruct@PLT
	cmp	DWORD PTR RAIDZ_ORIGINAL_IMPL[rip], eax
	mov	ebx, eax
	jne	.L1
	cmp	r15d, 1
	mov	r9, QWORD PTR -80[rbp]
	je	.L20
	cmp	r15d, 2
	jne	.L22
	xor	edi, edi
	cmp	DWORD PTR [r12], 1
	mov	QWORD PTR -80[rbp], r9
	setg	dil
	call	ASSERT@PLT
	mov	rax, QWORD PTR VDEV_RAIDZ_P[rip]
	mov	edx, DWORD PTR [r14+rax*4]
	test	edx, edx
	je	.L25
	mov	rax, QWORD PTR VDEV_RAIDZ_Q[rip]
	mov	r9, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [r14+rax*4]
	test	eax, eax
	jne	.L45
.L25:
	xor	edi, edi
	cmp	DWORD PTR [r12], 2
	setg	dil
	call	ASSERT@PLT
.L22:
	mov	rsi, QWORD PTR -72[rbp]
	mov	edx, r13d
	mov	rdi, r12
	call	vdev_raidz_reconstruct_general@PLT
	mov	ecx, DWORD PTR VDEV_RAIDZ_MAXPARITY[rip]
	xor	edi, edi
	mov	ebx, eax
	mov	eax, 1
	sal	eax, cl
	cmp	eax, ebx
	setg	dil
	call	ASSERT@PLT
	xor	edi, edi
	test	ebx, ebx
	setg	dil
	call	ASSERT@PLT
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L46
	lea	rsp, -40[rbp]
	mov	eax, ebx
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L38:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, QWORD PTR -72[rbp]
	movsx	rcx, r13d
	add	edx, 1
	add	r13d, 1
	mov	DWORD PTR [rdi+rcx*4], r9d
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L44:
	sub	DWORD PTR -84[rbp], 1
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rax, QWORD PTR VDEV_RAIDZ_P[rip]
	mov	esi, DWORD PTR [r14+rax*4]
	test	esi, esi
	jne	.L47
	xor	edi, edi
	cmp	DWORD PTR [r12], 1
	mov	QWORD PTR -80[rbp], r9
	setg	dil
	call	ASSERT@PLT
	mov	rax, QWORD PTR VDEV_RAIDZ_Q[rip]
	mov	r9, QWORD PTR -80[rbp]
	mov	ecx, DWORD PTR [r14+rax*4]
	test	ecx, ecx
	je	.L25
	mov	edx, 1
	mov	rsi, r9
	mov	rdi, r12
	call	vdev_raidz_reconstruct_q@PLT
	mov	ebx, eax
	jmp	.L1
.L47:
	mov	edx, 1
	mov	rsi, r9
	mov	rdi, r12
	call	vdev_raidz_reconstruct_p@PLT
	mov	ebx, eax
	jmp	.L1
.L40:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L7
.L45:
	mov	edx, 2
	mov	rsi, r9
	mov	rdi, r12
	call	vdev_raidz_reconstruct_pq@PLT
	mov	ebx, eax
	jmp	.L1
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vdev_raidz_reconstruct, .-vdev_raidz_reconstruct
	.comm	VDEV_RAIDZ_Q,8,8
	.comm	VDEV_RAIDZ_P,8,8
	.comm	VDEV_RAIDZ_MAXPARITY,4,4
	.comm	RAIDZ_ORIGINAL_IMPL,4,4
	.comm	B_TRUE,4,4
	.comm	B_FALSE,4,4
	.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_vdev_raidz.c_vdev_raidz_reconstruct.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vdev_raidz_reconstruct
	.syntax unified
	.arm
	.fpu softvfp
	.type	vdev_raidz_reconstruct, %function
vdev_raidz_reconstruct:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	ldr	r3, .L34
	cmp	r2, #1
	ldr	r3, [r3]
	subgt	r4, r1, #4
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r9, sp
	sub	sp, sp, r3
	ldr	r3, .L34+4
	mov	r5, r2
	mov	r6, r0
	mov	r8, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r7, sp
	movgt	r10, r1
	addgt	r4, r4, r2, lsl #2
	ble	.L6
.L5:
	ldr	r0, [r10, #4]
	ldr	r3, [r10]
	add	r10, r10, #4
	cmp	r0, r3
	movle	r0, #0
	movgt	r0, #1
	bl	ASSERT
	cmp	r4, r10
	bne	.L5
.L6:
	ldm	r6, {r1, r2}
	cmp	r2, #0
	movle	r4, #0
	sub	r10, r2, r1
	strle	r1, [fp, #-48]
	ble	.L4
	mov	r4, #0
	mov	r3, r4
	mov	ip, r4
	ldr	r0, .L34+8
	ldr	lr, .L34+12
	ldr	r0, [r0]
	ldr	lr, [lr]
	str	r1, [fp, #-48]
	str	r0, [fp, #-52]
.L12:
	cmp	r1, ip
	strgt	lr, [r7, ip, lsl #2]
	cmp	r5, r3
	ble	.L8
	ldr	r0, [r8, r3, lsl #2]
	cmp	r0, ip
	streq	ip, [r9, r4, lsl #2]
	addeq	r3, r3, #1
	addeq	r4, r4, #1
	beq	.L9
.L8:
	ldr	r0, [r6, #8]
	ldr	r0, [r0, ip, lsl #2]
	cmp	r0, #0
	strne	ip, [r9, r4, lsl #2]
	addne	r4, r4, #1
	bne	.L9
	cmp	r1, ip
	ldrgt	r0, [fp, #-52]
	suble	r10, r10, #1
	strgt	r0, [r7, ip, lsl #2]
	ldrgt	r0, [fp, #-48]
	subgt	r0, r0, #1
	strgt	r0, [fp, #-48]
.L9:
	add	ip, ip, #1
	cmp	r2, ip
	bne	.L12
	ldr	r3, [fp, #-48]
	add	r2, r10, r3
.L4:
	cmp	r5, r4
	movgt	r0, #0
	movle	r0, #1
	str	r2, [fp, #-52]
	bl	ASSERT
	mvn	r0, r10
	ldr	r3, [fp, #-48]
	lsr	r0, r0, #31
	add	r5, r9, r3, lsl #2
	bl	ASSERT
	ldr	r2, [fp, #-52]
	sub	r0, r4, r2
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	mov	r3, r10
	mov	r2, r5
	mov	r1, r7
	mov	r0, r6
	bl	vdev_raidz_math_reconstruct
	ldr	r3, .L34+16
	mov	r8, r0
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L1
	cmp	r10, #1
	beq	.L14
	cmp	r10, #2
	bne	.L16
	ldr	r0, [r6]
	cmp	r0, #1
	movle	r0, #0
	movgt	r0, #1
	bl	ASSERT
	ldr	r3, .L34+20
	ldr	r3, [r3]
	ldr	r3, [r7, r3, lsl #2]
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L34+24
	ldr	r3, [r3]
	ldr	r3, [r7, r3, lsl #2]
	cmp	r3, #0
	bne	.L31
.L19:
	ldr	r0, [r6]
	cmp	r0, #2
	movle	r0, #0
	movgt	r0, #1
	bl	ASSERT
.L16:
	mov	r2, r4
	mov	r1, r9
	mov	r0, r6
	bl	vdev_raidz_reconstruct_general
	mov	r2, #1
	mov	r8, r0
	ldr	r3, .L34
	ldr	r3, [r3]
	cmp	r0, r2, lsl r3
	movlt	r0, r2
	movge	r0, #0
	bl	ASSERT
	cmp	r8, #0
	movle	r0, #0
	movgt	r0, #1
	bl	ASSERT
.L1:
	ldr	r3, .L34+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	mov	r0, r8
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r3, .L34+20
	ldr	r3, [r3]
	ldr	r3, [r7, r3, lsl #2]
	cmp	r3, #0
	bne	.L33
	ldr	r0, [r6]
	cmp	r0, #1
	movle	r0, #0
	movgt	r0, #1
	bl	ASSERT
	ldr	r3, .L34+24
	ldr	r3, [r3]
	ldr	r3, [r7, r3, lsl #2]
	cmp	r3, #0
	beq	.L19
	mov	r2, r10
	mov	r1, r5
	mov	r0, r6
	bl	vdev_raidz_reconstruct_q
	mov	r8, r0
	b	.L1
.L33:
	mov	r2, r10
	mov	r1, r5
	mov	r0, r6
	bl	vdev_raidz_reconstruct_p
	mov	r8, r0
	b	.L1
.L31:
	mov	r2, r10
	mov	r1, r5
	mov	r0, r6
	bl	vdev_raidz_reconstruct_pq
	mov	r8, r0
	b	.L1
.L32:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	VDEV_RAIDZ_MAXPARITY
	.word	.LC0
	.word	B_TRUE
	.word	B_FALSE
	.word	RAIDZ_ORIGINAL_IMPL
	.word	VDEV_RAIDZ_P
	.word	VDEV_RAIDZ_Q
	.size	vdev_raidz_reconstruct, .-vdev_raidz_reconstruct
	.comm	VDEV_RAIDZ_Q,4,4
	.comm	VDEV_RAIDZ_P,4,4
	.comm	VDEV_RAIDZ_MAXPARITY,4,4
	.comm	RAIDZ_ORIGINAL_IMPL,4,4
	.comm	B_TRUE,4,4
	.comm	B_FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
