	.file	"334052.c"
	.intel_syntax noprefix
	.text
	.globl	lock
	.bss
	.align 32
	.type	lock, @object
	.size	lock, 40
lock:
	.zero	40
	.globl	oxygen
	.align 32
	.type	oxygen, @object
	.size	oxygen, 48
oxygen:
	.zero	48
	.globl	hydrogen
	.align 32
	.type	hydrogen, @object
	.size	hydrogen, 48
hydrogen:
	.zero	48
	.globl	barrier
	.align 32
	.type	barrier, @object
	.size	barrier, 48
barrier:
	.zero	48
	.globl	num_hydrogen
	.align 4
	.type	num_hydrogen, @object
	.size	num_hydrogen, 4
num_hydrogen:
	.zero	4
	.globl	num_oxygen
	.align 4
	.type	num_oxygen, @object
	.size	num_oxygen, 4
num_oxygen:
	.zero	4
	.globl	bonding
	.align 4
	.type	bonding, @object
	.size	bonding, 4
bonding:
	.zero	4
	.globl	num_hydrogen_needed
	.data
	.align 4
	.type	num_hydrogen_needed, @object
	.size	num_hydrogen_needed, 4
num_hydrogen_needed:
	.long	2
	.globl	num_oxygen_needed
	.align 4
	.type	num_oxygen_needed, @object
	.size	num_oxygen_needed, 4
num_oxygen_needed:
	.long	1
	.globl	done_bonding
	.bss
	.align 4
	.type	done_bonding, @object
	.size	done_bonding, 4
done_bonding:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Oxygen thread arrived"
.LC1:
	.string	"Oxygen bonding..."
.LC2:
	.string	"H2O generated..."
	.text
	.globl	oxy_thread
	.type	oxy_thread, @function
oxy_thread:
.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
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 0
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR num_oxygen[rip]
	add	eax, 1
	mov	DWORD PTR num_oxygen[rip], eax
	jmp	.L2
.L4:
	lea	rsi, lock[rip]
	lea	rdi, oxygen[rip]
	call	pthread_cond_wait@PLT
.L2:
	mov	eax, DWORD PTR bonding[rip]
	test	eax, eax
	je	.L3
	mov	eax, DWORD PTR num_oxygen_needed[rip]
	test	eax, eax
	je	.L4
.L3:
	mov	eax, DWORD PTR bonding[rip]
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR num_hydrogen[rip]
	cmp	eax, 1
	jle	.L4
.L5:
	mov	DWORD PTR bonding[rip], 1
	mov	eax, DWORD PTR num_oxygen_needed[rip]
	sub	eax, 1
	mov	DWORD PTR num_oxygen_needed[rip], eax
	mov	eax, DWORD PTR num_oxygen[rip]
	sub	eax, 1
	mov	DWORD PTR num_oxygen[rip], eax
	mov	eax, DWORD PTR num_hydrogen_needed[rip]
	test	eax, eax
	jle	.L6
	lea	rdi, hydrogen[rip]
	call	pthread_cond_broadcast@PLT
.L6:
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 3
	call	sleep@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR done_bonding[rip]
	add	eax, 1
	mov	DWORD PTR done_bonding[rip], eax
	mov	eax, DWORD PTR done_bonding[rip]
	cmp	eax, 3
	jne	.L7
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR num_hydrogen_needed[rip], 2
	mov	DWORD PTR num_oxygen_needed[rip], 1
	mov	DWORD PTR bonding[rip], 0
	mov	DWORD PTR done_bonding[rip], 0
	mov	eax, DWORD PTR num_oxygen[rip]
	test	eax, eax
	jle	.L7
	mov	eax, DWORD PTR num_hydrogen[rip]
	cmp	eax, 1
	jle	.L7
	lea	rdi, oxygen[rip]
	call	pthread_cond_signal@PLT
.L7:
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	oxy_thread, .-oxy_thread
	.section	.rodata
.LC3:
	.string	"Hydrogen thread arrived"
.LC4:
	.string	"Hydrogen bonding..."
	.text
	.globl	hydro_thread
	.type	hydro_thread, @function
hydro_thread:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR num_hydrogen[rip]
	add	eax, 1
	mov	DWORD PTR num_hydrogen[rip], eax
	jmp	.L10
.L12:
	lea	rsi, lock[rip]
	lea	rdi, hydrogen[rip]
	call	pthread_cond_wait@PLT
.L10:
	mov	eax, DWORD PTR bonding[rip]
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR num_oxygen[rip]
	test	eax, eax
	jg	.L11
	mov	eax, DWORD PTR num_hydrogen[rip]
	cmp	eax, 1
	jle	.L12
.L11:
	mov	eax, DWORD PTR bonding[rip]
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR num_hydrogen_needed[rip]
	test	eax, eax
	je	.L12
.L13:
	mov	DWORD PTR bonding[rip], 1
	mov	eax, DWORD PTR num_hydrogen_needed[rip]
	sub	eax, 1
	mov	DWORD PTR num_hydrogen_needed[rip], eax
	mov	eax, DWORD PTR num_hydrogen[rip]
	sub	eax, 1
	mov	DWORD PTR num_hydrogen[rip], eax
	mov	eax, DWORD PTR num_oxygen_needed[rip]
	test	eax, eax
	jle	.L14
	lea	rdi, oxygen[rip]
	call	pthread_cond_signal@PLT
.L14:
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 3
	call	sleep@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR done_bonding[rip]
	add	eax, 1
	mov	DWORD PTR done_bonding[rip], eax
	mov	eax, DWORD PTR done_bonding[rip]
	cmp	eax, 3
	jne	.L15
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR num_hydrogen_needed[rip], 2
	mov	DWORD PTR num_oxygen_needed[rip], 1
	mov	DWORD PTR bonding[rip], 0
	mov	DWORD PTR done_bonding[rip], 0
	mov	eax, DWORD PTR num_oxygen[rip]
	test	eax, eax
	jle	.L15
	mov	eax, DWORD PTR num_hydrogen[rip]
	cmp	eax, 1
	jle	.L15
	lea	rdi, oxygen[rip]
	call	pthread_cond_signal@PLT
.L15:
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	hydro_thread, .-hydro_thread
	.section	.rodata
.LC5:
	.string	"Everything finished ... "
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdout[rip]
	mov	esi, 0
	mov	rdi, rax
	call	setbuf@PLT
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	esi, 0
	lea	rdi, oxygen[rip]
	call	pthread_cond_init@PLT
	mov	esi, 0
	lea	rdi, hydrogen[rip]
	call	pthread_cond_init@PLT
	mov	esi, 0
	lea	rdi, barrier[rip]
	call	pthread_cond_init@PLT
	mov	esi, 0
	lea	rdi, lock[rip]
	call	pthread_mutex_init@PLT
	mov	DWORD PTR -100[rbp], 0
	jmp	.L18
.L19:
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, oxy_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -100[rbp], 1
.L18:
	cmp	DWORD PTR -100[rbp], 2
	jle	.L19
	mov	DWORD PTR -100[rbp], 0
	jmp	.L20
.L21:
	lea	rdx, -64[rbp]
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	ecx, 0
	lea	rdx, hydro_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	add	DWORD PTR -100[rbp], 1
.L20:
	cmp	DWORD PTR -100[rbp], 5
	jle	.L21
	mov	DWORD PTR -100[rbp], 0
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	rax, QWORD PTR -96[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -100[rbp], 1
.L22:
	cmp	DWORD PTR -100[rbp], 2
	jle	.L23
	mov	DWORD PTR -100[rbp], 0
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -100[rbp]
	cdqe
	mov	rax, QWORD PTR -64[rbp+rax*8]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	add	DWORD PTR -100[rbp], 1
.L24:
	cmp	DWORD PTR -100[rbp], 5
	jle	.L25
	lea	rdi, oxygen[rip]
	call	pthread_cond_destroy@PLT
	lea	rdi, hydrogen[rip]
	call	pthread_cond_destroy@PLT
	lea	rdi, barrier[rip]
	call	pthread_cond_destroy@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_destroy@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"334052.c"
	.text
	.comm	lock,24,4
	.comm	oxygen,48,8
	.comm	hydrogen,48,8
	.comm	barrier,48,8
	.global	num_hydrogen
	.bss
	.align	2
	.type	num_hydrogen, %object
	.size	num_hydrogen, 4
num_hydrogen:
	.space	4
	.global	num_oxygen
	.align	2
	.type	num_oxygen, %object
	.size	num_oxygen, 4
num_oxygen:
	.space	4
	.global	bonding
	.align	2
	.type	bonding, %object
	.size	bonding, 4
bonding:
	.space	4
	.global	num_hydrogen_needed
	.data
	.align	2
	.type	num_hydrogen_needed, %object
	.size	num_hydrogen_needed, 4
num_hydrogen_needed:
	.word	2
	.global	num_oxygen_needed
	.align	2
	.type	num_oxygen_needed, %object
	.size	num_oxygen_needed, 4
num_oxygen_needed:
	.word	1
	.global	done_bonding
	.bss
	.align	2
	.type	done_bonding, %object
	.size	done_bonding, 4
done_bonding:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Oxygen thread arrived\000"
	.align	2
.LC1:
	.ascii	"Oxygen bonding...\000"
	.align	2
.LC2:
	.ascii	"H2O generated...\000"
	.text
	.align	2
	.global	oxy_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	oxy_thread, %function
oxy_thread:
	@ 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	r0, .L9
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, .L9+4
	bl	pthread_mutex_lock
	ldr	r3, .L9+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9+8
	str	r3, [r2]
	b	.L2
.L4:
	ldr	r1, .L9+4
	ldr	r0, .L9+12
	bl	pthread_cond_wait
.L2:
	ldr	r3, .L9+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L9+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
.L3:
	ldr	r3, .L9+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r3, .L9+24
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L4
.L5:
	ldr	r3, .L9+16
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L9+20
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L9+20
	str	r3, [r2]
	ldr	r3, .L9+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L9+8
	str	r3, [r2]
	ldr	r3, .L9+28
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L6
	ldr	r0, .L9+32
	bl	pthread_cond_broadcast
.L6:
	ldr	r0, .L9+4
	bl	pthread_mutex_unlock
	ldr	r0, .L9+36
	bl	puts
	mov	r0, #3
	bl	sleep
	ldr	r0, .L9+4
	bl	pthread_mutex_lock
	ldr	r3, .L9+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9+40
	str	r3, [r2]
	ldr	r3, .L9+40
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L7
	ldr	r0, .L9+44
	bl	puts
	ldr	r3, .L9+28
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, .L9+20
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L9+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L9+40
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L7
	ldr	r3, .L9+24
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L7
	ldr	r0, .L9+12
	bl	pthread_cond_signal
.L7:
	ldr	r0, .L9+4
	bl	pthread_mutex_unlock
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	lock
	.word	num_oxygen
	.word	oxygen
	.word	bonding
	.word	num_oxygen_needed
	.word	num_hydrogen
	.word	num_hydrogen_needed
	.word	hydrogen
	.word	.LC1
	.word	done_bonding
	.word	.LC2
	.size	oxy_thread, .-oxy_thread
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Hydrogen thread arrived\000"
	.align	2
.LC4:
	.ascii	"Hydrogen bonding...\000"
	.text
	.align	2
	.global	hydro_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	hydro_thread, %function
hydro_thread:
	@ 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]
	ldr	r0, .L19
	bl	puts
	ldr	r0, .L19+4
	bl	pthread_mutex_lock
	ldr	r3, .L19+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19+8
	str	r3, [r2]
	b	.L12
.L14:
	ldr	r1, .L19+4
	ldr	r0, .L19+12
	bl	pthread_cond_wait
.L12:
	ldr	r3, .L19+16
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L13
	ldr	r3, .L19+20
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L13
	ldr	r3, .L19+8
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L14
.L13:
	ldr	r3, .L19+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L19+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
.L15:
	ldr	r3, .L19+16
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L19+24
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L19+24
	str	r3, [r2]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L19+8
	str	r3, [r2]
	ldr	r3, .L19+28
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L16
	ldr	r0, .L19+32
	bl	pthread_cond_signal
.L16:
	ldr	r0, .L19+4
	bl	pthread_mutex_unlock
	ldr	r0, .L19+36
	bl	puts
	mov	r0, #3
	bl	sleep
	ldr	r0, .L19+4
	bl	pthread_mutex_lock
	ldr	r3, .L19+40
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19+40
	str	r3, [r2]
	ldr	r3, .L19+40
	ldr	r3, [r3]
	cmp	r3, #3
	bne	.L17
	ldr	r0, .L19+44
	bl	puts
	ldr	r3, .L19+24
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, .L19+28
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L19+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L19+40
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L19+20
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L17
	ldr	r3, .L19+8
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L17
	ldr	r0, .L19+32
	bl	pthread_cond_signal
.L17:
	ldr	r0, .L19+4
	bl	pthread_mutex_unlock
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	lock
	.word	num_hydrogen
	.word	hydrogen
	.word	bonding
	.word	num_oxygen
	.word	num_hydrogen_needed
	.word	num_oxygen_needed
	.word	oxygen
	.word	.LC4
	.word	done_bonding
	.word	.LC2
	.size	hydro_thread, .-hydro_thread
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Everything finished ... \000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L32
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L32+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	mov	r1, #0
	ldr	r0, .L32+8
	bl	pthread_cond_init
	mov	r1, #0
	ldr	r0, .L32+12
	bl	pthread_cond_init
	mov	r1, #0
	ldr	r0, .L32+16
	bl	pthread_cond_init
	mov	r1, #0
	ldr	r0, .L32+20
	bl	pthread_mutex_init
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L22
.L23:
	sub	r2, fp, #44
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L32+24
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L22:
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	ble	.L23
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L24
.L25:
	sub	r2, fp, #32
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	add	r0, r2, r3
	mov	r3, #0
	ldr	r2, .L32+28
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L24:
	ldr	r3, [fp, #-48]
	cmp	r3, #5
	ble	.L25
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L26
.L27:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-40]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L26:
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	ble	.L27
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L28
.L29:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-28]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L28:
	ldr	r3, [fp, #-48]
	cmp	r3, #5
	ble	.L29
	ldr	r0, .L32+8
	bl	pthread_cond_destroy
	ldr	r0, .L32+12
	bl	pthread_cond_destroy
	ldr	r0, .L32+16
	bl	pthread_cond_destroy
	ldr	r0, .L32+20
	bl	pthread_mutex_destroy
	ldr	r0, .L32+32
	bl	puts
	mov	r3, #0
	ldr	r2, .L32
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC6
	.word	stdout
	.word	oxygen
	.word	hydrogen
	.word	barrier
	.word	lock
	.word	oxy_thread
	.word	hydro_thread
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
