	.file	"extr_spa_history.c_spa_history_log_nvl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	spa_history_log_nvl
	.type	spa_history_log_nvl, @function
spa_history_log_nvl:
.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
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	spa_version@PLT
	cmp	rax, QWORD PTR SPA_VERSION_ZPOOL_HISTORY[rip]
	mov	r13d, DWORD PTR EINVAL[rip]
	jge	.L16
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	rdi, rbp
	call	spa_version@PLT
	cmp	rax, QWORD PTR SPA_VERSION_ZPOOL_HISTORY[rip]
	jl	.L5
	mov	rdi, rbp
	call	spa_writeable@PLT
	test	eax, eax
	jne	.L17
.L5:
	mov	edi, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	jmp	SET_ERROR@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rdi, rbp
	call	spa_get_dsl@PLT
	mov	edi, DWORD PTR [rax]
	call	dmu_tx_create_dd@PLT
	mov	esi, DWORD PTR TXG_WAIT[rip]
	mov	rdi, rax
	mov	r14, rax
	call	dmu_tx_assign@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L18
	mov	rdi, r12
	call	fnvlist_dup@PLT
	mov	r12, rax
	xor	eax, eax
	call	spa_history_zone@PLT
	test	rax, rax
	je	.L7
	xor	eax, eax
	call	spa_history_zone@PLT
	mov	esi, DWORD PTR ZPOOL_HIST_ZONE[rip]
	mov	rdi, r12
	mov	rdx, rax
	call	fnvlist_add_string@PLT
.L7:
	xor	eax, eax
	call	CRED@PLT
	mov	edi, eax
	call	crgetruid@PLT
	mov	esi, DWORD PTR ZPOOL_HIST_WHO[rip]
	mov	rdi, r12
	mov	edx, eax
	call	fnvlist_add_uint64@PLT
	mov	ebx, DWORD PTR ZFS_SPACE_CHECK_NONE[rip]
	mov	r15d, DWORD PTR spa_history_log_sync[rip]
	mov	rdi, rbp
	call	spa_get_dsl@PLT
	mov	r9, r14
	xor	ecx, ecx
	mov	rdx, r12
	mov	rdi, rax
	mov	r8d, ebx
	mov	esi, r15d
	call	dsl_sync_task_nowait@PLT
	mov	rdi, r14
	call	dmu_tx_commit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdi, r14
	call	dmu_tx_abort@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	spa_history_log_nvl, .-spa_history_log_nvl
	.comm	spa_history_log_sync,4,4
	.comm	ZPOOL_HIST_ZONE,4,4
	.comm	ZPOOL_HIST_WHO,4,4
	.comm	ZFS_SPACE_CHECK_NONE,4,4
	.comm	TXG_WAIT,4,4
	.comm	SPA_VERSION_ZPOOL_HISTORY,8,8
	.comm	EINVAL,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_spa_history.c_spa_history_log_nvl.c"
	.text
	.align	2
	.global	spa_history_log_nvl
	.syntax unified
	.arm
	.fpu softvfp
	.type	spa_history_log_nvl, %function
spa_history_log_nvl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r6, r1
	mov	r4, r0
	bl	spa_version
	ldr	r5, .L18
	ldr	r3, [r5]
	cmp	r0, r3
	bge	.L2
	ldr	r3, .L18+4
	ldr	r5, [r3]
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r4
	bl	spa_version
	ldr	r3, [r5]
	cmp	r0, r3
	blt	.L5
	mov	r0, r4
	bl	spa_writeable
	cmp	r0, #0
	bne	.L16
.L5:
	ldr	r3, .L18+4
	ldr	r0, [r3]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	SET_ERROR
.L16:
	mov	r0, r4
	bl	spa_get_dsl
	ldr	r0, [r0]
	bl	dmu_tx_create_dd
	ldr	r3, .L18+8
	mov	r7, r0
	ldr	r1, [r3]
	bl	dmu_tx_assign
	subs	r5, r0, #0
	bne	.L17
	mov	r0, r6
	bl	fnvlist_dup
	mov	r6, r0
	bl	spa_history_zone
	cmp	r0, #0
	beq	.L7
	ldr	r3, .L18+12
	ldr	r8, [r3]
	bl	spa_history_zone
	mov	r1, r8
	mov	r2, r0
	mov	r0, r6
	bl	fnvlist_add_string
.L7:
	ldr	r3, .L18+16
	ldr	r8, [r3]
	bl	CRED
	bl	crgetruid
	mov	r1, r8
	mov	r2, r0
	mov	r0, r6
	bl	fnvlist_add_uint64
	mov	r0, r4
	bl	spa_get_dsl
	ldr	r2, .L18+20
	ldr	r3, .L18+24
	ldr	r1, [r2]
	str	r7, [sp, #4]
	str	r1, [sp]
	ldr	r1, [r3]
	mov	r2, r6
	mov	r3, #0
	bl	dsl_sync_task_nowait
	mov	r0, r7
	bl	dmu_tx_commit
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r0, r7
	bl	dmu_tx_abort
	b	.L1
.L19:
	.align	2
.L18:
	.word	SPA_VERSION_ZPOOL_HISTORY
	.word	EINVAL
	.word	TXG_WAIT
	.word	ZPOOL_HIST_ZONE
	.word	ZPOOL_HIST_WHO
	.word	ZFS_SPACE_CHECK_NONE
	.word	spa_history_log_sync
	.size	spa_history_log_nvl, .-spa_history_log_nvl
	.comm	spa_history_log_sync,4,4
	.comm	ZPOOL_HIST_ZONE,4,4
	.comm	ZPOOL_HIST_WHO,4,4
	.comm	ZFS_SPACE_CHECK_NONE,4,4
	.comm	TXG_WAIT,4,4
	.comm	SPA_VERSION_ZPOOL_HISTORY,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
