	.file	"42973.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"the_stack_data/42973.c"
.LC1:
	.string	"val != 42"
	.text
	.globl	destructor
	.type	destructor, @function
destructor:
.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	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 42
	jne	.L3
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 16
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	destructor, .-destructor
	.section	.rodata
.LC2:
	.string	"r == 0"
	.text
	.globl	worker
	.type	worker, @function
worker:
.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 -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, 42
	mov	edi, eax
	call	pthread_setspecific@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 24
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L5:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	worker, .-worker
	.section	.rodata
.LC3:
	.string	"r == 0 || r == EAGAIN"
	.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -24[rbp]
	lea	rsi, destructor[rip]
	mov	rdi, rax
	call	pthread_key_create@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 12
	jne	.L8
	mov	edi, 1
	call	exit@PLT
.L8:
	cmp	DWORD PTR -20[rbp], 0
	je	.L9
	cmp	DWORD PTR -20[rbp], 11
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 36
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L9:
	lea	rdx, -24[rbp]
	lea	rax, -16[rbp]
	mov	rcx, rdx
	lea	rdx, worker[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, 16
	mov	edi, eax
	call	pthread_setspecific@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 12
	jne	.L10
	mov	edi, 1
	call	exit@PLT
.L10:
	cmp	DWORD PTR -20[rbp], 0
	je	.L11
	cmp	DWORD PTR -20[rbp], 11
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 46
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L11:
	mov	rax, QWORD PTR -16[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	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 11
__PRETTY_FUNCTION__.2:
	.string	"destructor"
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 7
__PRETTY_FUNCTION__.1:
	.string	"worker"
	.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	"42973.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/42973.c\000"
	.align	2
.LC1:
	.ascii	"val != 42\000"
	.text
	.align	2
	.global	destructor
	.syntax unified
	.arm
	.fpu softvfp
	.type	destructor, %function
destructor:
	@ 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, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #42
	bne	.L3
	ldr	r3, .L4
	mov	r2, #16
	ldr	r1, .L4+4
	ldr	r0, .L4+8
	bl	__assert_fail
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	__PRETTY_FUNCTION__.5301
	.word	.LC0
	.word	.LC1
	.size	destructor, .-destructor
	.section	.rodata
	.align	2
.LC2:
	.ascii	"r == 0\000"
	.text
	.align	2
	.global	worker
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker, %function
worker:
	@ 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, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, #42
	mov	r0, r3
	bl	pthread_setspecific
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L9
	mov	r2, #24
	ldr	r1, .L9+4
	ldr	r0, .L9+8
	bl	__assert_fail
.L7:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	__PRETTY_FUNCTION__.5307
	.word	.LC0
	.word	.LC2
	.size	worker, .-worker
	.section	.rodata
	.align	2
.LC3:
	.ascii	"r == 0 || r == EAGAIN\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #20
	ldr	r1, .L18+4
	mov	r0, r3
	bl	pthread_key_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	bne	.L12
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-12]
	cmp	r3, #11
	beq	.L13
	ldr	r3, .L18+8
	mov	r2, #36
	ldr	r1, .L18+12
	ldr	r0, .L18+16
	bl	__assert_fail
.L13:
	sub	r3, fp, #20
	sub	r0, fp, #16
	ldr	r2, .L18+20
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-20]
	mov	r1, #16
	mov	r0, r3
	bl	pthread_setspecific
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #12
	bne	.L14
	mov	r0, #1
	bl	exit
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-12]
	cmp	r3, #11
	beq	.L15
	ldr	r3, .L18+8
	mov	r2, #46
	ldr	r1, .L18+12
	ldr	r0, .L18+16
	bl	__assert_fail
.L15:
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC4
	.word	destructor
	.word	__PRETTY_FUNCTION__.5312
	.word	.LC0
	.word	.LC3
	.word	worker
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5301, %object
	.size	__PRETTY_FUNCTION__.5301, 11
__PRETTY_FUNCTION__.5301:
	.ascii	"destructor\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5307, %object
	.size	__PRETTY_FUNCTION__.5307, 7
__PRETTY_FUNCTION__.5307:
	.ascii	"worker\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5312, %object
	.size	__PRETTY_FUNCTION__.5312, 5
__PRETTY_FUNCTION__.5312:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
