	.file	"286751.c"
	.intel_syntax noprefix
	.text
	.local	g_pid
	.comm	g_pid,4,4
	.local	s_buff
	.comm	s_buff,1024,32
	.globl	fn
	.type	fn, @function
fn:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	edi, 100
	call	malloc@PLT
	mov	edi, 300
	call	sleep@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fn, .-fn
	.section	.rodata
	.align 8
.LC0:
	.string	"Before malloc in thread, threadFunc = %p\n"
	.align 8
.LC1:
	.string	"After malloc and before free in thread, addr = %p, buff(\345\260\217\344\272\216128K) = %p [mmap heap(thread arena)]\n"
	.align 8
.LC2:
	.string	"Malloc addr1 addr2 addr3 (127K) in thread"
.LC3:
	.string	"Free addr1 addr2 addr3"
.LC4:
	.string	"After free in thread."
	.text
	.globl	threadFunc
	.type	threadFunc, @function
threadFunc:
.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, 1088
	mov	QWORD PTR -1080[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, threadFunc[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, s_buff[rip]
	call	system@PLT
	call	getchar@PLT
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	mov	edi, 130048
	call	malloc@PLT
	mov	QWORD PTR -1072[rbp], rax
	lea	rdi, s_buff[rip]
	call	system@PLT
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1072[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	rax, QWORD PTR -1072[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	edi, 130048
	call	malloc@PLT
	mov	QWORD PTR -1064[rbp], rax
	mov	edi, 130048
	call	malloc@PLT
	mov	QWORD PTR -1056[rbp], rax
	mov	edi, 130048
	call	malloc@PLT
	mov	QWORD PTR -1048[rbp], rax
	lea	rdi, s_buff[rip]
	call	system@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1056[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, s_buff[rip]
	call	system@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	call	getchar@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, s_buff[rip]
	call	system@PLT
	call	getchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	threadFunc, .-threadFunc
	.section	.rodata
.LC5:
	.string	"cat /proc/%d/maps"
	.align 8
.LC6:
	.string	"\npid = [%d]\n\t main = %p [ro code], addr(\345\260\217\344\272\216128K) = %p [sbrk heap(main arena)],addrx(\345\244\247\344\272\216128K) = %p [mmap heap], \n\tbuff = %p [stack], s_buff = %p [static], i = %p [stack] g_pid = %p\n"
	.align 8
.LC7:
	.string	"addr1 = %p [heap] addr2 = %p [heap] **** \344\274\232\345\217\221\347\216\260heap\345\234\260\345\235\200\345\214\272\345\237\237\345\217\230\345\244\247 ***** \n"
	.align 8
.LC8:
	.string	"Free addr1 addr2 (\345\217\210\346\201\242\345\244\215\344\272\206\351\273\230\350\256\244\347\232\204main arena \345\244\247\345\260\217)"
	.align 8
.LC9:
	.string	"After free addr in main thread, *** heap \345\206\205\345\255\230\346\262\241\346\234\211\351\207\212\346\224\276\347\273\231\346\223\215\344\275\234\347\263\273\347\273\237, *** "
.LC10:
	.string	"Thread creation error"
.LC11:
	.string	"Thread join error"
.LC12:
	.string	"Create %d phreads\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 1128
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	DWORD PTR -1164[rbp], 0
	mov	QWORD PTR -1088[rbp], 0
	mov	QWORD PTR -1080[rbp], 0
	lea	rdx, -1072[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	call	getpid@PLT
	mov	DWORD PTR g_pid[rip], eax
	mov	edi, 130048
	call	malloc@PLT
	mov	QWORD PTR -1136[rbp], rax
	mov	edi, 132096
	call	malloc@PLT
	mov	QWORD PTR -1128[rbp], rax
	mov	eax, DWORD PTR g_pid[rip]
	mov	edx, eax
	lea	rsi, .LC5[rip]
	lea	rdi, s_buff[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, s_buff[rip]
	call	system@PLT
	call	getpid@PLT
	mov	esi, eax
	lea	rdi, -1088[rbp]
	mov	rcx, QWORD PTR -1128[rbp]
	mov	rax, QWORD PTR -1136[rbp]
	sub	rsp, 8
	lea	rdx, g_pid[rip]
	push	rdx
	lea	rdx, -1164[rbp]
	push	rdx
	lea	rdx, s_buff[rip]
	push	rdx
	mov	r9, rdi
	mov	r8, rcx
	mov	rcx, rax
	lea	rdx, main[rip]
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 32
	call	getchar@PLT
	mov	edi, 130048
	call	malloc@PLT
	mov	QWORD PTR -1120[rbp], rax
	mov	edi, 130048
	call	malloc@PLT
	mov	QWORD PTR -1112[rbp], rax
	lea	rdi, s_buff[rip]
	call	system@PLT
	mov	rdx, QWORD PTR -1112[rbp]
	mov	rax, QWORD PTR -1120[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	mov	rax, QWORD PTR -1120[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -1112[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, s_buff[rip]
	call	system@PLT
	call	getchar@PLT
	mov	rax, QWORD PTR -1136[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, s_buff[rip]
	call	system@PLT
	call	getchar@PLT
	lea	rax, -1152[rbp]
	mov	ecx, 0
	lea	rdx, threadFunc[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -1160[rbp], eax
	cmp	DWORD PTR -1160[rbp], 0
	je	.L7
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L8
.L7:
	mov	rax, QWORD PTR -1152[rbp]
	lea	rdx, -1144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -1160[rbp], eax
	cmp	DWORD PTR -1160[rbp], 0
	je	.L9
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, -1
	jmp	.L8
.L9:
	mov	DWORD PTR -1156[rbp], 16
	mov	eax, DWORD PTR -1156[rbp]
	cdqe
	sub	rax, 1
	mov	QWORD PTR -1104[rbp], rax
	mov	eax, DWORD PTR -1156[rbp]
	cdqe
	mov	r14, rax
	mov	r15d, 0
	mov	eax, DWORD PTR -1156[rbp]
	cdqe
	mov	r12, rax
	mov	r13d, 0
	mov	eax, DWORD PTR -1156[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L10:
	cmp	rsp, rdx
	je	.L11
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L10
.L11:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L12
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L12:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -1096[rbp], rax
	mov	DWORD PTR -1164[rbp], 0
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -1164[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1096[rbp]
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, fn[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	eax, DWORD PTR -1164[rbp]
	add	eax, 1
	mov	DWORD PTR -1164[rbp], eax
.L13:
	mov	eax, DWORD PTR -1164[rbp]
	cmp	DWORD PTR -1156[rbp], eax
	jg	.L14
	mov	edi, 3
	call	sleep@PLT
	mov	eax, DWORD PTR -1156[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, s_buff[rip]
	call	system@PLT
	mov	DWORD PTR -1164[rbp], 0
	jmp	.L15
.L16:
	mov	edx, DWORD PTR -1164[rbp]
	mov	rax, QWORD PTR -1096[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, DWORD PTR -1164[rbp]
	add	eax, 1
	mov	DWORD PTR -1164[rbp], eax
.L15:
	mov	eax, DWORD PTR -1164[rbp]
	cmp	DWORD PTR -1156[rbp], eax
	jg	.L16
	mov	eax, 0
.L8:
	mov	rsp, rbx
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"286751.c"
	.text
	.local	g_pid
	.comm	g_pid,4,4
	.local	s_buff
	.comm	s_buff,1024,4
	.align	2
	.global	fn
	.syntax unified
	.arm
	.fpu softvfp
	.type	fn, %function
fn:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r0, #100
	bl	malloc
	mov	r0, #300
	bl	sleep
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	fn, .-fn
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Before malloc in thread, threadFunc = %p\012\000"
	.align	2
.LC1:
	.ascii	"After malloc and before free in thread, addr = %p, "
	.ascii	"buff(\345\260\217\344\272\216128K) = %p [mmap heap("
	.ascii	"thread arena)]\012\000"
	.align	2
.LC2:
	.ascii	"Malloc addr1 addr2 addr3 (127K) in thread\000"
	.align	2
.LC3:
	.ascii	"Free addr1 addr2 addr3\000"
	.align	2
.LC4:
	.ascii	"After free in thread.\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	threadFunc
	.syntax unified
	.arm
	.fpu softvfp
	.type	threadFunc, %function
threadFunc:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	str	r0, [fp, #-1056]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L6+4
	ldr	r0, .L6+8
	bl	printf
	ldr	r0, .L6+12
	bl	system
	bl	getchar
	mov	r3, #0
	str	r3, [fp, #-1032]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r0, #130048
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1048]
	ldr	r0, .L6+12
	bl	system
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-1048]
	ldr	r0, .L6+16
	bl	printf
	bl	getchar
	ldr	r0, [fp, #-1048]
	bl	free
	mov	r0, #130048
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1044]
	mov	r0, #130048
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1040]
	mov	r0, #130048
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1036]
	ldr	r0, .L6+12
	bl	system
	ldr	r0, .L6+20
	bl	printf
	bl	getchar
	ldr	r0, [fp, #-1044]
	bl	free
	ldr	r0, [fp, #-1040]
	bl	free
	ldr	r0, [fp, #-1036]
	bl	free
	ldr	r0, .L6+12
	bl	system
	ldr	r0, .L6+24
	bl	puts
	bl	getchar
	ldr	r0, .L6+28
	bl	puts
	ldr	r0, .L6+12
	bl	system
	bl	getchar
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC5
	.word	threadFunc
	.word	.LC0
	.word	s_buff
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	threadFunc, .-threadFunc
	.section	.rodata
	.align	2
.LC6:
	.ascii	"cat /proc/%d/maps\000"
	.align	2
.LC7:
	.ascii	"\012pid = [%d]\012\011 main = %p [ro code], addr(\345"
	.ascii	"\260\217\344\272\216128K) = %p [sbrk heap(main aren"
	.ascii	"a)],addrx(\345\244\247\344\272\216128K) = %p [mmap "
	.ascii	"heap], \012\011buff = %p [stack], s_buff = %p [stat"
	.ascii	"ic], i = %p [stack] g_pid = %p\012\000"
	.align	2
.LC8:
	.ascii	"addr1 = %p [heap] addr2 = %p [heap] **** \344\274\232"
	.ascii	"\345\217\221\347\216\260heap\345\234\260\345\235\200"
	.ascii	"\345\214\272\345\237\237\345\217\230\345\244\247 **"
	.ascii	"*** \012\000"
	.align	2
.LC9:
	.ascii	"Free addr1 addr2 (\345\217\210\346\201\242\345\244\215"
	.ascii	"\344\272\206\351\273\230\350\256\244\347\232\204mai"
	.ascii	"n arena \345\244\247\345\260\217)\000"
	.align	2
.LC10:
	.ascii	"After free addr in main thread, *** heap \345\206\205"
	.ascii	"\345\255\230\346\262\241\346\234\211\351\207\212\346"
	.ascii	"\224\276\347\273\231\346\223\215\344\275\234\347\263"
	.ascii	"\273\347\273\237, *** \000"
	.align	2
.LC11:
	.ascii	"Thread creation error\000"
	.align	2
.LC12:
	.ascii	"Thread join error\000"
	.align	2
.LC13:
	.ascii	"Create %d phreads\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1072
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1088
	sub	sp, sp, #12
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r4, r3
	mov	r3, #0
	str	r3, [fp, #-1076]
	mov	r3, #0
	str	r3, [fp, #-1040]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	bl	getpid
	mov	r3, r0
	ldr	r2, .L18+4
	str	r3, [r2]
	mov	r0, #130048
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1072]
	mov	r0, #132096
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1068]
	ldr	r3, .L18+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L18+8
	ldr	r0, .L18+12
	bl	sprintf
	ldr	r0, .L18+12
	bl	system
	bl	getpid
	mov	r1, r0
	ldr	r3, .L18+4
	str	r3, [sp, #16]
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp, #12]
	ldr	r3, .L18+12
	str	r3, [sp, #8]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp, #4]
	ldr	r3, [fp, #-1068]
	str	r3, [sp]
	ldr	r3, [fp, #-1072]
	ldr	r2, .L18+16
	ldr	r0, .L18+20
	bl	printf
	bl	getchar
	mov	r0, #130048
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1064]
	mov	r0, #130048
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1060]
	ldr	r0, .L18+12
	bl	system
	ldr	r2, [fp, #-1060]
	ldr	r1, [fp, #-1064]
	ldr	r0, .L18+24
	bl	printf
	bl	getchar
	ldr	r0, [fp, #-1064]
	bl	free
	ldr	r0, [fp, #-1060]
	bl	free
	ldr	r0, .L18+28
	bl	puts
	ldr	r0, .L18+12
	bl	system
	bl	getchar
	ldr	r0, [fp, #-1072]
	bl	free
	ldr	r0, .L18+32
	bl	puts
	ldr	r0, .L18+12
	bl	system
	bl	getchar
	sub	r0, fp, #1072
	sub	r0, r0, #12
	mov	r3, #0
	ldr	r2, .L18+36
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	cmp	r3, #0
	beq	.L9
	ldr	r0, .L18+40
	bl	puts
	mvn	r3, #0
	b	.L10
.L9:
	ldr	r2, [fp, #-1084]
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, r3
	mov	r0, r2
	bl	pthread_join
	str	r0, [fp, #-1056]
	ldr	r3, [fp, #-1056]
	cmp	r3, #0
	beq	.L11
	ldr	r0, .L18+44
	bl	puts
	mvn	r3, #0
	b	.L10
.L11:
	mov	r3, #16
	str	r3, [fp, #-1052]
	ldr	r3, [fp, #-1052]
	sub	r3, r3, #1
	str	r3, [fp, #-1048]
	ldr	r3, [fp, #-1052]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-1052]
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #5
	orr	r3, r3, r0, lsr #27
	lsl	r2, r0, #5
	ldr	r3, [fp, #-1052]
	lsl	r3, r3, #2
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #24
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-1044]
	mov	r3, #0
	str	r3, [fp, #-1076]
	b	.L12
.L13:
	ldr	r3, [fp, #-1076]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1044]
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L18+48
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-1076]
	add	r3, r3, #1
	str	r3, [fp, #-1076]
.L12:
	ldr	r3, [fp, #-1076]
	ldr	r2, [fp, #-1052]
	cmp	r2, r3
	bgt	.L13
	mov	r0, #3
	bl	sleep
	ldr	r1, [fp, #-1052]
	ldr	r0, .L18+52
	bl	printf
	ldr	r0, .L18+12
	bl	system
	mov	r3, #0
	str	r3, [fp, #-1076]
	b	.L14
.L15:
	ldr	r2, [fp, #-1076]
	ldr	r3, [fp, #-1044]
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-1076]
	add	r3, r3, #1
	str	r3, [fp, #-1076]
.L14:
	ldr	r3, [fp, #-1076]
	ldr	r2, [fp, #-1052]
	cmp	r2, r3
	bgt	.L15
	mov	r3, #0
.L10:
	mov	sp, r4
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC14
	.word	g_pid
	.word	.LC6
	.word	s_buff
	.word	main
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	threadFunc
	.word	.LC11
	.word	.LC12
	.word	fn
	.word	.LC13
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
