	.file	"125141084.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"reference"
.LC1:
	.string	"armv7a"
.LC2:
	.string	"cortex-a9"
.LC3:
	.string	"cortex-a15"
	.section	.data.rel.local,"aw"
	.align 32
	.type	cpuname, @object
	.size	cpuname, 32
cpuname:
	.quad	.LC0
	.quad	.LC1
	.quad	.LC2
	.quad	.LC3
	.section	.rodata
.LC4:
	.string	"r"
.LC5:
	.string	"/proc/cpuinfo"
.LC6:
	.string	"Features"
.LC7:
	.string	" "
	.text
	.globl	get_feature
	.type	get_feature, @function
get_feature:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 2112
	mov	QWORD PTR -2104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -2088[rbp], 0
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -2080[rbp], rax
	cmp	QWORD PTR -2080[rbp], 0
	jne	.L4
	mov	eax, 0
	jmp	.L11
.L6:
	lea	rax, -2064[rbp]
	mov	edx, 8
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L4
	lea	rax, -2064[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strchr@PLT
	add	rax, 2
	mov	QWORD PTR -2088[rbp], rax
	jmp	.L5
.L4:
	mov	rdx, QWORD PTR -2080[rbp]
	lea	rax, -2064[rbp]
	mov	esi, 2048
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L6
.L5:
	mov	rax, QWORD PTR -2080[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	QWORD PTR -2088[rbp], 0
	jne	.L7
	mov	eax, 0
	jmp	.L11
.L7:
	mov	rax, QWORD PTR -2088[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -2072[rbp], rax
	cmp	QWORD PTR -2072[rbp], 0
	je	.L9
	mov	rdx, QWORD PTR -2104[rbp]
	mov	rax, QWORD PTR -2072[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	eax, 1
	jmp	.L11
.L10:
	mov	rdx, QWORD PTR -2104[rbp]
	mov	rax, QWORD PTR -2072[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L9
	mov	eax, 1
	jmp	.L11
.L9:
	lea	rsi, .LC7[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -2072[rbp], rax
	cmp	QWORD PTR -2072[rbp], 0
	jne	.L10
	mov	eax, 0
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	get_feature, .-get_feature
	.section	.rodata
.LC8:
	.string	"CPU part"
.LC9:
	.string	"0xc09"
.LC10:
	.string	"neon"
.LC11:
	.string	"0xc0f"
.LC12:
	.string	"model name"
.LC13:
	.string	"Processor"
.LC14:
	.string	"ARMv7"
	.text
	.globl	cpu_detect
	.type	cpu_detect, @function
cpu_detect:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 544
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -544[rbp], 0
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	jne	.L16
	mov	eax, 0
	jmp	.L29
.L18:
	lea	rax, -528[rbp]
	mov	edx, 8
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L16
	lea	rax, -528[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strchr@PLT
	add	rax, 2
	mov	QWORD PTR -544[rbp], rax
	jmp	.L17
.L16:
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L18
.L17:
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	QWORD PTR -544[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -544[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L20
	lea	rdi, .LC10[rip]
	call	get_feature
	test	eax, eax
	je	.L21
	mov	eax, 2
	jmp	.L29
.L21:
	mov	eax, 1
	jmp	.L29
.L20:
	mov	rax, QWORD PTR -544[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L19
	lea	rdi, .LC10[rip]
	call	get_feature
	test	eax, eax
	je	.L22
	mov	eax, 3
	jmp	.L29
.L22:
	mov	eax, 1
	jmp	.L29
.L19:
	mov	QWORD PTR -544[rbp], 0
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], 0
	jne	.L24
	mov	eax, 0
	jmp	.L29
.L27:
	lea	rax, -528[rbp]
	mov	edx, 10
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	call	strncmp@PLT
	test	eax, eax
	je	.L25
	lea	rax, -528[rbp]
	mov	edx, 9
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	call	strncmp@PLT
	test	eax, eax
	jne	.L24
.L25:
	lea	rax, -528[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strchr@PLT
	add	rax, 2
	mov	QWORD PTR -544[rbp], rax
	jmp	.L26
.L24:
	mov	rdx, QWORD PTR -536[rbp]
	lea	rax, -528[rbp]
	mov	esi, 512
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L27
.L26:
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	QWORD PTR -544[rbp], 0
	je	.L28
	mov	rax, QWORD PTR -544[rbp]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L28
	mov	eax, 1
	jmp	.L29
.L28:
	mov	eax, 0
.L29:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	cpu_detect, .-cpu_detect
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	call	cpu_detect
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, cpuname[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"125141084.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"reference\000"
	.align	2
.LC1:
	.ascii	"armv7a\000"
	.align	2
.LC2:
	.ascii	"cortex-a9\000"
	.align	2
.LC3:
	.ascii	"cortex-a15\000"
	.data
	.align	2
	.type	cpuname, %object
	.size	cpuname, 16
cpuname:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.section	.rodata
	.align	2
.LC4:
	.ascii	"r\000"
	.align	2
.LC5:
	.ascii	"/proc/cpuinfo\000"
	.align	2
.LC6:
	.ascii	"Features\000"
	.align	2
.LC7:
	.ascii	" \000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_feature
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_feature, %function
get_feature:
	@ args = 0, pretend = 0, frame = 2072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2064
	sub	sp, sp, #8
	str	r0, [fp, #-2072]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2068]
	ldr	r1, .L13+4
	ldr	r0, .L13+8
	bl	fopen
	str	r0, [fp, #-2064]
	ldr	r3, [fp, #-2064]
	cmp	r3, #0
	bne	.L4
	mov	r3, #0
	b	.L11
.L6:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #8
	mov	r1, r3
	ldr	r0, .L13+12
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #58
	mov	r0, r3
	bl	strchr
	mov	r3, r0
	add	r3, r3, #2
	str	r3, [fp, #-2068]
	b	.L5
.L4:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2064]
	mov	r1, #2048
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
.L5:
	ldr	r0, [fp, #-2064]
	bl	fclose
	ldr	r3, [fp, #-2068]
	cmp	r3, #0
	bne	.L7
	mov	r3, #0
	b	.L11
.L7:
	ldr	r1, .L13+16
	ldr	r0, [fp, #-2068]
	bl	strtok
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	beq	.L9
	ldr	r1, [fp, #-2072]
	ldr	r0, [fp, #-2060]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	mov	r3, #1
	b	.L11
.L10:
	ldr	r1, [fp, #-2072]
	ldr	r0, [fp, #-2060]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L9
	mov	r3, #1
	b	.L11
.L9:
	ldr	r1, .L13+16
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-2060]
	ldr	r3, [fp, #-2060]
	cmp	r3, #0
	bne	.L10
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	get_feature, .-get_feature
	.section	.rodata
	.align	2
.LC9:
	.ascii	"CPU part\000"
	.align	2
.LC10:
	.ascii	"0xc09\000"
	.align	2
.LC11:
	.ascii	"neon\000"
	.align	2
.LC12:
	.ascii	"0xc0f\000"
	.align	2
.LC13:
	.ascii	"model name\000"
	.align	2
.LC14:
	.ascii	"Processor\000"
	.align	2
.LC15:
	.ascii	"ARMv7\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cpu_detect
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpu_detect, %function
cpu_detect:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-528]
	ldr	r1, .L33+4
	ldr	r0, .L33+8
	bl	fopen
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bne	.L18
	mov	r3, #0
	b	.L31
.L20:
	sub	r3, fp, #520
	mov	r2, #8
	mov	r1, r3
	ldr	r0, .L33+12
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	sub	r3, fp, #520
	mov	r1, #58
	mov	r0, r3
	bl	strchr
	mov	r3, r0
	add	r3, r3, #2
	str	r3, [fp, #-528]
	b	.L19
.L18:
	sub	r3, fp, #520
	ldr	r2, [fp, #-524]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L20
.L19:
	ldr	r0, [fp, #-524]
	bl	fclose
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	beq	.L21
	ldr	r1, .L33+16
	ldr	r0, [fp, #-528]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L22
	ldr	r0, .L33+20
	bl	get_feature
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	mov	r3, #2
	b	.L31
.L23:
	mov	r3, #1
	b	.L31
.L22:
	ldr	r1, .L33+24
	ldr	r0, [fp, #-528]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r0, .L33+20
	bl	get_feature
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	mov	r3, #3
	b	.L31
.L24:
	mov	r3, #1
	b	.L31
.L21:
	mov	r3, #0
	str	r3, [fp, #-528]
	ldr	r1, .L33+4
	ldr	r0, .L33+8
	bl	fopen
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	bne	.L26
	mov	r3, #0
	b	.L31
.L29:
	sub	r3, fp, #520
	mov	r2, #10
	mov	r1, r3
	ldr	r0, .L33+28
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L27
	sub	r3, fp, #520
	mov	r2, #9
	mov	r1, r3
	ldr	r0, .L33+32
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
.L27:
	sub	r3, fp, #520
	mov	r1, #58
	mov	r0, r3
	bl	strchr
	mov	r3, r0
	add	r3, r3, #2
	str	r3, [fp, #-528]
	b	.L28
.L26:
	sub	r3, fp, #520
	ldr	r2, [fp, #-524]
	mov	r1, #512
	mov	r0, r3
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
.L28:
	ldr	r0, [fp, #-524]
	bl	fclose
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	beq	.L30
	ldr	r1, .L33+36
	ldr	r0, [fp, #-528]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	mov	r3, #1
	b	.L31
.L30:
	mov	r3, #0
.L31:
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC16
	.word	.LC4
	.word	.LC5
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	cpu_detect, .-cpu_detect
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	cpu_detect
	str	r0, [fp, #-8]
	ldr	r2, .L37
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	cpuname
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
