	.file	"extr_hooks.c_selinux_inode_permission.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	selinux_inode_permission, @function
selinux_inode_permission:
.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	ebx, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	current_cred@PLT
	mov	esi, DWORD PTR MAY_READ[rip]
	or	esi, DWORD PTR MAY_WRITE[rip]
	or	esi, DWORD PTR MAY_EXEC[rip]
	or	esi, DWORD PTR MAY_APPEND[rip]
	and	esi, ebx
	jne	.L2
.L4:
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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	r13, rax
	mov	eax, DWORD PTR MAY_ACCESS[rip]
	mov	r12d, esi
	mov	r14d, DWORD PTR MAY_NOT_BLOCK[rip]
	mov	rdi, r13
	mov	DWORD PTR 4[rsp], eax
	call	validate_creds@PLT
	mov	rdi, rbp
	call	IS_PRIVATE@PLT
	mov	edi, eax
	call	unlikely@PLT
	test	rax, rax
	jne	.L4
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, r12d
	and	r14d, ebx
	call	file_mask_to_av@PLT
	mov	rdi, r13
	mov	r15d, eax
	call	cred_sid@PLT
	mov	esi, DWORD PTR MAY_NOT_BLOCK[rip]
	mov	rdi, rbp
	mov	DWORD PTR 8[rsp], eax
	and	esi, r14d
	call	inode_security_rcu@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	mov	r11d, DWORD PTR 8[rsp]
	test	rax, rax
	jne	.L17
	mov	r9d, 0
	mov	ecx, DWORD PTR [r12]
	mov	esi, r11d
	mov	r8d, r15d
	test	DWORD PTR MAY_NOT_BLOCK[rip], r14d
	cmovne	r9d, DWORD PTR AVC_NONBLOCKING[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	lea	r10, 24[rsp]
	mov	edx, DWORD PTR 4[r12]
	lea	rdi, selinux_state[rip]
	push	r10
	.cfi_def_cfa_offset 112
	mov	QWORD PTR 24[rsp], r10
	call	avc_has_perm_noaudit@PLT
	mov	edi, r15d
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
	mov	ecx, DWORD PTR 4[rsp]
	mov	r10, QWORD PTR 8[rsp]
	lea	r8, 20[rsp]
	mov	edx, r12d
	and	ecx, ebx
	cmovne	ecx, DWORD PTR FILE__AUDIT_ACCESS[rip]
	mov	rsi, r10
	call	avc_audit_required@PLT
	xor	edi, edi
	test	eax, eax
	mov	r13d, eax
	sete	dil
	call	likely@PLT
	test	rax, rax
	jne	.L1
	mov	ecx, DWORD PTR 20[rsp]
	mov	r8d, r12d
	mov	r9d, r14d
	mov	edx, r13d
	mov	esi, r15d
	mov	rdi, rbp
	call	audit_inode_permission@PLT
	test	eax, eax
	cmovne	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r12
	call	PTR_ERR@PLT
	mov	r12d, eax
	jmp	.L1
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	selinux_inode_permission, .-selinux_inode_permission
	.comm	selinux_state,4,4
	.comm	MAY_WRITE,4,4
	.comm	MAY_READ,4,4
	.comm	MAY_NOT_BLOCK,4,4
	.comm	MAY_EXEC,4,4
	.comm	MAY_APPEND,4,4
	.comm	MAY_ACCESS,4,4
	.comm	FILE__AUDIT_ACCESS,4,4
	.comm	AVC_NONBLOCKING,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_hooks.c_selinux_inode_permission.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	selinux_inode_permission, %function
selinux_inode_permission:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r1
	ldr	r3, .L21
	sub	sp, sp, #36
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r6, r0
	bl	current_cred
	ldr	r3, .L21+4
	ldr	r2, .L21+8
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L21+12
	orr	r2, r2, r1
	ldr	r1, [r3]
	ldr	r3, .L21+16
	orr	r2, r2, r1
	ldr	r1, [r3]
	orr	r2, r2, r1
	ands	r4, r2, r5
	bne	.L2
.L4:
	mov	r4, #0
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L21+20
	ldr	r8, .L21+24
	ldr	r9, [r3]
	mov	r7, r0
	ldr	fp, [r8]
	bl	validate_creds
	mov	r0, r6
	bl	IS_PRIVATE
	bl	unlikely
	cmp	r0, #0
	bne	.L4
	mov	r1, r4
	ldr	r0, [r6]
	bl	file_mask_to_av
	mov	r10, r0
	mov	r0, r7
	bl	cred_sid
	ldr	r1, [r8]
	and	r7, fp, r5
	and	r1, r1, r7
	mov	r4, r0
	mov	r0, r6
	bl	inode_security_rcu
	mov	fp, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L20
	ldr	r3, [r8]
	add	r8, sp, #20
	tst	r7, r3
	ldrne	r1, .L21+28
	ldr	r2, [fp, #4]
	ldrne	r0, [r1]
	ldr	r3, [fp]
	mov	r1, r4
	str	r0, [sp, #4]
	str	r10, [sp]
	ldr	r0, .L21+32
	str	r8, [sp, #8]
	bl	avc_has_perm_noaudit
	ands	r3, r9, r5
	ldrne	r3, .L21+36
	add	r2, sp, #24
	ldrne	r3, [r3]
	mov	r1, r8
	str	r2, [sp]
	mov	r4, r0
	mov	r2, r0
	mov	r0, r10
	bl	avc_audit_required
	mov	r5, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	likely
	cmp	r0, #0
	bne	.L1
	stm	sp, {r4, r7}
	mov	r2, r5
	mov	r1, r10
	mov	r0, r6
	ldr	r3, [sp, #24]
	bl	audit_inode_permission
	cmp	r0, #0
	movne	r4, r0
	b	.L1
.L20:
	mov	r0, fp
	bl	PTR_ERR
	mov	r4, r0
	b	.L1
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	MAY_WRITE
	.word	MAY_READ
	.word	MAY_EXEC
	.word	MAY_APPEND
	.word	MAY_ACCESS
	.word	MAY_NOT_BLOCK
	.word	AVC_NONBLOCKING
	.word	selinux_state
	.word	FILE__AUDIT_ACCESS
	.size	selinux_inode_permission, .-selinux_inode_permission
	.comm	selinux_state,4,4
	.comm	MAY_WRITE,4,4
	.comm	MAY_READ,4,4
	.comm	MAY_NOT_BLOCK,4,4
	.comm	MAY_EXEC,4,4
	.comm	MAY_APPEND,4,4
	.comm	MAY_ACCESS,4,4
	.comm	FILE__AUDIT_ACCESS,4,4
	.comm	AVC_NONBLOCKING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
