	.file	"613122.c"
	.intel_syntax noprefix
	.text
	.globl	N1
	.bss
	.align 4
	.type	N1, @object
	.size	N1, 4
N1:
	.zero	4
	.globl	N2
	.align 4
	.type	N2, @object
	.size	N2, 4
N2:
	.zero	4
	.globl	resto1
	.align 4
	.type	resto1, @object
	.size	resto1, 4
resto1:
	.zero	4
	.globl	resto2
	.align 4
	.type	resto2, @object
	.size	resto2, 4
resto2:
	.zero	4
	.globl	repeat
	.align 4
	.type	repeat, @object
	.size	repeat, 4
repeat:
	.zero	4
	.text
	.globl	potencia1
	.type	potencia1, @function
potencia1:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	cmp	DWORD PTR -24[rbp], 0
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	potencia1
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -4[rbp], edx
	mov	edx, DWORD PTR -4[rbp]
	imul	edx, edx, 100
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 1
	test	eax, eax
	je	.L4
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	imul	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	jmp	.L3
.L4:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	potencia1, .-potencia1
	.globl	potencia2
	.type	potencia2, @function
potencia2:
.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
	cmp	DWORD PTR -24[rbp], 0
	jne	.L6
	mov	eax, 1
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -24[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	potencia2
	movsx	rdx, eax
	imul	rdx, rdx, 1374389535
	shr	rdx, 32
	sar	edx, 5
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -4[rbp], edx
	mov	edx, DWORD PTR -4[rbp]
	imul	edx, edx, 100
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	and	eax, 1
	test	eax, eax
	je	.L8
	mov	eax, DWORD PTR -20[rbp]
	imul	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	imul	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -4[rbp]
	imul	eax, eax
	mov	edx, eax
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	potencia2, .-potencia2
	.section	.rodata
.LC0:
	.string	"%d\n"
.LC1:
	.string	"0"
.LC2:
	.string	"%d %d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	jmp	.L10
.L13:
	mov	edx, DWORD PTR N1[rip]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR resto1[rip], eax
	mov	eax, DWORD PTR N1[rip]
	mov	DWORD PTR repeat[rip], eax
	mov	edx, DWORD PTR repeat[rip]
	mov	eax, DWORD PTR resto1[rip]
	mov	esi, edx
	mov	edi, eax
	call	potencia1
	mov	DWORD PTR resto1[rip], eax
	mov	edx, DWORD PTR N2[rip]
	movsx	rax, edx
	imul	rax, rax, 1374389535
	shr	rax, 32
	sar	eax, 5
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 100
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR resto2[rip], eax
	mov	eax, DWORD PTR N2[rip]
	mov	DWORD PTR repeat[rip], eax
	mov	edx, DWORD PTR repeat[rip]
	mov	eax, DWORD PTR resto2[rip]
	mov	esi, edx
	mov	edi, eax
	call	potencia2
	mov	DWORD PTR resto2[rip], eax
	mov	edx, DWORD PTR resto1[rip]
	mov	eax, DWORD PTR resto2[rip]
	cmp	edx, eax
	jle	.L11
	mov	eax, DWORD PTR N1[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L11:
	mov	edx, DWORD PTR resto2[rip]
	mov	eax, DWORD PTR resto1[rip]
	cmp	edx, eax
	jle	.L12
	mov	eax, DWORD PTR N2[rip]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L10
.L12:
	lea	rdi, .LC1[rip]
	call	puts@PLT
.L10:
	lea	rdx, N2[rip]
	lea	rsi, N1[rip]
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L13
	mov	eax, 0
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.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	"613122.c"
	.text
	.comm	N1,4,4
	.comm	N2,4,4
	.comm	resto1,4,4
	.comm	resto2,4,4
	.comm	repeat,4,4
	.align	2
	.global	potencia1
	.syntax unified
	.arm
	.fpu softvfp
	.type	potencia1, %function
potencia1:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L2
	mov	r2, #1
	b	.L3
.L2:
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	potencia1
	mov	r2, r0
	ldr	r3, .L5
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L4
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	mul	r1, r2, r3
	ldr	r3, .L5
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	ldr	r3, [fp, #-8]
	mul	r1, r3, r2
	ldr	r3, .L5
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	b	.L3
.L4:
	ldr	r3, [fp, #-8]
	mul	r1, r3, r3
	ldr	r3, .L5
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
.L3:
	mov	r3, r2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	1374389535
	.size	potencia1, .-potencia1
	.align	2
	.global	potencia2
	.syntax unified
	.arm
	.fpu softvfp
	.type	potencia2, %function
potencia2:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L8
	mov	r2, #1
	b	.L9
.L8:
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	potencia2
	mov	r2, r0
	ldr	r3, .L11
	smull	r1, r3, r2, r3
	asr	r1, r3, #5
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	mul	r1, r2, r3
	ldr	r3, .L11
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	ldr	r3, [fp, #-8]
	mul	r1, r3, r2
	ldr	r3, .L11
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	b	.L9
.L10:
	ldr	r3, [fp, #-8]
	mul	r1, r3, r3
	ldr	r3, .L11
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
.L9:
	mov	r3, r2
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	1374389535
	.size	potencia2, .-potencia2
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\012\000"
	.align	2
.LC1:
	.ascii	"0\000"
	.align	2
.LC2:
	.ascii	"%d %d\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
	b	.L14
.L17:
	ldr	r3, .L19
	ldr	r1, [r3]
	ldr	r3, .L19+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	ldr	r3, .L19+8
	str	r2, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r2, .L19+12
	str	r3, [r2]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	ldr	r2, .L19+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	potencia1
	mov	r3, r0
	ldr	r2, .L19+8
	str	r3, [r2]
	ldr	r3, .L19+16
	ldr	r1, [r3]
	ldr	r3, .L19+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	ldr	r3, .L19+20
	str	r2, [r3]
	ldr	r3, .L19+16
	ldr	r3, [r3]
	ldr	r2, .L19+12
	str	r3, [r2]
	ldr	r3, .L19+20
	ldr	r3, [r3]
	ldr	r2, .L19+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	potencia2
	mov	r3, r0
	ldr	r2, .L19+20
	str	r3, [r2]
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, .L19+20
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L15
	ldr	r3, .L19
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+24
	bl	printf
	b	.L14
.L15:
	ldr	r3, .L19+20
	ldr	r2, [r3]
	ldr	r3, .L19+8
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L16
	ldr	r3, .L19+16
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L19+24
	bl	printf
	b	.L14
.L16:
	ldr	r0, .L19+28
	bl	puts
.L14:
	ldr	r2, .L19+16
	ldr	r1, .L19
	ldr	r0, .L19+32
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	mov	r3, #0
	mov	r0, r3
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	N1
	.word	1374389535
	.word	resto1
	.word	repeat
	.word	N2
	.word	resto2
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
