	.file	"133594.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Hello, World %d\n"
	.text
	.globl	SayHello
	.type	SayHello, @function
SayHello:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, 0
	call	pthread_acquire@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pthread_release@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	SayHello, .-SayHello
	.section	.rodata
.LC1:
	.string	"app) Spawning thread. id=%d\n"
.LC2:
	.string	"app) Joining thread. id=%d\n"
	.text
	.globl	application_entry
	.type	application_entry, @function
application_entry:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	jmp	.L4
.L5:
	mov	eax, 0
	call	pthread_acquire@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pthread_release@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	rdx, rax
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -68[rbp]
	sal	rax, 3
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, SayHello[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -68[rbp], 1
.L4:
	cmp	DWORD PTR -68[rbp], 6
	jbe	.L5
	mov	DWORD PTR -68[rbp], 0
	jmp	.L6
.L7:
	mov	eax, 0
	call	pthread_acquire@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	pthread_release@PLT
	mov	eax, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -64[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -68[rbp], 1
.L6:
	cmp	DWORD PTR -68[rbp], 6
	jbe	.L7
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	application_entry, .-application_entry
	.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	"133594.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hello, World %d\012\000"
	.text
	.align	2
	.global	SayHello
	.syntax unified
	.arm
	.fpu softvfp
	.type	SayHello, %function
SayHello:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	bl	pthread_acquire
	ldr	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L3
	bl	printf
	bl	pthread_release
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	.LC0
	.size	SayHello, .-SayHello
	.section	.rodata
	.align	2
.LC1:
	.ascii	"app) Spawning thread. id=%d\012\000"
	.align	2
.LC2:
	.ascii	"app) Joining thread. id=%d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	application_entry
	.syntax unified
	.arm
	.fpu softvfp
	.type	application_entry, %function
application_entry:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L6
.L7:
	bl	pthread_acquire
	ldr	r1, [fp, #-40]
	ldr	r0, .L12+4
	bl	printf
	bl	pthread_release
	sub	r2, fp, #36
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	add	r0, r2, r3
	ldr	r3, [fp, #-40]
	ldr	r2, .L12+8
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L6:
	ldr	r3, [fp, #-40]
	cmp	r3, #6
	bls	.L7
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L8
.L9:
	bl	pthread_acquire
	ldr	r1, [fp, #-40]
	ldr	r0, .L12+12
	bl	printf
	bl	pthread_release
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-32]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L8:
	ldr	r3, [fp, #-40]
	cmp	r3, #6
	bls	.L9
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LC1
	.word	SayHello
	.word	.LC2
	.size	application_entry, .-application_entry
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
