	.file	"962620.c"
	.intel_syntax noprefix
	.text
	.local	lock
	.comm	lock,40,32
	.type	signal_handler, @function
signal_handler:
.LFB6:
	.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
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	signal_handler, .-signal_handler
	.section	.rodata
.LC0:
	.string	"worker: enter\n"
.LC1:
	.string	"worker: send signal\n"
.LC2:
	.string	"worker: exit\n"
	.text
	.type	worker, @function
worker:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L3
.L4:
	mov	edi, 1
	mov	eax, 0
	call	sleep@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	call	__libc_current_sigrtmin@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	pthread_kill@PLT
	add	DWORD PTR -12[rbp], 1
.L3:
	cmp	DWORD PTR -12[rbp], 9
	jle	.L4
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	worker, .-worker
	.section	.rodata
.LC3:
	.string	"poller: enter\n"
.LC4:
	.string	"poller: interrupted\n"
.LC5:
	.string	"poller: exit\n"
	.text
	.type	poller, @function
poller:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 14
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L7
.L8:
	mov	edx, -1
	mov	esi, 0
	mov	edi, 0
	call	poll@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	add	DWORD PTR -4[rbp], 1
.L7:
	cmp	DWORD PTR -4[rbp], 9
	jle	.L8
	lea	rdi, lock[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 13
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_unlock@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	poller, .-poller
	.section	.rodata
.LC6:
	.string	"sigaction"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 256
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -160[rbp]
	mov	eax, 0
	mov	ecx, 19
	mov	rdi, rdx
	rep stosq
	lea	rax, signal_handler[rip]
	mov	QWORD PTR -160[rbp], rax
	call	__libc_current_sigrtmin@PLT
	mov	ecx, eax
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, ecx
	call	sigaction@PLT
	test	eax, eax
	jns	.L11
	lea	rdi, .LC6[rip]
	call	perror@PLT
.L11:
	mov	esi, 0
	lea	rdi, lock[rip]
	call	pthread_mutex_init@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rax, -224[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_attr_setdetachstate@PLT
	lea	rsi, -224[rbp]
	lea	rax, -232[rbp]
	mov	ecx, 0
	lea	rdx, poller[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -232[rbp]
	mov	rdx, rax
	lea	rsi, -224[rbp]
	lea	rax, -240[rbp]
	mov	rcx, rdx
	lea	rdx, worker[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -240[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -232[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	lea	rax, -224[rbp]
	mov	rdi, rax
	call	pthread_attr_destroy@PLT
	lea	rdi, lock[rip]
	call	pthread_mutex_destroy@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"962620.c"
	.text
	.local	lock
	.comm	lock,24,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	signal_handler, %function
signal_handler:
	@ 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]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	signal_handler, .-signal_handler
	.section	.rodata
	.align	2
.LC0:
	.ascii	"worker: enter\012\000"
	.align	2
.LC1:
	.ascii	"worker: send signal\012\000"
	.align	2
.LC2:
	.ascii	"worker: exit\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	worker, %function
worker:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r0, .L6
	bl	pthread_mutex_lock
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L6+8
	bl	fwrite
	ldr	r0, .L6
	bl	pthread_mutex_unlock
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L3
.L4:
	mov	r0, #1
	bl	sleep
	ldr	r0, .L6
	bl	pthread_mutex_lock
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L6+12
	bl	fwrite
	ldr	r0, .L6
	bl	pthread_mutex_unlock
	bl	__libc_current_sigrtmin
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	pthread_kill
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #9
	ble	.L4
	ldr	r0, .L6
	bl	pthread_mutex_lock
	ldr	r3, .L6+4
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L6+16
	bl	fwrite
	ldr	r0, .L6
	bl	pthread_mutex_unlock
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	lock
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	worker, .-worker
	.section	.rodata
	.align	2
.LC3:
	.ascii	"poller: enter\012\000"
	.align	2
.LC4:
	.ascii	"poller: interrupted\012\000"
	.align	2
.LC5:
	.ascii	"poller: exit\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	poller, %function
poller:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, .L12
	bl	pthread_mutex_lock
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r2, #14
	mov	r1, #1
	ldr	r0, .L12+8
	bl	fwrite
	ldr	r0, .L12
	bl	pthread_mutex_unlock
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L9
.L10:
	mvn	r2, #0
	mov	r1, #0
	mov	r0, #0
	bl	poll
	ldr	r0, .L12
	bl	pthread_mutex_lock
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L12+12
	bl	fwrite
	ldr	r0, .L12
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #9
	ble	.L10
	ldr	r0, .L12
	bl	pthread_mutex_lock
	ldr	r3, .L12+4
	ldr	r3, [r3]
	mov	r2, #13
	mov	r1, #1
	ldr	r0, .L12+16
	bl	fwrite
	ldr	r0, .L12
	bl	pthread_mutex_unlock
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	lock
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	poller, .-poller
	.section	.rodata
	.align	2
.LC6:
	.ascii	"sigaction\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 = 200
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #200
	str	r0, [fp, #-200]
	str	r1, [fp, #-204]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L18+4
	str	r3, [fp, #-148]
	bl	__libc_current_sigrtmin
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L18+8
	bl	perror
.L15:
	mov	r1, #0
	ldr	r0, .L18+12
	bl	pthread_mutex_init
	sub	r3, fp, #184
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #184
	mov	r1, #0
	mov	r0, r3
	bl	pthread_attr_setdetachstate
	sub	r1, fp, #184
	sub	r0, fp, #188
	mov	r3, #0
	ldr	r2, .L18+16
	bl	pthread_create
	ldr	r3, [fp, #-188]
	sub	r1, fp, #184
	sub	r0, fp, #192
	ldr	r2, .L18+20
	bl	pthread_create
	ldr	r3, [fp, #-192]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-188]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	sub	r3, fp, #184
	mov	r0, r3
	bl	pthread_attr_destroy
	ldr	r0, .L18+12
	bl	pthread_mutex_destroy
	mov	r3, #0
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC7
	.word	signal_handler
	.word	.LC6
	.word	lock
	.word	poller
	.word	worker
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
