	.file	"158352.c"
	.intel_syntax noprefix
	.text
	.globl	answer
	.bss
	.align 8
	.type	answer, @object
	.size	answer, 8
answer:
	.zero	8
	.globl	temp
	.align 8
	.type	temp, @object
	.size	temp, 8
temp:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter double mant & int exp(q for exit): "
.LC2:
	.string	"%g ^ %d = %g\n"
.LC3:
	.string	"%lf %d"
	.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, 32
	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
	jmp	.L2
.L3:
	movsd	xmm0, QWORD PTR -16[rbp]
	movsd	QWORD PTR answer[rip], xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR temp[rip], xmm0
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	edi, edx
	movq	xmm0, rax
	call	power
	movq	rcx, xmm0
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	movq	xmm1, rcx
	mov	esi, edx
	movq	xmm0, rax
	lea	rdi, .LC2[rip]
	mov	eax, 2
	call	printf@PLT
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	lea	rdx, -24[rbp]
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 2
	je	.L3
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	"No result"
	.text
	.globl	power
	.type	power, @function
power:
.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, 16
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -12[rbp], edi
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -8[rbp]
	jp	.L7
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -8[rbp]
	jne	.L7
	cmp	DWORD PTR -12[rbp], 0
	je	.L9
	pxor	xmm0, xmm0
	jmp	.L10
.L9:
	lea	rdi, .LC5[rip]
	call	puts@PLT
	movsd	xmm0, QWORD PTR .LC1[rip]
	jmp	.L10
.L7:
	cmp	DWORD PTR -12[rbp], 0
	jle	.L11
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edi, edx
	movq	xmm0, rax
	call	power
	movsd	xmm0, QWORD PTR answer[rip]
	mulsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR answer[rip], xmm0
	jmp	.L12
.L11:
	cmp	DWORD PTR -12[rbp], 0
	jns	.L13
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edi, edx
	movq	xmm0, rax
	call	power
	movsd	xmm0, QWORD PTR temp[rip]
	mulsd	xmm0, QWORD PTR -8[rbp]
	movsd	QWORD PTR temp[rip], xmm0
	movsd	xmm1, QWORD PTR temp[rip]
	movsd	xmm0, QWORD PTR .LC1[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR answer[rip], xmm0
	jmp	.L12
.L13:
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR answer[rip], xmm0
.L12:
	movsd	xmm0, QWORD PTR answer[rip]
.L10:
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	power, .-power
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.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	"158352.c"
	.text
	.comm	answer,8,8
	.comm	temp,8,8
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter double mant & int exp(q for exit): \000"
	.align	2
.LC1:
	.ascii	"%g ^ %d = %g\012\000"
	.align	2
.LC2:
	.ascii	"%lf %d\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #44
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, .L6+4
	bl	printf
	b	.L2
.L3:
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	ldr	r1, .L6+8
	stm	r1, {r2-r3}
	ldr	r1, .L6+12
	mov	r2, #0
	ldr	r3, .L6+16
	stm	r1, {r2-r3}
	sub	r5, fp, #36
	ldmia	r5, {r4-r5}
	ldr	r6, [fp, #-44]
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-44]
	mov	r2, r3
	bl	power
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	r6, [sp]
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L6+20
	bl	printf
	ldr	r0, .L6+4
	bl	printf
.L2:
	sub	r2, fp, #44
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L6+24
	bl	__isoc99_scanf
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #2
	beq	.L3
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	.LC0
	.word	answer
	.word	temp
	.word	1072693248
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.global	__aeabi_dcmpeq
	.section	.rodata
	.align	2
.LC4:
	.ascii	"No result\000"
	.global	__aeabi_dmul
	.global	__aeabi_ddiv
	.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
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	str	r2, [fp, #-16]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L11
	mov	r2, #0
	mov	r3, #0
	b	.L12
.L11:
	ldr	r0, .L18
	bl	puts
	mov	r2, #0
	ldr	r3, .L18+4
	b	.L12
.L17:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L13
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r2, r3
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	power
	ldr	r3, .L18+8
	ldmia	r3, {r0-r1}
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L18+8
	stm	r1, {r2-r3}
	b	.L14
.L13:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L15
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, r3
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	power
	ldr	r3, .L18+12
	ldmia	r3, {r0-r1}
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L18+12
	stm	r1, {r2-r3}
	ldr	r3, .L18+12
	ldmia	r3, {r2-r3}
	mov	r0, #0
	ldr	r1, .L18+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L18+8
	stm	r1, {r2-r3}
	b	.L14
.L15:
	ldr	r1, .L18+8
	mov	r2, #0
	ldr	r3, .L18+4
	stm	r1, {r2-r3}
.L14:
	ldr	r3, .L18+8
	ldmia	r3, {r2-r3}
.L12:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC4
	.word	1072693248
	.word	answer
	.word	temp
	.size	power, .-power
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
