	.file	"162751.c"
	.intel_syntax noprefix
	.text
	.globl	power
	.type	power, @function
power:
.LFB0:
	.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 -24[rbp], esi
	mov	DWORD PTR -4[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -4[rbp], eax
	add	DWORD PTR -8[rbp], 1
.L2:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	jl	.L3
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	power, .-power
	.section	.rodata
.LC0:
	.string	"Enter a number: "
.LC1:
	.string	"%d"
.LC2:
	.string	"the digit is: %d\n\n"
.LC3:
	.string	"The base is: %d\n"
.LC4:
	.string	"The fra is: %d\n"
.LC5:
	.string	"The mod is: %d\n"
.LC6:
	.string	"The quan is: %d\n"
.LC7:
	.string	"A"
.LC8:
	.string	"B"
.LC9:
	.string	"The n1 is: %d\n\n"
.LC10:
	.string	"The number of ones is: %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 72
	.cfi_offset 3, -24
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -44[rbp], 1
	mov	DWORD PTR -56[rbp], 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -60[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L8:
	mov	ebx, DWORD PTR -60[rbp]
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	mov	edi, 10
	call	power
	mov	ecx, eax
	mov	eax, ebx
	cdq
	idiv	ecx
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	je	.L16
	add	DWORD PTR -56[rbp], 1
	jmp	.L8
.L16:
	nop
	mov	eax, DWORD PTR -56[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -48[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	jmp	.L9
.L12:
	mov	eax, DWORD PTR -52[rbp]
	add	eax, 1
	mov	esi, eax
	mov	edi, 10
	call	power
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -60[rbp]
	cdq
	idiv	DWORD PTR -40[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -60[rbp]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, eax
	movq	rax, xmm2
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	fmod@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	mov	edi, 10
	call	power
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -28[rbp]
	add	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	cmp	DWORD PTR -32[rbp], eax
	jl	.L10
	mov	eax, DWORD PTR -28[rbp]
	add	DWORD PTR -48[rbp], eax
	lea	rdi, .LC7[rip]
	call	puts@PLT
.L10:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	cmp	DWORD PTR -32[rbp], eax
	setl	al
	movzx	eax, al
	cmp	DWORD PTR -28[rbp], eax
	jg	.L11
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -28[rbp]
	add	eax, 1
	add	DWORD PTR -48[rbp], eax
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L11:
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -52[rbp], 1
.L9:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jl	.L12
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	call	getchar@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.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	"162751.c"
	.text
	.align	2
	.global	power
	.syntax unified
	.arm
	.fpu softvfp
	.type	power, %function
power:
	@ 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, #1
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L2
.L3:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	mul	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L3
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	power, .-power
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter a number: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.global	__aeabi_idiv
	.align	2
.LC2:
	.ascii	"the digit is: %d\012\012\000"
	.align	2
.LC3:
	.ascii	"The base is: %d\012\000"
	.align	2
.LC4:
	.ascii	"The fra is: %d\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.align	2
.LC5:
	.ascii	"The mod is: %d\012\000"
	.align	2
.LC6:
	.ascii	"The quan is: %d\012\000"
	.align	2
.LC7:
	.ascii	"A\000"
	.align	2
.LC8:
	.ascii	"B\000"
	.align	2
.LC9:
	.ascii	"The n1 is: %d\012\012\000"
	.align	2
.LC10:
	.ascii	"The number of ones is: %d\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #48
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-48]
	ldr	r0, .L17+4
	bl	printf
	sub	r3, fp, #52
	mov	r1, r3
	ldr	r0, .L17+8
	bl	__isoc99_scanf
.L8:
	ldr	r4, [fp, #-52]
	ldr	r1, [fp, #-48]
	mov	r0, #10
	bl	power
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L8
.L16:
	nop
	ldr	r1, [fp, #-48]
	ldr	r0, .L17+12
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L9
.L12:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, #10
	bl	power
	str	r0, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, .L17+16
	bl	printf
	ldr	r3, [fp, #-52]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, .L17+20
	bl	printf
	ldr	r3, [fp, #-52]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-32]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	fmod
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, .L17+24
	bl	printf
	ldr	r1, [fp, #-44]
	mov	r0, #10
	bl	power
	str	r0, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L17+28
	bl	printf
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-20]
	mul	r3, r2, r3
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L10
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r0, .L17+32
	bl	puts
.L10:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	bgt	.L11
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	add	r3, r3, #1
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-40]
	ldr	r0, .L17+36
	bl	puts
.L11:
	ldr	r1, [fp, #-40]
	ldr	r0, .L17+40
	bl	printf
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L9:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	blt	.L12
	ldr	r1, [fp, #-40]
	ldr	r0, .L17+44
	bl	printf
	bl	getchar
	bl	getchar
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
