	.file	"57048.c"
	.intel_syntax noprefix
	.text
	.local	sem1
	.comm	sem1,32,32
	.local	sem2
	.comm	sem2,32,32
	.local	sem3
	.comm	sem3,32,32
	.type	start_async, @function
start_async:
.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	QWORD PTR -8[rbp], rdi
	mov	esi, 0
	mov	edi, 1
	call	pthread_setcanceltype@PLT
	lea	rdi, sem1[rip]
	call	sem_post@PLT
.L2:
	mov	edi, 1
	call	sleep@PLT
	jmp	.L2
	.cfi_endproc
.LFE6:
	.size	start_async, .-start_async
	.type	cleanup1, @function
cleanup1:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cleanup1, .-cleanup1
	.type	cleanup2, @function
cleanup2:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 2[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	cleanup2, .-cleanup2
	.type	cleanup3, @function
cleanup3:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 3[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cleanup3, .-cleanup3
	.type	cleanup4, @function
cleanup4:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cleanup4, .-cleanup4
	.type	start_single, @function
start_single:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 160
	mov	QWORD PTR -152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, cleanup1[rip]
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -120[rbp], rax
	lea	rax, -112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	__sigsetjmp@PLT
	endbr64
	mov	DWORD PTR -132[rbp], eax
	mov	eax, DWORD PTR -132[rbp]
	cdqe
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR -120[rbp]
	mov	rdx, QWORD PTR -128[rbp]
	mov	rdi, rax
	call	rdx
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	__pthread_unwind_next@PLT
.L9:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	__pthread_register_cancel@PLT
	lea	rdi, sem2[rip]
	call	sem_post@PLT
	mov	edi, 3
	call	sleep@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	__pthread_unregister_cancel@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	start_single, .-start_single
	.type	start_nested, @function
start_nested:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 560
	mov	QWORD PTR -552[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -552[rbp]
	mov	QWORD PTR -472[rbp], rax
	lea	rax, cleanup1[rip]
	mov	QWORD PTR -464[rbp], rax
	mov	rax, QWORD PTR -472[rbp]
	mov	QWORD PTR -456[rbp], rax
	lea	rax, -448[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	__sigsetjmp@PLT
	endbr64
	mov	DWORD PTR -536[rbp], eax
	mov	eax, DWORD PTR -536[rbp]
	cdqe
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR -456[rbp]
	mov	rdx, QWORD PTR -464[rbp]
	mov	rdi, rax
	call	rdx
	lea	rax, -448[rbp]
	mov	rdi, rax
	call	__pthread_unwind_next@PLT
.L14:
	lea	rax, -448[rbp]
	mov	rdi, rax
	call	__pthread_register_cancel@PLT
	lea	rax, cleanup2[rip]
	mov	QWORD PTR -520[rbp], rax
	mov	rax, QWORD PTR -472[rbp]
	add	rax, 4
	mov	QWORD PTR -512[rbp], rax
	lea	rax, -336[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	__sigsetjmp@PLT
	endbr64
	mov	DWORD PTR -532[rbp], eax
	mov	eax, DWORD PTR -532[rbp]
	cdqe
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -512[rbp]
	mov	rdx, QWORD PTR -520[rbp]
	mov	rdi, rax
	call	rdx
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	__pthread_unwind_next@PLT
.L15:
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	__pthread_register_cancel@PLT
	lea	rax, cleanup3[rip]
	mov	QWORD PTR -504[rbp], rax
	mov	rax, QWORD PTR -472[rbp]
	add	rax, 8
	mov	QWORD PTR -496[rbp], rax
	lea	rax, -224[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	__sigsetjmp@PLT
	endbr64
	mov	DWORD PTR -528[rbp], eax
	mov	eax, DWORD PTR -528[rbp]
	cdqe
	test	rax, rax
	je	.L16
	mov	rax, QWORD PTR -496[rbp]
	mov	rdx, QWORD PTR -504[rbp]
	mov	rdi, rax
	call	rdx
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	__pthread_unwind_next@PLT
.L16:
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	__pthread_register_cancel@PLT
	lea	rax, cleanup4[rip]
	mov	QWORD PTR -488[rbp], rax
	mov	rax, QWORD PTR -472[rbp]
	add	rax, 12
	mov	QWORD PTR -480[rbp], rax
	lea	rax, -112[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	__sigsetjmp@PLT
	endbr64
	mov	DWORD PTR -524[rbp], eax
	mov	eax, DWORD PTR -524[rbp]
	cdqe
	test	rax, rax
	je	.L17
	mov	rax, QWORD PTR -480[rbp]
	mov	rdx, QWORD PTR -488[rbp]
	mov	rdi, rax
	call	rdx
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	__pthread_unwind_next@PLT
.L17:
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	__pthread_register_cancel@PLT
	lea	rdi, sem3[rip]
	call	sem_post@PLT
	mov	edi, 3
	call	sleep@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	__pthread_unregister_cancel@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	__pthread_unregister_cancel@PLT
	lea	rax, -336[rbp]
	mov	rdi, rax
	call	__pthread_unregister_cancel@PLT
	lea	rax, -448[rbp]
	mov	rdi, rax
	call	__pthread_unregister_cancel@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	start_nested, .-start_nested
	.section	.rodata
.LC0:
	.string	"the_stack_data/57048.c"
	.align 8
.LC1:
	.string	"sem_init(&sem1, 0, 0) == 0 && \"creating semaphore\""
	.align 8
.LC2:
	.string	"sem_init(&sem2, 0, 0) == 0 && \"creating semaphore\""
	.align 8
.LC3:
	.string	"sem_init(&sem3, 0, 0) == 0 && \"creating semaphore\""
	.align 8
.LC4:
	.string	"pthread_create(&td, 0, start_async, &sem1) == 0 && \"failed to create thread\""
	.align 8
.LC5:
	.string	"pthread_cancel(td) == 0 && \"failed to cancel\""
	.align 8
.LC6:
	.string	"pthread_join(td, &res) == 0 && \"failed to join\""
	.align 8
.LC7:
	.string	"res == PTHREAD_CANCELED && \"canceled thread exit status\""
.LC8:
	.string	"=== : Test 1 passed (%s)\n"
	.align 8
.LC9:
	.string	"pthread_create(&td, 0, start_single, foo) == 0 && \"failed to create thread\""
	.align 8
.LC10:
	.string	"foo[0] == 1 && \"cleanup handler failed to run\""
.LC11:
	.string	"=== : Test 2 passed (%s)\n"
	.align 8
.LC12:
	.string	"pthread_create(&td, 0, start_nested, foo) == 0 && \"failed to create thread\""
	.align 8
.LC13:
	.string	"foo[1] == 2 && \"cleanup handler failed to run\""
	.align 8
.LC14:
	.string	"foo[2] == 3 && \"cleanup handler failed to run\""
	.align 8
.LC15:
	.string	"foo[3] == 4 && \"cleanup handler failed to run\""
.LC16:
	.string	"=== : Test 3 passed (%s)\n"
	.text
	.type	test_pthread_cancel, @function
test_pthread_cancel:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, 0
	mov	esi, 0
	lea	rdi, sem1[rip]
	call	sem_init@PLT
	test	eax, eax
	je	.L80
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 80
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L80:
	nop
	mov	edx, 0
	mov	esi, 0
	lea	rdi, sem2[rip]
	call	sem_init@PLT
	test	eax, eax
	je	.L81
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 81
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L81:
	nop
	mov	edx, 0
	mov	esi, 0
	lea	rdi, sem3[rip]
	call	sem_init@PLT
	test	eax, eax
	je	.L82
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 82
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L82:
	nop
	lea	rax, -48[rbp]
	lea	rcx, sem1[rip]
	lea	rdx, start_async[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L83
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 85
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L83:
	nop
	nop
.L29:
	lea	rdi, sem1[rip]
	call	sem_wait@PLT
	test	eax, eax
	jne	.L29
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	pthread_cancel@PLT
	test	eax, eax
	je	.L84
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 90
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L84:
	nop
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L85
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 91
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L85:
	nop
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, -1
	je	.L34
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 92
	lea	rsi, .LC0[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L34:
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -72[rbp], 0
	mov	eax, DWORD PTR -72[rbp]
	xchg	eax, DWORD PTR -32[rbp]
	lea	rdx, -32[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	lea	rdx, start_single[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L86
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 98
	lea	rsi, .LC0[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L86:
	nop
	nop
.L37:
	lea	rdi, sem2[rip]
	call	sem_wait@PLT
	test	eax, eax
	jne	.L37
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	pthread_cancel@PLT
	test	eax, eax
	je	.L87
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 104
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L87:
	nop
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L88
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 105
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L88:
	nop
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, -1
	je	.L42
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 106
	lea	rsi, .LC0[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L42:
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, 1
	je	.L89
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 107
	lea	rsi, .LC0[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L89:
	nop
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdx, -32[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	lea	rdx, start_nested[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L90
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 113
	lea	rsi, .LC0[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L90:
	nop
	nop
.L47:
	lea	rdi, sem3[rip]
	call	sem_wait@PLT
	test	eax, eax
	jne	.L47
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	pthread_cancel@PLT
	test	eax, eax
	je	.L91
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 118
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L91:
	nop
	mov	rax, QWORD PTR -48[rbp]
	lea	rdx, -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	test	eax, eax
	je	.L92
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 119
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L92:
	nop
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, -1
	je	.L52
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 120
	lea	rsi, .LC0[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L52:
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -64[rbp], eax
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, 1
	je	.L93
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 121
	lea	rsi, .LC0[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L93:
	nop
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, 2
	je	.L94
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 122
	lea	rsi, .LC0[rip]
	lea	rdi, .LC13[rip]
	call	__assert_fail@PLT
.L94:
	nop
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	cmp	eax, 3
	je	.L95
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 123
	lea	rsi, .LC0[rip]
	lea	rdi, .LC14[rip]
	call	__assert_fail@PLT
.L95:
	nop
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, 4
	je	.L96
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 124
	lea	rsi, .LC0[rip]
	lea	rdi, .LC15[rip]
	call	__assert_fail@PLT
.L96:
	nop
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L62
	call	__stack_chk_fail@PLT
.L62:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	test_pthread_cancel, .-test_pthread_cancel
	.local	thread_finished
	.comm	thread_finished,4,4
	.local	child_tid
	.comm	child_tid,4,4
	.type	sleep_thread_func, @function
sleep_thread_func:
.LFB14:
	.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	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -28[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	xchg	eax, DWORD PTR thread_finished[rip]
	mov	edi, 186
	mov	eax, 0
	call	syscall@PLT
	mov	DWORD PTR child_tid[rip], eax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L98
.L99:
	mov	edi, 1
	call	sleep@PLT
	call	sched_yield@PLT
	add	DWORD PTR -20[rbp], 1
.L98:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	cmp	QWORD PTR -16[rbp], rax
	jg	.L99
	mov	DWORD PTR -24[rbp], 1
	mov	eax, DWORD PTR -24[rbp]
	xchg	eax, DWORD PTR thread_finished[rip]
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L101
	call	__stack_chk_fail@PLT
.L101:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	sleep_thread_func, .-sleep_thread_func
	.type	sleep_thread_func_signal_blocked, @function
sleep_thread_func_signal_blocked:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 320
	mov	QWORD PTR -312[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -312[rbp]
	mov	QWORD PTR -280[rbp], rax
	mov	DWORD PTR -292[rbp], 0
	mov	eax, DWORD PTR -292[rbp]
	xchg	eax, DWORD PTR thread_finished[rip]
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	sigfillset@PLT
	lea	rdx, -144[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	sigprocmask@PLT
	mov	edi, 186
	mov	eax, 0
	call	syscall@PLT
	mov	DWORD PTR child_tid[rip], eax
	mov	DWORD PTR -284[rbp], 0
	jmp	.L103
.L104:
	mov	edi, 1
	call	sleep@PLT
	call	sched_yield@PLT
	add	DWORD PTR -284[rbp], 1
.L103:
	mov	eax, DWORD PTR -284[rbp]
	cdqe
	cmp	QWORD PTR -280[rbp], rax
	jg	.L104
	mov	DWORD PTR -288[rbp], 1
	mov	eax, DWORD PTR -288[rbp]
	xchg	eax, DWORD PTR thread_finished[rip]
	lea	rax, -272[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sigprocmask@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L106
	call	__stack_chk_fail@PLT
.L106:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	sleep_thread_func_signal_blocked, .-sleep_thread_func_signal_blocked
	.section	.rodata
	.align 8
.LC17:
	.string	"pthread_create(&thread, 0, sleep_thread_func, (void*)3) == 0"
	.align 8
.LC18:
	.string	"Send signal %d to child thread %d\n"
.LC19:
	.string	"thread_finished == 0"
.LC20:
	.string	"=== : Test passed (%s)\n"
	.text
	.globl	test_signal_nonblocked
	.type	test_signal_nonblocked, @function
test_signal_nonblocked:
.LFB16:
	.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
	mov	DWORD PTR child_tid[rip], 0
	lea	rax, -16[rbp]
	mov	ecx, 3
	lea	rdx, sleep_thread_func[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L112
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 176
	lea	rsi, .LC0[rip]
	lea	rdi, .LC17[rip]
	call	__assert_fail@PLT
.L112:
	nop
.L109:
	mov	eax, DWORD PTR child_tid[rip]
	test	eax, eax
	je	.L109
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	pthread_kill@PLT
	mov	edx, DWORD PTR child_tid[rip]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 4
	call	sleep@PLT
	mov	eax, DWORD PTR thread_finished[rip]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	je	.L110
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 184
	lea	rsi, .LC0[rip]
	lea	rdi, .LC19[rip]
	call	__assert_fail@PLT
.L110:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L111
	call	__stack_chk_fail@PLT
.L111:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	test_signal_nonblocked, .-test_signal_nonblocked
	.globl	is_blockable_signal
	.type	is_blockable_signal, @function
is_blockable_signal:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 9
	je	.L114
	cmp	DWORD PTR -4[rbp], 19
	je	.L114
	mov	eax, 1
	jmp	.L116
.L114:
	mov	eax, 0
.L116:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	is_blockable_signal, .-is_blockable_signal
	.section	.rodata
	.align 8
.LC21:
	.string	"pthread_create( &thread, 0, sleep_thread_func_signal_blocked, (void*)3) == 0"
	.align 8
.LC22:
	.string	"is_blockable_signal(signum) && thread_finished != 0 || !is_blockable_signal(signum) && thread_finished == 0"
	.text
	.globl	test_signal_blocked
	.type	test_signal_blocked, @function
test_signal_blocked:
.LFB18:
	.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
	mov	DWORD PTR child_tid[rip], 0
	lea	rax, -16[rbp]
	mov	ecx, 3
	lea	rdx, sleep_thread_func_signal_blocked[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	je	.L124
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 200
	lea	rsi, .LC0[rip]
	lea	rdi, .LC21[rip]
	call	__assert_fail@PLT
.L124:
	nop
.L119:
	mov	eax, DWORD PTR child_tid[rip]
	test	eax, eax
	je	.L119
	mov	eax, DWORD PTR child_tid[rip]
	mov	edx, DWORD PTR -36[rbp]
	mov	esi, eax
	mov	edi, 200
	mov	eax, 0
	call	syscall@PLT
	mov	edx, DWORD PTR child_tid[rip]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 4
	call	sleep@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	is_blockable_signal
	test	eax, eax
	je	.L120
	mov	eax, DWORD PTR thread_finished[rip]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	jne	.L121
.L120:
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	is_blockable_signal
	test	eax, eax
	jne	.L122
	mov	eax, DWORD PTR thread_finished[rip]
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	je	.L121
.L122:
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 215
	lea	rsi, .LC0[rip]
	lea	rdi, .LC22[rip]
	call	__assert_fail@PLT
.L121:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L123
	call	__stack_chk_fail@PLT
.L123:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	test_signal_blocked, .-test_signal_blocked
	.local	_dummy_cnt
	.comm	_dummy_cnt,4,4
	.globl	dummy_handler
	.type	dummy_handler, @function
dummy_handler:
.LFB19:
	.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	DWORD PTR -20[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	xchg	eax, DWORD PTR _dummy_cnt[rip]
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L126
	call	__stack_chk_fail@PLT
.L126:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	dummy_handler, .-dummy_handler
	.section	.rodata
.LC23:
	.string	"_dummy_cnt == 1"
	.text
	.globl	test_raise
	.type	test_raise, @function
test_raise:
.LFB20:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], 0
	mov	eax, DWORD PTR -16[rbp]
	xchg	eax, DWORD PTR _dummy_cnt[rip]
	mov	eax, DWORD PTR -20[rbp]
	lea	rsi, dummy_handler[rip]
	mov	edi, eax
	call	signal@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	raise@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	eax, DWORD PTR _dummy_cnt[rip]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	je	.L128
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 234
	lea	rsi, .LC0[rip]
	lea	rdi, .LC23[rip]
	call	__assert_fail@PLT
.L128:
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L129
	call	__stack_chk_fail@PLT
.L129:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	test_raise, .-test_raise
	.section	.rodata
.LC24:
	.string	"pthread_cancel"
.LC25:
	.string	"signal_nonblocked"
.LC26:
	.string	"signal_blocked"
.LC27:
	.string	"raise"
.LC28:
	.string	"\n=== passed test (%s)\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB21:
	.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
	lea	rdi, .LC24[rip]
	call	test_pthread_cancel
	lea	rsi, .LC25[rip]
	mov	edi, 15
	call	test_signal_nonblocked
	lea	rsi, .LC26[rip]
	mov	edi, 15
	call	test_signal_blocked
	lea	rsi, .LC26[rip]
	mov	edi, 9
	call	test_signal_blocked
	lea	rsi, .LC27[rip]
	mov	edi, 35
	call	test_raise
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	main, .-main
	.section	.rodata
	.align 16
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 20
__PRETTY_FUNCTION__.3:
	.string	"test_pthread_cancel"
	.align 16
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 23
__PRETTY_FUNCTION__.2:
	.string	"test_signal_nonblocked"
	.align 16
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 20
__PRETTY_FUNCTION__.1:
	.string	"test_signal_blocked"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 11
__PRETTY_FUNCTION__.0:
	.string	"test_raise"
	.weak	__pthread_unwind_next
	.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	"57048.c"
	.text
	.local	sem1
	.comm	sem1,16,4
	.local	sem2
	.comm	sem2,16,4
	.local	sem3
	.comm	sem3,16,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_async, %function
start_async:
	@ 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	r1, #0
	mov	r0, #1
	bl	pthread_setcanceltype
	ldr	r0, .L3
	bl	sem_post
.L2:
	mov	r0, #1
	bl	sleep
	b	.L2
.L4:
	.align	2
.L3:
	.word	sem1
	.size	start_async, .-start_async
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup1, %function
cleanup1:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cleanup1, .-cleanup1
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup2, %function
cleanup2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #2
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cleanup2, .-cleanup2
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup3, %function
cleanup3:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cleanup3, .-cleanup3
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup4, %function
cleanup4:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #4
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cleanup4, .-cleanup4
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_single, %function
start_single:
	@ args = 0, pretend = 0, frame = 312
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #312
	str	r0, [fp, #-312]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L14+4
	str	r3, [fp, #-304]
	ldr	r3, [fp, #-312]
	str	r3, [fp, #-300]
	sub	r3, fp, #292
	mov	r1, #0
	mov	r0, r3
	bl	__sigsetjmp
	mov	r3, r0
	str	r3, [fp, #-296]
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-304]
	ldr	r0, [fp, #-300]
	blx	r3
	sub	r3, fp, #292
	mov	r0, r3
	bl	__pthread_unwind_next
.L11:
	sub	r3, fp, #292
	mov	r0, r3
	bl	__pthread_register_cancel
	ldr	r0, .L14+8
	bl	sem_post
	mov	r0, #3
	bl	sleep
	sub	r3, fp, #292
	mov	r0, r3
	bl	__pthread_unregister_cancel
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC0
	.word	cleanup1
	.word	sem2
	.size	start_single, .-start_single
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_nested, %function
start_nested:
	@ args = 0, pretend = 0, frame = 1192
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1184
	sub	sp, sp, #8
	str	r0, [fp, #-1192]
	ldr	r3, .L24
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-1192]
	str	r3, [fp, #-1160]
	ldr	r3, .L24+4
	str	r3, [fp, #-1156]
	ldr	r3, [fp, #-1160]
	str	r3, [fp, #-1152]
	sub	r3, fp, #1120
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r1, #0
	mov	r0, r3
	bl	__sigsetjmp
	mov	r3, r0
	str	r3, [fp, #-1148]
	ldr	r3, [fp, #-1148]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-1156]
	ldr	r0, [fp, #-1152]
	blx	r3
	sub	r3, fp, #1120
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	__pthread_unwind_next
.L18:
	sub	r3, fp, #1120
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	__pthread_register_cancel
	ldr	r3, .L24+8
	str	r3, [fp, #-1184]
	ldr	r3, [fp, #-1160]
	add	r3, r3, #4
	str	r3, [fp, #-1180]
	sub	r3, fp, #852
	mov	r1, #0
	mov	r0, r3
	bl	__sigsetjmp
	mov	r3, r0
	str	r3, [fp, #-1144]
	ldr	r3, [fp, #-1144]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-1184]
	ldr	r0, [fp, #-1180]
	blx	r3
	sub	r3, fp, #852
	mov	r0, r3
	bl	__pthread_unwind_next
.L19:
	sub	r3, fp, #852
	mov	r0, r3
	bl	__pthread_register_cancel
	ldr	r3, .L24+12
	str	r3, [fp, #-1176]
	ldr	r3, [fp, #-1160]
	add	r3, r3, #8
	str	r3, [fp, #-1172]
	sub	r3, fp, #572
	mov	r1, #0
	mov	r0, r3
	bl	__sigsetjmp
	mov	r3, r0
	str	r3, [fp, #-1140]
	ldr	r3, [fp, #-1140]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-1176]
	ldr	r0, [fp, #-1172]
	blx	r3
	sub	r3, fp, #572
	mov	r0, r3
	bl	__pthread_unwind_next
.L20:
	sub	r3, fp, #572
	mov	r0, r3
	bl	__pthread_register_cancel
	ldr	r3, .L24+16
	str	r3, [fp, #-1168]
	ldr	r3, [fp, #-1160]
	add	r3, r3, #12
	str	r3, [fp, #-1164]
	sub	r3, fp, #292
	mov	r1, #0
	mov	r0, r3
	bl	__sigsetjmp
	mov	r3, r0
	str	r3, [fp, #-1136]
	ldr	r3, [fp, #-1136]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-1168]
	ldr	r0, [fp, #-1164]
	blx	r3
	sub	r3, fp, #292
	mov	r0, r3
	bl	__pthread_unwind_next
.L21:
	sub	r3, fp, #292
	mov	r0, r3
	bl	__pthread_register_cancel
	ldr	r0, .L24+20
	bl	sem_post
	mov	r0, #3
	bl	sleep
	sub	r3, fp, #292
	mov	r0, r3
	bl	__pthread_unregister_cancel
	sub	r3, fp, #572
	mov	r0, r3
	bl	__pthread_unregister_cancel
	sub	r3, fp, #852
	mov	r0, r3
	bl	__pthread_unregister_cancel
	sub	r3, fp, #1120
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r0, r3
	bl	__pthread_unregister_cancel
	mov	r3, #0
	ldr	r2, .L24
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC1
	.word	cleanup1
	.word	cleanup2
	.word	cleanup3
	.word	cleanup4
	.word	sem3
	.size	start_nested, .-start_nested
	.section	.rodata
	.align	2
.LC2:
	.ascii	"the_stack_data/57048.c\000"
	.align	2
.LC3:
	.ascii	"sem_init(&sem1, 0, 0) == 0 && \"creating semaphore\""
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"sem_init(&sem2, 0, 0) == 0 && \"creating semaphore\""
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"sem_init(&sem3, 0, 0) == 0 && \"creating semaphore\""
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"pthread_create(&td, 0, start_async, &sem1) == 0 && "
	.ascii	"\"failed to create thread\"\000"
	.align	2
.LC7:
	.ascii	"pthread_cancel(td) == 0 && \"failed to cancel\"\000"
	.align	2
.LC8:
	.ascii	"pthread_join(td, &res) == 0 && \"failed to join\"\000"
	.align	2
.LC9:
	.ascii	"res == PTHREAD_CANCELED && \"canceled thread exit s"
	.ascii	"tatus\"\000"
	.align	2
.LC10:
	.ascii	"=== : Test 1 passed (%s)\012\000"
	.global	__sync_synchronize
	.align	2
.LC11:
	.ascii	"pthread_create(&td, 0, start_single, foo) == 0 && \""
	.ascii	"failed to create thread\"\000"
	.align	2
.LC12:
	.ascii	"foo[0] == 1 && \"cleanup handler failed to run\"\000"
	.align	2
.LC13:
	.ascii	"=== : Test 2 passed (%s)\012\000"
	.align	2
.LC14:
	.ascii	"pthread_create(&td, 0, start_nested, foo) == 0 && \""
	.ascii	"failed to create thread\"\000"
	.align	2
.LC15:
	.ascii	"foo[1] == 2 && \"cleanup handler failed to run\"\000"
	.align	2
.LC16:
	.ascii	"foo[2] == 3 && \"cleanup handler failed to run\"\000"
	.align	2
.LC17:
	.ascii	"foo[3] == 4 && \"cleanup handler failed to run\"\000"
	.align	2
.LC18:
	.ascii	"=== : Test 3 passed (%s)\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_pthread_cancel, %function
test_pthread_cancel:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #68
	str	r0, [fp, #-72]
	ldr	r3, .L103
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L103+4
	bl	sem_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L86
	ldr	r3, .L103+8
	mov	r2, #80
	ldr	r1, .L103+12
	ldr	r0, .L103+16
	bl	__assert_fail
.L86:
	nop
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L103+20
	bl	sem_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L87
	ldr	r3, .L103+8
	mov	r2, #81
	ldr	r1, .L103+12
	ldr	r0, .L103+24
	bl	__assert_fail
.L87:
	nop
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L103+28
	bl	sem_init
	mov	r3, r0
	cmp	r3, #0
	beq	.L88
	ldr	r3, .L103+8
	mov	r2, #82
	ldr	r1, .L103+12
	ldr	r0, .L103+32
	bl	__assert_fail
.L88:
	nop
	sub	r0, fp, #64
	ldr	r3, .L103+4
	ldr	r2, .L103+36
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L89
	ldr	r3, .L103+8
	mov	r2, #85
	ldr	r1, .L103+12
	ldr	r0, .L103+40
	bl	__assert_fail
.L89:
	nop
	nop
.L35:
	ldr	r0, .L103+4
	bl	sem_wait
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	pthread_cancel
	mov	r3, r0
	cmp	r3, #0
	beq	.L90
	ldr	r3, .L103+8
	mov	r2, #90
	ldr	r1, .L103+12
	ldr	r0, .L103+44
	bl	__assert_fail
.L90:
	nop
	ldr	r3, [fp, #-64]
	sub	r2, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L91
	ldr	r3, .L103+8
	mov	r2, #91
	ldr	r1, .L103+12
	ldr	r0, .L103+48
	bl	__assert_fail
.L91:
	nop
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	beq	.L40
	ldr	r3, .L103+8
	mov	r2, #92
	ldr	r1, .L103+12
	ldr	r0, .L103+52
	bl	__assert_fail
.L40:
	ldr	r1, [fp, #-72]
	ldr	r0, .L103+56
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-56]
	mov	r4, r3
	bl	__sync_synchronize
	str	r4, [fp, #-32]
	bl	__sync_synchronize
	sub	r3, fp, #32
	sub	r0, fp, #64
	ldr	r2, .L103+60
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L92
	ldr	r3, .L103+8
	mov	r2, #98
	ldr	r1, .L103+12
	ldr	r0, .L103+64
	bl	__assert_fail
.L92:
	nop
	nop
.L43:
	ldr	r0, .L103+20
	bl	sem_wait
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	pthread_cancel
	mov	r3, r0
	cmp	r3, #0
	beq	.L93
	ldr	r3, .L103+8
	mov	r2, #104
	ldr	r1, .L103+12
	ldr	r0, .L103+44
	bl	__assert_fail
.L93:
	nop
	ldr	r3, [fp, #-64]
	sub	r2, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L94
	ldr	r3, .L103+8
	mov	r2, #105
	ldr	r1, .L103+12
	ldr	r0, .L103+48
	bl	__assert_fail
.L94:
	nop
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	beq	.L48
	ldr	r3, .L103+8
	mov	r2, #106
	ldr	r1, .L103+12
	ldr	r0, .L103+52
	bl	__assert_fail
.L48:
	bl	__sync_synchronize
	ldr	r4, [fp, #-32]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #1
	beq	.L95
	ldr	r3, .L103+8
	mov	r2, #107
	ldr	r1, .L103+12
	ldr	r0, .L103+68
	bl	__assert_fail
.L95:
	nop
	ldr	r1, [fp, #-72]
	ldr	r0, .L103+72
	bl	printf
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #32
	sub	r0, fp, #64
	ldr	r2, .L103+76
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L96
	ldr	r3, .L103+8
	mov	r2, #113
	ldr	r1, .L103+12
	ldr	r0, .L103+80
	bl	__assert_fail
.L96:
	nop
	nop
.L53:
	ldr	r0, .L103+28
	bl	sem_wait
	mov	r3, r0
	cmp	r3, #0
	bne	.L53
	ldr	r3, [fp, #-64]
	mov	r0, r3
	bl	pthread_cancel
	mov	r3, r0
	cmp	r3, #0
	beq	.L97
	ldr	r3, .L103+8
	mov	r2, #118
	ldr	r1, .L103+12
	ldr	r0, .L103+44
	bl	__assert_fail
.L97:
	nop
	ldr	r3, [fp, #-64]
	sub	r2, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	mov	r3, r0
	cmp	r3, #0
	beq	.L98
	ldr	r3, .L103+8
	mov	r2, #119
	ldr	r1, .L103+12
	ldr	r0, .L103+48
	bl	__assert_fail
.L98:
	nop
	ldr	r3, [fp, #-60]
	cmn	r3, #1
	beq	.L58
	ldr	r3, .L103+8
	mov	r2, #120
	ldr	r1, .L103+12
	ldr	r0, .L103+52
	bl	__assert_fail
.L58:
	bl	__sync_synchronize
	ldr	r4, [fp, #-32]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	beq	.L99
	ldr	r3, .L103+8
	mov	r2, #121
	ldr	r1, .L103+12
	ldr	r0, .L103+68
	bl	__assert_fail
.L99:
	nop
	bl	__sync_synchronize
	ldr	r4, [fp, #-28]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #2
	beq	.L100
	ldr	r3, .L103+8
	mov	r2, #122
	ldr	r1, .L103+12
	ldr	r0, .L103+84
	bl	__assert_fail
.L100:
	nop
	bl	__sync_synchronize
	ldr	r4, [fp, #-24]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #3
	beq	.L101
	ldr	r3, .L103+8
	mov	r2, #123
	ldr	r1, .L103+12
	ldr	r0, .L103+88
	bl	__assert_fail
.L101:
	nop
	bl	__sync_synchronize
	ldr	r4, [fp, #-20]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #4
	beq	.L102
	ldr	r3, .L103+8
	mov	r2, #124
	ldr	r1, .L103+12
	ldr	r0, .L103+92
	bl	__assert_fail
.L102:
	nop
	ldr	r1, [fp, #-72]
	ldr	r0, .L103+96
	bl	printf
	mov	r3, #0
	ldr	r2, .L103
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L104:
	.align	2
.L103:
	.word	.LC19
	.word	sem1
	.word	__PRETTY_FUNCTION__.6498
	.word	.LC2
	.word	.LC3
	.word	sem2
	.word	.LC4
	.word	sem3
	.word	.LC5
	.word	start_async
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	start_single
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	start_nested
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	test_pthread_cancel, .-test_pthread_cancel
	.local	thread_finished
	.comm	thread_finished,4,4
	.local	child_tid
	.comm	child_tid,4,4
	.section	.rodata
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sleep_thread_func, %function
sleep_thread_func:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	ldr	r3, .L110
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r5, r3
	ldr	r4, .L110+4
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	mov	r0, #224
	bl	syscall
	mov	r3, r0
	ldr	r2, .L110+8
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L106
.L107:
	mov	r0, #1
	bl	sleep
	bl	sched_yield
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L106:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L107
	mov	r3, #1
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r5, r3
	ldr	r4, .L110+4
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	mov	r3, #0
	ldr	r2, .L110
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L109
	bl	__stack_chk_fail
.L109:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L111:
	.align	2
.L110:
	.word	.LC20
	.word	thread_finished
	.word	child_tid
	.size	sleep_thread_func, .-sleep_thread_func
	.section	.rodata
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sleep_thread_func_signal_blocked, %function
sleep_thread_func_signal_blocked:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #288
	str	r0, [fp, #-296]
	ldr	r3, .L117
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-296]
	str	r3, [fp, #-276]
	mov	r3, #0
	str	r3, [fp, #-288]
	ldr	r3, [fp, #-288]
	mov	r5, r3
	ldr	r4, .L117+4
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	sub	r3, fp, #272
	mov	r0, r3
	bl	sigfillset
	sub	r2, fp, #144
	sub	r3, fp, #272
	mov	r1, r3
	mov	r0, #0
	bl	sigprocmask
	mov	r0, #224
	bl	syscall
	mov	r3, r0
	ldr	r2, .L117+8
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-280]
	b	.L113
.L114:
	mov	r0, #1
	bl	sleep
	bl	sched_yield
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L113:
	ldr	r2, [fp, #-280]
	ldr	r3, [fp, #-276]
	cmp	r2, r3
	blt	.L114
	mov	r3, #1
	str	r3, [fp, #-284]
	ldr	r3, [fp, #-284]
	mov	r5, r3
	ldr	r4, .L117+4
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	sub	r3, fp, #272
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sigprocmask
	mov	r3, #0
	ldr	r2, .L117
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L116
	bl	__stack_chk_fail
.L116:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L118:
	.align	2
.L117:
	.word	.LC21
	.word	thread_finished
	.word	child_tid
	.size	sleep_thread_func_signal_blocked, .-sleep_thread_func_signal_blocked
	.section	.rodata
	.align	2
.LC22:
	.ascii	"pthread_create(&thread, 0, sleep_thread_func, (void"
	.ascii	"*)3) == 0\000"
	.align	2
.LC23:
	.ascii	"Send signal %d to child thread %d\012\000"
	.align	2
.LC24:
	.ascii	"thread_finished == 0\000"
	.align	2
.LC25:
	.ascii	"=== : Test passed (%s)\012\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_signal_nonblocked
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_signal_nonblocked, %function
test_signal_nonblocked:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L125
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L125+4
	mov	r2, #0
	str	r2, [r3]
	sub	r0, fp, #24
	mov	r3, #3
	ldr	r2, .L125+8
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L124
	ldr	r3, .L125+12
	mov	r2, #176
	ldr	r1, .L125+16
	ldr	r0, .L125+20
	bl	__assert_fail
.L124:
	nop
.L121:
	ldr	r3, .L125+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L121
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	pthread_kill
	ldr	r3, .L125+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, .L125+24
	bl	printf
	mov	r0, #4
	bl	sleep
	ldr	r4, .L125+28
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L122
	ldr	r3, .L125+12
	mov	r2, #184
	ldr	r1, .L125+16
	ldr	r0, .L125+32
	bl	__assert_fail
.L122:
	ldr	r1, [fp, #-36]
	ldr	r0, .L125+36
	bl	printf
	nop
	ldr	r2, .L125
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L123
	bl	__stack_chk_fail
.L123:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L126:
	.align	2
.L125:
	.word	.LC26
	.word	child_tid
	.word	sleep_thread_func
	.word	__PRETTY_FUNCTION__.6549
	.word	.LC2
	.word	.LC22
	.word	.LC23
	.word	thread_finished
	.word	.LC24
	.word	.LC25
	.size	test_signal_nonblocked, .-test_signal_nonblocked
	.align	2
	.global	is_blockable_signal
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_blockable_signal, %function
is_blockable_signal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	beq	.L128
	ldr	r3, [fp, #-8]
	cmp	r3, #19
	beq	.L128
	mov	r3, #1
	b	.L130
.L128:
	mov	r3, #0
.L130:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	is_blockable_signal, .-is_blockable_signal
	.section	.rodata
	.align	2
.LC27:
	.ascii	"pthread_create( &thread, 0, sleep_thread_func_signa"
	.ascii	"l_blocked, (void*)3) == 0\000"
	.align	2
.LC28:
	.ascii	"is_blockable_signal(signum) && thread_finished != 0"
	.ascii	" || !is_blockable_signal(signum) && thread_finished"
	.ascii	" == 0\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_signal_blocked
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_signal_blocked, %function
test_signal_blocked:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L139
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L139+4
	mov	r2, #0
	str	r2, [r3]
	sub	r0, fp, #28
	mov	r3, #3
	ldr	r2, .L139+8
	mov	r1, #0
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	beq	.L138
	ldr	r3, .L139+12
	mov	r2, #200
	ldr	r1, .L139+16
	ldr	r0, .L139+20
	bl	__assert_fail
.L138:
	nop
.L133:
	ldr	r3, .L139+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L133
	ldr	r3, .L139+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	mov	r1, r3
	mov	r0, #238
	bl	syscall
	ldr	r3, .L139+4
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-32]
	ldr	r0, .L139+24
	bl	printf
	mov	r0, #4
	bl	sleep
	ldr	r0, [fp, #-32]
	bl	is_blockable_signal
	mov	r3, r0
	cmp	r3, #0
	beq	.L134
	ldr	r4, .L139+28
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L135
.L134:
	ldr	r0, [fp, #-32]
	bl	is_blockable_signal
	mov	r3, r0
	cmp	r3, #0
	bne	.L136
	ldr	r4, .L139+28
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L135
.L136:
	ldr	r3, .L139+12
	mov	r2, #215
	ldr	r1, .L139+16
	ldr	r0, .L139+32
	bl	__assert_fail
.L135:
	ldr	r1, [fp, #-36]
	ldr	r0, .L139+36
	bl	printf
	nop
	ldr	r2, .L139
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L137
	bl	__stack_chk_fail
.L137:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L140:
	.align	2
.L139:
	.word	.LC29
	.word	child_tid
	.word	sleep_thread_func_signal_blocked
	.word	__PRETTY_FUNCTION__.6564
	.word	.LC2
	.word	.LC27
	.word	.LC23
	.word	thread_finished
	.word	.LC28
	.word	.LC25
	.size	test_signal_blocked, .-test_signal_blocked
	.local	_dummy_cnt
	.comm	_dummy_cnt,4,4
	.section	.rodata
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dummy_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	dummy_handler, %function
dummy_handler:
	@ 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, .L143
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r5, r3
	ldr	r4, .L143+4
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	nop
	ldr	r3, .L143
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L142
	bl	__stack_chk_fail
.L142:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L144:
	.align	2
.L143:
	.word	.LC30
	.word	_dummy_cnt
	.size	dummy_handler, .-dummy_handler
	.section	.rodata
	.align	2
.LC31:
	.ascii	"_dummy_cnt == 1\000"
	.align	2
.LC32:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	test_raise
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_raise, %function
test_raise:
	@ 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]
	str	r1, [fp, #-36]
	ldr	r3, .L148
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r5, r3
	ldr	r4, .L148+4
	bl	__sync_synchronize
	str	r5, [r4]
	bl	__sync_synchronize
	ldr	r1, .L148+8
	ldr	r0, [fp, #-32]
	bl	signal
	ldr	r0, [fp, #-32]
	bl	raise
	mov	r0, #1
	bl	sleep
	ldr	r4, .L148+4
	bl	__sync_synchronize
	ldr	r4, [r4]
	bl	__sync_synchronize
	mov	r3, r4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	beq	.L146
	ldr	r3, .L148+12
	mov	r2, #234
	ldr	r1, .L148+16
	ldr	r0, .L148+20
	bl	__assert_fail
.L146:
	ldr	r1, [fp, #-36]
	ldr	r0, .L148+24
	bl	printf
	nop
	ldr	r2, .L148
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L147
	bl	__stack_chk_fail
.L147:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L149:
	.align	2
.L148:
	.word	.LC32
	.word	_dummy_cnt
	.word	dummy_handler
	.word	__PRETTY_FUNCTION__.6584
	.word	.LC2
	.word	.LC31
	.word	.LC25
	.size	test_raise, .-test_raise
	.section	.rodata
	.align	2
.LC33:
	.ascii	"pthread_cancel\000"
	.align	2
.LC34:
	.ascii	"signal_nonblocked\000"
	.align	2
.LC35:
	.ascii	"signal_blocked\000"
	.align	2
.LC36:
	.ascii	"raise\000"
	.align	2
.LC37:
	.ascii	"\012=== passed test (%s)\012\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]
	ldr	r0, .L152
	bl	test_pthread_cancel
	ldr	r1, .L152+4
	mov	r0, #15
	bl	test_signal_nonblocked
	ldr	r1, .L152+8
	mov	r0, #15
	bl	test_signal_blocked
	ldr	r1, .L152+8
	mov	r0, #9
	bl	test_signal_blocked
	ldr	r1, .L152+12
	mov	r0, #35
	bl	test_raise
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L152+16
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L153:
	.align	2
.L152:
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.6498, %object
	.size	__PRETTY_FUNCTION__.6498, 20
__PRETTY_FUNCTION__.6498:
	.ascii	"test_pthread_cancel\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6549, %object
	.size	__PRETTY_FUNCTION__.6549, 23
__PRETTY_FUNCTION__.6549:
	.ascii	"test_signal_nonblocked\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6564, %object
	.size	__PRETTY_FUNCTION__.6564, 20
__PRETTY_FUNCTION__.6564:
	.ascii	"test_signal_blocked\000"
	.align	2
	.type	__PRETTY_FUNCTION__.6584, %object
	.size	__PRETTY_FUNCTION__.6584, 11
__PRETTY_FUNCTION__.6584:
	.ascii	"test_raise\000"
	.weak	__pthread_unwind_next
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
