	.file	"788508.c"
	.intel_syntax noprefix
	.text
	.local	buffer
	.comm	buffer,131072,512
	.globl	ios_per_time
	.section	.rodata
	.align 4
	.type	ios_per_time, @object
	.size	ios_per_time, 4
ios_per_time:
	.long	1
	.text
	.type	diff_timespec, @function
diff_timespec:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rdx, rax
	jle	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	add	rax, 1000000000
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	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
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	sub	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	sub	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	diff_timespec, .-diff_timespec
	.section	.rodata
.LC0:
	.string	"pread() fail"
.LC1:
	.string	"pwrite() fail"
.LC2:
	.string	"Illegal param: %c\n"
	.text
	.globl	do_io
	.type	do_io, @function
do_io:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -88[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -84[rbp], eax
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 64
	mov	rdi, rax
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR 8[rax], edx
.L12:
	mov	DWORD PTR -92[rbp], 0
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 64[rax]
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_cond_wait@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	lseek@PLT
	lea	rax, -64[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	jmp	.L4
.L11:
	cmp	DWORD PTR -84[rbp], 114
	je	.L5
	cmp	DWORD PTR -84[rbp], 119
	je	.L6
	jmp	.L14
.L5:
	mov	eax, DWORD PTR -88[rbp]
	mov	edx, 131072
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jns	.L15
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 0
	call	pthread_exit@PLT
.L6:
	mov	eax, DWORD PTR -88[rbp]
	mov	edx, 131072
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	write@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jns	.L16
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 0
	call	pthread_exit@PLT
.L14:
	mov	rax, QWORD PTR stdout[rip]
	mov	edx, DWORD PTR -84[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	pthread_exit@PLT
.L15:
	nop
	jmp	.L9
.L16:
	nop
.L9:
	add	DWORD PTR -92[rbp], 1
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 104[rax]
	test	eax, eax
	je	.L4
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR 104[rax]
	imul	eax, eax, 1000
	mov	edi, eax
	call	usleep@PLT
.L4:
	mov	eax, 1
	cmp	DWORD PTR -92[rbp], eax
	jl	.L11
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	lea	rdx, -32[rbp]
	lea	rcx, -48[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	diff_timespec
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 16
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	jmp	.L12
	.cfi_endproc
.LFE7:
	.size	do_io, .-do_io
	.section	.rodata
.LC3:
	.string	"Could not create thread\n"
	.text
	.type	start_thread, @function
start_thread:
.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	QWORD PTR -32[rbp], rsi
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	lea	rdx, do_io[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L19
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	start_thread, .-start_thread
	.section	.rodata
.LC4:
	.string	"d:"
	.align 8
.LC5:
	.string	"usage: %s [-d delayms] <r|w> <file>\n"
.LC6:
	.string	"Failure opening file."
	.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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L21
.L22:
	cmp	DWORD PTR -160[rbp], 100
	jne	.L21
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -24[rbp], eax
.L21:
	mov	rcx, QWORD PTR -176[rbp]
	mov	eax, DWORD PTR -164[rbp]
	lea	rdx, .LC4[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -160[rbp], eax
	cmp	DWORD PTR -160[rbp], -1
	jne	.L22
	cmp	DWORD PTR -164[rbp], 3
	je	.L23
	cmp	DWORD PTR -164[rbp], 5
	je	.L23
	mov	rax, QWORD PTR -176[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 384
	mov	esi, 16386
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	jns	.L24
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -176[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -128[rbp], eax
	mov	eax, DWORD PTR -156[rbp]
	mov	DWORD PTR -124[rbp], eax
	mov	DWORD PTR -120[rbp], 0
	lea	rax, -128[rbp]
	add	rax, 16
	mov	esi, 0
	mov	rdi, rax
	call	pthread_cond_init@PLT
	lea	rax, -128[rbp]
	add	rax, 64
	mov	esi, 0
	mov	rdi, rax
	call	pthread_mutex_init@PLT
	lea	rdx, -128[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	start_thread
	lea	rax, -128[rbp]
	lea	rdx, -144[rbp]
	add	rdx, 8
	mov	rsi, rax
	mov	rdi, rdx
	call	start_thread
	jmp	.L25
.L26:
	mov	edi, 1
	call	sleep@PLT
.L25:
	lea	rax, -128[rbp]
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	cmp	eax, 2
	jne	.L26
	lea	rax, -128[rbp]
	add	rax, 16
	mov	rdi, rax
	call	pthread_cond_signal@PLT
	mov	rax, QWORD PTR -144[rbp]
	lea	rdx, -152[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, -152[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	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	"788508.c"
	.text
	.local	buffer
	.comm	buffer,131072,512
	.global	ios_per_time
	.section	.rodata
	.align	2
	.type	ios_per_time, %object
	.size	ios_per_time, 4
ios_per_time:
	.word	1
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	diff_timespec, %function
diff_timespec:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	ble	.L2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r3, .L3
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
.L2:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L4:
	.align	2
.L3:
	.word	1000000000
	.size	diff_timespec, .-diff_timespec
	.section	.rodata
	.align	2
.LC0:
	.ascii	"pread() fail\000"
	.align	2
.LC1:
	.ascii	"pwrite() fail\000"
	.align	2
.LC2:
	.ascii	"Illegal param: %c\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_io
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_io, %function
do_io:
	@ 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]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	add	r3, r3, #64
	mov	r0, r3
	bl	pthread_mutex_lock
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #8]
	add	r2, r3, #1
	ldr	r3, [fp, #-48]
	str	r2, [r3, #8]
.L14:
	mov	r3, #0
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-48]
	add	r2, r3, #16
	ldr	r3, [fp, #-48]
	add	r3, r3, #64
	mov	r1, r3
	mov	r0, r2
	bl	pthread_cond_wait
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-44]
	bl	lseek
	sub	r3, fp, #32
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	b	.L6
.L13:
	ldr	r3, [fp, #-40]
	cmp	r3, #114
	beq	.L7
	ldr	r3, [fp, #-40]
	cmp	r3, #119
	beq	.L8
	b	.L16
.L7:
	mov	r2, #131072
	ldr	r1, .L19+4
	ldr	r0, [fp, #-44]
	bl	read
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L19+8
	bl	perror
	mov	r0, #0
	bl	pthread_exit
.L8:
	mov	r2, #131072
	ldr	r1, .L19+4
	ldr	r0, [fp, #-44]
	bl	write
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L19+12
	bl	perror
	mov	r0, #0
	bl	pthread_exit
.L16:
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, .L19+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #0
	bl	pthread_exit
.L17:
	nop
	b	.L11
.L18:
	nop
.L11:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #88]
	cmp	r3, #0
	beq	.L6
	ldr	r3, [fp, #-48]
	ldr	r2, [r3, #88]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	usleep
.L6:
	mov	r2, #1
	ldr	r3, [fp, #-52]
	cmp	r3, r2
	blt	.L13
	sub	r3, fp, #24
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	sub	r2, fp, #16
	sub	r1, fp, #24
	sub	r3, fp, #32
	mov	r0, r3
	bl	diff_timespec
	ldr	r3, [fp, #-48]
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_cond_signal
	b	.L14
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	buffer
	.word	.LC0
	.word	.LC1
	.word	stdout
	.word	.LC2
	.size	do_io, .-do_io
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Could not create thread\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_thread, %function
start_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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, .L24
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	pthread_create
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L23
	ldr	r0, .L24+4
	bl	perror
	mov	r0, #1
	bl	exit
.L23:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	do_io
	.word	.LC4
	.size	start_thread, .-start_thread
	.section	.rodata
	.align	2
.LC5:
	.ascii	"d:\000"
	.align	2
.LC6:
	.ascii	"usage: %s [-d delayms] <r|w> <file>\012\000"
	.align	2
.LC7:
	.ascii	"Failure opening file.\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L27
.L28:
	ldr	r3, [fp, #-124]
	cmp	r3, #100
	bne	.L27
	ldr	r3, .L35+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-20]
.L27:
	ldr	r2, .L35+8
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-136]
	bl	getopt
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmn	r3, #1
	bne	.L28
	ldr	r3, [fp, #-136]
	cmp	r3, #3
	beq	.L29
	ldr	r3, [fp, #-136]
	cmp	r3, #5
	beq	.L29
	ldr	r3, .L35+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-140]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L35+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L29:
	ldr	r3, .L35+20
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #384
	ldr	r1, .L35+24
	mov	r0, r3
	bl	open
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bge	.L30
	ldr	r0, .L35+28
	bl	perror
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, .L35+20
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-120]
	str	r3, [fp, #-104]
	mov	r3, #0
	str	r3, [fp, #-100]
	sub	r3, fp, #108
	add	r3, r3, #16
	mov	r1, #0
	mov	r0, r3
	bl	pthread_cond_init
	sub	r3, fp, #108
	add	r3, r3, #64
	mov	r1, #0
	mov	r0, r3
	bl	pthread_mutex_init
	sub	r2, fp, #108
	sub	r3, fp, #116
	mov	r1, r2
	mov	r0, r3
	bl	start_thread
	sub	r2, fp, #108
	sub	r3, fp, #116
	add	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	start_thread
	b	.L31
.L32:
	mov	r0, #1
	bl	sleep
.L31:
	sub	r3, fp, #108
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #2
	bne	.L32
	sub	r3, fp, #108
	add	r3, r3, #16
	mov	r0, r3
	bl	pthread_cond_signal
	ldr	r3, [fp, #-116]
	sub	r2, fp, #128
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-112]
	sub	r2, fp, #128
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L35
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L34
	bl	__stack_chk_fail
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC8
	.word	optarg
	.word	.LC5
	.word	stderr
	.word	.LC6
	.word	optind
	.word	65538
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
