	.file	"162643292.c"
	.intel_syntax noprefix
	.text
	.local	ready
	.comm	ready,4,4
	.local	mutex
	.comm	mutex,40,32
	.local	cond
	.comm	cond,48,32
	.type	mythr, @function
mythr:
.LFB0:
	.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	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	DWORD PTR ready[rip], 1
	lea	rdi, cond[rip]
	call	pthread_cond_signal@PLT
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigfillset@PLT
.L2:
	mov	QWORD PTR -160[rbp], 10000
	mov	QWORD PTR -152[rbp], 0
	lea	rdx, -144[rbp]
	lea	rax, -160[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	esi, 0
	mov	edi, 0
	call	ppoll@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	mythr, .-mythr
	.section	.rodata
.LC0:
	.string	"pthread_create failed\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, mythr[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	eax, 1
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L10
	jmp	.L11
.L5:
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	jmp	.L7
.L8:
	lea	rsi, mutex[rip]
	lea	rdi, cond[rip]
	call	pthread_cond_wait@PLT
.L7:
	mov	eax, DWORD PTR ready[rip]
	test	eax, eax
	je	.L8
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 1
	call	alarm@PLT
.L9:
	mov	edi, 1
	call	sleep@PLT
	jmp	.L9
.L11:
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"162643292.c"
	.text
	.local	ready
	.comm	ready,4,4
	.local	mutex
	.comm	mutex,24,4
	.local	cond
	.comm	cond,48,8
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mythr, %function
mythr:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L4+4
	bl	pthread_mutex_lock
	ldr	r3, .L4+8
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, .L4+12
	bl	pthread_cond_signal
	ldr	r0, .L4+4
	bl	pthread_mutex_unlock
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigfillset
.L2:
	ldr	r3, .L4+16
	str	r3, [fp, #-144]
	mov	r3, #0
	str	r3, [fp, #-140]
	sub	r3, fp, #136
	sub	r2, fp, #144
	mov	r1, #0
	mov	r0, #0
	bl	ppoll
	b	.L2
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	mutex
	.word	ready
	.word	cond
	.word	10000
	.size	mythr, .-mythr
	.section	.rodata
	.align	2
.LC1:
	.ascii	"pthread_create failed\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
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
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #16
	mov	r3, #0
	ldr	r2, .L14+4
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L14+8
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L14+12
	bl	fwrite
	mov	r3, #1
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	b	.L13
.L7:
	ldr	r0, .L14+16
	bl	pthread_mutex_lock
	b	.L9
.L10:
	ldr	r1, .L14+16
	ldr	r0, .L14+20
	bl	pthread_cond_wait
.L9:
	ldr	r3, .L14+24
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L14+16
	bl	pthread_mutex_unlock
	mov	r0, #1
	bl	alarm
.L11:
	mov	r0, #1
	bl	sleep
	b	.L11
.L13:
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC2
	.word	mythr
	.word	stderr
	.word	.LC1
	.word	mutex
	.word	cond
	.word	ready
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
