	.file	"615154.c"
	.intel_syntax noprefix
	.text
	.globl	cond
	.bss
	.align 4
	.type	cond, @object
	.size	cond, 4
cond:
	.zero	4
	.globl	cond_mutex
	.align 32
	.type	cond_mutex, @object
	.size	cond_mutex, 40
cond_mutex:
	.zero	40
	.globl	cond_pcond
	.align 32
	.type	cond_pcond, @object
	.size	cond_pcond, 48
cond_pcond:
	.zero	48
	.text
	.globl	t1_main
	.type	t1_main, @function
t1_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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L4:
	mov	eax, DWORD PTR cond[rip]
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR cond[rip], eax
	mov	edi, 1
	call	sleep@PLT
	mov	eax, DWORD PTR cond[rip]
	test	eax, eax
	je	.L3
	lea	rdi, cond_pcond[rip]
	call	pthread_cond_signal@PLT
.L3:
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -4[rbp], 2
	jle	.L4
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	t1_main, .-t1_main
	.section	.rodata
.LC0:
	.string	"t2_main wakeup ret == %d\n"
.LC1:
	.string	"\tret == ETIMEDOUT"
	.align 8
.LC2:
	.string	"Timespec wait: %ld seconds %lu usec\n"
	.text
	.globl	t2_main
	.type	t2_main, @function
t2_main:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, rax, 1000
	add	rax, 100000000
	mov	QWORD PTR -40[rbp], rax
.L8:
	lea	rdi, cond_mutex[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L6
.L7:
	lea	rax, -48[rbp]
	mov	rdx, rax
	lea	rsi, cond_mutex[rip]
	lea	rdi, cond_pcond[rip]
	call	pthread_cond_timedwait@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -60[rbp], 0
	je	.L6
	cmp	DWORD PTR -60[rbp], 110
	jne	.L6
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L6:
	mov	eax, DWORD PTR cond[rip]
	test	eax, eax
	je	.L7
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, cond_mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L8
	.cfi_endproc
.LFE7:
	.size	t2_main, .-t2_main
	.globl	t3_main
	.type	t3_main, @function
t3_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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, rax, 1000
	add	rax, 100000000
	mov	QWORD PTR -40[rbp], rax
.L13:
	lea	rdi, cond_mutex[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L11
.L12:
	lea	rax, -48[rbp]
	mov	rdx, rax
	lea	rsi, cond_mutex[rip]
	lea	rdi, cond_pcond[rip]
	call	pthread_cond_timedwait@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -60[rbp], 0
	je	.L11
	cmp	DWORD PTR -60[rbp], 110
	jne	.L11
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L11:
	mov	eax, DWORD PTR cond[rip]
	test	eax, eax
	je	.L12
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, cond_mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L13
	.cfi_endproc
.LFE8:
	.size	t3_main, .-t3_main
	.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	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, t1_main[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, t2_main[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	edi, 0
	call	pthread_exit@PLT
	.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	"615154.c"
	.text
	.comm	cond,4,4
	.global	cond_mutex
	.bss
	.align	2
	.type	cond_mutex, %object
	.size	cond_mutex, 24
cond_mutex:
	.space	24
	.global	cond_pcond
	.align	3
	.type	cond_pcond, %object
	.size	cond_pcond, 48
cond_pcond:
	.space	48
	.text
	.align	2
	.global	t1_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	t1_main, %function
t1_main:
	@ 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, #-8]
	b	.L2
.L4:
	ldr	r3, .L5
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, .L5
	str	r2, [r3]
	mov	r0, #1
	bl	sleep
	ldr	r3, .L5
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r0, .L5+4
	bl	pthread_cond_signal
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	ble	.L4
	mov	r0, #0
	bl	exit
.L6:
	.align	2
.L5:
	.word	cond
	.word	cond_pcond
	.size	t1_main, .-t1_main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"t2_main wakeup ret == %d\012\000"
	.align	2
.LC1:
	.ascii	"\011ret == ETIMEDOUT\000"
	.align	2
.LC2:
	.ascii	"Timespec wait: %ld seconds %lu usec\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	t2_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	t2_main, %function
t2_main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, .L12+4
	add	r3, r2, r3
	str	r3, [fp, #-20]
.L10:
	ldr	r0, .L12+8
	bl	pthread_mutex_lock
	b	.L8
.L9:
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L12+8
	ldr	r0, .L12+12
	bl	pthread_cond_timedwait
	str	r0, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, .L12+16
	bl	printf
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-28]
	cmp	r3, #110
	bne	.L8
	ldr	r0, .L12+20
	bl	puts
.L8:
	ldr	r3, .L12+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L12+28
	bl	printf
	ldr	r0, .L12+8
	bl	pthread_mutex_unlock
	b	.L10
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	100000000
	.word	cond_mutex
	.word	cond_pcond
	.word	.LC0
	.word	.LC1
	.word	cond
	.word	.LC2
	.size	t2_main, .-t2_main
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	t3_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	t3_main, %function
t3_main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-12]
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r2, r3
	ldr	r3, .L19+4
	add	r3, r2, r3
	str	r3, [fp, #-20]
.L17:
	ldr	r0, .L19+8
	bl	pthread_mutex_lock
	b	.L15
.L16:
	sub	r3, fp, #24
	mov	r2, r3
	ldr	r1, .L19+8
	ldr	r0, .L19+12
	bl	pthread_cond_timedwait
	str	r0, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, .L19+16
	bl	printf
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-28]
	cmp	r3, #110
	bne	.L15
	ldr	r0, .L19+20
	bl	puts
.L15:
	ldr	r3, .L19+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L19+28
	bl	printf
	ldr	r0, .L19+8
	bl	pthread_mutex_unlock
	b	.L17
.L20:
	.align	2
.L19:
	.word	.LC4
	.word	100000000
	.word	cond_mutex
	.word	cond_pcond
	.word	.LC0
	.word	.LC1
	.word	cond
	.word	.LC2
	.size	t3_main, .-t3_main
	.section	.rodata
	.align	2
.LC5:
	.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, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L23+4
	mov	r1, #0
	bl	pthread_create
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L23+8
	mov	r1, #0
	bl	pthread_create
	mov	r0, #0
	bl	pthread_exit
.L24:
	.align	2
.L23:
	.word	.LC5
	.word	t1_main
	.word	t2_main
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
