	.file	"extr_rdtgroup.c_rdtgroup_kn_mode_restrict.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rdtgroup_kn_mode_restrict
	.type	rdtgroup_kn_mode_restrict, @function
rdtgroup_kn_mode_restrict:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR ATTR_MODE[rip]
	mov	DWORD PTR [rsp], 0
	mov	DWORD PTR 4[rsp], eax
	call	kernfs_find_and_get_ns@PLT
	mov	r12d, DWORD PTR ENOENT[rip]
	neg	r12d
	test	rax, rax
	je	.L1
	mov	rdi, rax
	mov	rbp, rax
	call	kernfs_type@PLT
	cmp	eax, 129
	je	.L4
	cmp	eax, 130
	je	.L5
	cmp	eax, 128
	je	.L11
.L7:
	mov	rdi, rbp
	mov	rsi, rsp
	call	kernfs_setattr@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	kernfs_put@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	eax, DWORD PTR S_IFLNK[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR S_IFDIR[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR S_IFREG[rip]
	mov	DWORD PTR [rsp], eax
	jmp	.L7
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	rdtgroup_kn_mode_restrict, .-rdtgroup_kn_mode_restrict
	.comm	S_IFREG,4,4
	.comm	S_IFLNK,4,4
	.comm	S_IFDIR,4,4
	.comm	ENOENT,4,4
	.comm	ATTR_MODE,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_kn_mode_restrict.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rdtgroup_kn_mode_restrict
	.syntax unified
	.arm
	.fpu softvfp
	.type	rdtgroup_kn_mode_restrict, %function
rdtgroup_kn_mode_restrict:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, #0
	push	{r4, lr}
	ldr	r3, .L14
	ldr	ip, .L14+4
	ldr	r3, [r3]
	sub	sp, sp, #16
	ldr	r0, [r0]
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	stmib	sp, {r2, r3}
	bl	kernfs_find_and_get_ns
	subs	r4, r0, #0
	beq	.L11
	bl	kernfs_type
	cmp	r0, #129
	beq	.L4
	cmp	r0, #130
	beq	.L5
	cmp	r0, #128
	beq	.L12
.L7:
	mov	r0, r4
	add	r1, sp, #4
	bl	kernfs_setattr
	mov	r3, r0
	mov	r0, r4
	mov	r4, r3
	bl	kernfs_put
.L1:
	ldr	r3, .L14+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	mov	r0, r4
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L11:
	ldr	r3, .L14+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L12:
	ldr	r3, .L14+12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	b	.L7
.L5:
	ldr	r3, .L14+16
	ldr	r3, [r3]
	str	r3, [sp, #4]
	b	.L7
.L4:
	ldr	r3, .L14+20
	ldr	r3, [r3]
	str	r3, [sp, #4]
	b	.L7
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	ATTR_MODE
	.word	.LC0
	.word	ENOENT
	.word	S_IFLNK
	.word	S_IFDIR
	.word	S_IFREG
	.size	rdtgroup_kn_mode_restrict, .-rdtgroup_kn_mode_restrict
	.comm	S_IFREG,4,4
	.comm	S_IFLNK,4,4
	.comm	S_IFDIR,4,4
	.comm	ENOENT,4,4
	.comm	ATTR_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
