	.file	"506214.c"
	.intel_syntax noprefix
	.text
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"I am running verry important process %i ...\n"
.LC1:
	.string	"YOU WILL NOT STOP ME!!!"
	.text
	.globl	thread_func
	.type	thread_func, @function
thread_func:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	edi, 0
	mov	eax, 0
	call	pthread_setcanceltype@PLT
	mov	edi, 0
	mov	eax, 0
	call	pthread_setcancelstate@PLT
	mov	DWORD PTR i[rip], 0
	jmp	.L2
.L3:
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L2:
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 3
	jle	.L3
	mov	eax, 0
	call	pthread_testcancel@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	thread_func, .-thread_func
	.section	.rodata
	.align 8
.LC2:
	.string	"Requsted to cancel the thread!"
.LC3:
	.string	"The thread is stopped!"
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	jmp	.L5
.L6:
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
.L5:
	mov	eax, DWORD PTR i[rip]
	test	eax, eax
	jle	.L6
	mov	rax, QWORD PTR fread@GOTPCREL[rip]
	mov	rdi, rax
	call	thread_func
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR fread@GOTPCREL[rip]
	mov	rdi, rax
	mov	eax, 0
	call	pthread_join@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	eax, 0
	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	"506214.c"
	.text
	.comm	i,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"I am running verry important process %i ...\012\000"
	.align	2
.LC1:
	.ascii	"YOU WILL NOT STOP ME!!!\000"
	.text
	.align	2
	.global	thread_func
	.syntax unified
	.arm
	.fpu softvfp
	.type	thread_func, %function
thread_func:
	@ 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]
	mov	r0, #0
	bl	pthread_setcanceltype
	mov	r0, #0
	bl	pthread_setcancelstate
	ldr	r3, .L4
	mov	r2, #0
	str	r2, [r3]
	b	.L2
.L3:
	mov	r0, #1
	bl	sleep
	ldr	r3, .L4
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L4+4
	bl	printf
	ldr	r3, .L4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L4
	str	r3, [r2]
.L2:
	ldr	r3, .L4
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L3
	bl	pthread_testcancel
	ldr	r0, .L4+8
	bl	puts
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	i
	.word	.LC0
	.word	.LC1
	.size	thread_func, .-thread_func
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Requsted to cancel the thread!\000"
	.align	2
.LC3:
	.ascii	"The thread is stopped!\000"
	.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
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	b	.L7
.L8:
	mov	r0, #1
	bl	sleep
.L7:
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L8
	ldr	r0, .L10+4
	bl	thread_func
	ldr	r0, .L10+8
	bl	puts
	ldr	r0, .L10+4
	bl	pthread_join
	ldr	r0, .L10+12
	bl	puts
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	i
	.word	fread
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
