	.file	"70449762.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Magic:\t"
.LC1:
	.string	"%02x "
.LC2:
	.string	"ELF64"
.LC3:
	.string	"Class: %s\n"
.LC4:
	.string	"AMD x86-64 architecture"
.LC5:
	.string	"Machine: %s\n"
.LC6:
	.string	"Entry point address: %lu\n"
	.align 8
.LC7:
	.string	"Start of section headers: %lu\n"
.LC8:
	.string	"Size of section header: %u\n"
	.align 8
.LC9:
	.string	"Number of section headers: %d\n"
	.align 8
.LC10:
	.string	"Section header string table index: %u\n"
	.text
	.globl	dump_elf_header
	.type	dump_elf_header, @function
dump_elf_header:
.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	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	movzx	eax, BYTE PTR [rdx+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 15
	jle	.L3
	mov	edi, 10
	call	putchar@PLT
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 4[rax]
	cmp	al, 2
	jne	.L4
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L4:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 18[rax]
	cmp	ax, 62
	jne	.L5
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 58[rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 60[rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 62[rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	dump_elf_header, .-dump_elf_header
	.section	.rodata
.LC11:
	.string	"/bin/ls"
.LC12:
	.string	"rb"
	.text
	.globl	main
	.type	main, @function
main:
.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, 224
	mov	DWORD PTR -212[rbp], edi
	mov	QWORD PTR -224[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -212[rbp], 1
	jg	.L7
	lea	rax, .LC11[rip]
	mov	QWORD PTR -200[rbp], rax
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -200[rbp], rax
.L8:
	mov	rax, QWORD PTR -200[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR -192[rbp]
	mov	rdi, rax
	call	fileno@PLT
	mov	DWORD PTR -204[rbp], eax
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -204[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	mov	rax, QWORD PTR -112[rbp]
	mov	QWORD PTR -184[rbp], rax
	mov	edx, DWORD PTR -204[rbp]
	mov	rax, QWORD PTR -184[rbp]
	mov	r9d, 0
	mov	r8d, edx
	mov	ecx, 2
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -176[rbp], rax
	mov	rax, QWORD PTR -176[rbp]
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	rdi, rax
	call	dump_elf_header
	mov	rdx, QWORD PTR -184[rbp]
	mov	rax, QWORD PTR -176[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"70449762.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Magic:\011\000"
	.align	2
.LC1:
	.ascii	"%02x \000"
	.align	2
.LC2:
	.ascii	"ELF64\000"
	.align	2
.LC3:
	.ascii	"Class: %s\012\000"
	.align	2
.LC4:
	.ascii	"AMD x86-64 architecture\000"
	.align	2
.LC5:
	.ascii	"Machine: %s\012\000"
	.align	2
.LC6:
	.ascii	"Entry point address: %lu\012\000"
	.align	2
.LC7:
	.ascii	"Start of section headers: %lu\012\000"
	.align	2
.LC8:
	.ascii	"Size of section header: %u\012\000"
	.align	2
.LC9:
	.ascii	"Number of section headers: %d\012\000"
	.align	2
.LC10:
	.ascii	"Section header string table index: %u\012\000"
	.text
	.align	2
	.global	dump_elf_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_elf_header, %function
dump_elf_header:
	@ 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, .L6
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L6+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	ble	.L3
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L4
	ldr	r1, .L6+8
	ldr	r0, .L6+12
	bl	printf
.L4:
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #18]
	cmp	r3, #62
	bne	.L5
	ldr	r1, .L6+16
	ldr	r0, .L6+20
	bl	printf
.L5:
	ldr	r3, [fp, #-16]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	ldr	r0, .L6+24
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	ldr	r0, .L6+28
	bl	printf
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #58]
	mov	r1, r3
	ldr	r0, .L6+32
	bl	printf
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #60]
	mov	r1, r3
	ldr	r0, .L6+36
	bl	printf
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #62]
	mov	r1, r3
	ldr	r0, .L6+40
	bl	printf
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	dump_elf_header, .-dump_elf_header
	.section	.rodata
	.align	2
.LC11:
	.ascii	"/bin/ls\000"
	.align	2
.LC12:
	.ascii	"rb\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-128]
	cmp	r3, #1
	bgt	.L9
	ldr	r3, .L13+4
	str	r3, [fp, #-124]
	b	.L10
.L9:
	ldr	r3, [fp, #-132]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-124]
.L10:
	ldr	r1, .L13+8
	ldr	r0, [fp, #-124]
	bl	fopen
	str	r0, [fp, #-120]
	ldr	r0, [fp, #-120]
	bl	fileno
	str	r0, [fp, #-116]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	fstat
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-112]
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-116]
	str	r3, [sp]
	mov	r3, #2
	mov	r2, #1
	ldr	r1, [fp, #-112]
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	str	r3, [fp, #-104]
	ldr	r0, [fp, #-104]
	bl	dump_elf_header
	ldr	r1, [fp, #-112]
	ldr	r0, [fp, #-108]
	bl	munmap
	mov	r3, #0
	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	.LC13
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
