	.file	"extr_rdtgroup.c_rdtgroup_rmdir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rdtgroup_rmdir, @function
rdtgroup_rmdir:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	r13, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rdi, 4[rsp]
	call	zalloc_cpumask_var@PLT
	test	eax, eax
	jne	.L2
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	rdtgroup_kn_lock_live@PLT
	mov	r12, rax
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR [rax]
	cmp	rax, QWORD PTR RDTCTRL_GROUP[rip]
	je	.L17
.L6:
	cmp	rax, QWORD PTR RDTMON_GROUP[rip]
	je	.L18
.L9:
	mov	r12d, DWORD PTR EPERM[rip]
	neg	r12d
.L5:
	mov	rdi, rbp
	call	rdtgroup_kn_unlock@PLT
	mov	edi, DWORD PTR 4[rsp]
	call	free_cpumask_var@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	cmp	QWORD PTR rdtgroup_default[rip], r13
	jne	.L6
	mov	rax, QWORD PTR 8[r12]
	cmp	rax, QWORD PTR RDT_MODE_PSEUDO_LOCKSETUP[rip]
	je	.L7
	cmp	rax, QWORD PTR RDT_MODE_PSEUDO_LOCKED[rip]
	je	.L7
	mov	edx, DWORD PTR 4[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	call	rdtgroup_rmdir_ctrl@PLT
	mov	r12d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	esi, DWORD PTR 0[rbp]
	mov	rdi, r13
	call	is_mon_groups@PLT
	test	rax, rax
	je	.L9
	mov	edx, DWORD PTR 4[rsp]
	mov	rsi, r12
	mov	rdi, rbp
	call	rdtgroup_rmdir_mon@PLT
	mov	r12d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, r12
	mov	rdi, rbp
	call	rdtgroup_ctrl_remove@PLT
	mov	r12d, eax
	jmp	.L5
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rdtgroup_rmdir, .-rdtgroup_rmdir
	.comm	rdtgroup_default,8,8
	.comm	RDT_MODE_PSEUDO_LOCKSETUP,8,8
	.comm	RDT_MODE_PSEUDO_LOCKED,8,8
	.comm	RDTMON_GROUP,8,8
	.comm	RDTCTRL_GROUP,8,8
	.comm	GFP_KERNEL,4,4
	.comm	EPERM,4,4
	.comm	ENOMEM,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_rdtgroup.c_rdtgroup_rmdir.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rdtgroup_rmdir, %function
rdtgroup_rmdir:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L19
	sub	sp, sp, #8
	ldr	r1, [r3]
	ldr	r3, .L19+4
	mov	r0, sp
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r6, [r4, #4]
	bl	zalloc_cpumask_var
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L19+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	ldr	r3, .L19+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r0, r4
	bl	rdtgroup_kn_lock_live
	subs	r5, r0, #0
	beq	.L9
	ldr	r2, .L19+12
	ldr	r3, [r5]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L17
.L6:
	ldr	r2, .L19+16
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L18
.L9:
	ldr	r3, .L19+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L5:
	mov	r0, r4
	bl	rdtgroup_kn_unlock
	ldr	r0, [sp]
	bl	free_cpumask_var
	b	.L1
.L17:
	ldr	r2, .L19+24
	ldr	r2, [r2]
	cmp	r2, r6
	bne	.L6
	ldr	r2, .L19+28
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	mov	r1, r5
	cmp	r3, r2
	beq	.L7
	ldr	r2, .L19+32
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L7
	mov	r0, r4
	ldr	r2, [sp]
	bl	rdtgroup_rmdir_ctrl
	mov	r5, r0
	b	.L5
.L18:
	mov	r0, r6
	ldr	r1, [r4]
	bl	is_mon_groups
	cmp	r0, #0
	beq	.L9
	mov	r1, r5
	mov	r0, r4
	ldr	r2, [sp]
	bl	rdtgroup_rmdir_mon
	mov	r5, r0
	b	.L5
.L7:
	mov	r0, r4
	bl	rdtgroup_ctrl_remove
	mov	r5, r0
	b	.L5
.L16:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	GFP_KERNEL
	.word	.LC0
	.word	ENOMEM
	.word	RDTCTRL_GROUP
	.word	RDTMON_GROUP
	.word	EPERM
	.word	rdtgroup_default
	.word	RDT_MODE_PSEUDO_LOCKSETUP
	.word	RDT_MODE_PSEUDO_LOCKED
	.size	rdtgroup_rmdir, .-rdtgroup_rmdir
	.comm	rdtgroup_default,4,4
	.comm	RDT_MODE_PSEUDO_LOCKSETUP,4,4
	.comm	RDT_MODE_PSEUDO_LOCKED,4,4
	.comm	RDTMON_GROUP,4,4
	.comm	RDTCTRL_GROUP,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPERM,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
