	.file	"48746.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%s"
.LC1:
	.string	"%d"
	.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
	sub	rsp, 480
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -440[rbp], 0
	mov	edi, 100
	call	malloc@PLT
	mov	QWORD PTR -424[rbp], rax
	mov	rax, QWORD PTR -424[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rax, -464[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -424[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	eax, 1
	mov	DWORD PTR -456[rbp], eax
	mov	DWORD PTR -452[rbp], 0
	jmp	.L2
.L5:
	mov	eax, DWORD PTR -452[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L3
	mov	eax, DWORD PTR -452[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jg	.L3
	mov	eax, DWORD PTR -452[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	mov	DWORD PTR -460[rbp], eax
	jmp	.L4
.L3:
	mov	eax, DWORD PTR -452[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 64
	jle	.L4
	mov	eax, DWORD PTR -452[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 70
	jg	.L4
	mov	eax, DWORD PTR -452[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 55
	mov	DWORD PTR -460[rbp], eax
.L4:
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -460[rbp]
	movsd	QWORD PTR -472[rbp], xmm2
	mov	eax, DWORD PTR -456[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -456[rbp], edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	eax, DWORD PTR -464[rbp]
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, eax
	movq	rax, xmm3
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm1, QWORD PTR -472[rbp]
	mulsd	xmm1, xmm0
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, QWORD PTR -440[rbp]
	addsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -440[rbp], rax
	add	DWORD PTR -452[rbp], 1
.L2:
	mov	eax, DWORD PTR -452[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -424[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L5
	mov	rax, QWORD PTR -440[rbp]
	mov	QWORD PTR -432[rbp], rax
	mov	DWORD PTR -444[rbp], 1
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -432[rbp]
	cqo
	shr	rdx, 63
	add	rax, rdx
	and	eax, 1
	sub	rax, rdx
	mov	rcx, rax
	mov	eax, DWORD PTR -444[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -444[rbp], edx
	mov	edx, ecx
	cdqe
	mov	DWORD PTR -416[rbp+rax*4], edx
	mov	rax, QWORD PTR -432[rbp]
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	mov	QWORD PTR -432[rbp], rax
.L6:
	cmp	QWORD PTR -432[rbp], 0
	jne	.L7
	mov	eax, DWORD PTR -444[rbp]
	sub	eax, 1
	mov	DWORD PTR -448[rbp], eax
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -448[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*4]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -448[rbp], 1
.L8:
	cmp	DWORD PTR -448[rbp], 0
	jg	.L9
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"48746.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2iz
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 440
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #440
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-456]
	mov	r0, #100
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-428]
	ldr	r1, [fp, #-428]
	ldr	r0, .L12+4
	bl	__isoc99_scanf
	sub	r3, fp, #460
	mov	r1, r3
	ldr	r0, .L12+8
	bl	__isoc99_scanf
	ldr	r0, [fp, #-428]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	str	r3, [fp, #-448]
	mov	r3, #0
	str	r3, [fp, #-444]
	b	.L2
.L5:
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-428]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L3
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-428]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L3
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-428]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	str	r3, [fp, #-452]
	b	.L4
.L3:
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-428]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L4
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-428]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #70
	bhi	.L4
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-428]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #55
	str	r3, [fp, #-452]
.L4:
	ldr	r0, [fp, #-452]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-460]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r6, r0
	mov	r7, r1
	ldr	r3, [fp, #-448]
	sub	r2, r3, #1
	str	r2, [fp, #-448]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-456]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-456]
	ldr	r3, [fp, #-444]
	add	r3, r3, #1
	str	r3, [fp, #-444]
.L2:
	ldr	r3, [fp, #-444]
	ldr	r2, [fp, #-428]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-456]
	str	r3, [fp, #-440]
	mov	r3, #1
	str	r3, [fp, #-432]
	b	.L6
.L7:
	ldr	r3, [fp, #-432]
	add	r2, r3, #1
	str	r2, [fp, #-432]
	ldr	r2, [fp, #-440]
	cmp	r2, #0
	and	r2, r2, #1
	rsblt	r2, r2, #0
	lsl	r3, r3, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-440]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-440]
.L6:
	ldr	r3, [fp, #-440]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-432]
	sub	r3, r3, #1
	str	r3, [fp, #-436]
	b	.L8
.L9:
	ldr	r3, [fp, #-436]
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r1, r3
	ldr	r0, .L12+8
	bl	printf
	ldr	r3, [fp, #-436]
	sub	r3, r3, #1
	str	r3, [fp, #-436]
.L8:
	ldr	r3, [fp, #-436]
	cmp	r3, #0
	bgt	.L9
	mov	r3, #0
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
