	.file	"extr_zfs_vfsops.c_zfs_set_userquota.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zfs_set_userquota
	.type	zfs_set_userquota, @function
zfs_set_userquota:
.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
	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
	mov	rbx, rsi
	mov	rsi, rdx
	mov	rdx, rcx
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	QWORD PTR 24[rsp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR ZFS_PROP_USERQUOTA[rip], rbx
	je	.L2
	cmp	QWORD PTR ZFS_PROP_GROUPQUOTA[rip], rbx
	jne	.L29
	mov	rax, QWORD PTR ZPL_VERSION_USERSPACE[rip]
	lea	r13, 16[rdi]
	cmp	QWORD PTR [rdi], rax
	jl	.L14
.L5:
	mov	r8d, DWORD PTR B_TRUE[rip]
	lea	r14, 32[rsp]
	mov	rdi, rbp
	mov	rcx, r14
	call	id_to_fuidstr@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L1
	mov	rax, QWORD PTR 32[rbp]
	mov	edi, DWORD PTR 24[rbp]
	mov	QWORD PTR 8[rsp], rax
	call	dmu_tx_create@PLT
	mov	rsi, QWORD PTR 0[r13]
	mov	edx, DWORD PTR B_TRUE[rip]
	mov	rdi, rax
	mov	r12, rax
	test	rsi, rsi
	cmove	rsi, QWORD PTR DMU_NEW_OBJECT[rip]
	xor	ecx, ecx
	call	dmu_tx_hold_zap@PLT
	cmp	QWORD PTR 0[r13], 0
	je	.L30
.L7:
	cmp	QWORD PTR 8[rsp], 0
	jne	.L31
.L8:
	mov	esi, DWORD PTR TXG_WAIT[rip]
	mov	rdi, r12
	call	dmu_tx_assign@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L32
	lea	r11, 28[rbp]
	mov	rdi, r11
	mov	QWORD PTR 16[rsp], r11
	call	mutex_enter@PLT
	cmp	QWORD PTR 0[r13], 0
	mov	r11, QWORD PTR 16[rsp]
	je	.L33
.L10:
	mov	rdi, r11
	call	mutex_exit@PLT
	cmp	QWORD PTR 24[rsp], 0
	mov	edi, DWORD PTR 24[rbp]
	je	.L34
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	rsi, QWORD PTR 0[r13]
	mov	rdx, r14
	mov	ecx, 8
	push	r12
	.cfi_def_cfa_offset 160
	mov	r8d, 1
	lea	r9, 40[rsp]
	call	zap_update@PLT
	xor	edi, edi
	mov	r15d, eax
	pop	rax
	.cfi_def_cfa_offset 152
	pop	rdx
	.cfi_def_cfa_offset 144
	test	r15d, r15d
	sete	dil
.L12:
	call	ASSERT@PLT
	cmp	QWORD PTR 8[rsp], 0
	jne	.L35
.L13:
	mov	rdi, r12
	call	dmu_tx_commit@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR EINVAL[rip]
	call	SET_ERROR@PLT
	mov	r15d, eax
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L36
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR ZPL_VERSION_USERSPACE[rip]
	lea	r13, 8[rdi]
	cmp	QWORD PTR [rdi], rax
	jge	.L5
.L14:
	mov	edi, DWORD PTR ENOTSUP[rip]
	call	SET_ERROR@PLT
	mov	r15d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rsi, QWORD PTR 0[r13]
	mov	rcx, r12
	mov	rdx, r14
	call	zap_remove@PLT
	cmp	DWORD PTR ENOENT[rip], eax
	mov	edi, 1
	je	.L12
	xor	edi, edi
	test	eax, eax
	mov	r15d, eax
	sete	dil
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L33:
	mov	edi, DWORD PTR 24[rbp]
	mov	edx, DWORD PTR DMU_OT_NONE[rip]
	xor	ecx, ecx
	mov	r8, r12
	mov	esi, DWORD PTR DMU_OT_USERGROUP_QUOTA[rip]
	call	zap_create@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	mov	edi, DWORD PTR 24[rbp]
	mov	r9, r13
	mov	QWORD PTR 0[r13], rax
	mov	rax, QWORD PTR zfs_userquota_prop_prefixes[rip]
	mov	ecx, 8
	mov	r8d, 1
	mov	rsi, QWORD PTR MASTER_NODE_OBJ[rip]
	mov	rdx, QWORD PTR [rax+rbx*8]
	push	r12
	.cfi_def_cfa_offset 160
	call	zap_add@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	VERIFY@PLT
	pop	rcx
	.cfi_def_cfa_offset 152
	pop	rsi
	.cfi_def_cfa_offset 144
	mov	r11, QWORD PTR 16[rsp]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdi, r12
	call	dmu_tx_abort@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rsi, r12
	mov	rdi, rbp
	call	zfs_fuid_txhold@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L30:
	mov	rax, QWORD PTR zfs_userquota_prop_prefixes[rip]
	mov	edx, DWORD PTR B_TRUE[rip]
	mov	rdi, r12
	mov	rsi, QWORD PTR MASTER_NODE_OBJ[rip]
	mov	rcx, QWORD PTR [rax+rbx*8]
	call	dmu_tx_hold_zap@PLT
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rsi, r12
	mov	rdi, rbp
	call	zfs_fuid_sync@PLT
	jmp	.L13
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zfs_set_userquota, .-zfs_set_userquota
	.comm	zfs_userquota_prop_prefixes,8,8
	.comm	ZPL_VERSION_USERSPACE,8,8
	.comm	ZFS_PROP_USERQUOTA,8,8
	.comm	ZFS_PROP_GROUPQUOTA,8,8
	.comm	TXG_WAIT,4,4
	.comm	MASTER_NODE_OBJ,8,8
	.comm	ENOTSUP,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.comm	DMU_OT_USERGROUP_QUOTA,4,4
	.comm	DMU_OT_NONE,4,4
	.comm	DMU_NEW_OBJECT,8,8
	.comm	B_TRUE,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_zfs_vfsops.c_zfs_set_userquota.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	zfs_set_userquota
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfs_set_userquota, %function
zfs_set_userquota:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r1
	ldr	ip, .L37
	mov	r1, r2
	ldr	ip, [ip]
	mov	r2, r3
	ldr	r3, .L37+4
	sub	sp, sp, #56
	cmp	ip, r5
	mov	r6, r0
	ldr	r3, [r3]
	str	r3, [sp, #52]
	mov	r3,#0
	beq	.L2
	ldr	r0, .L37+8
	ldr	r0, [r0]
	cmp	r0, r5
	bne	.L29
	ldr	r3, .L37+12
	ldr	r0, [r6]
	ldr	r3, [r3]
	cmp	r0, r3
	addge	r8, r6, #8
	blt	.L14
.L5:
	ldr	r9, .L37+16
	add	r3, sp, #20
	ldr	r0, [r9]
	str	r0, [sp]
	mov	r0, r6
	bl	id_to_fuidstr
	subs	r4, r0, #0
	bne	.L1
	ldr	r0, [r6, #12]
	ldr	r10, [r6, #20]
	bl	dmu_tx_create
	ldr	r1, [r8]
	ldr	r2, [r9]
	cmp	r1, #0
	ldreq	r3, .L37+20
	mov	r7, r0
	ldreq	r1, [r3]
	mov	r3, #0
	bl	dmu_tx_hold_zap
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L30
.L7:
	cmp	r10, #0
	bne	.L31
.L8:
	ldr	r3, .L37+24
	mov	r0, r7
	ldr	r1, [r3]
	bl	dmu_tx_assign
	subs	r4, r0, #0
	bne	.L32
	add	r4, r6, #16
	mov	r0, r4
	bl	mutex_enter
	ldr	r3, [r8]
	cmp	r3, #0
	beq	.L33
.L10:
	mov	r0, r4
	bl	mutex_exit
	ldr	r4, [sp, #88]
	cmp	r4, #0
	beq	.L34
	mov	r0, #1
	str	r7, [sp, #8]
	add	r3, sp, #88
	ldr	r1, [r8]
	stm	sp, {r0, r3}
	add	r2, sp, #20
	mov	r3, #8
	ldr	r0, [r6, #12]
	bl	zap_update
	mov	r4, r0
	clz	r0, r0
	lsr	r0, r0, #5
.L12:
	bl	ASSERT
	cmp	r10, #0
	bne	.L35
.L13:
	mov	r0, r7
	bl	dmu_tx_commit
	b	.L1
.L29:
	ldr	r3, .L37+28
	ldr	r0, [r3]
	bl	SET_ERROR
	mov	r4, r0
.L1:
	ldr	r3, .L37+4
	ldr	r2, [r3]
	ldr	r3, [sp, #52]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L36
	mov	r0, r4
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L37+12
	ldr	r0, [r0]
	ldr	r3, [r3]
	cmp	r0, r3
	addge	r8, r6, #4
	bge	.L5
.L14:
	ldr	r3, .L37+32
	ldr	r0, [r3]
	bl	SET_ERROR
	mov	r4, r0
	b	.L1
.L34:
	mov	r3, r7
	add	r2, sp, #20
	ldr	r1, [r8]
	ldr	r0, [r6, #12]
	bl	zap_remove
	ldr	r2, .L37+36
	mov	r3, r0
	ldr	r2, [r2]
	cmp	r2, r0
	moveq	r0, #1
	clzne	r0, r3
	movne	r4, r3
	lsrne	r0, r0, #5
	b	.L12
.L33:
	ldr	r2, .L37+40
	ldr	r1, .L37+44
	str	r7, [sp]
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r6, #12]
	bl	zap_create
	mov	r3, #1
	ldr	r2, .L37+48
	ldr	r1, .L37+52
	ldr	r2, [r2]
	str	r0, [r8]
	ldr	r2, [r2, r5, lsl #2]
	ldr	r1, [r1]
	stm	sp, {r3, r8}
	str	r7, [sp, #8]
	mov	r3, #8
	ldr	r0, [r6, #12]
	bl	zap_add
	clz	r0, r0
	lsr	r0, r0, #5
	bl	VERIFY
	b	.L10
.L32:
	mov	r0, r7
	bl	dmu_tx_abort
	b	.L1
.L31:
	mov	r1, r7
	mov	r0, r6
	bl	zfs_fuid_txhold
	b	.L8
.L30:
	ldr	r3, .L37+48
	ldr	r1, .L37+52
	ldr	r3, [r3]
	mov	r0, r7
	ldr	r2, [r9]
	ldr	r3, [r3, r5, lsl #2]
	ldr	r1, [r1]
	bl	dmu_tx_hold_zap
	b	.L7
.L35:
	mov	r0, r6
	mov	r1, r7
	bl	zfs_fuid_sync
	b	.L13
.L36:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	ZFS_PROP_USERQUOTA
	.word	.LC0
	.word	ZFS_PROP_GROUPQUOTA
	.word	ZPL_VERSION_USERSPACE
	.word	B_TRUE
	.word	DMU_NEW_OBJECT
	.word	TXG_WAIT
	.word	EINVAL
	.word	ENOTSUP
	.word	ENOENT
	.word	DMU_OT_NONE
	.word	DMU_OT_USERGROUP_QUOTA
	.word	zfs_userquota_prop_prefixes
	.word	MASTER_NODE_OBJ
	.size	zfs_set_userquota, .-zfs_set_userquota
	.comm	zfs_userquota_prop_prefixes,4,4
	.comm	ZPL_VERSION_USERSPACE,4,4
	.comm	ZFS_PROP_USERQUOTA,4,4
	.comm	ZFS_PROP_GROUPQUOTA,4,4
	.comm	TXG_WAIT,4,4
	.comm	MASTER_NODE_OBJ,4,4
	.comm	ENOTSUP,4,4
	.comm	ENOENT,4,4
	.comm	EINVAL,4,4
	.comm	DMU_OT_USERGROUP_QUOTA,4,4
	.comm	DMU_OT_NONE,4,4
	.comm	DMU_NEW_OBJECT,4,4
	.comm	B_TRUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
