	.file	"45837.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	glob, @object
	.size	glob, 4
glob:
	.long	1
	.globl	mtx
	.bss
	.align 32
	.type	mtx, @object
	.size	mtx, 40
mtx:
	.zero	40
	.globl	conds
	.align 32
	.type	conds, @object
	.size	conds, 384
conds:
	.zero	384
	.section	.rodata
.LC0:
	.string	"%d\t"
	.text
	.type	threadFunc, @function
threadFunc:
.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	esi, 0
	lea	rdi, mtx[rip]
	call	pthread_mutex_init@PLT
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR glob[rip]
	cmp	edx, eax
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, conds[rip]
	add	rax, rdx
	lea	rsi, mtx[rip]
	mov	rdi, rax
	call	pthread_cond_wait@PLT
.L2:
	mov	eax, DWORD PTR glob[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	ecx, 2[rax]
	movsx	rax, ecx
	imul	rax, rax, 715827883
	shr	rax, 32
	mov	esi, ecx
	sar	esi, 31
	mov	edx, eax
	sub	edx, esi
	mov	eax, edx
	add	eax, eax
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	mov	DWORD PTR glob[rip], edx
	mov	eax, DWORD PTR glob[rip]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, conds[rip]
	add	rax, rdx
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	jmp	.L3
	.cfi_endproc
.LFE6:
	.size	threadFunc, .-threadFunc
	.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, 144
	mov	DWORD PTR -132[rbp], edi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -112[rbp], 0
	mov	DWORD PTR -108[rbp], 1
	mov	DWORD PTR -104[rbp], 2
	mov	DWORD PTR -100[rbp], 3
	mov	DWORD PTR -96[rbp], 4
	mov	DWORD PTR -92[rbp], 5
	mov	DWORD PTR -88[rbp], 6
	mov	DWORD PTR -84[rbp], 7
	mov	DWORD PTR -120[rbp], 1
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -120[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 4
	lea	rdx, conds[rip]
	add	rax, rdx
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	add	DWORD PTR -120[rbp], 2
.L5:
	cmp	DWORD PTR -120[rbp], 5
	jle	.L6
	mov	DWORD PTR -116[rbp], 1
	jmp	.L7
.L8:
	lea	rdx, -112[rbp]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -116[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rcx, rdx
	lea	rdx, threadFunc[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -116[rbp], 2
.L7:
	cmp	DWORD PTR -116[rbp], 5
	jle	.L8
.L9:
	call	pause@PLT
	jmp	.L9
	.cfi_endproc
.LFE7:
	.size	main, .-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	"45837.c"
	.text
	.data
	.align	2
	.type	glob, %object
	.size	glob, 4
glob:
	.word	1
	.comm	mtx,24,4
	.comm	conds,384,8
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d\011\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	threadFunc, %function
threadFunc:
	@ 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]
	mov	r1, #0
	ldr	r0, .L4
	bl	pthread_mutex_init
.L3:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, .L4+8
	add	r3, r3, r2
	ldr	r1, .L4
	mov	r0, r3
	bl	pthread_cond_wait
.L2:
	ldr	r3, .L4+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L4+12
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r1, r3, #2
	ldr	r3, .L4+16
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, .L4+4
	str	r2, [r3]
	ldr	r3, .L4+4
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, .L4+8
	add	r3, r3, r2
	mov	r0, r3
	bl	pthread_cond_signal
	b	.L3
.L5:
	.align	2
.L4:
	.word	mtx
	.word	glob
	.word	conds
	.word	.LC1
	.word	715827883
	.size	threadFunc, .-threadFunc
	.section	.rodata
	.align	2
.LC0:
	.word	0
	.word	1
	.word	2
	.word	3
	.word	4
	.word	5
	.word	6
	.word	7
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	str	r1, [fp, #-92]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L13+4
	sub	ip, fp, #40
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	mov	r3, #1
	str	r3, [fp, #-80]
	b	.L7
.L8:
	ldr	r2, [fp, #-80]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	ldr	r2, .L13+8
	add	r3, r3, r2
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	ldr	r3, [fp, #-80]
	add	r3, r3, #2
	str	r3, [fp, #-80]
.L7:
	ldr	r3, [fp, #-80]
	cmp	r3, #5
	ble	.L8
	mov	r3, #1
	str	r3, [fp, #-76]
	b	.L9
.L10:
	sub	r2, fp, #72
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	add	r0, r2, r3
	sub	r2, fp, #40
	ldr	r3, [fp, #-76]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, .L13+12
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-76]
	add	r3, r3, #2
	str	r3, [fp, #-76]
.L9:
	ldr	r3, [fp, #-76]
	cmp	r3, #5
	ble	.L10
.L11:
	bl	pause
	b	.L11
.L14:
	.align	2
.L13:
	.word	.LC2
	.word	.LC0
	.word	conds
	.word	threadFunc
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
