	.file	"extr_raid10.c_narrow_write_error.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	narrow_write_error, @function
narrow_write_error:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movsx	rsi, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	rcx, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	sal	rcx, 4
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR 16[rdi]
	mov	rdx, QWORD PTR 8[rdi]
	mov	QWORD PTR 24[rsp], rcx
	mov	QWORD PTR 32[rsp], rax
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR [rdx+rcx]
	mov	DWORD PTR 44[rsp], 0
	mov	rax, QWORD PTR [rax]
	mov	r14, QWORD PTR [rax+rdx*8]
	mov	ecx, DWORD PTR 4[r14]
	test	ecx, ecx
	js	.L1
	mov	r12d, DWORD PTR 4[rdi]
	mov	eax, 1
	mov	ebp, DWORD PTR [rdi]
	mov	r13, rdi
	sal	eax, cl
	lea	ebx, [rax+r12]
	mov	DWORD PTR 40[rsp], eax
	neg	eax
	and	ebx, eax
	sub	ebx, r12d
	test	ebp, ebp
	je	.L6
	mov	rax, QWORD PTR 24[rdi]
	mov	DWORD PTR 44[rsp], 1
	mov	QWORD PTR 8[rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r15
	add	r12d, ebx
	call	bio_put@PLT
	sub	ebp, ebx
	je	.L1
.L7:
	mov	ebx, DWORD PTR 40[rsp]
.L4:
	mov	rdx, QWORD PTR 32[rsp]
	mov	esi, DWORD PTR GFP_NOIO[rip]
	cmp	ebx, ebp
	mov	rdi, QWORD PTR 8[rsp]
	cmovg	ebx, ebp
	call	bio_clone_mddev@PLT
	mov	edx, ebx
	mov	esi, r12d
	mov	r15, rax
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, r15
	sub	esi, DWORD PTR [rax]
	call	md_trim_bio@PLT
	mov	rax, QWORD PTR 8[r13]
	mov	rsi, r14
	mov	rdi, r13
	mov	rcx, QWORD PTR 24[rsp]
	mov	eax, DWORD PTR 8[rax+rcx]
	mov	DWORD PTR 20[rsp], eax
	call	choose_data_offset@PLT
	mov	edx, r12d
	add	eax, DWORD PTR 20[rsp]
	sub	edx, DWORD PTR 4[r13]
	add	edx, eax
	mov	eax, DWORD PTR [r14]
	mov	edi, DWORD PTR WRITE[rip]
	mov	rsi, r15
	mov	DWORD PTR [r15], edx
	mov	DWORD PTR 4[r15], eax
	call	submit_bio_wait@PLT
	test	rax, rax
	jne	.L3
	xor	ecx, ecx
	mov	esi, r12d
	mov	edx, ebx
	mov	rdi, r14
	call	rdev_set_badblocks@PLT
	mov	rdi, r15
	test	rax, rax
	setne	al
	add	r12d, ebx
	and	DWORD PTR 44[rsp], eax
	call	bio_put@PLT
	sub	ebp, ebx
	jne	.L7
.L1:
	mov	eax, DWORD PTR 44[rsp]
	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
.L6:
	.cfi_restore_state
	mov	DWORD PTR 44[rsp], 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	narrow_write_error, .-narrow_write_error
	.comm	WRITE,4,4
	.comm	GFP_NOIO,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_raid10.c_narrow_write_error.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	narrow_write_error, %function
narrow_write_error:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	fp, [r0, #12]
	ldr	r2, [r0, #8]
	ldr	r3, [fp]
	ldr	r2, [r2, r1, lsl #3]
	ldr	r3, [r3]
	sub	sp, sp, #20
	ldr	r9, [r3, r2, lsl #2]
	lsl	r1, r1, #3
	ldr	r3, [r9, #4]
	str	r1, [sp]
	cmp	r3, #0
	blt	.L5
	mov	r2, #1
	ldr	r7, [r0, #4]
	lsl	r3, r2, r3
	ldr	r6, [r0]
	add	r4, r3, r7
	str	r3, [sp, #8]
	rsb	r3, r3, #0
	and	r4, r4, r3
	cmp	r6, #0
	mov	r8, r0
	str	r2, [sp, #12]
	sub	r4, r4, r7
	beq	.L1
	ldr	r10, [r0, #16]
	str	fp, [sp, #4]
	b	.L4
.L3:
	mov	r0, r5
	bl	bio_put
	subs	r6, r6, r4
	add	r7, r7, r4
	beq	.L1
	ldr	r4, [sp, #8]
.L4:
	ldr	r3, .L10
	cmp	r4, r6
	movge	r4, r6
	ldr	r1, [r3]
	ldr	r2, [sp, #4]
	mov	r0, r10
	bl	bio_clone_mddev
	ldr	r1, [r10]
	mov	r2, r4
	sub	r1, r7, r1
	mov	r5, r0
	bl	md_trim_bio
	ldr	r2, [sp]
	ldr	r3, [r8, #8]
	mov	r1, r9
	add	r3, r3, r2
	mov	r0, r8
	ldr	fp, [r3, #4]
	bl	choose_data_offset
	ldr	r3, [r8, #4]
	add	r2, fp, r0
	sub	r3, r7, r3
	add	r3, r3, r2
	ldr	r1, [r9]
	str	r3, [r5]
	ldr	r3, .L10+4
	str	r1, [r5, #4]
	ldr	r0, [r3]
	mov	r1, r5
	bl	submit_bio_wait
	subs	r3, r0, #0
	bne	.L3
	mov	r2, r4
	mov	r1, r7
	mov	r0, r9
	bl	rdev_set_badblocks
	cmp	r0, #0
	ldr	r3, [sp, #12]
	moveq	r3, #0
	str	r3, [sp, #12]
	b	.L3
.L5:
	mov	r3, #0
	str	r3, [sp, #12]
.L1:
	ldr	r0, [sp, #12]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	.align	2
.L10:
	.word	GFP_NOIO
	.word	WRITE
	.size	narrow_write_error, .-narrow_write_error
	.comm	WRITE,4,4
	.comm	GFP_NOIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
