	.file	"282853.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"yyyyy, thread id is: %ld\n"
.LC1:
	.string	"sigwait"
	.align 8
.LC2:
	.string	"Signal handling thread got signal %d\n"
	.text
	.type	sig_thread, @function
sig_thread:
.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, 176
	mov	QWORD PTR -168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	pthread_self@PLT
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -144[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -144[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	sigaddset@PLT
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR -152[rbp], rax
.L3:
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	sigwait@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	je	.L2
	call	__errno_location@PLT
	mov	edx, DWORD PTR -156[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -160[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
	.cfi_endproc
.LFE6:
	.size	sig_thread, .-sig_thread
	.section	.rodata
.LC3:
	.string	"xxxxx, thread id is: %ld\n"
	.text
	.type	handler, @function
handler:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	call	pthread_self@PLT
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	handler, .-handler
	.section	.rodata
.LC4:
	.string	"pthread_create"
.LC5:
	.string	"sub thread with id: %ld\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, handler[rip]
	mov	edi, 3
	call	signal@PLT
	lea	rdx, -144[rbp]
	lea	rax, -152[rbp]
	mov	rcx, rdx
	lea	rdx, sig_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -156[rbp], eax
	lea	rax, -144[rbp]
	mov	rdi, rax
	call	sigemptyset@PLT
	lea	rax, -144[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	sigaddset@PLT
	lea	rax, -144[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	sigaddset@PLT
	cmp	DWORD PTR -156[rbp], 0
	je	.L7
	call	__errno_location@PLT
	mov	edx, DWORD PTR -156[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	call	pause@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"282853.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"yyyyy, thread id is: %ld\012\000"
	.align	2
.LC1:
	.ascii	"sigwait\000"
	.align	2
.LC2:
	.ascii	"Signal handling thread got signal %d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sig_thread, %function
sig_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, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	pthread_self
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L5+4
	bl	printf
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #136
	mov	r1, #3
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #136
	mov	r1, #10
	mov	r0, r3
	bl	sigaddset
	ldr	r3, [fp, #-152]
	str	r3, [fp, #-144]
.L3:
	sub	r3, fp, #148
	mov	r1, r3
	ldr	r0, [fp, #-144]
	bl	sigwait
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L2
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-140]
	str	r3, [r2]
	ldr	r0, .L5+8
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-148]
	mov	r1, r3
	ldr	r0, .L5+12
	bl	printf
	b	.L3
.L6:
	.align	2
.L5:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	sig_thread, .-sig_thread
	.section	.rodata
	.align	2
.LC4:
	.ascii	"xxxxx, thread id is: %ld\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handler, %function
handler:
	@ 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]
	bl	pthread_self
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L8
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC4
	.size	handler, .-handler
	.section	.rodata
	.align	2
.LC5:
	.ascii	"pthread_create\000"
	.align	2
.LC6:
	.ascii	"sub thread with id: %ld\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	str	r1, [fp, #-156]
	ldr	r3, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L14+4
	mov	r0, #3
	bl	signal
	sub	r3, fp, #136
	sub	r0, fp, #144
	ldr	r2, .L14+8
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-140]
	sub	r3, fp, #136
	mov	r0, r3
	bl	sigemptyset
	sub	r3, fp, #136
	mov	r1, #3
	mov	r0, r3
	bl	sigaddset
	sub	r3, fp, #136
	mov	r1, #10
	mov	r0, r3
	bl	sigaddset
	ldr	r3, [fp, #-140]
	cmp	r3, #0
	beq	.L11
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-140]
	str	r3, [r2]
	ldr	r0, .L14+12
	bl	perror
	mov	r0, #1
	bl	exit
.L11:
	ldr	r3, [fp, #-144]
	mov	r1, r3
	ldr	r0, .L14+16
	bl	printf
	bl	pause
	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	.LC7
	.word	handler
	.word	sig_thread
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
