	.file	"extr_zio_inject.c_zio_handle_ignored_writes.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zio_handle_ignored_writes
	.type	zio_handle_ignored_writes, @function
zio_handle_ignored_writes:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	lea	rdi, inject_lock[rip]
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR RW_READER[rip]
	call	rw_enter@PLT
	lea	rdi, inject_handlers[rip]
	call	list_head@PLT
	test	rax, rax
	je	.L3
	mov	rsi, rax
	lea	rbp, inject_handlers[rip]
.L2:
	mov	rax, QWORD PTR [rsi]
	cmp	QWORD PTR [rbx], rax
	jne	.L4
	mov	rax, QWORD PTR ZINJECT_IGNORED_WRITES[rip]
	cmp	QWORD PTR 8[rsi], rax
	jne	.L4
	cmp	QWORD PTR 16[rsi], 0
	jne	.L7
	cmp	QWORD PTR 24[rsi], 0
	jg	.L13
	mov	rax, QWORD PTR 8[rbx]
	mov	QWORD PTR 16[rsi], rax
.L7:
	mov	edi, 100
	call	spa_get_random@PLT
	cmp	eax, 59
	jg	.L3
.L14:
	mov	eax, DWORD PTR ZIO_VDEV_IO_STAGES[rip]
	not	eax
	and	DWORD PTR 16[rbx], eax
.L3:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, inject_lock[rip]
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	rw_exit@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, rbp
	call	list_next@PLT
	mov	rsi, rax
	test	rax, rax
	jne	.L2
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L13:
	xor	eax, eax
	mov	QWORD PTR 8[rsp], rsi
	call	ddi_get_lbolt64@PLT
	mov	rsi, QWORD PTR 8[rsp]
	mov	edi, 100
	mov	QWORD PTR 16[rsi], rax
	call	spa_get_random@PLT
	cmp	eax, 59
	jg	.L3
	jmp	.L14
	.cfi_endproc
.LFE0:
	.size	zio_handle_ignored_writes, .-zio_handle_ignored_writes
	.comm	inject_lock,4,4
	.comm	inject_handlers,4,4
	.comm	ZIO_VDEV_IO_STAGES,4,4
	.comm	ZINJECT_IGNORED_WRITES,8,8
	.comm	RW_READER,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_zio_inject.c_zio_handle_ignored_writes.c"
	.text
	.align	2
	.global	zio_handle_ignored_writes
	.syntax unified
	.arm
	.fpu softvfp
	.type	zio_handle_ignored_writes, %function
zio_handle_ignored_writes:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L14
	sub	sp, sp, #8
	ldr	r1, [r3]
	mov	r4, r0
	ldr	r0, .L14+4
	bl	rw_enter
	ldr	r0, .L14+8
	bl	list_head
	subs	r1, r0, #0
	beq	.L3
	ldr	r5, .L14+12
	ldr	r6, .L14+8
.L2:
	ldr	r2, [r4]
	ldr	r3, [r1]
	cmp	r2, r3
	bne	.L4
	ldr	r2, [r1, #4]
	ldr	r3, [r5]
	cmp	r2, r3
	bne	.L4
	ldr	r3, [r1, #8]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [r1, #12]
	cmp	r3, #0
	bgt	.L13
	ldr	r3, [r4, #4]
	str	r3, [r1, #8]
.L7:
	mov	r0, #100
	bl	spa_get_random
	cmp	r0, #59
	ldrle	r2, .L14+16
	ldrle	r3, [r4, #8]
	ldrle	r2, [r2]
	bicle	r3, r3, r2
	strle	r3, [r4, #8]
.L3:
	ldr	r0, .L14+4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	rw_exit
.L4:
	mov	r0, r6
	bl	list_next
	subs	r1, r0, #0
	bne	.L2
	b	.L3
.L13:
	str	r1, [sp, #4]
	bl	ddi_get_lbolt64
	ldr	r1, [sp, #4]
	str	r0, [r1, #8]
	b	.L7
.L15:
	.align	2
.L14:
	.word	RW_READER
	.word	inject_lock
	.word	inject_handlers
	.word	ZINJECT_IGNORED_WRITES
	.word	ZIO_VDEV_IO_STAGES
	.size	zio_handle_ignored_writes, .-zio_handle_ignored_writes
	.comm	inject_lock,4,4
	.comm	inject_handlers,4,4
	.comm	ZIO_VDEV_IO_STAGES,4,4
	.comm	ZINJECT_IGNORED_WRITES,4,4
	.comm	RW_READER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
