	.file	"602562.c"
	.intel_syntax noprefix
	.text
	.globl	Mutex
	.bss
	.align 32
	.type	Mutex, @object
	.size	Mutex, 40
Mutex:
	.zero	40
	.globl	ParentCond
	.align 32
	.type	ParentCond, @object
	.size	ParentCond, 48
ParentCond:
	.zero	48
	.globl	ChildCond
	.align 32
	.type	ChildCond, @object
	.size	ChildCond, 48
ChildCond:
	.zero	48
	.globl	finish
	.align 4
	.type	finish, @object
	.size	finish, 4
finish:
	.zero	4
	.globl	foodbits
	.align 4
	.type	foodbits, @object
	.size	foodbits, 4
foodbits:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Program invoked with wrong number of arguments."
	.align 8
.LC1:
	.string	"Program usage: %s <n. babybirds> <n. food portions> <n. refills>\n"
.LC2:
	.string	"\nSimulation started"
	.align 8
.LC3:
	.string	"\nNumber of bits of food eaten by baby %d / total of bits: %ld / %ld "
.LC4:
	.string	"\nTotal eaten %d"
.LC5:
	.string	"\nSimulation finished"
	.text
	.globl	main
	.type	main, @function
main:
.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, 2528
	mov	DWORD PTR -2516[rbp], edi
	mov	QWORD PTR -2528[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	DWORD PTR -2508[rbp], 0
	mov	DWORD PTR -2504[rbp], 0
	cmp	DWORD PTR -2516[rbp], 4
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -2528[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -2528[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2488[rbp], eax
	mov	rax, QWORD PTR -2528[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2484[rbp], eax
	mov	rax, QWORD PTR -2528[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	cdqe
	mov	QWORD PTR -2464[rbp], rax
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -2484[rbp]
	mov	DWORD PTR -2448[rbp], eax
	mov	rax, QWORD PTR -2464[rbp]
	mov	QWORD PTR -2440[rbp], rax
	lea	rax, -2508[rbp]
	mov	QWORD PTR -2432[rbp], rax
	lea	rdx, -2448[rbp]
	lea	rax, -2480[rbp]
	mov	rcx, rdx
	lea	rdx, parent[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -2500[rbp], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -2500[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	lea	rax, -1616[rbp]
	add	rax, rdx
	mov	QWORD PTR -2456[rbp], rax
	mov	rax, QWORD PTR -2456[rbp]
	mov	edx, DWORD PTR -2500[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -2456[rbp]
	lea	rdx, -2504[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR -2500[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, -2416[rbp]
	lea	rdi, [rax+rdx]
	mov	rax, QWORD PTR -2456[rbp]
	mov	rcx, rax
	lea	rdx, baby[rip]
	mov	esi, 0
	call	pthread_create@PLT
	add	DWORD PTR -2500[rbp], 1
.L3:
	mov	eax, DWORD PTR -2500[rbp]
	cmp	eax, DWORD PTR -2488[rbp]
	jl	.L4
	mov	rax, QWORD PTR -2480[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -2496[rbp], 0
	mov	DWORD PTR -2492[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -2492[rbp]
	cdqe
	mov	rax, QWORD PTR -2416[rbp+rax*8]
	lea	rdx, -2472[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, DWORD PTR -2484[rbp]
	cdqe
	imul	rax, QWORD PTR -2464[rbp]
	mov	rcx, rax
	mov	rax, QWORD PTR -2472[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -2492[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -2472[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, eax
	mov	eax, DWORD PTR -2496[rbp]
	add	eax, edx
	mov	DWORD PTR -2496[rbp], eax
	mov	rax, QWORD PTR -2472[rbp]
	mov	rdi, rax
	call	free@PLT
	add	DWORD PTR -2492[rbp], 1
.L5:
	mov	eax, DWORD PTR -2492[rbp]
	cmp	eax, DWORD PTR -2488[rbp]
	jl	.L6
	mov	eax, DWORD PTR -2496[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC6:
	.string	"\n\tParent starting"
	.align 8
.LC7:
	.string	"\n\tParent received args f (%d), r (%ld), working (%d)"
.LC8:
	.string	"\n\tParent finishing"
	.text
	.globl	parent
	.type	parent, @function
parent:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rcx]
	mov	rdx, QWORD PTR 8[rcx]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR 16[rcx]
	mov	QWORD PTR -16[rbp], rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L14:
	lea	rdi, Mutex[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L10
.L11:
	lea	rsi, Mutex[rip]
	lea	rdi, ParentCond[rip]
	call	pthread_cond_wait@PLT
.L10:
	mov	eax, DWORD PTR foodbits[rip]
	test	eax, eax
	jg	.L11
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -1[rax]
	mov	QWORD PTR -24[rbp], rdx
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR foodbits[rip]
	add	eax, edx
	mov	DWORD PTR foodbits[rip], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L13
.L12:
	mov	DWORD PTR finish[rip], 1
.L13:
	lea	rdi, ChildCond[rip]
	call	pthread_cond_broadcast@PLT
	lea	rdi, Mutex[rip]
	call	pthread_mutex_unlock@PLT
.L9:
	mov	eax, DWORD PTR finish[rip]
	test	eax, eax
	je	.L14
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	parent, .-parent
	.section	.rodata
.LC9:
	.string	"\n   Baby bird %d beginning"
	.align 8
.LC10:
	.string	"\n   Baby received args id (%d), eating (%d)"
.LC11:
	.string	"\n   Baby bird %d finishing"
	.text
	.globl	baby
	.type	baby, @function
baby:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 8
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 0
.L21:
	lea	rdi, Mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, DWORD PTR finish[rip]
	test	eax, eax
	je	.L17
	lea	rdi, Mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L23
.L17:
	mov	eax, DWORD PTR foodbits[rip]
	test	eax, eax
	jg	.L19
	lea	rdi, ParentCond[rip]
	call	pthread_cond_signal@PLT
	lea	rsi, Mutex[rip]
	lea	rdi, ChildCond[rip]
	call	pthread_cond_wait@PLT
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR foodbits[rip]
	sub	eax, 1
	mov	DWORD PTR foodbits[rip], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	sub	edx, 1
	mov	DWORD PTR [rax], edx
.L20:
	lea	rdi, Mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L21
.L23:
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	baby, .-baby
	.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	"602562.c"
	.text
	.global	Mutex
	.bss
	.align	2
	.type	Mutex, %object
	.size	Mutex, 24
Mutex:
	.space	24
	.global	ParentCond
	.align	3
	.type	ParentCond, %object
	.size	ParentCond, 48
ParentCond:
	.space	48
	.global	ChildCond
	.align	3
	.type	ChildCond, %object
	.size	ChildCond, 48
ChildCond:
	.space	48
	.global	finish
	.align	2
	.type	finish, %object
	.size	finish, 4
finish:
	.space	4
	.global	foodbits
	.align	2
	.type	foodbits, %object
	.size	foodbits, 4
foodbits:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Program invoked with wrong number of arguments.\000"
	.align	2
.LC1:
	.ascii	"Program usage: %s <n. babybirds> <n. food portions>"
	.ascii	" <n. refills>\012\000"
	.align	2
.LC2:
	.ascii	"\012Simulation started\000"
	.align	2
.LC3:
	.ascii	"\012Number of bits of food eaten by baby %d / total"
	.ascii	" of bits: %ld / %ld \000"
	.align	2
.LC4:
	.ascii	"\012Total eaten %d\000"
	.align	2
.LC5:
	.ascii	"\012Simulation 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 = 1272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1264
	sub	sp, sp, #8
	str	r0, [fp, #-1272]
	str	r1, [fp, #-1276]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L8+4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	setbuf
	mov	r3, #0
	str	r3, [fp, #-1264]
	mov	r3, #0
	str	r3, [fp, #-1260]
	ldr	r3, [fp, #-1272]
	cmp	r3, #4
	beq	.L2
	ldr	r0, .L8+8
	bl	puts
	ldr	r3, [fp, #-1276]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L8+12
	bl	printf
	mvn	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-1276]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1236]
	ldr	r3, [fp, #-1276]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1232]
	ldr	r3, [fp, #-1276]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-1228]
	ldr	r0, .L8+16
	bl	puts
	ldr	r3, [fp, #-1232]
	str	r3, [fp, #-1220]
	ldr	r3, [fp, #-1228]
	str	r3, [fp, #-1216]
	sub	r3, fp, #1248
	sub	r3, r3, #4
	sub	r3, r3, #12
	str	r3, [fp, #-1212]
	sub	r3, fp, #1216
	sub	r3, r3, #4
	sub	r0, fp, #1248
	sub	r0, r0, #4
	sub	r0, r0, #4
	ldr	r2, .L8+20
	mov	r1, #0
	bl	pthread_create
	mov	r3, #0
	str	r3, [fp, #-1248]
	b	.L3
.L4:
	ldr	r3, [fp, #-1248]
	lsl	r3, r3, #3
	sub	r2, fp, #808
	add	r3, r2, r3
	str	r3, [fp, #-1224]
	ldr	r3, [fp, #-1224]
	ldr	r2, [fp, #-1248]
	str	r2, [r3]
	ldr	r2, [fp, #-1224]
	sub	r3, fp, #1248
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [r2, #4]
	ldr	r3, [fp, #-1248]
	lsl	r2, r3, #2
	sub	r3, fp, #1200
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r0, r3, r2
	ldr	r3, [fp, #-1224]
	ldr	r2, .L8+24
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-1248]
	add	r3, r3, #1
	str	r3, [fp, #-1248]
.L3:
	ldr	r2, [fp, #-1248]
	ldr	r3, [fp, #-1236]
	cmp	r2, r3
	blt	.L4
	ldr	r3, [fp, #-1256]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	str	r3, [fp, #-1244]
	mov	r3, #0
	str	r3, [fp, #-1240]
	b	.L5
.L6:
	ldr	r3, [fp, #-1240]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-1204]
	sub	r2, fp, #1248
	sub	r2, r2, #4
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-1252]
	ldr	r1, [r3]
	ldr	r3, [fp, #-1232]
	ldr	r2, [fp, #-1228]
	mul	r3, r2, r3
	mov	r2, r1
	ldr	r1, [fp, #-1240]
	ldr	r0, .L8+28
	bl	printf
	ldr	r3, [fp, #-1252]
	ldr	r3, [r3]
	ldr	r2, [fp, #-1244]
	add	r3, r2, r3
	str	r3, [fp, #-1244]
	ldr	r3, [fp, #-1252]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-1240]
	add	r3, r3, #1
	str	r3, [fp, #-1240]
.L5:
	ldr	r2, [fp, #-1240]
	ldr	r3, [fp, #-1236]
	cmp	r2, r3
	blt	.L6
	ldr	r1, [fp, #-1244]
	ldr	r0, .L8+32
	bl	printf
	ldr	r0, .L8+36
	bl	puts
	mov	r0, #0
	bl	exit
.L9:
	.align	2
.L8:
	.word	.LC6
	.word	stdout
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	parent
	.word	baby
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	main, .-main
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\012\011Parent starting\000"
	.align	2
.LC8:
	.ascii	"\012\011Parent received args f (%d), r (%ld), worki"
	.ascii	"ng (%d)\000"
	.align	2
.LC9:
	.ascii	"\012\011Parent finishing\000"
	.text
	.align	2
	.global	parent
	.syntax unified
	.arm
	.fpu softvfp
	.type	parent, %function
parent:
	@ 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	r2, [fp, #-24]
	sub	r3, fp, #16
	ldm	r2, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	ldr	r0, .L18
	bl	printf
	ldr	r1, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r0, .L18+4
	bl	printf
	b	.L11
.L16:
	ldr	r0, .L18+8
	bl	pthread_mutex_lock
	b	.L12
.L13:
	ldr	r1, .L18+8
	ldr	r0, .L18+12
	bl	pthread_cond_wait
.L12:
	ldr	r3, .L18+16
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L13
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	str	r2, [fp, #-12]
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3]
	ldr	r2, [fp, #-16]
	ldr	r3, .L18+16
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L18+16
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	b	.L15
.L14:
	ldr	r3, .L18+20
	mov	r2, #1
	str	r2, [r3]
.L15:
	ldr	r0, .L18+24
	bl	pthread_cond_broadcast
	ldr	r0, .L18+8
	bl	pthread_mutex_unlock
.L11:
	ldr	r3, .L18+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r0, .L18+28
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC7
	.word	.LC8
	.word	Mutex
	.word	ParentCond
	.word	foodbits
	.word	finish
	.word	ChildCond
	.word	.LC9
	.size	parent, .-parent
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012   Baby bird %d beginning\000"
	.align	2
.LC11:
	.ascii	"\012   Baby received args id (%d), eating (%d)\000"
	.align	2
.LC12:
	.ascii	"\012   Baby bird %d finishing\000"
	.text
	.align	2
	.global	baby
	.syntax unified
	.arm
	.fpu softvfp
	.type	baby, %function
baby:
	@ 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	r2, [fp, #-24]
	sub	r3, fp, #12
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L28
	bl	printf
	ldr	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L28+4
	bl	printf
	mov	r0, #4
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
.L25:
	ldr	r0, .L28+8
	bl	pthread_mutex_lock
	ldr	r3, .L28+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
	ldr	r0, .L28+8
	bl	pthread_mutex_unlock
	b	.L27
.L21:
	ldr	r3, .L28+16
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L23
	ldr	r0, .L28+20
	bl	pthread_cond_signal
	ldr	r1, .L28+8
	ldr	r0, .L28+24
	bl	pthread_cond_wait
	b	.L24
.L23:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, .L28+16
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L28+16
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	sub	r2, r2, #1
	str	r2, [r3]
.L24:
	ldr	r0, .L28+8
	bl	pthread_mutex_unlock
	b	.L25
.L27:
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L28+28
	bl	printf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC10
	.word	.LC11
	.word	Mutex
	.word	finish
	.word	foodbits
	.word	ParentCond
	.word	ChildCond
	.word	.LC12
	.size	baby, .-baby
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
