	.file	"971682.c"
	.intel_syntax noprefix
	.text
	.globl	childThreadA
	.bss
	.align 8
	.type	childThreadA, @object
	.size	childThreadA, 8
childThreadA:
	.zero	8
	.globl	childThreadB
	.align 8
	.type	childThreadB, @object
	.size	childThreadB, 8
childThreadB:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Support %d\n"
.LC1:
	.string	"FIFO %d\n"
.LC2:
	.string	"RR %d\n"
.LC3:
	.string	"OTHER %d\n"
	.text
	.globl	checkPthreadSupport
	.type	checkPthreadSupport, @function
checkPthreadSupport:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 200809
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 1
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	esi, 0
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	checkPthreadSupport, .-checkPthreadSupport
	.section	.rodata
.LC4:
	.string	"SCHED_OTHER"
.LC5:
	.string	"???"
.LC6:
	.string	"SCHED_RR"
.LC7:
	.string	"SCHED_FIFO"
.LC8:
	.string	"policy=%s, priority=%d,"
	.text
	.type	display_sched_attr, @function
display_sched_attr:
.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
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], 1
	je	.L3
	cmp	DWORD PTR -4[rbp], 2
	je	.L4
	cmp	DWORD PTR -4[rbp], 0
	jne	.L5
	lea	rax, .LC4[rip]
	jmp	.L8
.L5:
	lea	rax, .LC5[rip]
	jmp	.L8
.L4:
	lea	rax, .LC6[rip]
	jmp	.L8
.L3:
	lea	rax, .LC7[rip]
.L8:
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	display_sched_attr, .-display_sched_attr
	.section	.rodata
.LC9:
	.string	"pthread_getschedparam"
.LC10:
	.string	"\n%s "
	.text
	.type	display_thread_sched_attr, @function
display_thread_sched_attr:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	pthread_self@PLT
	mov	rcx, rax
	lea	rdx, -16[rbp]
	lea	rax, -20[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	pthread_getschedparam@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L10
	call	__errno_location@PLT
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, -16[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	display_sched_attr
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	display_thread_sched_attr, .-display_thread_sched_attr
	.section	.rodata
.LC11:
	.string	"jagi_%ld"
	.align 8
.LC12:
	.string	" thread number %3ld - multiplication iter num %2d"
	.text
	.globl	printMessages
	.type	printMessages, @function
printMessages:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	lea	rax, -20[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	DWORD PTR -60[rbp], 1
	jmp	.L13
.L18:
	lea	rax, -20[rbp]
	mov	rdi, rax
	call	display_thread_sched_attr
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	QWORD PTR -40[rbp], 1234567890
	mov	QWORD PTR -32[rbp], 1234567890
	mov	DWORD PTR -56[rbp], 0
	jmp	.L14
.L17:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L15
.L16:
	add	DWORD PTR -52[rbp], 1
.L15:
	cmp	DWORD PTR -52[rbp], 1234567
	jle	.L16
	add	DWORD PTR -56[rbp], 1
.L14:
	cmp	DWORD PTR -56[rbp], 123
	jle	.L17
	add	DWORD PTR -60[rbp], 1
.L13:
	cmp	DWORD PTR -60[rbp], 25
	jle	.L18
	nop
	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
.LFE9:
	.size	printMessages, .-printMessages
	.section	.rodata
.LC13:
	.string	"main"
	.align 8
.LC14:
	.string	"\nError creating thread %2d : return code %2d"
.LC15:
	.string	"pthread_create"
	.align 8
.LC16:
	.string	"\n*** Finished creating child thread A ***"
	.align 8
.LC17:
	.string	"\nBefore creating child thread B - Wait for %2d"
	.align 8
.LC18:
	.string	"\nError creating thread %2d : return code %2d\n"
	.align 8
.LC19:
	.string	"\n*** Finished creating child thread B ***"
	.align 8
.LC20:
	.string	"\nBefore changing priority - Wait for %2d"
	.align 8
.LC21:
	.string	"\nChanging priority of child thread A"
.LC22:
	.string	"\n*** Joining thread *** A"
	.align 8
.LC23:
	.string	"Error joining thread A : return code %2d\n"
	.align 8
.LC24:
	.string	"\nCompleted Join thread A : return status %2ld"
.LC25:
	.string	"\n*** Joining thread *** B"
	.align 8
.LC26:
	.string	"Error joining thread B : return code %2d\n"
	.align 8
.LC27:
	.string	"\nCompleted Join thread B : return status %2ld"
	.text
	.globl	createChildThreads
	.type	createChildThreads, @function
createChildThreads:
.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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -148[rbp], 0
	mov	DWORD PTR -144[rbp], 0
	lea	rdi, .LC13[rip]
	call	display_thread_sched_attr
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rax, -128[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_attr_setdetachstate@PLT
	lea	rax, -128[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setinheritsched@PLT
	lea	rax, -128[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setschedpolicy@PLT
	mov	DWORD PTR -160[rbp], 10
	lea	rdx, -160[rbp]
	lea	rax, -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_attr_setschedparam@PLT
	add	DWORD PTR -144[rbp], 1
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	mov	rdx, rax
	lea	rax, -128[rbp]
	mov	rcx, rdx
	lea	rdx, printMessages[rip]
	mov	rsi, rax
	lea	rdi, childThreadA[rip]
	call	pthread_create@PLT
	mov	DWORD PTR -140[rbp], eax
	cmp	DWORD PTR -140[rbp], 0
	je	.L21
	mov	edx, DWORD PTR -140[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	call	__errno_location@PLT
	mov	edx, DWORD PTR -140[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -128[rbp]
	mov	rdi, rax
	call	pthread_attr_destroy@PLT
	mov	DWORD PTR -148[rbp], 1
	mov	eax, DWORD PTR -148[rbp]
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -148[rbp]
	imul	eax, eax, 1000000
	mov	edi, eax
	call	usleep@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rax, -64[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_attr_setdetachstate@PLT
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setinheritsched@PLT
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setschedpolicy@PLT
	mov	DWORD PTR -156[rbp], 11
	lea	rdx, -156[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_attr_setschedparam@PLT
	add	DWORD PTR -144[rbp], 1
	mov	eax, DWORD PTR -144[rbp]
	cdqe
	mov	rdx, rax
	lea	rax, -64[rbp]
	mov	rcx, rdx
	lea	rdx, printMessages[rip]
	mov	rsi, rax
	lea	rdi, childThreadB[rip]
	call	pthread_create@PLT
	mov	DWORD PTR -140[rbp], eax
	cmp	DWORD PTR -140[rbp], 0
	je	.L22
	cmp	DWORD PTR -140[rbp], 0
	je	.L23
	call	__errno_location@PLT
	mov	edx, DWORD PTR -140[rbp]
	mov	DWORD PTR [rax], edx
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	edx, DWORD PTR -140[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L20
.L22:
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_destroy@PLT
	call	rand@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	ecx, edx
	add	ecx, ecx
	add	ecx, edx
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 2[rdx]
	mov	DWORD PTR -148[rbp], eax
	mov	eax, DWORD PTR -148[rbp]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -148[rbp]
	imul	eax, eax, 1000000
	mov	edi, eax
	call	usleep@PLT
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -152[rbp], 15
	mov	rax, QWORD PTR childThreadA[rip]
	lea	rdx, -152[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_setschedparam@PLT
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR childThreadA[rip]
	lea	rdx, -136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -140[rbp], eax
	cmp	DWORD PTR -140[rbp], 0
	je	.L25
	mov	eax, DWORD PTR -140[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
.L25:
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR childThreadB[rip]
	lea	rdx, -136[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_join@PLT
	mov	DWORD PTR -140[rbp], eax
	cmp	DWORD PTR -140[rbp], 0
	je	.L26
	mov	eax, DWORD PTR -140[rbp]
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
.L26:
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
.L20:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	createChildThreads, .-createChildThreads
	.globl	main
	.type	main, @function
main:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, 0
	call	createChildThreads
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"971682.c"
	.text
	.comm	childThreadA,4,4
	.comm	childThreadB,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Support %d\012\000"
	.align	2
.LC1:
	.ascii	"FIFO %d\012\000"
	.align	2
.LC2:
	.ascii	"RR %d\012\000"
	.align	2
.LC3:
	.ascii	"OTHER %d\012\000"
	.text
	.align	2
	.global	checkPthreadSupport
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkPthreadSupport, %function
checkPthreadSupport:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L2
	ldr	r0, .L2+4
	bl	printf
	mov	r1, #1
	ldr	r0, .L2+8
	bl	printf
	mov	r1, #2
	ldr	r0, .L2+12
	bl	printf
	mov	r1, #0
	ldr	r0, .L2+16
	bl	printf
	nop
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	200809
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	checkPthreadSupport, .-checkPthreadSupport
	.section	.rodata
	.align	2
.LC4:
	.ascii	"SCHED_OTHER\000"
	.align	2
.LC5:
	.ascii	"???\000"
	.align	2
.LC6:
	.ascii	"SCHED_RR\000"
	.align	2
.LC7:
	.ascii	"SCHED_FIFO\000"
	.align	2
.LC8:
	.ascii	"policy=%s, priority=%d,\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_sched_attr, %function
display_sched_attr:
	@ 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	r3, [fp, #-8]
	cmp	r3, #1
	beq	.L5
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	beq	.L6
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L11
	b	.L10
.L7:
	ldr	r3, .L11+4
	b	.L10
.L6:
	ldr	r3, .L11+8
	b	.L10
.L5:
	ldr	r3, .L11+12
.L10:
	ldr	r2, [fp, #-12]
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L11+16
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	display_sched_attr, .-display_sched_attr
	.section	.rodata
	.align	2
.LC9:
	.ascii	"pthread_getschedparam\000"
	.align	2
.LC10:
	.ascii	"\012%s \000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	display_thread_sched_attr, %function
display_thread_sched_attr:
	@ 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, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	pthread_self
	sub	r2, fp, #16
	sub	r3, fp, #20
	mov	r1, r3
	bl	pthread_getschedparam
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L14
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r0, .L16+4
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	ldr	r1, [fp, #-24]
	ldr	r0, .L16+8
	bl	printf
	ldr	r3, [fp, #-20]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	display_sched_attr
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC11
	.word	.LC9
	.word	.LC10
	.size	display_thread_sched_attr, .-display_thread_sched_attr
	.section	.rodata
	.align	2
.LC12:
	.ascii	"jagi_%ld\000"
	.align	2
.LC13:
	.ascii	" thread number %3ld - multiplication iter num %2d\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printMessages
	.syntax unified
	.arm
	.fpu softvfp
	.type	printMessages, %function
printMessages:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-32]
	sub	r3, fp, #20
	ldr	r2, [fp, #-32]
	ldr	r1, .L26+4
	mov	r0, r3
	bl	sprintf
	mov	r3, #1
	str	r3, [fp, #-44]
	b	.L19
.L24:
	sub	r3, fp, #20
	mov	r0, r3
	bl	display_thread_sched_attr
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-32]
	ldr	r0, .L26+8
	bl	printf
	ldr	r3, .L26+12
	str	r3, [fp, #-28]
	ldr	r3, .L26+12
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L20
.L23:
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L21
.L22:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L21:
	ldr	r3, [fp, #-36]
	ldr	r2, .L26+16
	cmp	r3, r2
	ble	.L22
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L20:
	ldr	r3, [fp, #-40]
	cmp	r3, #123
	ble	.L23
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L19:
	ldr	r3, [fp, #-44]
	cmp	r3, #25
	ble	.L24
	nop
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC14
	.word	.LC12
	.word	.LC13
	.word	1234567890
	.word	1234567
	.size	printMessages, .-printMessages
	.section	.rodata
	.align	2
.LC15:
	.ascii	"main\000"
	.align	2
.LC16:
	.ascii	"\012Error creating thread %2d : return code %2d\000"
	.align	2
.LC17:
	.ascii	"pthread_create\000"
	.align	2
.LC18:
	.ascii	"\012*** Finished creating child thread A ***\000"
	.align	2
.LC19:
	.ascii	"\012Before creating child thread B - Wait for %2d\000"
	.align	2
.LC20:
	.ascii	"\012Error creating thread %2d : return code %2d\012"
	.ascii	"\000"
	.align	2
.LC21:
	.ascii	"\012*** Finished creating child thread B ***\000"
	.align	2
.LC22:
	.ascii	"\012Before changing priority - Wait for %2d\000"
	.align	2
.LC23:
	.ascii	"\012Changing priority of child thread A\000"
	.align	2
.LC24:
	.ascii	"\012*** Joining thread *** A\000"
	.align	2
.LC25:
	.ascii	"Error joining thread A : return code %2d\012\000"
	.align	2
.LC26:
	.ascii	"\012Completed Join thread A : return status %2ld\000"
	.align	2
.LC27:
	.ascii	"\012*** Joining thread *** B\000"
	.align	2
.LC28:
	.ascii	"Error joining thread B : return code %2d\012\000"
	.align	2
.LC29:
	.ascii	"\012Completed Join thread B : return status %2ld\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	createChildThreads
	.syntax unified
	.arm
	.fpu softvfp
	.type	createChildThreads, %function
createChildThreads:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #104
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-92]
	mov	r3, #0
	str	r3, [fp, #-88]
	ldr	r0, .L36+4
	bl	display_thread_sched_attr
	sub	r3, fp, #80
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #80
	mov	r1, #0
	mov	r0, r3
	bl	pthread_attr_setdetachstate
	sub	r3, fp, #80
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setinheritsched
	sub	r3, fp, #80
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setschedpolicy
	mov	r3, #10
	str	r3, [fp, #-108]
	sub	r2, fp, #108
	sub	r3, fp, #80
	mov	r1, r2
	mov	r0, r3
	bl	pthread_attr_setschedparam
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	sub	r1, fp, #80
	ldr	r2, .L36+8
	ldr	r0, .L36+12
	bl	pthread_create
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L29
	ldr	r2, [fp, #-84]
	ldr	r1, [fp, #-88]
	ldr	r0, .L36+16
	bl	printf
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-84]
	str	r3, [r2]
	ldr	r0, .L36+20
	bl	perror
	mov	r0, #1
	bl	exit
.L29:
	ldr	r0, .L36+24
	bl	printf
	sub	r3, fp, #80
	mov	r0, r3
	bl	pthread_attr_destroy
	mov	r3, #1
	str	r3, [fp, #-92]
	ldr	r1, [fp, #-92]
	ldr	r0, .L36+28
	bl	printf
	ldr	r1, [fp, #-92]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r0, r3
	bl	usleep
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #44
	mov	r1, #0
	mov	r0, r3
	bl	pthread_attr_setdetachstate
	sub	r3, fp, #44
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setinheritsched
	sub	r3, fp, #44
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setschedpolicy
	mov	r3, #11
	str	r3, [fp, #-104]
	sub	r2, fp, #104
	sub	r3, fp, #44
	mov	r1, r2
	mov	r0, r3
	bl	pthread_attr_setschedparam
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-88]
	sub	r1, fp, #44
	ldr	r2, .L36+8
	ldr	r0, .L36+32
	bl	pthread_create
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L31
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-84]
	str	r3, [r2]
	ldr	r0, .L36+20
	bl	perror
	mov	r0, #1
	bl	exit
.L31:
	ldr	r2, [fp, #-84]
	ldr	r1, [fp, #-88]
	ldr	r0, .L36+36
	bl	printf
	b	.L28
.L30:
	ldr	r0, .L36+40
	bl	printf
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_destroy
	bl	rand
	mov	r1, r0
	ldr	r3, .L36+44
	smull	r0, r2, r3, r1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	sub	r2, r1, r3
	add	r3, r2, #2
	str	r3, [fp, #-92]
	ldr	r1, [fp, #-92]
	ldr	r0, .L36+48
	bl	printf
	ldr	r1, [fp, #-92]
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #6
	mov	r0, r3
	bl	usleep
	ldr	r0, .L36+52
	bl	printf
	mov	r3, #15
	str	r3, [fp, #-100]
	ldr	r3, .L36+12
	ldr	r3, [r3]
	sub	r2, fp, #100
	mov	r1, #1
	mov	r0, r3
	bl	pthread_setschedparam
	ldr	r0, .L36+56
	bl	printf
	ldr	r3, .L36+12
	ldr	r3, [r3]
	sub	r2, fp, #96
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L33
	ldr	r1, [fp, #-84]
	ldr	r0, .L36+60
	bl	printf
.L33:
	ldr	r3, [fp, #-96]
	mov	r1, r3
	ldr	r0, .L36+64
	bl	printf
	ldr	r0, .L36+68
	bl	printf
	ldr	r3, .L36+32
	ldr	r3, [r3]
	sub	r2, fp, #96
	mov	r1, r2
	mov	r0, r3
	bl	pthread_join
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmp	r3, #0
	beq	.L34
	ldr	r1, [fp, #-84]
	ldr	r0, .L36+72
	bl	printf
.L34:
	ldr	r3, [fp, #-96]
	mov	r1, r3
	ldr	r0, .L36+76
	bl	printf
.L28:
	ldr	r3, .L36
	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}
.L37:
	.align	2
.L36:
	.word	.LC30
	.word	.LC15
	.word	printMessages
	.word	childThreadA
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	childThreadB
	.word	.LC20
	.word	.LC21
	.word	1431655766
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	createChildThreads, .-createChildThreads
	.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]
	bl	createChildThreads
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
