	.file	"183892.c"
	.intel_syntax noprefix
	.text
	.globl	expected
	.bss
	.align 4
	.type	expected, @object
	.size	expected, 4
expected:
	.zero	4
	.globl	length
	.align 4
	.type	length, @object
	.size	length, 4
length:
	.zero	4
	.globl	ok
	.align 4
	.type	ok, @object
	.size	ok, 4
ok:
	.zero	4
	.globl	entered_digits
	.align 8
	.type	entered_digits, @object
	.size	entered_digits, 10
entered_digits:
	.zero	10
	.globl	result
	.align 16
	.type	result, @object
	.size	result, 22
result:
	.zero	22
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, entered_digits[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, entered_digits[rip]
	call	strlen@PLT
	mov	DWORD PTR length[rip], eax
	lea	rsi, expected[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR entered_digits[rip]
	mov	BYTE PTR result[rip], al
	movzx	eax, BYTE PTR entered_digits[rip]
	movsx	eax, al
	sub	eax, 48
	mov	edx, 0
	mov	esi, eax
	mov	edi, 1
	call	calculation
	mov	eax, DWORD PTR ok[rip]
	test	eax, eax
	jne	.L2
	mov	esi, -1
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	calculation
	.type	calculation, @function
calculation:
.LFB1:
	.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	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	DWORD PTR -28[rbp], edx
	mov	eax, DWORD PTR length[rip]
	cmp	DWORD PTR -20[rbp], eax
	jne	.L5
	mov	eax, DWORD PTR expected[rip]
	cmp	DWORD PTR -24[rbp], eax
	jne	.L10
	mov	DWORD PTR ok[rip], 1
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, result[rip]
	mov	BYTE PTR [rax+rdx], 61
	lea	rsi, result[rip]
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L5:
	mov	DWORD PTR -4[rbp], 0
	cmp	DWORD PTR -20[rbp], 0
	jle	.L8
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, result[rip]
	mov	BYTE PTR [rax+rdx], 45
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, entered_digits[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, result[rip]
	mov	BYTE PTR [rax+rcx], dl
.L8:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, entered_digits[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	eax, DWORD PTR -24[rbp]
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, ecx
	call	calculation
	cmp	DWORD PTR -20[rbp], 0
	jle	.L9
	mov	eax, DWORD PTR -8[rbp]
	sub	eax, 1
	cdqe
	lea	rdx, result[rip]
	mov	BYTE PTR [rax+rdx], 43
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, entered_digits[rip]
	movzx	edx, BYTE PTR [rax+rdx]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, result[rip]
	mov	BYTE PTR [rax+rcx], dl
.L9:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, entered_digits[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	movsx	eax, al
	lea	edx, -48[rax]
	mov	eax, DWORD PTR -24[rbp]
	add	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, ecx
	call	calculation
	jmp	.L4
.L10:
	nop
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	calculation, .-calculation
	.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	"183892.c"
	.text
	.comm	expected,4,4
	.comm	length,4,4
	.global	ok
	.bss
	.align	2
	.type	ok, %object
	.size	ok, 4
ok:
	.space	4
	.comm	entered_digits,10,4
	.comm	result,22,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L4
	ldr	r0, .L4+4
	bl	__isoc99_scanf
	ldr	r0, .L4
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L4+8
	str	r2, [r3]
	ldr	r1, .L4+12
	ldr	r0, .L4+16
	bl	__isoc99_scanf
	ldr	r3, .L4
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, .L4+20
	strb	r2, [r3]
	ldr	r3, .L4
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	calculation
	ldr	r3, .L4+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	mvn	r1, #0
	ldr	r0, .L4+28
	bl	printf
.L2:
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	entered_digits
	.word	.LC0
	.word	length
	.word	expected
	.word	.LC1
	.word	result
	.word	ok
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	calculation
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculation, %function
calculation:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, .L13
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bne	.L7
	ldr	r3, .L13+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L12
	ldr	r3, .L13+8
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, .L13+12
	mov	r1, #61
	strb	r1, [r2, r3]
	ldr	r1, .L13+12
	ldr	r0, .L13+16
	bl	printf
	ldr	r1, [fp, #-20]
	ldr	r0, .L13+20
	bl	printf
	b	.L12
.L7:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L10
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, .L13+12
	mov	r1, #45
	strb	r1, [r2, r3]
	ldr	r2, .L13+24
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, .L13+12
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L10:
	ldr	r2, .L13+24
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	ldr	r2, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r0, r3, #1
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-8]
	bl	calculation
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L11
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	ldr	r2, .L13+12
	mov	r1, #43
	strb	r1, [r2, r3]
	ldr	r2, .L13+24
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r1, [r3]	@ zero_extendqisi2
	ldr	r2, .L13+12
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
.L11:
	ldr	r2, .L13+24
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r0, r3, #1
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-8]
	bl	calculation
	b	.L6
.L12:
	nop
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	length
	.word	expected
	.word	ok
	.word	result
	.word	.LC0
	.word	.LC2
	.word	entered_digits
	.size	calculation, .-calculation
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
