	.file	"372519.c"
	.intel_syntax noprefix
	.text
	.globl	my_tls
	.section	.tbss,"awT",@nobits
	.align 4
	.type	my_tls, @object
	.size	my_tls, 4
my_tls:
	.zero	4
	.globl	Functions
	.bss
	.align 32
	.type	Functions, @object
	.size	Functions, 8000
Functions:
	.zero	8000
	.section	.rodata
.LC0:
	.string	"  dtls[%03d]: %lx\n"
	.text
	.globl	PrintStuff
	.type	PrintStuff, @function
PrintStuff:
.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
	mov	DWORD PTR -12[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, Functions[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, Functions[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, 0
	call	rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 42
	add	DWORD PTR -12[rbp], 1
.L2:
	cmp	DWORD PTR -12[rbp], 999
	jle	.L5
	jmp	.L4
.L7:
	nop
.L4:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	PrintStuff, .-PrintStuff
	.section	.rodata
.LC1:
	.string	"the_stack_data/372519.c"
.LC2:
	.string	"num_libs <= MAX_N_FUNCTIONS"
.LC3:
	.string	"%s-f%d.so"
.LC4:
	.string	"%s\n"
.LC5:
	.string	"f%d"
.LC6:
	.string	"LIB[%03d] %s: %p\n"
.LC7:
	.string	"Creating thread %d\n"
	.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 64
	mov	DWORD PTR -4148[rbp], edi
	mov	QWORD PTR -4160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4144[rbp], 1
	mov	DWORD PTR -4140[rbp], 1
	cmp	DWORD PTR -4148[rbp], 1
	jle	.L9
	mov	rax, QWORD PTR -4160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4144[rbp], eax
.L9:
	cmp	DWORD PTR -4148[rbp], 2
	jle	.L10
	mov	rax, QWORD PTR -4160[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4140[rbp], eax
.L10:
	cmp	DWORD PTR -4140[rbp], 1000
	jle	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 78
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L11:
	mov	DWORD PTR -4136[rbp], 0
	jmp	.L12
.L17:
	mov	rax, QWORD PTR -4160[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	ecx, DWORD PTR -4136[rbp]
	lea	rax, -4112[rbp]
	mov	r8d, ecx
	mov	rcx, rdx
	lea	rdx, .LC3[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -4112[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	dlopen@PLT
	mov	QWORD PTR -4120[rbp], rax
	cmp	QWORD PTR -4120[rbp], 0
	jne	.L13
	call	dlerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	edx, DWORD PTR -4136[rbp]
	lea	rax, -4112[rbp]
	mov	ecx, edx
	lea	rdx, .LC5[rip]
	mov	esi, 4096
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rdx, -4112[rbp]
	mov	rax, QWORD PTR -4120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	dlsym@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR -4136[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, Functions[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -4136[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, Functions[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L14
	call	dlerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	eax, DWORD PTR -4136[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, Functions[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, -4112[rbp]
	mov	edx, DWORD PTR -4136[rbp]
	mov	r8, rsi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	PrintStuff
	mov	DWORD PTR -4132[rbp], 0
	jmp	.L15
.L16:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4132[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	lea	rax, -4128[rbp]
	mov	ecx, 0
	lea	rdx, PrintStuff[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -4128[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -4132[rbp], 1
.L15:
	mov	eax, DWORD PTR -4132[rbp]
	cmp	eax, DWORD PTR -4144[rbp]
	jl	.L16
	add	DWORD PTR -4136[rbp], 1
.L12:
	mov	eax, DWORD PTR -4136[rbp]
	cmp	eax, DWORD PTR -4140[rbp]
	jl	.L17
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"372519.c"
	.text
	.global	my_tls
	.section	.tbss,"awT",%nobits
	.align	2
	.type	my_tls, %object
	.size	my_tls, 4
my_tls:
	.space	4
	.comm	Functions,4000,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"  dtls[%03d]: %lx\012\000"
	.text
	.align	2
	.global	PrintStuff
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintStuff, %function
PrintStuff:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L5:
	ldr	r2, .L8
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L7
	ldr	r2, .L8
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	blx	r3
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, .L8+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r1, .L8+8
	bl	fprintf
	ldr	r3, [fp, #-8]
	mov	r2, #42
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #1000
	blt	.L5
	b	.L4
.L7:
	nop
.L4:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	Functions
	.word	stderr
	.word	.LC0
	.size	PrintStuff, .-PrintStuff
	.section	.rodata
	.align	2
.LC1:
	.ascii	"the_stack_data/372519.c\000"
	.align	2
.LC2:
	.ascii	"num_libs <= MAX_N_FUNCTIONS\000"
	.align	2
.LC3:
	.ascii	"%s-f%d.so\000"
	.align	2
.LC4:
	.ascii	"%s\012\000"
	.align	2
.LC5:
	.ascii	"f%d\000"
	.align	2
.LC6:
	.ascii	"LIB[%03d] %s: %p\012\000"
	.align	2
.LC7:
	.ascii	"Creating thread %d\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #52
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-40]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-24]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #1
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	cmp	r3, #1
	ble	.L11
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-24]
.L11:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	cmp	r3, #2
	ble	.L12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r0, r3
	bl	atoi
	str	r0, [r4, #-20]
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-20]
	cmp	r3, #1000
	ble	.L13
	ldr	r3, .L22+4
	mov	r2, #78
	ldr	r1, .L22+8
	ldr	r0, .L22+12
	bl	__assert_fail
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-16]
	b	.L14
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	ldr	r2, [r3]
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L22+16
	mov	r1, #4096
	bl	snprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, #1
	mov	r0, r3
	bl	dlopen
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L22+20
	ldr	r4, [r3]
	bl	dlerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L22+24
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [r3, #-16]
	ldr	r2, .L22+28
	mov	r1, #4096
	bl	snprintf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-8]
	bl	dlsym
	mov	r3, r0
	mov	r1, r3
	ldr	r2, .L22+32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	str	r1, [r2, r3, lsl #2]
	ldr	r2, .L22+32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L22+20
	ldr	r4, [r3]
	bl	dlerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L22+24
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L16:
	ldr	r3, .L22+20
	ldr	r0, [r3]
	ldr	r2, .L22+32
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	ldr	r2, [r2, r3, lsl #2]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	str	r2, [sp]
	ldr	r2, [r1, #-16]
	ldr	r1, .L22+36
	bl	fprintf
	mov	r0, #0
	bl	PrintStuff
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-12]
	b	.L17
.L18:
	ldr	r3, .L22+20
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-12]
	ldr	r1, .L22+40
	mov	r0, r3
	bl	fprintf
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #28
	mov	r3, #0
	ldr	r2, .L22+44
	mov	r1, #0
	bl	pthread_create
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	add	r3, r3, #1
	str	r3, [r2, #-12]
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-12]
	ldr	r3, [r3, #-24]
	cmp	r2, r3
	blt	.L18
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	add	r3, r3, #1
	str	r3, [r2, #-16]
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-20]
	cmp	r2, r3
	blt	.L19
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC8
	.word	__PRETTY_FUNCTION__.6112
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	Functions
	.word	.LC6
	.word	.LC7
	.word	PrintStuff
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6112, %object
	.size	__PRETTY_FUNCTION__.6112, 5
__PRETTY_FUNCTION__.6112:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
