	.file	"311324.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Error: input truncated\n"
.LC1:
	.string	"\177ELF"
.LC2:
	.string	"Error: not ELF\n"
	.align 8
.LC3:
	.string	"#define KERNEL_ELFCLASS ELFCLASS32"
	.align 8
.LC4:
	.string	"#define KERNEL_ELFCLASS ELFCLASS64"
	.align 8
.LC5:
	.string	"#define KERNEL_ELFDATA ELFDATA2LSB"
	.align 8
.LC6:
	.string	"#define KERNEL_ELFDATA ELFDATA2MSB"
	.align 8
.LC7:
	.string	"#define HOST_ELFCLASS ELFCLASS64"
.LC8:
	.string	"\001\002"
	.align 8
.LC9:
	.string	"#define HOST_ELFDATA ELFDATA2MSB"
.LC10:
	.string	"\002\001"
	.align 8
.LC11:
	.string	"#define HOST_ELFDATA ELFDATA2LSB"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR stdin[rip]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	mov	edx, 16
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	cmp	rax, 16
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L16
.L2:
	lea	rax, -32[rbp]
	mov	edx, 4
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L16
.L4:
	movzx	eax, BYTE PTR -28[rbp]
	movzx	eax, al
	cmp	eax, 1
	je	.L5
	cmp	eax, 2
	je	.L6
	jmp	.L19
.L5:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L8
.L6:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L8
.L19:
	mov	edi, 1
	call	exit@PLT
.L8:
	movzx	eax, BYTE PTR -27[rbp]
	movzx	eax, al
	cmp	eax, 1
	je	.L9
	cmp	eax, 2
	je	.L10
	jmp	.L20
.L9:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L18
.L10:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L18
.L20:
	mov	edi, 1
	call	exit@PLT
.L18:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	WORD PTR -34[rbp], 258
	lea	rax, -34[rbp]
	mov	edx, 2
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L13
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L14
.L13:
	lea	rax, -34[rbp]
	mov	edx, 2
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L15
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L14
.L15:
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	eax, 0
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"311324.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: input truncated\012\000"
	.align	2
.LC1:
	.ascii	"\177ELF\000"
	.align	2
.LC2:
	.ascii	"Error: not ELF\012\000"
	.align	2
.LC3:
	.ascii	"#define KERNEL_ELFCLASS ELFCLASS32\000"
	.align	2
.LC4:
	.ascii	"#define KERNEL_ELFCLASS ELFCLASS64\000"
	.align	2
.LC5:
	.ascii	"#define KERNEL_ELFDATA ELFDATA2LSB\000"
	.align	2
.LC6:
	.ascii	"#define KERNEL_ELFDATA ELFDATA2MSB\000"
	.align	2
.LC7:
	.ascii	"#define HOST_ELFCLASS ELFCLASS32\000"
	.align	2
.LC8:
	.ascii	"\001\002\000"
	.align	2
.LC9:
	.ascii	"#define HOST_ELFDATA ELFDATA2MSB\000"
	.align	2
.LC10:
	.ascii	"\002\001\000"
	.align	2
.LC11:
	.ascii	"#define HOST_ELFDATA ELFDATA2LSB\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L21
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L21+4
	ldr	r3, [r3]
	sub	r0, fp, #24
	mov	r2, #16
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #16
	beq	.L2
	ldr	r3, .L21+8
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L21+12
	bl	fwrite
	mov	r3, #1
	b	.L16
.L2:
	sub	r3, fp, #24
	mov	r2, #4
	ldr	r1, .L21+16
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L21+8
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L21+20
	bl	fwrite
	mov	r3, #1
	b	.L16
.L4:
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L5
	cmp	r3, #2
	beq	.L6
	b	.L19
.L5:
	ldr	r0, .L21+24
	bl	puts
	b	.L8
.L6:
	ldr	r0, .L21+28
	bl	puts
	b	.L8
.L19:
	mov	r0, #1
	bl	exit
.L8:
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	cmp	r3, #1
	beq	.L9
	cmp	r3, #2
	beq	.L10
	b	.L20
.L9:
	ldr	r0, .L21+32
	bl	puts
	b	.L18
.L10:
	ldr	r0, .L21+36
	bl	puts
	b	.L18
.L20:
	mov	r0, #1
	bl	exit
.L18:
	ldr	r0, .L21+40
	bl	puts
	ldr	r3, .L21+44
	strh	r3, [fp, #-28]	@ movhi
	sub	r3, fp, #28
	mov	r2, #2
	ldr	r1, .L21+48
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L21+52
	bl	puts
	b	.L14
.L13:
	sub	r3, fp, #28
	mov	r2, #2
	ldr	r1, .L21+56
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	ldr	r0, .L21+60
	bl	puts
	b	.L14
.L15:
	mov	r0, #1
	bl	exit
.L14:
	mov	r3, #0
.L16:
	ldr	r2, .L21
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC12
	.word	stdin
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	258
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
