	.file	"748212.c"
	.intel_syntax noprefix
	.text
	.globl	hasThreadFinishedCondition
	.bss
	.align 32
	.type	hasThreadFinishedCondition, @object
	.size	hasThreadFinishedCondition, 48
hasThreadFinishedCondition:
	.zero	48
	.globl	mutex
	.align 32
	.type	mutex, @object
	.size	mutex, 40
mutex:
	.zero	40
	.text
	.globl	init_signalwait
	.type	init_signalwait, @function
init_signalwait:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 0
	lea	rdi, hasThreadFinishedCondition[rip]
	call	pthread_cond_init@PLT
	mov	esi, 0
	lea	rdi, mutex[rip]
	call	pthread_mutex_init@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	init_signalwait, .-init_signalwait
	.globl	increment_with_signalwait
	.type	increment_with_signalwait, @function
increment_with_signalwait:
.LFB1:
	.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
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L3
.L4:
	lea	rsi, mutex[rip]
	lea	rdi, hasThreadFinishedCondition[rip]
	call	pthread_cond_wait@PLT
.L3:
	mov	eax, DWORD PTR glob[rip]
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, 0
	div	ecx
	mov	eax, edx
	test	eax, eax
	jne	.L4
	mov	DWORD PTR -8[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR glob[rip]
	add	eax, 1
	mov	DWORD PTR glob[rip], eax
	add	DWORD PTR -8[rbp], 1
.L5:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L6
	lea	rdi, hasThreadFinishedCondition[rip]
	call	pthread_cond_signal@PLT
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	increment_with_signalwait, .-increment_with_signalwait
	.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	"748212.c"
	.text
	.comm	hasThreadFinishedCondition,48,8
	.comm	mutex,24,4
	.align	2
	.global	init_signalwait
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_signalwait, %function
init_signalwait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #0
	ldr	r0, .L2
	bl	pthread_cond_init
	mov	r1, #0
	ldr	r0, .L2+4
	bl	pthread_mutex_init
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	hasThreadFinishedCondition
	.word	mutex
	.size	init_signalwait, .-init_signalwait
	.global	__aeabi_uidivmod
	.align	2
	.global	increment_with_signalwait
	.syntax unified
	.arm
	.fpu softvfp
	.type	increment_with_signalwait, %function
increment_with_signalwait:
	@ 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	r0, .L10
	bl	pthread_mutex_lock
	b	.L5
.L6:
	ldr	r1, .L10
	ldr	r0, .L10+4
	bl	pthread_cond_wait
.L5:
	ldr	r3, .L10+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L6
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L7
.L8:
	ldr	r3, .L10+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L10+8
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L7:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L8
	ldr	r0, .L10+4
	bl	pthread_cond_signal
	ldr	r0, .L10
	bl	pthread_mutex_unlock
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	mutex
	.word	hasThreadFinishedCondition
	.word	glob
	.size	increment_with_signalwait, .-increment_with_signalwait
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
