	.file	"452298.c"
	.intel_syntax noprefix
	.text
	.globl	numberLength
	.section	.rodata
	.align 4
	.type	numberLength, @object
	.size	numberLength, 4
numberLength:
	.long	4
	.text
	.globl	numberToDigits
	.type	numberToDigits, @function
numberToDigits:
.LFB6:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, [rdx+rax]
	mov	ecx, DWORD PTR -28[rbp]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	edi, ecx
	sar	edi, 31
	sub	eax, edi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	mov	DWORD PTR [rsi], edx
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -28[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L2:
	cmp	DWORD PTR -28[rbp], 0
	jg	.L3
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	numberToDigits, .-numberToDigits
	.globl	countingNumberOfCowsAndBulls
	.type	countingNumberOfCowsAndBulls, @function
countingNumberOfCowsAndBulls:
.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 -84[rbp], edi
	mov	DWORD PTR -88[rbp], esi
	mov	QWORD PTR -96[rbp], rdx
	mov	QWORD PTR -104[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 4
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -64[rbp], rax
	mov	edx, DWORD PTR -84[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	numberToDigits
	mov	eax, 4
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	edx, DWORD PTR -88[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	numberToDigits
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	je	.L6
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	edx, DWORD PTR -48[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	edx, DWORD PTR -48[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -48[rbp+rax*4], edx
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -104[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	DWORD PTR [rax], edx
.L7:
	add	DWORD PTR -72[rbp], 1
.L5:
	mov	eax, 4
	cmp	DWORD PTR -72[rbp], eax
	jl	.L8
	mov	DWORD PTR -68[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -68[rbp]
	cdqe
	mov	eax, DWORD PTR -48[rbp+rax*4]
	cmp	eax, 2
	jne	.L10
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	DWORD PTR [rax], edx
.L10:
	add	DWORD PTR -68[rbp], 1
.L9:
	cmp	DWORD PTR -68[rbp], 9
	jle	.L11
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	countingNumberOfCowsAndBulls, .-countingNumberOfCowsAndBulls
	.globl	getRandomNumber
	.type	getRandomNumber, @function
getRandomNumber:
.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	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, 954437177
	shr	rdx, 32
	sar	edx
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	ecx, edx
	sal	ecx, 3
	add	ecx, edx
	sub	eax, ecx
	mov	edx, eax
	lea	eax, 1[rdx]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	imul	eax, eax, 1000
	mov	DWORD PTR -32[rbp], eax
	mov	QWORD PTR -18[rbp], 0
	mov	WORD PTR -10[rbp], 0
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], 1
	mov	DWORD PTR -28[rbp], 3
	jmp	.L14
.L15:
	call	rand@PLT
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	DWORD PTR -24[rbp], eax
	mov	ecx, DWORD PTR -24[rbp]
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	sub	edx, eax
	mov	DWORD PTR -24[rbp], edx
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR -18[rbp+rax]
	xor	eax, 1
	test	al, al
	je	.L14
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	eax, xmm0
	imul	eax, DWORD PTR -24[rbp]
	add	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], 1
	sub	DWORD PTR -28[rbp], 1
.L14:
	cmp	DWORD PTR -28[rbp], 0
	jg	.L15
	mov	eax, DWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getRandomNumber, .-getRandomNumber
	.globl	getNumberOfDigitsInNumber
	.type	getNumberOfDigitsInNumber, @function
getNumberOfDigitsInNumber:
.LFB9:
	.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 -20[rbp], edi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L19:
	cmp	DWORD PTR -20[rbp], 0
	jg	.L20
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	getNumberOfDigitsInNumber, .-getNumberOfDigitsInNumber
	.globl	cleanStdin
	.type	cleanStdin, @function
cleanStdin:
.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
.L24:
	call	getchar@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	je	.L25
	cmp	DWORD PTR -4[rbp], 10
	jne	.L24
.L25:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cleanStdin, .-cleanStdin
	.globl	checkInputNumber
	.type	checkInputNumber, @function
checkInputNumber:
.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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	cmp	DWORD PTR -40[rbp], 1
	jne	.L27
	cmp	DWORD PTR -36[rbp], 0
	js	.L27
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	getNumberOfDigitsInNumber
	cmp	eax, 4
	je	.L28
.L27:
	mov	eax, 0
	jmp	.L29
.L28:
	mov	eax, 4
	cdqe
	mov	esi, 4
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	edx, DWORD PTR -36[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	numberToDigits
	mov	esi, 4
	mov	edi, 10
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -24[rbp], 1
.L30:
	mov	eax, 4
	cmp	DWORD PTR -24[rbp], eax
	jl	.L31
	mov	BYTE PTR -25[rbp], 1
	mov	DWORD PTR -20[rbp], 0
	jmp	.L32
.L35:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jle	.L33
	mov	BYTE PTR -25[rbp], 0
	jmp	.L34
.L33:
	add	DWORD PTR -20[rbp], 1
.L32:
	cmp	DWORD PTR -20[rbp], 9
	jle	.L35
.L34:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	movzx	eax, BYTE PTR -25[rbp]
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	checkInputNumber, .-checkInputNumber
	.section	.rodata
.LC1:
	.string	"%d"
.LC2:
	.string	"Enter the correct number:"
	.text
	.globl	getInputNumber
	.type	getInputNumber, @function
getInputNumber:
.LFB12:
	.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	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -4[rbp], eax
	jmp	.L37
.L38:
	mov	eax, 0
	call	cleanStdin
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -4[rbp], eax
.L37:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	checkInputNumber
	xor	eax, 1
	test	al, al
	jne	.L38
	mov	eax, 0
	call	cleanStdin
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	getInputNumber, .-getInputNumber
	.section	.rodata
	.align 8
.LC3:
	.string	"I made up a four-digit number. Try to guess it ;)\n"
	.align 8
.LC4:
	.string	"Attention! You must enter a positive four-digit number, which consists of different digits."
.LC5:
	.string	"\nEnter the estimated number:"
.LC6:
	.string	"You WIN! (In %d moves)"
.LC7:
	.string	"Number of cows: %d \n"
.LC8:
	.string	"Number of bulls: %d \n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB13:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -28[rbp], 0
	mov	eax, 0
	call	getRandomNumber
	mov	DWORD PTR -12[rbp], eax
.L42:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -28[rbp]
	mov	rdi, rax
	call	getInputNumber
	mov	eax, DWORD PTR -28[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L40
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L43
	jmp	.L44
.L40:
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	esi, DWORD PTR -28[rbp]
	lea	rcx, -20[rbp]
	lea	rdx, -24[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	countingNumberOfCowsAndBulls
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -16[rbp], 1
	jmp	.L42
.L44:
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1076101120
	.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	"452298.c"
	.text
	.global	numberLength
	.section	.rodata
	.align	2
	.type	numberLength, %object
	.size	numberLength, 4
numberLength:
	.word	4
	.text
	.align	2
	.global	numberToDigits
	.syntax unified
	.arm
	.fpu softvfp
	.type	numberToDigits, %function
numberToDigits:
	@ 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]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r0, r2, r3
	ldr	r1, [fp, #-20]
	ldr	r3, .L4
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	str	r2, [r0]
	ldr	r3, [fp, #-20]
	ldr	r2, .L4
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L2:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L3
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	1717986919
	.size	numberToDigits, .-numberToDigits
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	countingNumberOfCowsAndBulls
	.syntax unified
	.arm
	.fpu softvfp
	.type	countingNumberOfCowsAndBulls, %function
countingNumberOfCowsAndBulls:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #4
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-56]
	ldr	r1, [fp, #-72]
	ldr	r0, [fp, #-56]
	bl	numberToDigits
	mov	r3, #4
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-52]
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-52]
	bl	numberToDigits
	sub	r3, fp, #48
	mov	r2, #40
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L7
.L10:
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-52]
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L8
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	ldr	r2, [r3]
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-44]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-44]
	ldr	r3, [fp, #-64]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldr	r2, [r3]
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-44]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-44]
	b	.L9
.L8:
	ldr	r3, [fp, #-84]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-84]
	str	r2, [r3]
.L9:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L7:
	mov	r2, #4
	ldr	r3, [fp, #-64]
	cmp	r3, r2
	blt	.L10
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L11
.L13:
	ldr	r3, [fp, #-60]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-44]
	cmp	r3, #2
	bne	.L12
	ldr	r3, [fp, #-80]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-80]
	str	r2, [r3]
.L12:
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L11:
	ldr	r3, [fp, #-60]
	cmp	r3, #9
	ble	.L13
	ldr	r0, [fp, #-52]
	bl	free
	ldr	r0, [fp, #-56]
	bl	free
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	countingNumberOfCowsAndBulls, .-countingNumberOfCowsAndBulls
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getRandomNumber
	.syntax unified
	.arm
	.fpu softvfp
	.type	getRandomNumber, %function
getRandomNumber:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L22
	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, .L22+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	sub	r2, r1, r3
	add	r3, r2, #1
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	str	r3, [fp, #-32]
	sub	r3, fp, #20
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	strh	r2, [r3, #8]	@ movhi
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	mov	r3, #3
	str	r3, [fp, #-28]
	b	.L18
.L19:
	bl	rand
	mov	r2, r0
	ldr	r3, .L22+8
	smull	r1, r3, r2, r3
	asr	r1, r3, #2
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #1
	sub	r3, r2, r3
	str	r3, [fp, #-24]
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L22+12
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r2, r0
	ldr	r3, [fp, #-24]
	mul	r3, r2, r3
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	str	r3, [fp, #-32]
	sub	r2, fp, #20
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L18:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bgt	.L19
	ldr	r3, [fp, #-32]
	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	.LC1
	.word	954437177
	.word	1717986919
	.word	1076101120
	.size	getRandomNumber, .-getRandomNumber
	.align	2
	.global	getNumberOfDigitsInNumber
	.syntax unified
	.arm
	.fpu softvfp
	.type	getNumberOfDigitsInNumber, %function
getNumberOfDigitsInNumber:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L25
.L26:
	ldr	r3, [fp, #-16]
	ldr	r2, .L28
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L25:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L26
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L29:
	.align	2
.L28:
	.word	1717986919
	.size	getNumberOfDigitsInNumber, .-getNumberOfDigitsInNumber
	.align	2
	.global	cleanStdin
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanStdin, %function
cleanStdin:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
.L32:
	bl	getchar
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L33
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L32
.L33:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	cleanStdin, .-cleanStdin
	.align	2
	.global	checkInputNumber
	.syntax unified
	.arm
	.fpu softvfp
	.type	checkInputNumber, %function
checkInputNumber:
	@ 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, [fp, #-36]
	cmp	r3, #1
	bne	.L35
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	blt	.L35
	ldr	r0, [fp, #-32]
	bl	getNumberOfDigitsInNumber
	mov	r3, r0
	cmp	r3, #4
	beq	.L36
.L35:
	mov	r3, #0
	b	.L37
.L36:
	mov	r3, #4
	mov	r1, #4
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-12]
	bl	numberToDigits
	mov	r1, #4
	mov	r0, #10
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L38
.L39:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L38:
	mov	r2, #4
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	blt	.L39
	mov	r3, #1
	strb	r3, [fp, #-21]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L40
.L43:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	ble	.L41
	mov	r3, #0
	strb	r3, [fp, #-21]
	b	.L42
.L41:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L40:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	ble	.L43
.L42:
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r0, [fp, #-12]
	bl	free
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	checkInputNumber, .-checkInputNumber
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%d\000"
	.align	2
.LC3:
	.ascii	"Enter the correct number:\000"
	.text
	.align	2
	.global	getInputNumber
	.syntax unified
	.arm
	.fpu softvfp
	.type	getInputNumber, %function
getInputNumber:
	@ 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	r1, [fp, #-16]
	ldr	r0, .L47
	bl	__isoc99_scanf
	str	r0, [fp, #-8]
	b	.L45
.L46:
	bl	cleanStdin
	ldr	r0, .L47+4
	bl	puts
	ldr	r1, [fp, #-16]
	ldr	r0, .L47
	bl	__isoc99_scanf
	str	r0, [fp, #-8]
.L45:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	checkInputNumber
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L46
	bl	cleanStdin
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	.LC2
	.word	.LC3
	.size	getInputNumber, .-getInputNumber
	.section	.rodata
	.align	2
.LC4:
	.ascii	"I made up a four-digit number. Try to guess it ;)\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"Attention! You must enter a positive four-digit num"
	.ascii	"ber, which consists of different digits.\000"
	.align	2
.LC6:
	.ascii	"\012Enter the estimated number:\000"
	.align	2
.LC7:
	.ascii	"You WIN! (In %d moves)\000"
	.align	2
.LC8:
	.ascii	"Number of cows: %d \012\000"
	.align	2
.LC9:
	.ascii	"Number of bulls: %d \012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L55+4
	bl	puts
	ldr	r0, .L55+8
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-28]
	bl	getRandomNumber
	str	r0, [fp, #-12]
.L52:
	ldr	r0, .L55+12
	bl	puts
	sub	r3, fp, #28
	mov	r0, r3
	bl	getInputNumber
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L50
	ldr	r1, [fp, #-16]
	ldr	r0, .L55+16
	bl	printf
	mov	r3, #0
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L53
	b	.L54
.L50:
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-28]
	sub	r3, fp, #20
	sub	r2, fp, #24
	ldr	r0, [fp, #-12]
	bl	countingNumberOfCowsAndBulls
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L55+20
	bl	printf
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L55+24
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L52
.L54:
	bl	__stack_chk_fail
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC10
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
