	.file	"extr_libzfs_pool.c_zpool_events_next.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	""
	.string	""
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"zfs shutdown"
.LC2:
	.string	"cannot get event"
	.text
	.p2align 4
	.globl	zpool_events_next
	.type	zpool_events_next, @function
zpool_events_next:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	pxor	xmm0, xmm0
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, ecx
	sub	rsp, 32
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR [rsi], 0
	mov	QWORD PTR [rsp], rax
	mov	DWORD PTR [rdx], 0
	mov	eax, DWORD PTR ZEVENT_NONBLOCK[rip]
	movups	XMMWORD PTR 8[rsp], xmm0
	mov	DWORD PTR 8[rsp], r8d
	test	eax, ecx
	je	.L2
	mov	DWORD PTR 12[rsp], eax
.L2:
	mov	r12, rsp
	mov	edx, DWORD PTR ZEVENT_SIZE[rip]
	mov	rdi, rbp
	mov	rsi, r12
	call	zcmd_alloc_dst_nvlist@PLT
	test	rax, rax
	jne	.L11
.L4:
	mov	esi, DWORD PTR ZFS_IOC_EVENTS_NEXT[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	zfs_ioctl@PLT
	test	rax, rax
	je	.L5
	mov	eax, DWORD PTR errno[rip]
	cmp	eax, 129
	je	.L6
	cmp	eax, 130
	je	.L7
	cmp	eax, 128
	je	.L20
.L8:
	mov	edi, DWORD PTR TEXT_DOMAIN[rip]
	lea	rsi, .LC2[rip]
	call	dgettext@PLT
	mov	esi, DWORD PTR errno[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	zpool_standard_error_fmt@PLT
	mov	r13d, eax
.L9:
	mov	rdi, r12
	call	zcmd_free_nvlists@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	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
.L6:
	.cfi_restore_state
	mov	rsi, r12
	mov	rdi, rbp
	call	zcmd_expand_dst_nvlist@PLT
	test	eax, eax
	je	.L4
	mov	edi, DWORD PTR TEXT_DOMAIN[rip]
	lea	rsi, .LC2[rip]
	call	dgettext@PLT
	mov	esi, DWORD PTR EZFS_NOMEM[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	zfs_error_fmt@PLT
	mov	r13d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR TEXT_DOMAIN[rip]
	lea	rsi, .LC1[rip]
	call	dgettext@PLT
	mov	esi, DWORD PTR EZFS_POOLUNAVAIL[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	zfs_error_fmt@PLT
	mov	r13d, eax
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	xor	r13d, r13d
	test	DWORD PTR ZEVENT_NONBLOCK[rip], ebx
	jne	.L9
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdx, r13
	mov	rsi, r12
	mov	rdi, rbp
	call	zcmd_read_dst_nvlist@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L9
	mov	rax, QWORD PTR 16[rsp]
	mov	DWORD PTR [r14], eax
	jmp	.L9
.L11:
	mov	r13d, -1
	jmp	.L1
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zpool_events_next, .-zpool_events_next
	.comm	errno,4,4
	.comm	ZFS_IOC_EVENTS_NEXT,4,4
	.comm	ZEVENT_SIZE,4,4
	.comm	ZEVENT_NONBLOCK,4,4
	.comm	TEXT_DOMAIN,4,4
	.comm	EZFS_POOLUNAVAIL,4,4
	.comm	EZFS_NOMEM,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_libzfs_pool.c_zpool_events_next.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"zfs shutdown\000"
	.align	2
.LC2:
	.ascii	"cannot get event\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	zpool_events_next
	.syntax unified
	.arm
	.fpu softvfp
	.type	zpool_events_next, %function
zpool_events_next:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r8, r2
	mov	r2, #0
	mov	r6, r3
	ldr	r3, .L22
	sub	sp, sp, #36
	ldr	r9, .L22+4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	str	r2, [r1]
	str	r2, [r8]
	ldr	r3, [r9]
	str	r2, [sp, #20]
	tst	r3, r6
	strne	r3, [sp, #20]
	str	r2, [sp, #24]
	ldr	r3, .L22+8
	ldr	r2, .L22+12
	mov	r7, r1
	ldr	r1, [sp, #72]
	str	r2, [sp, #12]
	str	r1, [sp, #16]
	ldr	r2, [r3]
	add	r1, sp, #12
	mov	r5, r0
	bl	zcmd_alloc_dst_nvlist
	subs	r4, r0, #0
	bne	.L11
	ldr	r10, .L22+16
	ldr	fp, .L22+20
.L4:
	mov	r0, r5
	ldr	r1, [r10]
	add	r2, sp, #12
	bl	zfs_ioctl
	cmp	r0, #0
	beq	.L5
	ldr	r3, [fp]
	cmp	r3, #129
	beq	.L6
	cmp	r3, #130
	beq	.L7
	cmp	r3, #128
	beq	.L20
.L8:
	ldr	r2, .L22+24
	ldr	r1, .L22+28
	ldr	r0, [r2]
	str	r3, [sp, #4]
	bl	dgettext
	ldr	r3, [sp, #4]
	mov	r2, r0
	mov	r1, r3
	mov	r0, r5
	bl	zpool_standard_error_fmt
	mov	r4, r0
.L9:
	add	r0, sp, #12
	bl	zcmd_free_nvlists
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r0, r5
	add	r1, sp, #12
	bl	zcmd_expand_dst_nvlist
	cmp	r0, #0
	beq	.L4
	ldr	r2, .L22+32
	ldr	r3, .L22+24
	ldr	r4, [r2]
	ldr	r0, [r3]
	ldr	r1, .L22+28
	b	.L18
.L20:
	ldr	r2, .L22+36
	ldr	r3, .L22+24
	ldr	r4, [r2]
	ldr	r0, [r3]
	ldr	r1, .L22+40
.L18:
	bl	dgettext
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	bl	zfs_error_fmt
	mov	r4, r0
	b	.L9
.L7:
	ldr	r2, [r9]
	tst	r6, r2
	bne	.L9
	b	.L8
.L5:
	mov	r2, r7
	mov	r0, r5
	add	r1, sp, #12
	bl	zcmd_read_dst_nvlist
	subs	r4, r0, #0
	ldreq	r3, [sp, #24]
	streq	r3, [r8]
	b	.L9
.L11:
	mvn	r4, #0
	b	.L1
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC3
	.word	ZEVENT_NONBLOCK
	.word	ZEVENT_SIZE
	.word	.LANCHOR0
	.word	ZFS_IOC_EVENTS_NEXT
	.word	errno
	.word	TEXT_DOMAIN
	.word	.LC2
	.word	EZFS_NOMEM
	.word	EZFS_POOLUNAVAIL
	.word	.LC1
	.size	zpool_events_next, .-zpool_events_next
	.comm	errno,4,4
	.comm	ZFS_IOC_EVENTS_NEXT,4,4
	.comm	ZEVENT_SIZE,4,4
	.comm	ZEVENT_NONBLOCK,4,4
	.comm	TEXT_DOMAIN,4,4
	.comm	EZFS_POOLUNAVAIL,4,4
	.comm	EZFS_NOMEM,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.ascii	"\000\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
