	.file	"631482.c"
	.intel_syntax noprefix
	.text
	.globl	args
	.bss
	.align 8
	.type	args, @object
	.size	args, 8
args:
	.zero	8
	.globl	barrier
	.align 32
	.type	barrier, @object
	.size	barrier, 32
barrier:
	.zero	32
	.globl	child_thread_2
	.align 8
	.type	child_thread_2, @object
	.size	child_thread_2, 8
child_thread_2:
	.zero	8
	.globl	child_thread_3
	.align 8
	.type	child_thread_3, @object
	.size	child_thread_3, 8
child_thread_3:
	.zero	8
	.text
	.globl	handler
	.type	handler, @function
handler:
.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	DWORD PTR -4[rbp], edi
	mov	edi, 10
	call	usleep@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	handler, .-handler
	.globl	callme
	.type	callme, @function
callme:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	callme, .-callme
	.globl	child_function_3
	.type	child_function_3, @function
child_function_3:
.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
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, args[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	jmp	.L4
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	call	callme
.L4:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.L5
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE8:
	.size	child_function_3, .-child_function_3
	.globl	child_function_2
	.type	child_function_2, @function
child_function_2:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, args[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	call	callme
.L7:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	call	callme
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.L10
	mov	edi, 0
	call	pthread_exit@PLT
	.cfi_endproc
.LFE9:
	.size	child_function_2, .-child_function_2
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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
	lea	rsi, handler[rip]
	mov	edi, 10
	call	signal@PLT
	mov	edi, 0
	call	usleep@PLT
	mov	edx, 1
	mov	esi, 0
	lea	rdi, barrier[rip]
	call	pthread_barrier_init@PLT
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	mov	edx, 2
	mov	esi, 0
	lea	rdi, barrier[rip]
	call	pthread_barrier_init@PLT
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, args[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	lea	rdx, child_function_2[rip]
	mov	esi, 0
	lea	rdi, child_thread_2[rip]
	call	pthread_create@PLT
	mov	DWORD PTR -12[rbp], eax
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	call	callme
	mov	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, args[rip]
	mov	DWORD PTR [rdx+rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	lea	rdx, child_function_3[rip]
	mov	esi, 0
	lea	rdi, child_thread_3[rip]
	call	pthread_create@PLT
	mov	DWORD PTR -12[rbp], eax
	lea	rdi, barrier[rip]
	call	pthread_barrier_wait@PLT
	call	callme
	mov	rax, QWORD PTR child_thread_2[rip]
	mov	esi, 10
	mov	rdi, rax
	call	pthread_kill@PLT
	mov	rax, QWORD PTR child_thread_2[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR child_thread_3[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE10:
	.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	"631482.c"
	.text
	.comm	args,8,4
	.comm	barrier,20,4
	.comm	child_thread_2,4,4
	.comm	child_thread_3,4,4
	.align	2
	.global	handler
	.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]
	mov	r0, #10
	bl	usleep
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	handler, .-handler
	.align	2
	.global	callme
	.syntax unified
	.arm
	.fpu softvfp
	.type	callme, %function
callme:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	callme, .-callme
	.align	2
	.global	child_function_3
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_function_3, %function
child_function_3:
	@ 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, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, .L6
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r0, .L6+4
	bl	pthread_barrier_wait
	b	.L4
.L5:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	bl	callme
.L4:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L5
	mov	r0, #0
	bl	pthread_exit
.L7:
	.align	2
.L6:
	.word	args
	.word	barrier
	.size	child_function_3, .-child_function_3
	.align	2
	.global	child_function_2
	.syntax unified
	.arm
	.fpu softvfp
	.type	child_function_2, %function
child_function_2:
	@ 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, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, .L13
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r0, .L13+4
	bl	pthread_barrier_wait
	b	.L9
.L10:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	bl	callme
.L9:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L10
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3]
	b	.L11
.L12:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	bl	callme
.L11:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L12
	mov	r0, #0
	bl	pthread_exit
.L14:
	.align	2
.L13:
	.word	args
	.word	barrier
	.size	child_function_2, .-child_function_2
	.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
	ldr	r1, .L16
	mov	r0, #10
	bl	signal
	mov	r0, #0
	bl	usleep
	mov	r2, #1
	mov	r1, #0
	ldr	r0, .L16+4
	bl	pthread_barrier_init
	ldr	r0, .L16+4
	bl	pthread_barrier_wait
	mov	r2, #2
	mov	r1, #0
	ldr	r0, .L16+4
	bl	pthread_barrier_init
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r2, .L16+8
	ldr	r3, [fp, #-12]
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-12]
	ldr	r2, .L16+12
	mov	r1, #0
	ldr	r0, .L16+16
	bl	pthread_create
	str	r0, [fp, #-8]
	ldr	r0, .L16+4
	bl	pthread_barrier_wait
	bl	callme
	mov	r3, #1
	str	r3, [fp, #-12]
	ldr	r2, .L16+8
	ldr	r3, [fp, #-12]
	mov	r1, #1
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-12]
	ldr	r2, .L16+20
	mov	r1, #0
	ldr	r0, .L16+24
	bl	pthread_create
	str	r0, [fp, #-8]
	ldr	r0, .L16+4
	bl	pthread_barrier_wait
	bl	callme
	ldr	r3, .L16+16
	ldr	r3, [r3]
	mov	r1, #10
	mov	r0, r3
	bl	pthread_kill
	ldr	r3, .L16+16
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, .L16+24
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r0, #0
	bl	exit
.L17:
	.align	2
.L16:
	.word	handler
	.word	barrier
	.word	args
	.word	child_function_2
	.word	child_thread_2
	.word	child_function_3
	.word	child_thread_3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
