	.file	"25137997.c"
	.intel_syntax noprefix
	.text
	.globl	GetTls
	.bss
	.align 8
	.type	GetTls, @object
	.size	GetTls, 8
GetTls:
	.zero	8
	.section	.rodata
.LC0:
	.string	"bar\n"
.LC1:
	.string	"stack: %p dtls: %p\n"
	.text
	.globl	Thread1
	.type	Thread1, @function
Thread1:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR GetTls[rip]
	mov	eax, 0
	call	rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -24[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	Thread1, .-Thread1
	.section	.rodata
.LC2:
	.string	"foo\n"
	.text
	.globl	Thread2
	.type	Thread2, @function
Thread2:
.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 fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR GetTls[rip]
	mov	eax, 0
	call	rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, -16[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 4
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
.L6:
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Thread2, .-Thread2
	.section	.rodata
.LC3:
	.string	"%s-so.so"
.LC4:
	.string	"%s\n"
.LC5:
	.string	"the_stack_data/25137997.c"
.LC6:
	.string	"handle != 0"
.LC7:
	.string	"GetTls"
.LC8:
	.string	"dlerror() == 0"
	.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
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 48
	mov	DWORD PTR -4132[rbp], edi
	mov	QWORD PTR -4144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -4144[rbp]
	mov	rdx, QWORD PTR [rax]
	lea	rax, -4112[rbp]
	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	.L10
	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
.L10:
	cmp	QWORD PTR -4120[rbp], 0
	jne	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 47
	lea	rsi, .LC5[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L11:
	mov	rax, QWORD PTR -4120[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	dlsym@PLT
	mov	QWORD PTR GetTls[rip], rax
	call	dlerror@PLT
	test	rax, rax
	je	.L12
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 49
	lea	rsi, .LC5[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L12:
	lea	rax, -4128[rbp]
	mov	ecx, 0
	lea	rdx, Thread1[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
	lea	rax, -4128[rbp]
	mov	ecx, 0
	lea	rdx, Thread2[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
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"25137997.c"
	.text
	.comm	GetTls,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"bar\012\000"
	.align	2
.LC1:
	.ascii	"stack: %p dtls: %p\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Thread1
	.syntax unified
	.arm
	.fpu softvfp
	.type	Thread1, %function
Thread1:
	@ 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	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L5+4
	ldr	r3, [r3]
	blx	r3
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L5+8
	ldr	r3, [r3]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L5+12
	bl	fwrite
.L2:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, .L5+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	sub	r2, fp, #16
	ldr	r1, .L5+16
	bl	fprintf
	mov	r3, #0
	ldr	r2, .L5
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L4
	bl	__stack_chk_fail
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC2
	.word	GetTls
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	Thread1, .-Thread1
	.section	.rodata
	.align	2
.LC3:
	.ascii	"foo\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	Thread2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Thread2, %function
Thread2:
	@ 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, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L11+4
	ldr	r3, [r3]
	blx	r3
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, .L11+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	sub	r2, fp, #12
	ldr	r1, .L11+12
	bl	fprintf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L11+8
	ldr	r3, [r3]
	mov	r2, #4
	mov	r1, #1
	ldr	r0, .L11+16
	bl	fwrite
.L8:
	mov	r3, #0
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	GetTls
	.word	stderr
	.word	.LC1
	.word	.LC3
	.size	Thread2, .-Thread2
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%s-so.so\000"
	.align	2
.LC6:
	.ascii	"%s\012\000"
	.align	2
.LC7:
	.ascii	"the_stack_data/25137997.c\000"
	.align	2
.LC8:
	.ascii	"handle != 0\000"
	.align	2
.LC9:
	.ascii	"GetTls\000"
	.align	2
.LC10:
	.ascii	"dlerror() == 0\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-24]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	ldr	r3, [r3]
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r2, .L19+4
	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	.L14
	ldr	r3, .L19+8
	ldr	r4, [r3]
	bl	dlerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L19+12
	mov	r0, r4
	bl	fprintf
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L15
	ldr	r3, .L19+16
	mov	r2, #47
	ldr	r1, .L19+20
	ldr	r0, .L19+24
	bl	__assert_fail
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L19+28
	ldr	r0, [r3, #-8]
	bl	dlsym
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L19+32
	str	r2, [r3]
	bl	dlerror
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L19+16
	mov	r2, #49
	ldr	r1, .L19+20
	ldr	r0, .L19+36
	bl	__assert_fail
.L16:
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #12
	mov	r3, #0
	ldr	r2, .L19+40
	mov	r1, #0
	bl	pthread_create
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #12
	mov	r3, #0
	ldr	r2, .L19+44
	mov	r1, #0
	bl	pthread_create
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC11
	.word	.LC5
	.word	stderr
	.word	.LC6
	.word	__PRETTY_FUNCTION__.5659
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	GetTls
	.word	.LC10
	.word	Thread1
	.word	Thread2
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5659, %object
	.size	__PRETTY_FUNCTION__.5659, 5
__PRETTY_FUNCTION__.5659:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
