	.file	"82111.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Hello World! It's me, thread with argument %d!\n"
	.text
	.globl	perform_work
	.type	perform_work, @function
perform_work:
.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	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	perform_work, .-perform_work
	.section	.rodata
.LC1:
	.string	"In main: creating thread %d\n"
.LC2:
	.string	"the_stack_data/82111.c"
.LC3:
	.string	"!result_code"
	.align 8
.LC4:
	.string	"In main: thread %d has completed\n"
	.align 8
.LC5:
	.string	"In main: All threads completed successfully"
	.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -88[rbp], 0
	jmp	.L4
.L6:
	mov	edx, DWORD PTR -88[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -80[rbp+rax*4], edx
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -88[rbp]
	sal	rax, 2
	add	rdx, rax
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -88[rbp]
	sal	rax, 3
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, perform_work[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 26
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L5:
	add	DWORD PTR -88[rbp], 1
.L4:
	cmp	DWORD PTR -88[rbp], 4
	jbe	.L6
	mov	DWORD PTR -88[rbp], 0
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -88[rbp]
	mov	rax, QWORD PTR -48[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 33
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L8:
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -88[rbp], 1
.L7:
	cmp	DWORD PTR -88[rbp], 4
	jbe	.L9
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.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	"82111.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hello World! It's me, thread with argument %d!\012\000"
	.text
	.align	2
	.global	perform_work
	.syntax unified
	.arm
	.fpu softvfp
	.type	perform_work, %function
perform_work:
	@ 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]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L3
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	perform_work, .-perform_work
	.section	.rodata
	.align	2
.LC1:
	.ascii	"In main: creating thread %d\012\000"
	.align	2
.LC2:
	.ascii	"the_stack_data/82111.c\000"
	.align	2
.LC3:
	.ascii	"!result_code\000"
	.align	2
.LC4:
	.ascii	"In main: thread %d has completed\012\000"
	.align	2
.LC5:
	.ascii	"In main: All threads completed successfully\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L6
.L8:
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-24]
	ldr	r1, [fp, #-56]
	ldr	r0, .L13+4
	bl	printf
	sub	r2, fp, #48
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r2, fp, #28
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L13+8
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L13+12
	mov	r2, #26
	ldr	r1, .L13+16
	ldr	r0, .L13+20
	bl	__assert_fail
.L7:
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L6:
	ldr	r3, [fp, #-56]
	cmp	r3, #4
	bls	.L8
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L9
.L11:
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L13+12
	mov	r2, #33
	ldr	r1, .L13+16
	ldr	r0, .L13+20
	bl	__assert_fail
.L10:
	ldr	r1, [fp, #-56]
	ldr	r0, .L13+24
	bl	printf
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L9:
	ldr	r3, [fp, #-56]
	cmp	r3, #4
	bls	.L11
	ldr	r0, .L13+28
	bl	puts
	mov	r0, #0
	bl	exit
.L14:
	.align	2
.L13:
	.word	.LC6
	.word	.LC1
	.word	perform_work
	.word	__PRETTY_FUNCTION__.5643
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5643, %object
	.size	__PRETTY_FUNCTION__.5643, 5
__PRETTY_FUNCTION__.5643:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
