	.file	"370279.c"
	.intel_syntax noprefix
	.text
	.globl	run_now
	.data
	.align 4
	.type	run_now, @object
	.size	run_now, 4
run_now:
	.long	1
	.globl	message
	.align 8
	.type	message, @object
	.size	message, 12
message:
	.string	"Hello World"
	.section	.rodata
.LC0:
	.string	"Thread creation failed"
	.align 8
.LC1:
	.string	"\nWaiting for thread to finish..."
.LC2:
	.string	"Thread join failed"
.LC3:
	.string	"Thread joined"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], 0
	lea	rax, -24[rbp]
	lea	rcx, message[rip]
	lea	rdx, thread_function[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L3
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	mov	eax, DWORD PTR run_now[rip]
	cmp	eax, 1
	jne	.L4
	mov	edi, 49
	call	putchar@PLT
	mov	DWORD PTR run_now[rip], 2
	jmp	.L3
.L4:
	mov	edi, 1
	call	sleep@PLT
.L3:
	mov	eax, DWORD PTR -32[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -32[rbp], edx
	cmp	eax, 19
	jle	.L5
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L6
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	thread_function
	.type	thread_function, @function
thread_function:
.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	DWORD PTR -4[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR run_now[rip]
	cmp	eax, 2
	jne	.L10
	mov	edi, 50
	call	putchar@PLT
	mov	DWORD PTR run_now[rip], 1
	jmp	.L9
.L10:
	mov	edi, 1
	call	sleep@PLT
.L9:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	cmp	eax, 19
	jle	.L11
	mov	edi, 3
	call	sleep@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	thread_function, .-thread_function
	.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	"370279.c"
	.text
	.global	run_now
	.data
	.align	2
	.type	run_now, %object
	.size	run_now, 4
run_now:
	.word	1
	.global	message
	.align	2
	.type	message, %object
	.size	message, 12
message:
	.ascii	"Hello World\000"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Thread creation failed\000"
	.align	2
.LC1:
	.ascii	"\012Waiting for thread to finish...\000"
	.align	2
.LC2:
	.ascii	"Thread join failed\000"
	.align	2
.LC3:
	.ascii	"Thread joined\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 = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r0, fp, #24
	ldr	r3, .L8+4
	ldr	r2, .L8+8
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L8+12
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, .L8+16
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L4
	mov	r0, #49
	bl	putchar
	ldr	r3, .L8+16
	mov	r2, #2
	str	r2, [r3]
	b	.L3
.L4:
	mov	r0, #1
	bl	sleep
.L3:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	cmp	r3, #19
	ble	.L5
	ldr	r0, .L8+20
	bl	puts
	ldr	r3, [fp, #-24]
	sub	r2, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L6
	ldr	r0, .L8+24
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	ldr	r0, .L8+28
	bl	puts
	mov	r0, #0
	bl	exit
.L9:
	.align	2
.L8:
	.word	.LC4
	.word	message
	.word	thread_function
	.word	.LC0
	.word	run_now
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.align	2
	.global	thread_function
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_function, %function
thread_function:
	@ 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, #-8]
	b	.L11
.L13:
	ldr	r3, .L14
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L12
	mov	r0, #50
	bl	putchar
	ldr	r3, .L14
	mov	r2, #1
	str	r2, [r3]
	b	.L11
.L12:
	mov	r0, #1
	bl	sleep
.L11:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	cmp	r3, #19
	ble	.L13
	mov	r0, #3
	bl	sleep
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	run_now
	.size	thread_function, .-thread_function
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
