	.file	"extr_Command.c_CheckThread.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Thread %u Create Failed.\n"
.LC1:
	.string	"Threading: %u != %u\n"
	.text
	.p2align 4
	.globl	CheckThread
	.type	CheckThread, @function
CheckThread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, 1
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	rbx, rsp
	call	NewEvent@PLT
	mov	esi, 24
	mov	rdi, rbx
	mov	r13, rax
	call	Zero@PLT
	xor	eax, eax
	call	NewLock@PLT
	mov	edi, DWORD PTR CheckThread2[rip]
	mov	rsi, r13
	mov	DWORD PTR 8[rsp], eax
	call	NewThread@PLT
	mov	edi, 256
	mov	QWORD PTR 16[rsp], rax
	mov	r14, rax
	call	ZeroMalloc@PLT
	mov	rbp, rax
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	add	r15, 1
	cmp	r15, 32
	je	.L15
.L3:
	mov	edi, DWORD PTR CheckThread1[rip]
	mov	rsi, rbx
	call	NewThread@PLT
	mov	QWORD PTR 0[rbp+r15*8], rax
	test	rax, rax
	jne	.L2
	mov	esi, r15d
	lea	rdi, .LC0[rip]
	add	r15, 1
	xor	r12d, r12d
	call	Print@PLT
	cmp	r15, 32
	jne	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r13
	mov	rbx, rbp
	lea	r15, 256[rbp]
	call	Set@PLT
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, QWORD PTR [rbx]
	mov	esi, DWORD PTR INFINITE[rip]
	add	rbx, 8
	call	WaitThread@PLT
	mov	rdi, QWORD PTR -8[rbx]
	call	ReleaseThread@PLT
	cmp	r15, rbx
	jne	.L4
	mov	rdi, rbp
	call	Free@PLT
	mov	edx, DWORD PTR CHECK_THREAD_INCREMENT_COUNT[rip]
	mov	esi, DWORD PTR [rsp]
	sal	edx, 5
	cmp	esi, edx
	je	.L5
	lea	rdi, .LC1[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	Print@PLT
.L5:
	mov	edi, DWORD PTR 8[rsp]
	lea	rbp, 32[rsp]
	call	DeleteLock@PLT
	mov	esi, DWORD PTR INFINITE[rip]
	mov	rdi, r14
	call	WaitThread@PLT
	mov	rdi, r14
	call	ReleaseThread@PLT
	mov	rdi, r13
	call	ReleaseEvent@PLT
	mov	rdi, rbp
	mov	esi, 24
	call	Zero@PLT
	mov	edi, DWORD PTR CheckThread3[rip]
	mov	rsi, rbp
	mov	DWORD PTR 32[rsp], 32
	call	NewThread@PLT
	mov	esi, DWORD PTR INFINITE[rip]
	mov	rbp, rax
	mov	rdi, rax
	call	WaitThread@PLT
	mov	rdi, rbp
	call	ReleaseThread@PLT
	mov	esi, DWORD PTR 36[rsp]
	cmp	esi, 32
	je	.L1
	mov	edx, 32
	lea	rdi, .LC1[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	Print@PLT
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L16:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	CheckThread, .-CheckThread
	.comm	INFINITE,4,4
	.comm	CheckThread3,4,4
	.comm	CheckThread2,4,4
	.comm	CheckThread1,4,4
	.comm	CHECK_THREAD_INCREMENT_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_Command.c_CheckThread.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Thread %u Create Failed.\012\000"
	.align	2
.LC1:
	.ascii	"Threading: %u != %u\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CheckThread
	.syntax unified
	.arm
	.fpu softvfp
	.type	CheckThread, %function
CheckThread:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L17
	sub	sp, sp, #52
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	bl	NewEvent
	mov	r1, #16
	mov	r9, r0
	add	r0, sp, #12
	bl	Zero
	bl	NewLock
	mov	r3, r0
	ldr	r2, .L17+4
	mov	r1, r9
	ldr	r0, [r2]
	str	r3, [sp, #20]
	bl	NewThread
	mov	r10, r0
	mov	r0, #128
	str	r10, [sp, #24]
	bl	ZeroMalloc
	sub	r4, r0, #4
	mov	r5, r4
	mov	fp, #0
	mov	r7, #1
	ldr	r6, .L17+8
	ldr	r8, .L17+12
	str	r0, [sp, #4]
	b	.L3
.L2:
	add	fp, fp, #1
	cmp	fp, #32
	beq	.L15
.L3:
	ldr	r0, [r6]
	add	r1, sp, #12
	bl	NewThread
	cmp	r0, #0
	mov	r3, r0
	str	r0, [r5, #4]!
	bne	.L2
	mov	r1, fp
	mov	r0, r8
	add	fp, fp, #1
	mov	r7, r3
	bl	Print
	cmp	fp, #32
	bne	.L3
.L15:
	mov	r0, r9
	bl	Set
	ldr	r3, [sp, #4]
	ldr	r5, .L17+16
	add	r6, r3, #124
.L4:
	ldr	r0, [r4, #4]!
	ldr	r1, [r5]
	bl	WaitThread
	ldr	r0, [r4]
	bl	ReleaseThread
	cmp	r6, r4
	bne	.L4
	ldr	r0, [sp, #4]
	bl	Free
	ldr	r3, .L17+20
	ldr	r1, [sp, #12]
	ldr	r2, [r3]
	cmp	r1, r2, lsl #5
	lsl	r2, r2, #5
	beq	.L5
	ldr	r0, .L17+24
	bl	Print
	mov	r7, #0
.L5:
	mov	r6, #32
	ldr	r0, [sp, #20]
	bl	DeleteLock
	ldr	r1, [r5]
	mov	r0, r10
	bl	WaitThread
	mov	r0, r10
	bl	ReleaseThread
	mov	r0, r9
	bl	ReleaseEvent
	mov	r1, #16
	add	r0, sp, #28
	bl	Zero
	ldr	r3, .L17+28
	add	r1, sp, #28
	ldr	r0, [r3]
	str	r6, [sp, #28]
	bl	NewThread
	mov	r4, r0
	ldr	r1, [r5]
	bl	WaitThread
	mov	r0, r4
	bl	ReleaseThread
	ldr	r1, [sp, #32]
	cmp	r1, r6
	beq	.L1
	mov	r2, r6
	ldr	r0, .L17+24
	bl	Print
	mov	r7, #0
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r7
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC2
	.word	CheckThread2
	.word	CheckThread1
	.word	.LC0
	.word	INFINITE
	.word	CHECK_THREAD_INCREMENT_COUNT
	.word	.LC1
	.word	CheckThread3
	.size	CheckThread, .-CheckThread
	.comm	INFINITE,4,4
	.comm	CheckThread3,4,4
	.comm	CheckThread2,4,4
	.comm	CheckThread1,4,4
	.comm	CHECK_THREAD_INCREMENT_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
