	.file	"extr_dsl_dir.c_dsl_dir_set_quota_check.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"quota"
	.text
	.p2align 4
	.type	dsl_dir_set_quota_check, @function
dsl_dir_set_quota_check:
.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, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	dmu_tx_pool@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR FTAG[rip]
	lea	rcx, 8[rsp]
	mov	rdi, rax
	call	dsl_dataset_hold@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L14
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L14:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR 4[rbx]
	lea	r8, 16[rsp]
	lea	rsi, .LC0[rip]
	mov	ecx, DWORD PTR [rbx]
	mov	rdi, QWORD PTR [rax]
	call	dsl_prop_predict@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L12
	cmp	QWORD PTR 16[rsp], 0
	mov	rdi, QWORD PTR 8[rsp]
	je	.L16
	mov	rdi, QWORD PTR [rdi]
	call	mutex_enter@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [rax]
	call	dsl_dir_space_towrite@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	dmu_tx_is_syncing@PLT
	test	rax, rax
	jne	.L5
	test	rbx, rbx
	jne	.L6
.L5:
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [rax]
	call	dsl_dir_phys@PLT
	mov	rdx, QWORD PTR 16[rsp]
	cmp	QWORD PTR [rax], rdx
	jg	.L8
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [rax]
	call	dsl_dir_phys@PLT
	add	rbx, QWORD PTR 8[rax]
	cmp	rbx, QWORD PTR 16[rsp]
	jle	.L6
.L8:
	mov	edi, DWORD PTR ENOSPC[rip]
	call	SET_ERROR@PLT
	mov	r12d, eax
.L6:
	mov	rax, QWORD PTR 8[rsp]
	mov	rdi, QWORD PTR [rax]
	call	mutex_exit@PLT
.L12:
	mov	esi, DWORD PTR FTAG[rip]
	mov	rdi, QWORD PTR 8[rsp]
	call	dsl_dataset_rele@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR FTAG[rip]
	call	dsl_dataset_rele@PLT
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dsl_dir_set_quota_check, .-dsl_dir_set_quota_check
	.comm	FTAG,4,4
	.comm	ENOSPC,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_dsl_dir.c_dsl_dir_set_quota_check.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"quota\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsl_dir_set_quota_check, %function
dsl_dir_set_quota_check:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	ldr	r3, .L17
	ldr	r7, .L17+4
	sub	sp, sp, #28
	mov	r0, r1
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	dmu_tx_pool
	ldr	r1, [r5, #8]
	ldr	r2, [r7]
	add	r3, sp, #12
	bl	dsl_dataset_hold
	subs	r4, r0, #0
	beq	.L14
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	ldr	r3, [sp, #12]
	add	r2, sp, #16
	ldr	r0, [r3]
	ldr	r3, [r5]
	str	r2, [sp]
	ldr	r2, [r5, #4]
	ldr	r1, .L17+8
	bl	dsl_prop_predict
	subs	r4, r0, #0
	bne	.L12
	ldr	r4, [sp, #16]
	ldr	r0, [sp, #12]
	cmp	r4, #0
	beq	.L16
	ldr	r0, [r0]
	bl	mutex_enter
	ldr	r3, [sp, #12]
	ldr	r0, [r3]
	bl	dsl_dir_space_towrite
	mov	r4, r0
	mov	r0, r6
	bl	dmu_tx_is_syncing
	clz	r3, r4
	cmp	r0, #0
	lsr	r3, r3, #5
	movne	r3, #1
	cmp	r3, #0
	beq	.L9
	ldr	r3, [sp, #12]
	ldr	r0, [r3]
	bl	dsl_dir_phys
	ldr	r3, [sp, #16]
	ldr	r2, [r0]
	cmp	r2, r3
	bgt	.L8
	ldr	r3, [sp, #12]
	ldr	r0, [r3]
	bl	dsl_dir_phys
	ldr	r0, [r0, #4]
	ldr	r3, [sp, #16]
	add	r4, r4, r0
	cmp	r4, r3
	bgt	.L8
.L9:
	mov	r4, #0
.L6:
	ldr	r3, [sp, #12]
	ldr	r0, [r3]
	bl	mutex_exit
.L12:
	ldr	r1, [r7]
	ldr	r0, [sp, #12]
	bl	dsl_dataset_rele
	b	.L1
.L8:
	ldr	r3, .L17+12
	ldr	r0, [r3]
	bl	SET_ERROR
	mov	r4, r0
	b	.L6
.L16:
	ldr	r1, [r7]
	bl	dsl_dataset_rele
	b	.L1
.L15:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC1
	.word	FTAG
	.word	.LC0
	.word	ENOSPC
	.size	dsl_dir_set_quota_check, .-dsl_dir_set_quota_check
	.comm	FTAG,4,4
	.comm	ENOSPC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
