	.file	"255123.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.ascii	"#include <stdio.h>%1$c#include <stdlib.h>%1$c%1$c/*%1$c%2$cS"
	.ascii	"ully is a program that is written and executed 5 times by na"
	.ascii	"me Sully_X.%1$c*/%1$cint%2$c%2$cmain()%1$c{%1$c%2$cint%2$c%2"
	.ascii	"$ci = %3$d;%1$c%2$cchar%2$c*itself = %4$c%5$s%4$c;%1$c%2$cch"
	.ascii	"ar%2$c*name, *compile, *cmd;%1$c%2$cFILE%2$c*kid;%1$c%2$cif "
	.ascii	"(i <= 0)%1$c%2$c%2$creturn (0);%1$c%2$ci += (fopen(%4$cSully"
	.ascii	"_5.c%4$c, %4$cr%4$c) == NULL) ? 0 : -1;%1$c%2$casprintf(&nam"
	.ascii	"e,%4$cSully_%%d.c%4$c,i);%1$c%2$casprintf(&compile,%4$cclang"
	.ascii	" -Wall -Wextra -Werror Sully_%%d.c -o Sully_%%d;%4$c,i,i);%1"
	.ascii	"$c%2$casprintf(&cmd,%4$c./Sully_%%d;%4$c,i"
	.string	");%1$c%2$ckid = fopen(name,%4$cw%4$c);%1$c%2$cfprintf(kid,itself,10,9,i,34,itself);%1$c%2$cfclose(kid);%1$c%2$csystem(compile);%1$c%2$csystem(cmd);%1$c%2$cfree(compile), free(name), free(cmd);%1$c%2$ccompile = cmd = name = NULL;%1$c%2$creturn (0);%1$c}%1$c"
.LC1:
	.string	"r"
.LC2:
	.string	"Sully_5.c"
.LC3:
	.string	"Sully_%d.c"
	.align 8
.LC4:
	.string	"clang -Wall -Wextra -Werror Sully_%d.c -o Sully_%d;"
.LC5:
	.string	"./Sully_%d;"
.LC6:
	.string	"w"
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -52[rbp], 5
	lea	rax, .LC0[rip]
	mov	QWORD PTR -24[rbp], rax
	cmp	DWORD PTR -52[rbp], 0
	jg	.L2
	mov	eax, 0
	jmp	.L6
.L2:
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	test	rax, rax
	jne	.L4
	mov	eax, 0
	jmp	.L5
.L4:
	mov	eax, -1
.L5:
	add	DWORD PTR -52[rbp], eax
	mov	edx, DWORD PTR -52[rbp]
	lea	rax, -48[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	mov	ecx, DWORD PTR -52[rbp]
	mov	edx, DWORD PTR -52[rbp]
	lea	rax, -40[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	mov	edx, DWORD PTR -52[rbp]
	lea	rax, -32[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	asprintf@PLT
	mov	rax, QWORD PTR -48[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	edx, DWORD PTR -52[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	sub	rsp, 8
	push	QWORD PTR -24[rbp]
	mov	r9d, 34
	mov	r8d, edx
	mov	ecx, 9
	mov	edx, 10
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -48[rbp], 0
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, 0
.L6:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	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	"255123.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"#include <stdio.h>%1$c#include <stdlib.h>%1$c%1$c/*"
	.ascii	"%1$c%2$cSully is a program that is written and exec"
	.ascii	"uted 5 times by name Sully_X.%1$c*/%1$cint%2$c%2$cm"
	.ascii	"ain()%1$c{%1$c%2$cint%2$c%2$ci = %3$d;%1$c%2$cchar%"
	.ascii	"2$c*itself = %4$c%5$s%4$c;%1$c%2$cchar%2$c*name, *c"
	.ascii	"ompile, *cmd;%1$c%2$cFILE%2$c*kid;%1$c%2$cif (i <= "
	.ascii	"0)%1$c%2$c%2$creturn (0);%1$c%2$ci += (fopen(%4$cSu"
	.ascii	"lly_5.c%4$c, %4$cr%4$c) == NULL) ? 0 : -1;%1$c%2$ca"
	.ascii	"sprintf(&name,%4$cSully_%%d.c%4$c,i);%1$c%2$casprin"
	.ascii	"tf(&compile,%4$cclang -Wall -Wextra -Werror Sully_%"
	.ascii	"%d.c -o Sully_%%d;%4$c,i,i);%1$c%2$casprintf(&cmd,%"
	.ascii	"4$c./Sully_%%d;%4$c,i);%1$c%2$ckid = fopen(name,%4$"
	.ascii	"cw%4$c);%1$c%2$cfprintf(kid,itself,10,9,i,34,itself"
	.ascii	");%1$c%2$cfclose(kid);%1$c%2$csystem(compile);%1$c%"
	.ascii	"2$csystem(cmd);%1$c%2$cfree(compile), free(name), f"
	.ascii	"ree(cmd);%1$c%2$ccompile = cmd = name = NULL;%1$c%2"
	.ascii	"$creturn (0);%1$c}%1$c\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Sully_5.c\000"
	.align	2
.LC3:
	.ascii	"Sully_%d.c\000"
	.align	2
.LC4:
	.ascii	"clang -Wall -Wextra -Werror Sully_%d.c -o Sully_%d;"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"./Sully_%d;\000"
	.align	2
.LC6:
	.ascii	"w\000"
	.align	2
.LC7:
	.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, #48
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #5
	str	r3, [fp, #-20]
	ldr	r3, .L8+4
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L2
	mov	r3, #0
	b	.L6
.L2:
	ldr	r1, .L8+8
	ldr	r0, .L8+12
	bl	fopen
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	mov	r3, #0
	b	.L5
.L4:
	mvn	r3, #0
.L5:
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	sub	r3, fp, #32
	ldr	r2, [fp, #-20]
	ldr	r1, .L8+16
	mov	r0, r3
	bl	asprintf
	sub	r0, fp, #28
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r1, .L8+20
	bl	asprintf
	sub	r3, fp, #24
	ldr	r2, [fp, #-20]
	ldr	r1, .L8+24
	mov	r0, r3
	bl	asprintf
	ldr	r3, [fp, #-32]
	ldr	r1, .L8+28
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	str	r3, [sp, #8]
	mov	r3, #34
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	mov	r3, #9
	mov	r2, #10
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	fprintf
	ldr	r0, [fp, #-12]
	bl	fclose
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	system
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	system
	ldr	r3, [fp, #-28]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-32]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	free
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, #0
.L6:
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
