	.file	"extr_hooks.c_selinux_kernel_module_from_file.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	selinux_kernel_module_from_file, @function
selinux_kernel_module_from_file:
.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, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	current_sid@PLT
	mov	r12, rax
	test	rbp, rbp
	je	.L12
	mov	eax, DWORD PTR LSM_AUDIT_DATA_FILE[rip]
	mov	rdi, rbp
	mov	QWORD PTR [rsp], rbp
	mov	rbx, rsp
	mov	DWORD PTR 8[rsp], eax
	call	selinux_file@PLT
	mov	rdx, QWORD PTR [rax]
	cmp	rdx, r12
	je	.L5
	mov	r8d, DWORD PTR FD__USE[rip]
	mov	ecx, DWORD PTR SECCLASS_FD[rip]
	mov	r9, rbx
	mov	rsi, r12
	lea	rdi, selinux_state[rip]
	call	avc_has_perm@PLT
	test	eax, eax
	jne	.L1
.L5:
	mov	rdi, rbp
	call	file_inode@PLT
	mov	edi, eax
	call	inode_security@PLT
	mov	r8d, DWORD PTR SYSTEM__MODULE_LOAD[rip]
	mov	r9, rbx
	mov	rsi, r12
	mov	ecx, DWORD PTR SECCLASS_SYSTEM[rip]
	mov	rdx, QWORD PTR [rax]
	lea	rdi, selinux_state[rip]
	call	avc_has_perm@PLT
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	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
.L12:
	.cfi_restore_state
	mov	r8d, DWORD PTR SYSTEM__MODULE_LOAD[rip]
	xor	r9d, r9d
	mov	rdx, rax
	mov	rsi, rax
	mov	ecx, DWORD PTR SECCLASS_SYSTEM[rip]
	lea	rdi, selinux_state[rip]
	call	avc_has_perm@PLT
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	selinux_kernel_module_from_file, .-selinux_kernel_module_from_file
	.comm	selinux_state,4,4
	.comm	SYSTEM__MODULE_LOAD,4,4
	.comm	SECCLASS_SYSTEM,4,4
	.comm	SECCLASS_FD,4,4
	.comm	LSM_AUDIT_DATA_FILE,4,4
	.comm	FD__USE,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_kernel_module_from_file.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_kernel_module_from_file, %function
selinux_kernel_module_from_file:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L15
	mov	r4, r0
	sub	sp, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	current_sid
	cmp	r4, #0
	mov	r5, r0
	beq	.L12
	ldr	r3, .L15+4
	mov	r0, r4
	ldr	r3, [r3]
	str	r4, [sp, #12]
	str	r3, [sp, #16]
	bl	selinux_file
	ldr	r2, [r0]
	cmp	r2, r5
	beq	.L13
	ldr	r1, .L15+8
	ldr	r3, .L15+12
	ldr	r1, [r1]
	add	r6, sp, #12
	str	r1, [sp]
	ldr	r3, [r3]
	mov	r1, r5
	ldr	r0, .L15+16
	str	r6, [sp, #4]
	bl	avc_has_perm
	cmp	r0, #0
	bne	.L1
.L5:
	mov	r0, r4
	bl	file_inode
	bl	inode_security
	ldr	r3, .L15+20
	ldr	r2, [r0]
	ldr	r0, [r3]
	ldr	r3, .L15+24
	str	r0, [sp]
	str	r6, [sp, #4]
	mov	r1, r5
	ldr	r3, [r3]
	ldr	r0, .L15+16
	bl	avc_has_perm
.L1:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L13:
	add	r6, sp, #12
	b	.L5
.L12:
	ldr	r2, .L15+20
	ldr	r3, .L15+24
	ldr	r2, [r2]
	mov	r1, r0
	stm	sp, {r2, r4}
	mov	r2, r0
	ldr	r3, [r3]
	ldr	r0, .L15+16
	bl	avc_has_perm
	b	.L1
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	LSM_AUDIT_DATA_FILE
	.word	FD__USE
	.word	SECCLASS_FD
	.word	selinux_state
	.word	SYSTEM__MODULE_LOAD
	.word	SECCLASS_SYSTEM
	.size	selinux_kernel_module_from_file, .-selinux_kernel_module_from_file
	.comm	selinux_state,4,4
	.comm	SYSTEM__MODULE_LOAD,4,4
	.comm	SECCLASS_SYSTEM,4,4
	.comm	SECCLASS_FD,4,4
	.comm	LSM_AUDIT_DATA_FILE,4,4
	.comm	FD__USE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
