	.file	"extr_43418.c_smap_smep_enabled.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/proc/cpuinfo"
.LC1:
	.string	"[-] open/read(/proc/cpuinfo)"
.LC2:
	.string	"smep"
.LC3:
	.string	"smap"
	.text
	.p2align 4
	.globl	smap_smep_enabled
	.type	smap_smep_enabled, @function
smap_smep_enabled:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	sub	rsp, 24
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR PROC_CPUINFO_LENGTH[rip]
	mov	rcx, rsp
	mov	r8, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L15:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L15
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L16
.L4:
	mov	edx, r8d
	mov	rsi, rsp
	lea	rdi, .LC0[rip]
	mov	r14, rsp
	call	read_file@PLT
	mov	r13d, eax
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, DWORD PTR EXIT_FAILURE[rip]
	call	exit@PLT
.L5:
	mov	ecx, 4
	mov	esi, r13d
	mov	rdi, r14
	xor	r12d, r12d
	lea	rdx, .LC2[rip]
	call	memmem@PLT
	mov	ecx, 4
	mov	esi, r13d
	mov	rdi, r14
	test	rax, rax
	lea	rdx, .LC3[rip]
	setne	r12b
	call	memmem@PLT
	mov	r8, rax
	lea	eax, 2[r12]
	test	r8, r8
	cmovne	r12d, eax
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L17
	lea	rsp, -24[rbp]
	mov	eax, r12d
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	smap_smep_enabled, .-smap_smep_enabled
	.comm	PROC_CPUINFO_LENGTH,4,4
	.comm	EXIT_FAILURE,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_43418.c_smap_smep_enabled.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/proc/cpuinfo\000"
	.align	2
.LC1:
	.ascii	"[-] open/read(/proc/cpuinfo)\000"
	.align	2
.LC2:
	.ascii	"smep\000"
	.align	2
.LC3:
	.ascii	"smap\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	smap_smep_enabled
	.syntax unified
	.arm
	.fpu softvfp
	.type	smap_smep_enabled, %function
smap_smep_enabled:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #8
	ldr	r3, .L12
	ldr	r0, .L12+4
	ldr	r2, [r3]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	add	r3, r2, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r1, sp
	bl	read_file
	cmn	r0, #1
	mov	r4, r0
	mov	r5, sp
	beq	.L10
.L2:
	mov	r1, r4
	mov	r3, #4
	ldr	r2, .L12+12
	mov	r0, r5
	bl	memmem
	mov	ip, r0
	mov	r1, r4
	mov	r3, #4
	subs	r4, ip, #0
	ldr	r2, .L12+16
	mov	r0, r5
	movne	r4, #1
	bl	memmem
	ldr	r3, .L12+8
	cmp	r0, #0
	addne	r4, r4, #2
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	mov	r0, r4
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L10:
	ldr	r0, .L12+20
	bl	perror
	ldr	r3, .L12+24
	ldr	r0, [r3]
	bl	exit
	b	.L2
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	PROC_CPUINFO_LENGTH
	.word	.LC0
	.word	.LC4
	.word	.LC2
	.word	.LC3
	.word	.LC1
	.word	EXIT_FAILURE
	.size	smap_smep_enabled, .-smap_smep_enabled
	.comm	PROC_CPUINFO_LENGTH,4,4
	.comm	EXIT_FAILURE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
