	.file	"508089.c"
	.intel_syntax noprefix
	.text
	.globl	amutex
	.bss
	.align 32
	.type	amutex, @object
	.size	amutex, 40
amutex:
	.zero	40
	.globl	got_request
	.align 32
	.type	got_request, @object
	.size	got_request, 48
got_request:
	.zero	48
	.text
	.globl	threadFunc
	.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, amutex[rip]
	call	pthread_mutex_lock@PLT
	lea	rsi, amutex[rip]
	lea	rdi, got_request[rip]
	call	pthread_cond_wait@PLT
	mov	DWORD PTR -12[rbp], eax
	lea	rdi, amutex[rip]
	call	pthread_mutex_unlock@PLT
	cmp	DWORD PTR -12[rbp], 0
	jne	.L2
	mov	DWORD PTR -16[rbp], 0
	jmp	.L3
.L4:
	mov	edi, 1000000
	mov	eax, 0
	call	usleep@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -16[rbp], 1
.L3:
	cmp	DWORD PTR -16[rbp], 4
	jle	.L4
.L2:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	threadFunc, .-threadFunc
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	threadFunc2
	.type	threadFunc2, @function
threadFunc2:
.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	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, amutex[rip]
	call	pthread_mutex_lock@PLT
	lea	rsi, amutex[rip]
	lea	rdi, got_request[rip]
	call	pthread_cond_wait@PLT
	mov	DWORD PTR -12[rbp], eax
	lea	rdi, amutex[rip]
	call	pthread_mutex_unlock@PLT
	cmp	DWORD PTR -12[rbp], 0
	jne	.L7
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	jmp	.L8
.L9:
	mov	edi, 1000000
	mov	eax, 0
	call	usleep@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -16[rbp], 1
.L8:
	cmp	DWORD PTR -16[rbp], 9
	jle	.L9
.L7:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	threadFunc2, .-threadFunc2
	.globl	threadFunc3
	.type	threadFunc3, @function
threadFunc3:
.LFB8:
	.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	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L12
.L14:
	mov	edi, 100000
	mov	eax, 0
	call	usleep@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	cmp	DWORD PTR -12[rbp], 25
	jne	.L13
	lea	rdi, amutex[rip]
	call	pthread_mutex_lock@PLT
	lea	rdi, got_request[rip]
	call	pthread_cond_broadcast@PLT
	lea	rdi, amutex[rip]
	call	pthread_mutex_unlock@PLT
.L13:
	add	DWORD PTR -12[rbp], 1
.L12:
	cmp	DWORD PTR -12[rbp], 49
	jle	.L14
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	threadFunc3, .-threadFunc3
	.section	.rodata
.LC1:
	.string	"what up playa"
.LC2:
	.string	"hey"
.LC3:
	.string	"nthn much fam hbu"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 4
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1
	lea	rax, -40[rbp]
	lea	rcx, .LC1[rip]
	lea	rdx, threadFunc[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rdx, QWORD PTR -16[rbp]
	lea	rax, -32[rbp]
	mov	rcx, rdx
	lea	rdx, threadFunc2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -24[rbp]
	lea	rcx, .LC2[rip]
	lea	rdx, threadFunc3[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -44[rbp], 0
	jmp	.L17
.L18:
	mov	edi, 1000000
	mov	eax, 0
	call	usleep@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	add	DWORD PTR -44[rbp], 1
.L17:
	cmp	DWORD PTR -44[rbp], 4
	jle	.L18
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"508089.c"
	.text
	.global	amutex
	.bss
	.align	2
	.type	amutex, %object
	.size	amutex, 24
amutex:
	.space	24
	.global	got_request
	.align	3
	.type	got_request, %object
	.size	got_request, 48
got_request:
	.space	48
	.text
	.align	2
	.global	threadFunc
	.syntax unified
	.arm
	.fpu softvfp
	.type	threadFunc, %function
threadFunc:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	ldr	r0, .L6
	bl	pthread_mutex_lock
	ldr	r1, .L6
	ldr	r0, .L6+4
	bl	pthread_cond_wait
	str	r0, [fp, #-8]
	ldr	r0, .L6
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L3
.L4:
	ldr	r0, .L6+8
	bl	usleep
	ldr	r0, [fp, #-12]
	bl	puts
	ldr	r3, .L6+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L3:
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	ble	.L4
.L2:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	amutex
	.word	got_request
	.word	1000000
	.word	stdout
	.size	threadFunc, .-threadFunc
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	threadFunc2
	.syntax unified
	.arm
	.fpu softvfp
	.type	threadFunc2, %function
threadFunc2:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-12]
	ldr	r0, .L13
	bl	pthread_mutex_lock
	ldr	r1, .L13
	ldr	r0, .L13+4
	bl	pthread_cond_wait
	str	r0, [fp, #-8]
	ldr	r0, .L13
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L10
.L11:
	ldr	r0, .L13+8
	bl	usleep
	ldr	r1, [fp, #-16]
	ldr	r0, .L13+12
	bl	printf
	ldr	r3, .L13+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L10:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L11
.L9:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	amutex
	.word	got_request
	.word	1000000
	.word	.LC0
	.word	stdout
	.size	threadFunc2, .-threadFunc2
	.align	2
	.global	threadFunc3
	.syntax unified
	.arm
	.fpu softvfp
	.type	threadFunc3, %function
threadFunc3:
	@ 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]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L16
.L18:
	ldr	r0, .L20
	bl	usleep
	ldr	r0, [fp, #-8]
	bl	puts
	ldr	r3, .L20+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-12]
	cmp	r3, #25
	bne	.L17
	ldr	r0, .L20+8
	bl	pthread_mutex_lock
	ldr	r0, .L20+12
	bl	pthread_cond_broadcast
	ldr	r0, .L20+8
	bl	pthread_mutex_unlock
.L17:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L16:
	ldr	r3, [fp, #-12]
	cmp	r3, #49
	ble	.L18
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	100000
	.word	stdout
	.word	amutex
	.word	got_request
	.size	threadFunc3, .-threadFunc3
	.section	.rodata
	.align	2
.LC1:
	.ascii	"what up playa\000"
	.align	2
.LC2:
	.ascii	"hey\000"
	.align	2
.LC3:
	.ascii	"nthn much fam hbu\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, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	mov	r2, #1
	str	r2, [r3]
	sub	r0, fp, #28
	ldr	r3, .L27+4
	ldr	r2, .L27+8
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #24
	ldr	r3, [fp, #-12]
	ldr	r2, .L27+12
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #20
	ldr	r3, .L27+16
	ldr	r2, .L27+20
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-28]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L23
.L24:
	ldr	r0, .L27+24
	bl	usleep
	ldr	r0, .L27+28
	bl	puts
	ldr	r3, .L27+32
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L23:
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	ble	.L24
	mov	r3, #0
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC4
	.word	.LC1
	.word	threadFunc
	.word	threadFunc2
	.word	.LC2
	.word	threadFunc3
	.word	1000000
	.word	.LC3
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
