	.file	"347236.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter a number and the positive integer power"
	.align 8
.LC1:
	.string	" to which\nthe number will be raised. Enter q"
.LC2:
	.string	" to quit."
.LC3:
	.string	"%.3g to the power %d is %.5g\n"
	.align 8
.LC4:
	.string	"Enter next pair of numbers or q to quit."
.LC5:
	.string	"%lf%d"
	.align 8
.LC6:
	.string	"Hope you enjoyed this power trip -- bye!"
	.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
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L2
.L3:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	edi, edx
	movq	xmm0, rax
	call	power
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	movsd	xmm0, QWORD PTR -16[rbp]
	movapd	xmm1, xmm0
	mov	esi, edx
	movq	xmm0, rax
	lea	rdi, .LC3[rip]
	mov	eax, 2
	call	printf@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L2:
	lea	rdx, -28[rbp]
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, 2
	je	.L3
	lea	rdi, .LC6[rip]
	call	puts@PLT
	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
	.align 8
.LC8:
	.string	"0.0 to the power 0 is undefined"
	.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, 32
	movsd	QWORD PTR -24[rbp], xmm0
	mov	DWORD PTR -28[rbp], edi
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -24[rbp]
	jp	.L7
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -24[rbp]
	jne	.L7
	cmp	DWORD PTR -28[rbp], 0
	je	.L7
	pxor	xmm0, xmm0
	jmp	.L9
.L7:
	cmp	DWORD PTR -28[rbp], 0
	jne	.L10
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -24[rbp]
	jp	.L11
	pxor	xmm0, xmm0
	ucomisd	xmm0, QWORD PTR -24[rbp]
	jne	.L11
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L11:
	movsd	xmm0, QWORD PTR .LC9[rip]
	jmp	.L9
.L10:
	movsd	xmm0, QWORD PTR .LC9[rip]
	movsd	QWORD PTR -8[rbp], xmm0
	cmp	DWORD PTR -28[rbp], 0
	jle	.L13
	mov	DWORD PTR -12[rbp], 1
	jmp	.L14
.L15:
	movsd	xmm0, QWORD PTR -8[rbp]
	mulsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR -8[rbp], xmm0
	add	DWORD PTR -12[rbp], 1
.L14:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jle	.L15
	movsd	xmm0, QWORD PTR -8[rbp]
	jmp	.L9
.L13:
	mov	eax, DWORD PTR -28[rbp]
	neg	eax
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edi, edx
	movq	xmm0, rax
	call	power
	movapd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC9[rip]
	divsd	xmm0, xmm1
.L9:
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	power, .-power
	.section	.rodata
	.align 8
.LC9:
	.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	"347236.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter a number and the positive integer power\000"
	.align	2
.LC1:
	.ascii	" to which\012the number will be raised. Enter q\000"
	.align	2
.LC2:
	.ascii	" to quit.\000"
	.align	2
.LC3:
	.ascii	"%.3g to the power %d is %.5g\012\000"
	.align	2
.LC4:
	.ascii	"Enter next pair of numbers or q to quit.\000"
	.align	2
.LC5:
	.ascii	"%lf%d\000"
	.align	2
.LC6:
	.ascii	"Hope you enjoyed this power trip -- bye!\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L6+4
	bl	printf
	ldr	r0, .L6+8
	bl	printf
	ldr	r0, .L6+12
	bl	puts
	b	.L2
.L3:
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-32]
	mov	r2, r3
	bl	power
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	ldr	ip, [fp, #-32]
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	str	ip, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L6+16
	bl	printf
	ldr	r0, .L6+20
	bl	puts
.L2:
	sub	r2, fp, #32
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L6+24
	bl	__isoc99_scanf
	mov	r3, r0
	cmp	r3, #2
	beq	.L3
	ldr	r0, .L6+28
	bl	puts
	mov	r3, #0
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.size	main, .-main
	.global	__aeabi_dcmpeq
	.section	.rodata
	.align	2
.LC8:
	.ascii	"0.0 to the power 0 is undefined\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 = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	str	r2, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L9
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L9
	mov	r2, #0
	mov	r3, #0
	b	.L11
.L9:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L12
	mov	r2, #0
	mov	r3, #0
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L20
	bl	puts
.L13:
	mov	r2, #0
	ldr	r3, .L20+4
	b	.L11
.L12:
	mov	r2, #0
	ldr	r3, .L20+4
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L15
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L16
.L17:
	sub	r3, fp, #28
	ldmia	r3, {r2-r3}
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L16:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L17
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	b	.L11
.L15:
	ldr	r3, [fp, #-32]
	rsb	r3, r3, #0
	mov	r2, r3
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	power
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	ldr	r1, .L20+4
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
.L11:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC8
	.word	1072693248
	.size	power, .-power
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
