	.file	"extr_libzfs_pool.c_zpool_events_clear.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	""
	.string	""
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"cannot clear events"
	.text
	.p2align 4
	.globl	zpool_events_clear
	.type	zpool_events_clear, @function
zpool_events_clear:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	lea	rsi, .LC1[rip]
	sub	rsp, 1056
	.cfi_def_cfa_offset 1088
	mov	edi, DWORD PTR TEXT_DOMAIN[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1048[rsp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	lea	r12, 16[rsp]
	mov	QWORD PTR 8[rsp], 0
	mov	QWORD PTR [rsp], rax
	call	dgettext@PLT
	mov	esi, 1024
	mov	rdi, r12
	mov	rdx, rax
	call	snprintf@PLT
	mov	esi, DWORD PTR ZFS_IOC_EVENTS_CLEAR[rip]
	mov	rdx, rsp
	mov	rdi, rbp
	call	zfs_ioctl@PLT
	test	rax, rax
	jne	.L9
	xor	eax, eax
	test	rbx, rbx
	je	.L1
	mov	rdx, QWORD PTR 8[rsp]
	mov	DWORD PTR [rbx], edx
.L1:
	mov	rcx, QWORD PTR 1048[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 1056
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, DWORD PTR errno[rip]
	mov	rdx, r12
	mov	rdi, rbp
	call	zpool_standard_error_fmt@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zpool_events_clear, .-zpool_events_clear
	.comm	errno,4,4
	.comm	ZFS_IOC_EVENTS_CLEAR,4,4
	.comm	TEXT_DOMAIN,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_clear.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC1:
	.ascii	"cannot clear events\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	zpool_events_clear
	.syntax unified
	.arm
	.fpu softvfp
	.type	zpool_events_clear, %function
zpool_events_clear:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	push	{r4, r5, lr}
	mov	r4, r1
	ldr	r1, .L12
	ldr	r3, .L12+4
	ldr	ip, .L12+8
	sub	sp, sp, #1040
	sub	sp, sp, #4
	mov	r5, r0
	ldr	r0, [r1]
	ldr	r1, .L12+12
	ldr	ip, [ip]
	str	ip, [sp, #1036]
	mov	ip,#0
	str	r3, [sp, #4]
	str	r2, [sp, #8]
	bl	dgettext
	mov	r1, #1024
	mov	r2, r0
	add	r0, sp, #12
	bl	snprintf
	ldr	r3, .L12+16
	mov	r0, r5
	ldr	r1, [r3]
	add	r2, sp, #4
	bl	zfs_ioctl
	cmp	r0, #0
	bne	.L10
	cmp	r4, #0
	ldrne	r3, [sp, #8]
	strne	r3, [r4]
.L1:
	ldr	r3, .L12+8
	ldr	r2, [r3]
	ldr	r3, [sp, #1036]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #1040
	add	sp, sp, #4
	@ sp needed
	pop	{r4, r5, pc}
.L10:
	ldr	r3, .L12+20
	mov	r0, r5
	ldr	r1, [r3]
	add	r2, sp, #12
	bl	zpool_standard_error_fmt
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	TEXT_DOMAIN
	.word	.LANCHOR0
	.word	.LC2
	.word	.LC1
	.word	ZFS_IOC_EVENTS_CLEAR
	.word	errno
	.size	zpool_events_clear, .-zpool_events_clear
	.comm	errno,4,4
	.comm	ZFS_IOC_EVENTS_CLEAR,4,4
	.comm	TEXT_DOMAIN,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
