	.file	"524959.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	without_using_library_function
	mov	eax, 0
	call	using_library_function
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"Enter a number: "
.LC1:
	.string	"%s"
.LC2:
	.string	"Number: %d\n"
	.text
	.globl	without_using_library_function
	.type	without_using_library_function, @function
without_using_library_function:
.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, 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -132[rbp], 0
	mov	DWORD PTR -128[rbp], 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -120[rbp], eax
	mov	eax, DWORD PTR -120[rbp]
	sub	eax, 1
	mov	DWORD PTR -124[rbp], eax
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -124[rbp]
	cdqe
	movzx	eax, BYTE PTR -112[rbp+rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -128[rbp]
	mov	edi, eax
	call	power
	imul	eax, DWORD PTR -116[rbp]
	add	DWORD PTR -132[rbp], eax
	add	DWORD PTR -128[rbp], 1
	sub	DWORD PTR -124[rbp], 1
.L4:
	cmp	DWORD PTR -124[rbp], 0
	jg	.L5
	movzx	eax, BYTE PTR -112[rbp]
	cmp	al, 45
	jne	.L6
	neg	DWORD PTR -132[rbp]
	jmp	.L7
.L6:
	movzx	eax, BYTE PTR -112[rbp]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -128[rbp]
	mov	edi, eax
	call	power
	imul	eax, DWORD PTR -116[rbp]
	add	DWORD PTR -132[rbp], eax
.L7:
	mov	eax, DWORD PTR -132[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L8
	call	__stack_chk_fail@PLT
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	without_using_library_function, .-without_using_library_function
	.globl	using_library_function
	.type	using_library_function, @function
using_library_function:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -112[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -116[rbp], eax
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	using_library_function, .-using_library_function
	.globl	power
	.type	power, @function
power:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jle	.L12
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	edi, eax
	call	power
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	jmp	.L13
.L12:
	mov	eax, 1
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	power, .-power
	.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	"524959.c"
	.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
	bl	without_using_library_function
	bl	using_library_function
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
	.size	main, .-main
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter a number: \000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"Number: %d\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	without_using_library_function
	.syntax unified
	.arm
	.fpu softvfp
	.type	without_using_library_function, %function
without_using_library_function:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-128]
	mov	r3, #0
	str	r3, [fp, #-124]
	ldr	r0, .L9+4
	bl	printf
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L9+8
	bl	__isoc99_scanf
	sub	r3, fp, #108
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	sub	r3, r3, #1
	str	r3, [fp, #-120]
	b	.L4
.L5:
	sub	r2, fp, #108
	ldr	r3, [fp, #-120]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-112]
	ldr	r0, [fp, #-124]
	bl	power
	mov	r2, r0
	ldr	r3, [fp, #-112]
	mul	r3, r2, r3
	ldr	r2, [fp, #-128]
	add	r3, r2, r3
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	str	r3, [fp, #-120]
.L4:
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bgt	.L5
	ldrb	r3, [fp, #-108]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L6
	ldr	r3, [fp, #-128]
	rsb	r3, r3, #0
	str	r3, [fp, #-128]
	b	.L7
.L6:
	ldrb	r3, [fp, #-108]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-112]
	ldr	r0, [fp, #-124]
	bl	power
	mov	r2, r0
	ldr	r3, [fp, #-112]
	mul	r3, r2, r3
	ldr	r2, [fp, #-128]
	add	r3, r2, r3
	str	r3, [fp, #-128]
.L7:
	ldr	r1, [fp, #-128]
	ldr	r0, .L9+12
	bl	printf
	nop
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	without_using_library_function, .-without_using_library_function
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	using_library_function
	.syntax unified
	.arm
	.fpu softvfp
	.type	using_library_function, %function
using_library_function:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L13+4
	bl	printf
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, .L13+8
	bl	__isoc99_scanf
	sub	r3, fp, #108
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-112]
	ldr	r1, [fp, #-112]
	ldr	r0, .L13+12
	bl	printf
	nop
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	using_library_function, .-using_library_function
	.align	2
	.global	power
	.syntax unified
	.arm
	.fpu softvfp
	.type	power, %function
power:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L16
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	mov	r0, r3
	bl	power
	mov	r2, r0
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	b	.L17
.L16:
	mov	r3, #1
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	power, .-power
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
