	.file	"199242.c"
	.intel_syntax noprefix
	.text
	.globl	global_counter
	.bss
	.align 8
	.type	global_counter, @object
	.size	global_counter, 8
global_counter:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Usage:\n%s inkerment number"
	.section	.data.rel.ro.local,"aw"
	.align 8
	.type	USAGE, @object
	.size	USAGE, 8
USAGE:
	.quad	.LC0
	.text
	.type	str_to_int, @function
str_to_int:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	QWORD PTR -24[rbp], 0
	lea	rcx, -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -16[rbp], rax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 34
	je	.L2
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -16[rbp]
	movq	xmm1, QWORD PTR .LC1[rip]
	andpd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC2[rip]
	ucomisd	xmm0, xmm1
	setb	al
	xor	eax, 1
	test	al, al
	je	.L2
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	cmp	rdx, rax
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	mov	BYTE PTR -29[rbp], al
	and	BYTE PTR -29[rbp], 1
	cmp	BYTE PTR -29[rbp], 0
	je	.L4
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
.L4:
	call	__errno_location@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
	movzx	eax, BYTE PTR -29[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	str_to_int, .-str_to_int
	.globl	increment
	.type	increment, @function
increment:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	jmp	.L8
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR global_counter[rip]
	add	rax, rdx
	mov	QWORD PTR global_counter[rip], rax
	add	QWORD PTR -16[rbp], 1
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -16[rbp], rax
	jl	.L9
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	increment, .-increment
	.section	.rodata
	.align 8
.LC3:
	.string	"Could not convert input arguments\n"
	.align 8
.LC4:
	.string	"Count with 2 active threads: %li \n"
.LC5:
	.string	"Expacted count: %li \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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 3
	je	.L12
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR [rax]
	lea	rcx, .LC0[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rdx, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	str_to_int
	xor	eax, 1
	test	al, al
	jne	.L13
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -32[rbp]
	add	rdx, 8
	mov	rsi, rdx
	mov	rdi, rax
	call	str_to_int
	xor	eax, 1
	test	al, al
	je	.L14
.L13:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 34
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	lea	rdx, -32[rbp]
	lea	rax, -48[rbp]
	mov	rcx, rdx
	lea	rdx, increment[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	lea	rdx, -32[rbp]
	lea	rax, -40[rbp]
	mov	rcx, rdx
	lea	rdx, increment[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	rax, QWORD PTR global_counter[rip]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	imul	rax, rdx
	add	rax, rax
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 16
.LC1:
	.long	-1
	.long	2147483647
	.long	0
	.long	0
	.align 8
.LC2:
	.long	-1
	.long	2146435071
	.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	"199242.c"
	.text
	.global	global_counter
	.bss
	.align	2
	.type	global_counter, %object
	.size	global_counter, 4
global_counter:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage:\012%s inkerment number\000"
	.align	2
	.type	USAGE, %object
	.size	USAGE, 4
USAGE:
	.word	.LC0
	.global	__aeabi_i2d
	.global	__aeabi_dcmpun
	.global	__aeabi_dcmpgt
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	str_to_int, %function
str_to_int:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #36
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-36]
	sub	r3, fp, #36
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	strtol
	str	r0, [fp, #-28]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #34
	beq	.L2
	ldr	r0, [fp, #-28]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	bic	r5, r3, #-2147483648
	mov	r3, #1
	mov	r6, r3
	mvn	r2, #0
	ldr	r3, .L8+4
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpun
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	mvn	r2, #0
	ldr	r3, .L8+4
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	mov	r3, #0
	mov	r6, r3
.L3:
	and	r3, r6, #255
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L2
	ldr	r0, [fp, #-48]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-48]
	add	r2, r3, r2
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bne	.L2
	mov	r3, #1
	b	.L4
.L2:
	mov	r3, #0
.L4:
	strb	r3, [fp, #-37]
	ldrb	r3, [fp, #-37]
	and	r3, r3, #1
	strb	r3, [fp, #-37]
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-28]
	str	r2, [r3]
.L5:
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-32]
	str	r3, [r2]
	ldrb	r3, [fp, #-37]	@ zero_extendqisi2
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	2146435071
	.size	str_to_int, .-str_to_int
	.align	2
	.global	increment
	.syntax unified
	.arm
	.fpu softvfp
	.type	increment, %function
increment:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L11
.L12:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, .L14
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L14
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L12
	mov	r3, #0
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L15:
	.align	2
.L14:
	.word	global_counter
	.size	increment, .-increment
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Could not convert input arguments\012\000"
	.align	2
.LC3:
	.ascii	"Count with 2 active threads: %li \012\000"
	.align	2
.LC4:
	.ascii	"Expacted count: %li \012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	beq	.L17
	ldr	r3, .L22+4
	ldr	r0, [r3]
	ldr	r1, .L22+8
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r2, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L17:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	str_to_int
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #16
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	str_to_int
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L19
.L18:
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #34
	mov	r1, #1
	ldr	r0, .L22+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L19:
	sub	r3, fp, #16
	sub	r0, fp, #24
	ldr	r2, .L22+16
	mov	r1, #0
	bl	pthread_create
	sub	r3, fp, #16
	sub	r0, fp, #20
	ldr	r2, .L22+16
	mov	r1, #0
	bl	pthread_create
	ldr	r3, [fp, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, [fp, #-20]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	ldr	r3, .L22+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L22+24
	bl	printf
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mul	r3, r2, r3
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r0, .L22+28
	bl	printf
	mov	r3, #0
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC5
	.word	stderr
	.word	.LC0
	.word	.LC2
	.word	increment
	.word	global_counter
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
