	.file	"548255.c"
	.intel_syntax noprefix
	.text
	.globl	worker_ready
	.bss
	.align 4
	.type	worker_ready, @object
	.size	worker_ready, 4
worker_ready:
	.zero	4
	.globl	main_ready
	.align 4
	.type	main_ready, @object
	.size	main_ready, 4
main_ready:
	.zero	4
	.section	.rodata
.LC0:
	.string	"the_stack_data/548255.c"
	.align 8
.LC1:
	.string	"!pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL)"
	.align 8
.LC2:
	.string	"!pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS, NULL)"
	.text
	.type	worker1, @function
worker1:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	mov	edi, 0
	call	pthread_setcancelstate@PLT
	test	eax, eax
	je	.L2
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 10
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L2:
	mov	esi, 0
	mov	edi, 1
	call	pthread_setcanceltype@PLT
	test	eax, eax
	je	.L3
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 11
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L3:
	mov	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	xchg	eax, DWORD PTR worker_ready[rip]
.L4:
	mov	edi, 1
	call	sleep@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	worker1, .-worker1
	.section	.rodata
.LC3:
	.string	"!\"Expected to be cancelled!\""
	.text
	.type	worker2, @function
worker2:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	mov	edi, 0
	call	pthread_setcancelstate@PLT
	test	eax, eax
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 22
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L7:
	mov	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	xchg	eax, DWORD PTR worker_ready[rip]
	nop
.L8:
	mov	eax, DWORD PTR main_ready[rip]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L8
	mov	edi, 1
	call	sleep@PLT
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 31
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
	.cfi_endproc
.LFE1:
	.size	worker2, .-worker2
	.type	worker3, @function
worker3:
.LFB2:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	mov	edi, 0
	call	pthread_setcancelstate@PLT
	test	eax, eax
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 37
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L11:
	mov	DWORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -16[rbp]
	xchg	eax, DWORD PTR worker_ready[rip]
	nop
.L12:
	mov	eax, DWORD PTR main_ready[rip]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	je	.L12
	call	pthread_testcancel@PLT
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 46
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
	.cfi_endproc
.LFE2:
	.size	worker3, .-worker3
	.type	worker4, @function
worker4:
.LFB3:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	mov	edi, 0
	call	pthread_setcancelstate@PLT
	test	eax, eax
	je	.L15
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 52
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L15:
	mov	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	xchg	eax, DWORD PTR worker_ready[rip]
	mov	edi, 1
	call	sleep@PLT
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 59
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
	.cfi_endproc
.LFE3:
	.size	worker4, .-worker4
	.type	worker5, @function
worker5:
.LFB4:
	.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	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	mov	edi, 0
	call	pthread_setcancelstate@PLT
	test	eax, eax
	je	.L18
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 64
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L18:
	mov	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	xchg	eax, DWORD PTR worker_ready[rip]
	nop
.L19:
	mov	eax, DWORD PTR main_ready[rip]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	je	.L19
	call	pthread_testcancel@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR [rax], 1
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	worker5, .-worker5
	.section	.rodata
.LC4:
	.string	"!ret"
.LC5:
	.string	"ret_val == PTHREAD_CANCELED"
	.text
	.type	check_result, @function
check_result:
.LFB5:
	.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	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -16[rbp], 0
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	je	.L23
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 83
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L23:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, -1
	je	.L26
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 84
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L26:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	check_result, .-check_result
	.section	.rodata
.LC6:
	.string	"!ret_val"
.LC7:
	.string	"pthread_arg == 1"
	.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, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, worker1[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L47
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 90
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L47:
	nop
.L29:
	mov	eax, DWORD PTR worker_ready[rip]
	mov	DWORD PTR -108[rbp], eax
	mov	eax, DWORD PTR -108[rbp]
	test	eax, eax
	je	.L29
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_cancel@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L30
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 94
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L30:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	check_result
	mov	DWORD PTR -104[rbp], 0
	mov	eax, DWORD PTR -104[rbp]
	xchg	eax, DWORD PTR main_ready[rip]
	mov	DWORD PTR -100[rbp], 0
	mov	eax, DWORD PTR -100[rbp]
	xchg	eax, DWORD PTR worker_ready[rip]
	mov	DWORD PTR -96[rbp], 0
	mov	eax, DWORD PTR -96[rbp]
	xchg	eax, DWORD PTR main_ready[rip]
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, worker2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L48
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 101
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L48:
	nop
.L32:
	mov	eax, DWORD PTR worker_ready[rip]
	mov	DWORD PTR -92[rbp], eax
	mov	eax, DWORD PTR -92[rbp]
	test	eax, eax
	je	.L32
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_cancel@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L33
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 105
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L33:
	mov	DWORD PTR -88[rbp], 1
	mov	eax, DWORD PTR -88[rbp]
	xchg	eax, DWORD PTR main_ready[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	check_result
	mov	DWORD PTR -84[rbp], 0
	mov	eax, DWORD PTR -84[rbp]
	xchg	eax, DWORD PTR main_ready[rip]
	mov	DWORD PTR -80[rbp], 0
	mov	eax, DWORD PTR -80[rbp]
	xchg	eax, DWORD PTR worker_ready[rip]
	mov	DWORD PTR -76[rbp], 0
	mov	eax, DWORD PTR -76[rbp]
	xchg	eax, DWORD PTR main_ready[rip]
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, worker3[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L49
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 113
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L49:
	nop
.L35:
	mov	eax, DWORD PTR worker_ready[rip]
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	test	eax, eax
	je	.L35
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_cancel@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L36
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 117
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L36:
	mov	DWORD PTR -68[rbp], 1
	mov	eax, DWORD PTR -68[rbp]
	xchg	eax, DWORD PTR main_ready[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	check_result
	mov	DWORD PTR -64[rbp], 0
	mov	eax, DWORD PTR -64[rbp]
	xchg	eax, DWORD PTR worker_ready[rip]
	mov	DWORD PTR -60[rbp], 0
	mov	eax, DWORD PTR -60[rbp]
	xchg	eax, DWORD PTR main_ready[rip]
	lea	rax, -24[rbp]
	mov	ecx, 0
	lea	rdx, worker4[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L50
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 124
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L50:
	nop
.L38:
	mov	eax, DWORD PTR worker_ready[rip]
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	test	eax, eax
	je	.L38
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	pthread_cancel@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L39
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 128
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L39:
	mov	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	xchg	eax, DWORD PTR main_ready[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	check_result
	mov	DWORD PTR -48[rbp], 0
	mov	eax, DWORD PTR -48[rbp]
	xchg	eax, DWORD PTR worker_ready[rip]
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -40[rbp], 0
	mov	eax, DWORD PTR -40[rbp]
	xchg	eax, DWORD PTR main_ready[rip]
	lea	rdx, -44[rbp]
	lea	rax, -24[rbp]
	mov	rcx, rdx
	lea	rdx, worker5[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L51
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 138
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L51:
	nop
.L41:
	mov	eax, DWORD PTR worker_ready[rip]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	test	eax, eax
	je	.L41
	mov	DWORD PTR -32[rbp], 1
	mov	eax, DWORD PTR -32[rbp]
	xchg	eax, DWORD PTR main_ready[rip]
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	je	.L42
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 145
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L42:
	mov	rax, QWORD PTR -16[rbp]
	test	rax, rax
	je	.L43
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 146
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L43:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 1
	je	.L44
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 147
	lea	rsi, .LC0[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L44:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.6, @object
	.size	__PRETTY_FUNCTION__.6, 8
__PRETTY_FUNCTION__.6:
	.string	"worker1"
	.align 8
	.type	__PRETTY_FUNCTION__.5, @object
	.size	__PRETTY_FUNCTION__.5, 8
__PRETTY_FUNCTION__.5:
	.string	"worker2"
	.align 8
	.type	__PRETTY_FUNCTION__.4, @object
	.size	__PRETTY_FUNCTION__.4, 8
__PRETTY_FUNCTION__.4:
	.string	"worker3"
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 8
__PRETTY_FUNCTION__.3:
	.string	"worker4"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 8
__PRETTY_FUNCTION__.2:
	.string	"worker5"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 13
__PRETTY_FUNCTION__.1:
	.string	"check_result"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"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	"548255.c"
	.text
	.global	worker_ready
	.bss
	.align	2
	.type	worker_ready, %object
	.size	worker_ready, 4
worker_ready:
	.space	4
	.global	main_ready
	.align	2
	.type	main_ready, %object
	.size	main_ready, 4
main_ready:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/548255.c\000"
	.align	2
.LC1:
	.ascii	"!pthread_setcancelstate(PTHREAD_CANCEL_ENABLE, NULL"
	.ascii	")\000"
	.align	2
.LC2:
	.ascii	"!pthread_setcanceltype(PTHREAD_CANCEL_ASYNCHRONOUS,"
	.ascii	" NULL)\000"
	.global	__sync_synchronize
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker1, %function
worker1:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #0
	mov	r0, #0
	bl	pthread_setcancelstate
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L6+4
	mov	r2, #10
	ldr	r1, .L6+8
	ldr	r0, .L6+12
	bl	__assert_fail
.L2:
	mov	r1, #0
	mov	r0, #1
	bl	pthread_setcanceltype
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L6+4
	mov	r2, #11
	ldr	r1, .L6+8
	ldr	r0, .L6+16
	bl	__assert_fail
.L3:
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r5, r3
	ldr	r4, .L6+20
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
.L4:
	mov	r0, #1
	bl	sleep
	b	.L4
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	__PRETTY_FUNCTION__.5491
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	worker_ready
	.size	worker1, .-worker1
	.section	.rodata
	.align	2
.LC4:
	.ascii	"!\"Expected to be cancelled!\"\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker2, %function
worker2:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #0
	mov	r0, #0
	bl	pthread_setcancelstate
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L12+4
	mov	r2, #22
	ldr	r1, .L12+8
	ldr	r0, .L12+12
	bl	__assert_fail
.L9:
	mov	r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r5, r3
	ldr	r4, .L12+16
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	nop
.L10:
	ldr	r4, .L12+20
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L10
	mov	r0, #1
	bl	sleep
	ldr	r3, .L12+4
	mov	r2, #31
	ldr	r1, .L12+8
	ldr	r0, .L12+24
	bl	__assert_fail
.L13:
	.align	2
.L12:
	.word	.LC5
	.word	__PRETTY_FUNCTION__.5497
	.word	.LC0
	.word	.LC1
	.word	worker_ready
	.word	main_ready
	.word	.LC4
	.size	worker2, .-worker2
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker3, %function
worker3:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #0
	mov	r0, #0
	bl	pthread_setcancelstate
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L18+4
	mov	r2, #37
	ldr	r1, .L18+8
	ldr	r0, .L18+12
	bl	__assert_fail
.L15:
	mov	r3, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r5, r3
	ldr	r4, .L18+16
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	nop
.L16:
	ldr	r4, .L18+20
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L16
	bl	pthread_testcancel
	ldr	r3, .L18+4
	mov	r2, #46
	ldr	r1, .L18+8
	ldr	r0, .L18+24
	bl	__assert_fail
.L19:
	.align	2
.L18:
	.word	.LC6
	.word	__PRETTY_FUNCTION__.5506
	.word	.LC0
	.word	.LC1
	.word	worker_ready
	.word	main_ready
	.word	.LC4
	.size	worker3, .-worker3
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker4, %function
worker4:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #16
	str	r0, [fp, #-24]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #0
	mov	r0, #0
	bl	pthread_setcancelstate
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L23+4
	mov	r2, #52
	ldr	r1, .L23+8
	ldr	r0, .L23+12
	bl	__assert_fail
.L21:
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r5, r3
	ldr	r4, .L23+16
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	mov	r0, #1
	bl	sleep
	ldr	r3, .L23+4
	mov	r2, #59
	ldr	r1, .L23+8
	ldr	r0, .L23+20
	bl	__assert_fail
.L24:
	.align	2
.L23:
	.word	.LC7
	.word	__PRETTY_FUNCTION__.5515
	.word	.LC0
	.word	.LC1
	.word	worker_ready
	.word	.LC4
	.size	worker4, .-worker4
	.section	.rodata
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker5, %function
worker5:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #0
	mov	r0, #0
	bl	pthread_setcancelstate
	mov	r3, r0
	cmp	r3, #0
	beq	.L26
	ldr	r3, .L30+4
	mov	r2, #64
	ldr	r1, .L30+8
	ldr	r0, .L30+12
	bl	__assert_fail
.L26:
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r5, r3
	ldr	r4, .L30+16
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	nop
.L27:
	ldr	r4, .L30+20
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L27
	bl	pthread_testcancel
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r2, #1
	str	r2, [r3]
	mov	r3, #0
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L29
	bl	__stack_chk_fail
.L29:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC8
	.word	__PRETTY_FUNCTION__.5520
	.word	.LC0
	.word	.LC1
	.word	worker_ready
	.word	main_ready
	.size	worker5, .-worker5
	.section	.rodata
	.align	2
.LC9:
	.ascii	"!ret\000"
	.align	2
.LC10:
	.ascii	"ret_val == PTHREAD_CANCELED\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_result, %function
check_result:
	@ 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]
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	pthread_join
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L33
	ldr	r3, .L37+4
	mov	r2, #83
	ldr	r1, .L37+8
	ldr	r0, .L37+12
	bl	__assert_fail
.L33:
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L36
	ldr	r3, .L37+4
	mov	r2, #84
	ldr	r1, .L37+8
	ldr	r0, .L37+16
	bl	__assert_fail
.L36:
	nop
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC11
	.word	__PRETTY_FUNCTION__.5532
	.word	.LC0
	.word	.LC9
	.word	.LC10
	.size	check_result, .-check_result
	.section	.rodata
	.align	2
.LC12:
	.ascii	"!ret_val\000"
	.align	2
.LC13:
	.ascii	"pthread_arg == 1\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #96
	ldr	r3, .L64
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r0, fp, #108
	mov	r3, #0
	ldr	r2, .L64+4
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L59
	ldr	r3, .L64+8
	mov	r2, #90
	ldr	r1, .L64+12
	ldr	r0, .L64+16
	bl	__assert_fail
.L59:
	nop
.L41:
	ldr	r4, .L64+20
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	beq	.L41
	ldr	r3, [fp, #-108]
	mov	r0, r3
	bl	pthread_cancel
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L42
	ldr	r3, .L64+8
	mov	r2, #94
	ldr	r1, .L64+12
	ldr	r0, .L64+16
	bl	__assert_fail
.L42:
	ldr	r3, [fp, #-108]
	mov	r0, r3
	bl	check_result
	mov	r3, #0
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-100]
	mov	r5, r3
	ldr	r4, .L64+24
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	mov	r3, #0
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-96]
	mov	r5, r3
	ldr	r4, .L64+20
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	mov	r3, #0
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-92]
	mov	r5, r3
	ldr	r4, .L64+24
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	sub	r0, fp, #108
	mov	r3, #0
	ldr	r2, .L64+28
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L60
	ldr	r3, .L64+8
	mov	r2, #101
	ldr	r1, .L64+12
	ldr	r0, .L64+16
	bl	__assert_fail
.L60:
	nop
.L44:
	ldr	r4, .L64+20
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-108]
	mov	r0, r3
	bl	pthread_cancel
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L45
	ldr	r3, .L64+8
	mov	r2, #105
	ldr	r1, .L64+12
	ldr	r0, .L64+16
	bl	__assert_fail
.L45:
	mov	r3, #1
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-84]
	mov	r5, r3
	ldr	r4, .L64+24
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	ldr	r3, [fp, #-108]
	mov	r0, r3
	bl	check_result
	mov	r3, #0
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-80]
	mov	r5, r3
	ldr	r4, .L64+24
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	mov	r3, #0
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	mov	r5, r3
	ldr	r4, .L64+20
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	mov	r3, #0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-72]
	mov	r5, r3
	ldr	r4, .L64+24
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	sub	r0, fp, #108
	mov	r3, #0
	ldr	r2, .L64+32
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L61
	ldr	r3, .L64+8
	mov	r2, #113
	ldr	r1, .L64+12
	ldr	r0, .L64+16
	bl	__assert_fail
.L61:
	nop
.L47:
	ldr	r4, .L64+20
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-108]
	mov	r0, r3
	bl	pthread_cancel
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L48
	ldr	r3, .L64+8
	mov	r2, #117
	ldr	r1, .L64+12
	ldr	r0, .L64+16
	bl	__assert_fail
.L48:
	mov	r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-64]
	mov	r5, r3
	ldr	r4, .L64+24
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	ldr	r3, [fp, #-108]
	mov	r0, r3
	bl	check_result
	mov	r3, #0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	mov	r5, r3
	ldr	r4, .L64+20
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	mov	r5, r3
	ldr	r4, .L64+24
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	sub	r0, fp, #108
	mov	r3, #0
	ldr	r2, .L64+36
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L62
	ldr	r3, .L64+8
	mov	r2, #124
	ldr	r1, .L64+12
	ldr	r0, .L64+16
	bl	__assert_fail
.L62:
	nop
.L50:
	ldr	r4, .L64+20
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-108]
	mov	r0, r3
	bl	pthread_cancel
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L51
	ldr	r3, .L64+8
	mov	r2, #128
	ldr	r1, .L64+12
	ldr	r0, .L64+16
	bl	__assert_fail
.L51:
	mov	r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	mov	r5, r3
	ldr	r4, .L64+24
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	ldr	r3, [fp, #-108]
	mov	r0, r3
	bl	check_result
	mov	r3, #0
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	mov	r5, r3
	ldr	r4, .L64+20
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r5, r3
	ldr	r4, .L64+24
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	sub	r3, fp, #40
	sub	r0, fp, #108
	ldr	r2, .L64+40
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L63
	ldr	r3, .L64+8
	mov	r2, #138
	ldr	r1, .L64+12
	ldr	r0, .L64+16
	bl	__assert_fail
.L63:
	nop
.L53:
	ldr	r4, .L64+20
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L53
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r5, r3
	ldr	r4, .L64+24
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-108]
	sub	r2, fp, #24
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L54
	ldr	r3, .L64+8
	mov	r2, #145
	ldr	r1, .L64+12
	ldr	r0, .L64+16
	bl	__assert_fail
.L54:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L55
	ldr	r3, .L64+8
	mov	r2, #146
	ldr	r1, .L64+12
	ldr	r0, .L64+44
	bl	__assert_fail
.L55:
	ldr	r3, [fp, #-40]
	cmp	r3, #1
	beq	.L56
	ldr	r3, .L64+8
	mov	r2, #147
	ldr	r1, .L64+12
	ldr	r0, .L64+48
	bl	__assert_fail
.L56:
	mov	r3, #0
	ldr	r2, .L64
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L58
	bl	__stack_chk_fail
.L58:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L65:
	.align	2
.L64:
	.word	.LC14
	.word	worker1
	.word	__PRETTY_FUNCTION__.5537
	.word	.LC0
	.word	.LC9
	.word	worker_ready
	.word	main_ready
	.word	worker2
	.word	worker3
	.word	worker4
	.word	worker5
	.word	.LC12
	.word	.LC13
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5491, %object
	.size	__PRETTY_FUNCTION__.5491, 8
__PRETTY_FUNCTION__.5491:
	.ascii	"worker1\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5497, %object
	.size	__PRETTY_FUNCTION__.5497, 8
__PRETTY_FUNCTION__.5497:
	.ascii	"worker2\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5506, %object
	.size	__PRETTY_FUNCTION__.5506, 8
__PRETTY_FUNCTION__.5506:
	.ascii	"worker3\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5515, %object
	.size	__PRETTY_FUNCTION__.5515, 8
__PRETTY_FUNCTION__.5515:
	.ascii	"worker4\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5520, %object
	.size	__PRETTY_FUNCTION__.5520, 8
__PRETTY_FUNCTION__.5520:
	.ascii	"worker5\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5532, %object
	.size	__PRETTY_FUNCTION__.5532, 13
__PRETTY_FUNCTION__.5532:
	.ascii	"check_result\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5537, %object
	.size	__PRETTY_FUNCTION__.5537, 5
__PRETTY_FUNCTION__.5537:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
