	.file	"896483.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"  Entry point address:               0x"
.LC1:
	.string	"80"
.LC2:
	.string	"%x"
.LC3:
	.string	"00"
.LC4:
	.string	"%02x"
	.text
	.globl	print_addr
	.type	print_addr, @function
print_addr:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	add	eax, 48
	mov	BYTE PTR -9[rbp], al
	cmp	BYTE PTR -9[rbp], 49
	jne	.L2
	mov	DWORD PTR -4[rbp], 26
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L3
.L6:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jle	.L4
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jns	.L5
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	eax, 256
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	sub	DWORD PTR -8[rbp], 1
.L3:
	cmp	DWORD PTR -8[rbp], 21
	jg	.L6
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 7
	movzx	eax, BYTE PTR [rax]
	cmp	al, 6
	jne	.L2
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	cmp	BYTE PTR -9[rbp], 50
	jne	.L7
	mov	DWORD PTR -4[rbp], 26
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L8
.L11:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	js	.L9
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jns	.L10
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	add	eax, 256
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	sub	DWORD PTR -8[rbp], 1
.L8:
	cmp	DWORD PTR -8[rbp], 23
	jg	.L11
.L7:
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	print_addr, .-print_addr
	.section	.rodata
	.align 8
.LC5:
	.string	"  Type:                              "
.LC6:
	.string	"NONE (No file type)"
.LC7:
	.string	"REL (Relocatable file)"
.LC8:
	.string	"EXEC (Executable file)"
.LC9:
	.string	"DYN (Shared object file)"
.LC10:
	.string	"CORE (Core file)"
.LC11:
	.string	"<unknown: %x>\n"
	.text
	.globl	print_type
	.type	print_type, @function
print_type:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 16[rax]
	mov	BYTE PTR -1[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	cmp	al, 1
	jne	.L13
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 16[rax]
	mov	BYTE PTR -1[rbp], al
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 17[rax]
	mov	BYTE PTR -1[rbp], al
.L14:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	BYTE PTR -1[rbp], 0
	jne	.L15
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L21
.L15:
	cmp	BYTE PTR -1[rbp], 1
	jne	.L17
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L21
.L17:
	cmp	BYTE PTR -1[rbp], 2
	jne	.L18
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L21
.L18:
	cmp	BYTE PTR -1[rbp], 3
	jne	.L19
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L21
.L19:
	cmp	BYTE PTR -1[rbp], 4
	jne	.L20
	lea	rdi, .LC10[rip]
	call	puts@PLT
	jmp	.L21
.L20:
	movsx	eax, BYTE PTR -1[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	print_type, .-print_type
	.section	.rodata
	.align 8
.LC12:
	.string	"  OS/ABI:                            "
.LC13:
	.string	"UNIX - System V"
.LC14:
	.string	"UNIX - NetBSD"
.LC15:
	.string	"UNIX - Solaris"
	.align 8
.LC16:
	.string	"  ABI Version:                       %d\n"
	.text
	.globl	print_osabi
	.type	print_osabi, @function
print_osabi:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 7[rax]
	mov	BYTE PTR -1[rbp], al
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	BYTE PTR -1[rbp], 0
	jne	.L23
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L24
.L23:
	cmp	BYTE PTR -1[rbp], 2
	jne	.L25
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L24
.L25:
	cmp	BYTE PTR -1[rbp], 6
	jne	.L26
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L24
.L26:
	movsx	eax, BYTE PTR -1[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
.L24:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 8
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print_osabi, .-print_osabi
	.section	.rodata
	.align 8
.LC17:
	.string	"  Version:                           %d"
.LC18:
	.string	" (current)"
	.text
	.globl	print_version
	.type	print_version, @function
print_version:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 6
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -4[rbp], 1
	jne	.L28
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
.L28:
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	print_version, .-print_version
	.section	.rodata
	.align 8
.LC19:
	.string	"  Data:                              2's complement"
.LC20:
	.string	", little endian"
.LC21:
	.string	", big endian"
	.text
	.globl	print_data
	.type	print_data, @function
print_data:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 5[rax]
	mov	BYTE PTR -1[rbp], al
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	BYTE PTR -1[rbp], 1
	jne	.L30
	lea	rdi, .LC20[rip]
	call	puts@PLT
.L30:
	cmp	BYTE PTR -1[rbp], 2
	jne	.L32
	lea	rdi, .LC21[rip]
	call	puts@PLT
.L32:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	print_data, .-print_data
	.section	.rodata
.LC22:
	.string	"  Magic:  "
.LC23:
	.string	" %02x"
	.text
	.globl	print_magic
	.type	print_magic, @function
print_magic:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L34
.L35:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L34:
	cmp	DWORD PTR -4[rbp], 15
	jle	.L35
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	print_magic, .-print_magic
	.section	.rodata
.LC24:
	.string	"ELF Header:"
	.align 8
.LC25:
	.string	"  Class:                             ELF32"
	.align 8
.LC26:
	.string	"  Class:                             ELF64"
	.text
	.globl	check_sys
	.type	check_sys, @function
check_sys:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	add	eax, 48
	mov	BYTE PTR -1[rbp], al
	cmp	BYTE PTR -1[rbp], 48
	jne	.L37
	mov	edi, 98
	call	exit@PLT
.L37:
	lea	rdi, .LC24[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	print_magic
	cmp	BYTE PTR -1[rbp], 49
	jne	.L38
	lea	rdi, .LC25[rip]
	call	puts@PLT
.L38:
	cmp	BYTE PTR -1[rbp], 50
	jne	.L39
	lea	rdi, .LC26[rip]
	call	puts@PLT
.L39:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	print_data
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	print_version
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	print_osabi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	print_type
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	print_addr
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	check_sys, .-check_sys
	.globl	check_elf
	.type	check_elf, @function
check_elf:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR -7[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	mov	BYTE PTR -6[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 3[rax]
	mov	BYTE PTR -5[rbp], al
	cmp	DWORD PTR -4[rbp], 127
	jne	.L41
	cmp	BYTE PTR -7[rbp], 69
	jne	.L41
	cmp	BYTE PTR -6[rbp], 76
	jne	.L41
	cmp	BYTE PTR -5[rbp], 70
	jne	.L41
	mov	eax, 1
	jmp	.L42
.L41:
	mov	eax, 0
.L42:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	check_elf, .-check_elf
	.section	.rodata
	.align 8
.LC27:
	.string	"Usage: elf_header elf_filename\n"
.LC28:
	.string	"Err: file can not be open\n"
	.align 8
.LC29:
	.string	"Err: The file can not be read\n"
.LC30:
	.string	"Err: It is not an ELF\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -68[rbp], 2
	je	.L44
	lea	rsi, .LC27[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 98
	call	exit@PLT
.L44:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -56[rbp], eax
	cmp	DWORD PTR -56[rbp], 0
	jns	.L45
	lea	rsi, .LC28[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 98
	call	exit@PLT
.L45:
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	edx, 27
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], -1
	jne	.L46
	lea	rsi, .LC29[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 98
	call	exit@PLT
.L46:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	check_elf
	test	eax, eax
	jne	.L47
	lea	rsi, .LC30[rip]
	mov	edi, 2
	mov	eax, 0
	call	dprintf@PLT
	mov	edi, 98
	call	exit@PLT
.L47:
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	check_sys
	mov	eax, DWORD PTR -56[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"896483.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"  Entry point address:               0x\000"
	.align	2
.LC1:
	.ascii	"80\000"
	.align	2
.LC2:
	.ascii	"%x\000"
	.align	2
.LC3:
	.ascii	"00\000"
	.align	2
.LC4:
	.ascii	"%02x\000"
	.text
	.align	2
	.global	print_addr
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_addr, %function
print_addr:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r0, .L9
	bl	printf
	ldr	r3, [fp, #-24]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #48
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L2
	mov	r3, #26
	str	r3, [fp, #-8]
	ldr	r0, .L9+4
	bl	printf
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	b	.L3
.L5:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L9+8
	bl	printf
.L4:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #21
	bgt	.L5
	ldr	r3, [fp, #-24]
	add	r3, r3, #7
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #6
	bne	.L2
	ldr	r0, .L9+12
	bl	printf
.L2:
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #50
	bne	.L6
	mov	r3, #26
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	b	.L7
.L8:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L9+16
	bl	printf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r3, [fp, #-12]
	cmp	r3, #23
	bgt	.L8
.L6:
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	print_addr, .-print_addr
	.section	.rodata
	.align	2
.LC5:
	.ascii	"  Type:                              \000"
	.align	2
.LC6:
	.ascii	"NONE (No file type)\000"
	.align	2
.LC7:
	.ascii	"REL (Relocatable file)\000"
	.align	2
.LC8:
	.ascii	"EXEC (Executable file)\000"
	.align	2
.LC9:
	.ascii	"DYN (Shared object file)\000"
	.align	2
.LC10:
	.ascii	"CORE (Core file)\000"
	.align	2
.LC11:
	.ascii	"<unknown: %x>\012\000"
	.text
	.align	2
	.global	print_type
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_type, %function
print_type:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #16]
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	add	r3, r3, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L12
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #16]
	strb	r3, [fp, #-5]
	b	.L13
.L12:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #17]
	strb	r3, [fp, #-5]
.L13:
	ldr	r0, .L21
	bl	printf
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L21+4
	bl	puts
	b	.L20
.L14:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L16
	ldr	r0, .L21+8
	bl	puts
	b	.L20
.L16:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L17
	ldr	r0, .L21+12
	bl	puts
	b	.L20
.L17:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #3
	bne	.L18
	ldr	r0, .L21+16
	bl	puts
	b	.L20
.L18:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #4
	bne	.L19
	ldr	r0, .L21+20
	bl	puts
	b	.L20
.L19:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L21+24
	bl	printf
.L20:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	print_type, .-print_type
	.section	.rodata
	.align	2
.LC12:
	.ascii	"  OS/ABI:                            \000"
	.align	2
.LC13:
	.ascii	"UNIX - System V\000"
	.align	2
.LC14:
	.ascii	"UNIX - NetBSD\000"
	.align	2
.LC15:
	.ascii	"UNIX - Solaris\000"
	.align	2
.LC16:
	.ascii	"  ABI Version:                       %d\012\000"
	.text
	.align	2
	.global	print_osabi
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_osabi, %function
print_osabi:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #7]
	strb	r3, [fp, #-5]
	ldr	r0, .L28
	bl	printf
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L24
	ldr	r0, .L28+4
	bl	puts
	b	.L25
.L24:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L26
	ldr	r0, .L28+8
	bl	puts
	b	.L25
.L26:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #6
	bne	.L27
	ldr	r0, .L28+12
	bl	puts
	b	.L25
.L27:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L28+16
	bl	printf
.L25:
	ldr	r3, [fp, #-16]
	add	r3, r3, #8
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L28+20
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC11
	.word	.LC16
	.size	print_osabi, .-print_osabi
	.section	.rodata
	.align	2
.LC17:
	.ascii	"  Version:                           %d\000"
	.align	2
.LC18:
	.ascii	" (current)\000"
	.text
	.align	2
	.global	print_version
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_version, %function
print_version:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L32
	bl	printf
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L31
	ldr	r0, .L32+4
	bl	printf
.L31:
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC17
	.word	.LC18
	.size	print_version, .-print_version
	.section	.rodata
	.align	2
.LC19:
	.ascii	"  Data:                              2's complement"
	.ascii	"\000"
	.align	2
.LC20:
	.ascii	", little endian\000"
	.align	2
.LC21:
	.ascii	", big endian\000"
	.text
	.align	2
	.global	print_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_data, %function
print_data:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #5]
	strb	r3, [fp, #-5]
	ldr	r0, .L38
	bl	printf
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L35
	ldr	r0, .L38+4
	bl	puts
.L35:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L37
	ldr	r0, .L38+8
	bl	puts
.L37:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	print_data, .-print_data
	.section	.rodata
	.align	2
.LC22:
	.ascii	"  Magic:  \000"
	.align	2
.LC23:
	.ascii	" %02x\000"
	.text
	.align	2
	.global	print_magic
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_magic, %function
print_magic:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, .L43
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L41
.L42:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L43+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L41:
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	ble	.L42
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC22
	.word	.LC23
	.size	print_magic, .-print_magic
	.section	.rodata
	.align	2
.LC24:
	.ascii	"ELF Header:\000"
	.align	2
.LC25:
	.ascii	"  Class:                             ELF32\000"
	.align	2
.LC26:
	.ascii	"  Class:                             ELF64\000"
	.text
	.align	2
	.global	check_sys
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_sys, %function
check_sys:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #48
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L46
	mov	r0, #98
	bl	exit
.L46:
	ldr	r0, .L49
	bl	puts
	ldr	r0, [fp, #-16]
	bl	print_magic
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L47
	ldr	r0, .L49+4
	bl	puts
.L47:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #50
	bne	.L48
	ldr	r0, .L49+8
	bl	puts
.L48:
	ldr	r0, [fp, #-16]
	bl	print_data
	ldr	r0, [fp, #-16]
	bl	print_version
	ldr	r0, [fp, #-16]
	bl	print_osabi
	ldr	r0, [fp, #-16]
	bl	print_type
	ldr	r0, [fp, #-16]
	bl	print_addr
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L50:
	.align	2
.L49:
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.size	check_sys, .-check_sys
	.align	2
	.global	check_elf
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_elf, %function
check_elf:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #1]
	strb	r3, [fp, #-11]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #2]
	strb	r3, [fp, #-10]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #3]
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-8]
	cmp	r3, #127
	bne	.L52
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	cmp	r3, #69
	bne	.L52
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	cmp	r3, #76
	bne	.L52
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r3, #70
	bne	.L52
	mov	r3, #1
	b	.L53
.L52:
	mov	r3, #0
.L53:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	check_elf, .-check_elf
	.section	.rodata
	.align	2
.LC27:
	.ascii	"Usage: elf_header elf_filename\012\000"
	.align	2
.LC28:
	.ascii	"Err: file can not be open\012\000"
	.align	2
.LC29:
	.ascii	"Err: The file can not be read\012\000"
	.align	2
.LC30:
	.ascii	"Err: It is not an ELF\012\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	beq	.L55
	ldr	r1, .L61+4
	mov	r0, #2
	bl	dprintf
	mov	r0, #98
	bl	exit
.L55:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	bge	.L56
	ldr	r1, .L61+8
	mov	r0, #2
	bl	dprintf
	mov	r0, #98
	bl	exit
.L56:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-44]
	bl	lseek
	sub	r3, fp, #36
	mov	r2, #27
	mov	r1, r3
	ldr	r0, [fp, #-44]
	bl	read
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L57
	ldr	r1, .L61+12
	mov	r0, #2
	bl	dprintf
	mov	r0, #98
	bl	exit
.L57:
	sub	r3, fp, #36
	mov	r0, r3
	bl	check_elf
	mov	r3, r0
	cmp	r3, #0
	bne	.L58
	ldr	r1, .L61+16
	mov	r0, #2
	bl	dprintf
	mov	r0, #98
	bl	exit
.L58:
	sub	r3, fp, #36
	mov	r0, r3
	bl	check_sys
	ldr	r0, [fp, #-44]
	bl	close
	mov	r3, #0
	ldr	r2, .L61
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC31
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
