	.file	"920323.c"
	.intel_syntax noprefix
	.text
	.globl	num_cucumbers
	.bss
	.align 4
	.type	num_cucumbers, @object
	.size	num_cucumbers, 4
num_cucumbers:
	.zero	4
	.globl	num_tomatoes
	.align 4
	.type	num_tomatoes, @object
	.size	num_tomatoes, 4
num_tomatoes:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Cook chopping and tossing..."
.LC1:
	.string	"Cook is done..."
	.text
	.globl	cook_fn
	.type	cook_fn, @function
cook_fn:
.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	DWORD PTR -4[rbp], 10
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L3:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, DWORD PTR num_cucumbers[rip]
	sub	eax, 2
	mov	DWORD PTR num_cucumbers[rip], eax
	mov	eax, DWORD PTR num_tomatoes[rip]
	sub	eax, 3
	mov	DWORD PTR num_tomatoes[rip], eax
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L3
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cook_fn, .-cook_fn
	.section	.rodata
.LC2:
	.string	"Farmer producing produce..."
.LC3:
	.string	"Total cucumber produced: %d\n"
.LC4:
	.string	"Total tomatoes produced: %d\n"
	.text
	.globl	farmer_fn
	.type	farmer_fn, @function
farmer_fn:
.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	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L8:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR num_cucumbers[rip]
	add	eax, 1
	mov	DWORD PTR num_cucumbers[rip], eax
	add	DWORD PTR -8[rbp], 1
	mov	eax, DWORD PTR num_tomatoes[rip]
	add	eax, 1
	mov	DWORD PTR num_tomatoes[rip], eax
	add	DWORD PTR -4[rbp], 1
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L6:
	cmp	DWORD PTR -8[rbp], 20
	jg	.L7
	cmp	DWORD PTR -4[rbp], 30
	jle	.L8
.L7:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	farmer_fn, .-farmer_fn
	.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
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, cook_fn[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, farmer_fn[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 -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	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	"920323.c"
	.text
	.global	num_cucumbers
	.bss
	.align	2
	.type	num_cucumbers, %object
	.size	num_cucumbers, 4
num_cucumbers:
	.space	4
	.global	num_tomatoes
	.align	2
	.type	num_tomatoes, %object
	.size	num_tomatoes, 4
num_tomatoes:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Cook chopping and tossing...\000"
	.align	2
.LC1:
	.ascii	"Cook is done...\000"
	.text
	.align	2
	.global	cook_fn
	.syntax unified
	.arm
	.fpu softvfp
	.type	cook_fn, %function
cook_fn:
	@ 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]
	mov	r3, #10
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r0, .L5
	bl	puts
	ldr	r3, .L5+4
	ldr	r3, [r3]
	sub	r3, r3, #2
	ldr	r2, .L5+4
	str	r3, [r2]
	ldr	r3, .L5+8
	ldr	r3, [r3]
	sub	r3, r3, #3
	ldr	r2, .L5+8
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L3
	ldr	r0, .L5+12
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	num_cucumbers
	.word	num_tomatoes
	.word	.LC1
	.size	cook_fn, .-cook_fn
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Farmer producing produce...\000"
	.align	2
.LC3:
	.ascii	"Total cucumber produced: %d\012\000"
	.align	2
.LC4:
	.ascii	"Total tomatoes produced: %d\012\000"
	.text
	.align	2
	.global	farmer_fn
	.syntax unified
	.arm
	.fpu softvfp
	.type	farmer_fn, %function
farmer_fn:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L8
.L10:
	ldr	r0, .L12
	bl	puts
	ldr	r3, .L12+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12+4
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12+8
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L12+12
	bl	printf
	ldr	r1, [fp, #-8]
	ldr	r0, .L12+16
	bl	printf
.L8:
	ldr	r3, [fp, #-12]
	cmp	r3, #20
	bgt	.L9
	ldr	r3, [fp, #-8]
	cmp	r3, #30
	ble	.L10
.L9:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	num_cucumbers
	.word	num_tomatoes
	.word	.LC3
	.word	.LC4
	.size	farmer_fn, .-farmer_fn
	.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 = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L17+4
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L17+8
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-16]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r0, .L17+12
	bl	puts
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC6
	.word	cook_fn
	.word	farmer_fn
	.word	.LC5
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
