	.file	"extr_vdev_indirect.c_vdev_indirect_splits_damage.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vdev_indirect_splits_damage, @function
vdev_indirect_splits_damage:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	lea	r12, 4[rdi]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rdi, r12
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	list_head@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, DWORD PTR 0[rbp]
	mov	QWORD PTR 8[rbp], 0
	xor	ebx, ebx
	lea	r15, 16[rbp]
	test	edx, edx
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 32[rbp]
	lea	rsi, [rax+rbx*8]
	cmp	QWORD PTR [rsi], 0
	je	.L7
	add	QWORD PTR 8[rbp], 1
	mov	rdi, r15
	call	list_insert_tail@PLT
.L7:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L5
.L8:
	mov	rsi, rbp
	mov	rdi, r12
	call	list_next@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L2
.L6:
	mov	rsi, r14
	mov	rdi, r13
	call	vdev_indirect_splits_enumerate_randomly@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L42
.L13:
	mov	rdi, r12
	call	list_head@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rbx, 16[rbp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, rbx
	call	list_remove@PLT
.L18:
	mov	rdi, rbx
	call	list_head@PLT
	mov	rsi, rax
	test	rax, rax
	jne	.L17
	mov	QWORD PTR 8[rbp], 0
	mov	rsi, rbp
	mov	rdi, r12
	call	list_next@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L42:
	.cfi_restore_state
	mov	DWORD PTR 0[r13], 1
	mov	rdi, r12
	call	list_head@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L13
	.p2align 4,,10
	.p2align 3
.L9:
	mov	eax, DWORD PTR 0[rbp]
	xor	ebx, ebx
	test	eax, eax
	jle	.L14
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 32[rbp]
	lea	rax, [rax+rbx*8]
	cmp	QWORD PTR 24[rbp], rax
	je	.L10
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L10
	mov	esi, DWORD PTR [rdi]
	call	abd_zero@PLT
.L10:
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jg	.L11
.L14:
	mov	eax, DWORD PTR 0[r13]
	add	eax, eax
	mov	DWORD PTR 0[r13], eax
	cmp	eax, 65536
	ja	.L43
	mov	rsi, rbp
	mov	rdi, r12
	call	list_next@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L9
	jmp	.L13
.L43:
	mov	rax, QWORD PTR UINT64_MAX[rip]
	mov	DWORD PTR 0[r13], eax
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	vdev_indirect_splits_damage, .-vdev_indirect_splits_damage
	.comm	UINT64_MAX,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_vdev_indirect.c_vdev_indirect_splits_damage.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vdev_indirect_splits_damage, %function
vdev_indirect_splits_damage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	add	r6, r0, #4
	mov	r7, r0
	mov	r0, r6
	mov	r9, r1
	bl	list_head
	subs	r5, r0, #0
	beq	.L6
	mov	r8, #0
.L2:
	ldr	r2, [r5]
	str	r8, [r5, #4]
	cmp	r2, #0
	movgt	r4, #0
	addgt	r10, r5, #8
	ble	.L8
.L5:
	ldr	r1, [r5, #16]
	ldr	r3, [r1, r4, lsl #2]
	add	r1, r1, r4, lsl #2
	cmp	r3, #0
	add	r4, r4, #1
	beq	.L7
	ldr	r3, [r5, #4]
	mov	r0, r10
	add	r3, r3, #1
	str	r3, [r5, #4]
	bl	list_insert_tail
	ldr	r2, [r5]
.L7:
	cmp	r2, r4
	bgt	.L5
.L8:
	mov	r1, r5
	mov	r0, r6
	bl	list_next
	subs	r5, r0, #0
	bne	.L2
.L6:
	mov	r1, r9
	mov	r0, r7
	bl	vdev_indirect_splits_enumerate_randomly
	subs	r8, r0, #0
	beq	.L42
.L13:
	mov	r0, r6
	bl	list_head
	subs	r5, r0, #0
	beq	.L1
.L15:
	add	r4, r5, #8
	b	.L18
.L17:
	mov	r0, r4
	bl	list_remove
.L18:
	mov	r0, r4
	bl	list_head
	subs	r1, r0, #0
	bne	.L17
	str	r1, [r5, #4]
	mov	r0, r6
	mov	r1, r5
	bl	list_next
	subs	r5, r0, #0
	bne	.L15
.L1:
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L42:
	mov	r3, #1
	mov	r0, r6
	str	r3, [r7]
	bl	list_head
	subs	r5, r0, #0
	beq	.L13
.L9:
	ldr	ip, [r5]
	cmp	ip, #0
	movgt	r4, #0
	ble	.L14
.L11:
	ldr	r3, [r5, #16]
	ldr	r1, [r5, #12]
	add	r2, r3, r4, lsl #2
	cmp	r1, r2
	beq	.L10
	ldr	r0, [r3, r4, lsl #2]
	cmp	r0, #0
	beq	.L10
	ldr	r1, [r0]
	bl	abd_zero
	ldr	ip, [r5]
.L10:
	add	r4, r4, #1
	cmp	ip, r4
	bgt	.L11
.L14:
	ldr	r3, [r7]
	lsl	r3, r3, #1
	cmp	r3, #65536
	str	r3, [r7]
	bhi	.L43
	mov	r1, r5
	mov	r0, r6
	bl	list_next
	subs	r5, r0, #0
	bne	.L9
	b	.L13
.L43:
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [r7]
	b	.L13
.L45:
	.align	2
.L44:
	.word	UINT64_MAX
	.size	vdev_indirect_splits_damage, .-vdev_indirect_splits_damage
	.comm	UINT64_MAX,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
