	.file	"80047.c"
	.intel_syntax noprefix
	.text
	.globl	b
	.bss
	.align 4
	.type	b, @object
	.size	b, 4
b:
	.zero	4
	.section	.rodata
.LC0:
	.string	"\t\t\t\t2: Pracuje %d sek. ...\n"
.LC1:
	.string	"\t\t\t\t2: Modyfikuje b"
.LC2:
	.string	"\t\t\t\t2: b = %d\n"
	.text
	.globl	start
	.type	start, @function
start:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	edi, 0
	call	time@PLT
	add	eax, 20
	mov	edi, eax
	call	srand@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, 1[rdx]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	sleep@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR b[rip], 2
	mov	eax, DWORD PTR b[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	start, .-start
	.section	.rodata
.LC3:
	.string	"1: Modyfikuje b"
.LC4:
	.string	"1: a = %d, b = %d\n"
.LC5:
	.string	"1: Pracuje %d sek. ... \n"
.LC6:
	.string	"1: c = a + b = %d\n"
	.align 8
.LC7:
	.string	"1: Obliczenia przeprowadzone prawidlowo."
.LC8:
	.string	"1: Niepoprawne obliczenia!"
	.text
	.globl	main
	.type	main, @function
main:
.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@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, 1[rdx]
	mov	DWORD PTR -84[rbp], eax
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rsi, -64[rbp]
	lea	rax, -72[rbp]
	mov	ecx, 0
	lea	rdx, start[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	DWORD PTR -80[rbp], 1
	mov	DWORD PTR b[rip], 1
	mov	edx, DWORD PTR b[rip]
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	sleep@PLT
	mov	edx, DWORD PTR b[rip]
	mov	eax, DWORD PTR -80[rbp]
	add	eax, edx
	mov	DWORD PTR -76[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -76[rbp], 2
	jne	.L4
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L5
.L4:
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L5:
	mov	rax, QWORD PTR -72[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"80047.c"
	.text
	.comm	b,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\011\011\011\0112: Pracuje %d sek. ...\012\000"
	.align	2
.LC1:
	.ascii	"\011\011\011\0112: Modyfikuje b\000"
	.align	2
.LC2:
	.ascii	"\011\011\011\0112: b = %d\012\000"
	.text
	.align	2
	.global	start
	.syntax unified
	.arm
	.fpu softvfp
	.type	start, %function
start:
	@ 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]
	mov	r0, #0
	bl	time
	mov	r3, r0
	add	r3, r3, #20
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r1, r0
	ldr	r3, .L3
	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, #1
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L3+4
	bl	printf
	ldr	r3, [fp, #-8]
	mov	r0, r3
	bl	sleep
	ldr	r0, .L3+8
	bl	puts
	ldr	r3, .L3+12
	mov	r2, #2
	str	r2, [r3]
	ldr	r3, .L3+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L3+16
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	1431655766
	.word	.LC0
	.word	.LC1
	.word	b
	.word	.LC2
	.size	start, .-start
	.section	.rodata
	.align	2
.LC3:
	.ascii	"1: Modyfikuje b\000"
	.align	2
.LC4:
	.ascii	"1: a = %d, b = %d\012\000"
	.align	2
.LC5:
	.ascii	"1: Pracuje %d sek. ... \012\000"
	.align	2
.LC6:
	.ascii	"1: c = a + b = %d\012\000"
	.align	2
.LC7:
	.ascii	"1: Obliczenia przeprowadzone prawidlowo.\000"
	.align	2
.LC8:
	.ascii	"1: Niepoprawne obliczenia!\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	bl	rand
	mov	r1, r0
	ldr	r3, .L10+4
	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, #1
	str	r3, [fp, #-56]
	sub	r3, fp, #44
	mov	r0, r3
	bl	pthread_attr_init
	sub	r1, fp, #44
	sub	r0, fp, #60
	mov	r3, #0
	ldr	r2, .L10+8
	bl	pthread_create
	ldr	r0, .L10+12
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-52]
	ldr	r3, .L10+16
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L10+16
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-52]
	ldr	r0, .L10+20
	bl	printf
	ldr	r1, [fp, #-56]
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	sleep
	ldr	r3, .L10+16
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	str	r3, [fp, #-48]
	ldr	r1, [fp, #-48]
	ldr	r0, .L10+28
	bl	printf
	ldr	r3, [fp, #-48]
	cmp	r3, #2
	bne	.L6
	ldr	r0, .L10+32
	bl	puts
	b	.L7
.L6:
	ldr	r0, .L10+36
	bl	puts
.L7:
	ldr	r3, [fp, #-60]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC9
	.word	1431655766
	.word	start
	.word	.LC3
	.word	b
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
