	.file	"extr_g_raid.c_g_raid_tr_flush_common.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	g_raid_tr_flush_common
	.type	g_raid_tr_flush_common, @function
g_raid_tr_flush_common:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rbp, 4[rsp]
	mov	rdi, rbp
	call	bioq_init@PLT
	mov	eax, DWORD PTR [r14]
	test	eax, eax
	jle	.L3
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 8[r14]
	lea	r13, [rax+rbx*8]
	mov	rax, QWORD PTR 0[r13]
	cmp	rax, QWORD PTR G_RAID_SUBDISK_S_NONE[rip]
	je	.L4
	cmp	rax, QWORD PTR G_RAID_SUBDISK_S_FAILED[rip]
	je	.L4
	mov	rdi, r12
	call	g_clone_bio@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L5
	mov	QWORD PTR 8[rax], r13
	mov	rdi, rbp
	call	bioq_insert_tail@PLT
.L4:
	add	rbx, 1
	cmp	DWORD PTR [r14], ebx
	jg	.L2
	mov	rdi, rbp
	call	bioq_takefirst@PLT
	mov	rsi, rax
	test	rax, rax
	je	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR 8[rsi]
	mov	QWORD PTR 8[rsi], 0
	call	g_raid_subdisk_iostart@PLT
.L3:
	mov	rdi, rbp
	call	bioq_takefirst@PLT
	mov	rsi, rax
	test	rax, rax
	jne	.L7
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	call	g_destroy_bio@PLT
.L5:
	mov	rdi, rbp
	call	bioq_takefirst@PLT
	mov	rdi, rax
	test	rax, rax
	jne	.L9
	mov	rsi, QWORD PTR [r12]
	test	rsi, rsi
	jne	.L10
	mov	rsi, QWORD PTR ENOMEM[rip]
	mov	QWORD PTR [r12], rsi
.L10:
	mov	rdi, r12
	call	g_raid_iodone@PLT
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	g_raid_tr_flush_common, .-g_raid_tr_flush_common
	.comm	G_RAID_SUBDISK_S_NONE,8,8
	.comm	G_RAID_SUBDISK_S_FAILED,8,8
	.comm	ENOMEM,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_g_raid.c_g_raid_tr_flush_common.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	g_raid_tr_flush_common
	.syntax unified
	.arm
	.fpu softvfp
	.type	g_raid_tr_flush_common, %function
g_raid_tr_flush_common:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L20
	ldr	r8, [r0]
	sub	sp, sp, #12
	mov	r0, sp
	mov	r7, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	bioq_init
	ldr	r0, [r8]
	cmp	r0, #0
	ble	.L6
	mov	r4, #0
	ldr	r9, .L20+4
	ldr	r6, .L20+8
.L2:
	ldr	r3, [r8, #4]
	ldr	r1, [r9]
	ldr	r2, [r3, r4, lsl #2]
	add	r5, r3, r4, lsl #2
	cmp	r2, r1
	beq	.L4
	ldr	r3, [r6]
	cmp	r2, r3
	beq	.L4
	mov	r0, r7
	bl	g_clone_bio
	subs	r1, r0, #0
	beq	.L5
	mov	r0, sp
	str	r5, [r1, #4]
	bl	bioq_insert_tail
	ldr	r0, [r8]
.L4:
	add	r4, r4, #1
	cmp	r0, r4
	bgt	.L2
.L6:
	mov	r4, #0
	b	.L3
.L7:
	ldr	r0, [r1, #4]
	str	r4, [r1, #4]
	bl	g_raid_subdisk_iostart
.L3:
	mov	r0, sp
	bl	bioq_takefirst
	subs	r1, r0, #0
	bne	.L7
.L1:
	ldr	r3, .L20
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L9:
	bl	g_destroy_bio
.L5:
	mov	r0, sp
	bl	bioq_takefirst
	cmp	r0, #0
	bne	.L9
	ldr	r1, [r7]
	mov	r0, r7
	cmp	r1, #0
	ldreq	r3, .L20+12
	ldreq	r1, [r3]
	streq	r1, [r7]
	bl	g_raid_iodone
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	.LC0
	.word	G_RAID_SUBDISK_S_NONE
	.word	G_RAID_SUBDISK_S_FAILED
	.word	ENOMEM
	.size	g_raid_tr_flush_common, .-g_raid_tr_flush_common
	.comm	G_RAID_SUBDISK_S_NONE,4,4
	.comm	G_RAID_SUBDISK_S_FAILED,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
