	.file	"280186.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"give me just a number"
.LC1:
	.string	"%lld ^ %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
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	cmp	DWORD PTR -52[rbp], 2
	je	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L3
.L2:
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -36[rbp], 0
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	js	.L5
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jg	.L5
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	add	rax, rax
	mov	rcx, rax
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rcx
	sub	rax, 48
	mov	QWORD PTR -24[rbp], rax
	add	DWORD PTR -36[rbp], 1
.L4:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L6
.L5:
	mov	QWORD PTR -16[rbp], 2
	jmp	.L7
.L12:
	mov	rax, QWORD PTR -24[rbp]
	cqo
	idiv	QWORD PTR -16[rbp]
	mov	rax, rdx
	test	rax, rax
	jne	.L14
	mov	DWORD PTR -32[rbp], 0
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -24[rbp]
	cqo
	idiv	QWORD PTR -16[rbp]
	mov	QWORD PTR -24[rbp], rax
	add	DWORD PTR -32[rbp], 1
.L10:
	mov	rax, QWORD PTR -24[rbp]
	cqo
	idiv	QWORD PTR -16[rbp]
	mov	rax, rdx
	test	rax, rax
	je	.L11
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L14:
	nop
.L9:
	add	QWORD PTR -16[rbp], 1
.L7:
	mov	rax, QWORD PTR -16[rbp]
	imul	rax, rax
	cmp	QWORD PTR -24[rbp], rax
	jge	.L12
	cmp	QWORD PTR -24[rbp], 1
	jle	.L13
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 1
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.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	"280186.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"give me just a number\000"
	.global	__aeabi_ldivmod
	.align	2
.LC1:
	.ascii	"%lld ^ %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, [fp, #-64]
	cmp	r3, #2
	beq	.L2
	ldr	r0, .L17
	bl	puts
	mov	r3, #0
	b	.L3
.L2:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-52]
	ldr	r0, [fp, #-52]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L4
.L7:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L15
	sub	r7, fp, #44
	ldmia	r7, {r6-r7}
	mov	r2, r6
	mov	r3, r7
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #2
	orr	r1, r1, r2, lsr #30
	lsl	r0, r2, #2
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r6
	adc	r3, r3, r7
	adds	r1, r2, r2
	str	r1, [fp, #-76]
	adc	r3, r3, r3
	str	r3, [fp, #-72]
	sub	r3, fp, #76
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-52]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #255
	mov	r3, #0
	adds	r4, r0, r2
	adc	r5, r1, r3
	subs	r3, r4, #48
	str	r3, [fp, #-84]
	sbc	r3, r5, #0
	str	r3, [fp, #-80]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L4:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L7
	b	.L6
.L15:
	nop
.L6:
	mov	r2, #2
	mov	r3, #0
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	b	.L8
.L13:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	orrs	r3, r2, r3
	bne	.L16
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L11
.L12:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L11:
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	bl	__aeabi_ldivmod
	orrs	r3, r2, r3
	beq	.L12
	ldr	r3, [fp, #-56]
	str	r3, [sp]
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r0, .L17+4
	bl	printf
	b	.L10
.L16:
	nop
.L10:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	str	r8, [fp, #-36]
	str	r9, [fp, #-32]
.L8:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	mul	r2, r3, r2
	ldr	r3, [fp, #-32]
	ldr	r1, [fp, #-36]
	mul	r3, r1, r3
	add	r0, r2, r3
	ldr	r1, [fp, #-36]
	umull	r2, r3, r1, r1
	add	r1, r0, r3
	mov	r3, r1
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L13
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	cmp	r2, #2
	sbcs	r3, r3, #0
	blt	.L14
	mov	r3, #1
	str	r3, [sp]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	ldr	r0, .L17+4
	bl	printf
.L14:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L18:
	.align	2
.L17:
	.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
