	.file	"959294.c"
	.intel_syntax noprefix
	.text
	.local	Ready
	.comm	Ready,4,4
	.section	.rodata
.LC0:
	.string	"Thread was cancelled"
	.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	ecx, 0
	lea	rdx, Thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	jmp	.L2
.L3:
	call	sched_yield@PLT
.L2:
	mov	eax, DWORD PTR Ready[rip]
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	pthread_cancel@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	Val
	.bss
	.align 4
	.type	Val, @object
	.size	Val, 4
Val:
	.zero	4
	.globl	A
	.data
	.align 4
	.type	A, @object
	.size	A, 4
A:
	.long	5
	.globl	B
	.align 4
	.type	B, @object
	.size	B, 4
B:
	.long	4
	.text
	.type	Thread, @function
Thread:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, Terminate[rip]
	mov	QWORD PTR -160[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 14
	call	sigaction@PLT
	mov	edi, 180
	call	alarm@PLT
	mov	esi, 0
	mov	edi, 1
	call	pthread_setcanceltype@PLT
	mov	DWORD PTR Ready[rip], 1
.L7:
	mov	eax, DWORD PTR A[rip]
	mov	ecx, DWORD PTR B[rip]
	mov	edx, 0
	div	ecx
	mov	DWORD PTR Val[rip], eax
	jmp	.L7
	.cfi_endproc
.LFE7:
	.size	Thread, .-Thread
	.section	.rodata
.LC1:
	.string	"Thread not cancelled"
	.text
	.type	Terminate, @function
Terminate:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	Terminate, .-Terminate
	.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	"959294.c"
	.text
	.local	Ready
	.comm	Ready,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Thread was cancelled\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #12
	mov	r3, #0
	ldr	r2, .L6+4
	mov	r1, #0
	bl	pthread_create
	b	.L2
.L3:
	bl	sched_yield
.L2:
	ldr	r3, .L6+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	pthread_cancel
	ldr	r3, [fp, #-12]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r0, .L6+12
	bl	puts
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	Thread
	.word	Ready
	.word	.LC0
	.size	main, .-main
	.comm	Val,4,4
	.global	A
	.data
	.align	2
	.type	A, %object
	.size	A, 4
A:
	.word	5
	.global	B
	.align	2
	.type	B, %object
	.size	B, 4
B:
	.word	4
	.global	__aeabi_uidiv
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Thread, %function
Thread:
	@ 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, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L11+4
	str	r3, [fp, #-148]
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #14
	bl	sigaction
	mov	r0, #180
	bl	alarm
	mov	r1, #0
	mov	r0, #1
	bl	pthread_setcanceltype
	ldr	r3, .L11+8
	mov	r2, #1
	str	r2, [r3]
.L9:
	ldr	r3, .L11+12
	ldr	r3, [r3]
	ldr	r2, .L11+16
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L11+20
	str	r2, [r3]
	b	.L9
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	Terminate
	.word	Ready
	.word	A
	.word	B
	.word	Val
	.size	Thread, .-Thread
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Thread not cancelled\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	Terminate, %function
Terminate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, .L14
	bl	puts
	mov	r0, #1
	bl	exit
.L15:
	.align	2
.L14:
	.word	.LC3
	.size	Terminate, .-Terminate
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
