	.file	"716420.c"
	.intel_syntax noprefix
	.text
	.globl	getBit
	.type	getBit, @function
getBit:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	DWORD PTR -24[rbp], esi
	mov	BYTE PTR -20[rbp], al
	movsx	edx, BYTE PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	mov	BYTE PTR -1[rbp], al
	movsx	eax, BYTE PTR -1[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getBit, .-getBit
	.globl	getExponent
	.type	getExponent, @function
getExponent:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 24
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -16[rbp], 1
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 4
	jmp	.L4
.L5:
	movzx	eax, BYTE PTR -18[rbp]
	movsx	eax, al
	mov	edx, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	edi, eax
	call	getBit
	imul	eax, DWORD PTR -16[rbp]
	add	DWORD PTR -12[rbp], eax
	sal	DWORD PTR -16[rbp]
	add	DWORD PTR -8[rbp], 1
.L4:
	cmp	DWORD PTR -8[rbp], 7
	jle	.L5
	mov	DWORD PTR -4[rbp], 0
	jmp	.L6
.L7:
	movzx	eax, BYTE PTR -17[rbp]
	movsx	eax, al
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	edi, eax
	call	getBit
	imul	eax, DWORD PTR -16[rbp]
	add	DWORD PTR -12[rbp], eax
	sal	DWORD PTR -16[rbp]
	add	DWORD PTR -4[rbp], 1
.L6:
	cmp	DWORD PTR -4[rbp], 6
	jle	.L7
	mov	eax, DWORD PTR -12[rbp]
	sub	eax, 1023
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	getExponent, .-getExponent
	.globl	getMantissa
	.type	getMantissa, @function
getMantissa:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 40
	mov	QWORD PTR -40[rbp], rdi
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR .LC1[rip]
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -28[rbp], 3
	jmp	.L10
.L11:
	movzx	eax, BYTE PTR -34[rbp]
	movsx	eax, al
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, edx
	mov	edi, eax
	call	getBit
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mulsd	xmm0, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	sub	DWORD PTR -28[rbp], 1
.L10:
	cmp	DWORD PTR -28[rbp], 0
	jns	.L11
	mov	DWORD PTR -24[rbp], 5
	jmp	.L12
.L15:
	mov	DWORD PTR -20[rbp], 7
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	movzx	eax, BYTE PTR -40[rbp+rax]
	movsx	eax, al
	mov	edx, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	getBit
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mulsd	xmm0, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	movsd	xmm0, QWORD PTR -16[rbp]
	movsd	xmm1, QWORD PTR .LC2[rip]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	sub	DWORD PTR -20[rbp], 1
.L13:
	cmp	DWORD PTR -20[rbp], 0
	jns	.L14
	sub	DWORD PTR -24[rbp], 1
.L12:
	cmp	DWORD PTR -24[rbp], 0
	jns	.L15
	movsd	xmm0, QWORD PTR -8[rbp]
	movq	rax, xmm0
	movq	xmm0, rax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getMantissa, .-getMantissa
	.globl	getSign
	.type	getSign, @function
getSign:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	movzx	eax, BYTE PTR -1[rbp]
	movsx	eax, al
	mov	esi, 7
	mov	edi, eax
	call	getBit
	test	eax, eax
	je	.L18
	mov	eax, 45
	jmp	.L19
.L18:
	mov	eax, 43
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	getSign, .-getSign
	.section	.rodata
.LC3:
	.string	"Enter a number:"
.LC4:
	.string	"%lf"
.LC5:
	.string	"Result:  %c%g*2^%d"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	getExponent
	mov	r12d, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	getMantissa
	movq	rbx, xmm0
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	getSign
	movsx	eax, al
	mov	edx, r12d
	movq	xmm0, rbx
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -24[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	add	rsp, 16
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1071644672
	.align 8
.LC1:
	.long	0
	.long	1072693248
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.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	"716420.c"
	.text
	.align	2
	.global	getBit
	.syntax unified
	.arm
	.fpu softvfp
	.type	getBit, %function
getBit:
	@ 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
	mov	r3, r0
	str	r1, [fp, #-20]
	strb	r3, [fp, #-13]
	ldrb	r2, [fp, #-13]	@ zero_extendqisi2
	ldr	r3, [fp, #-20]
	asr	r3, r2, r3
	and	r3, r3, #255
	and	r3, r3, #1
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getBit, .-getBit
	.align	2
	.global	getExponent
	.syntax unified
	.arm
	.fpu softvfp
	.type	getExponent, %function
getExponent:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #4
	str	r3, [fp, #-12]
	b	.L4
.L5:
	ldrb	r3, [fp, #-22]	@ zero_extendqisi2
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	getBit
	mov	r2, r0
	ldr	r3, [fp, #-20]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L4:
	ldr	r3, [fp, #-12]
	cmp	r3, #7
	ble	.L5
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L6
.L7:
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	getBit
	mov	r2, r0
	ldr	r3, [fp, #-20]
	mul	r3, r2, r3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L6:
	ldr	r3, [fp, #-8]
	cmp	r3, #6
	ble	.L7
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1020
	sub	r3, r3, #3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getExponent, .-getExponent
	.global	__aeabi_i2d
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_ddiv
	.align	2
	.global	getMantissa
	.syntax unified
	.arm
	.fpu softvfp
	.type	getMantissa, %function
getMantissa:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-44]
	str	r1, [fp, #-40]
	mov	r2, #0
	ldr	r3, .L17
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r2, #0
	ldr	r3, .L17+4
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r3, #3
	str	r3, [fp, #-32]
	b	.L10
.L11:
	ldrb	r3, [fp, #-38]	@ zero_extendqisi2
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	getBit
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r2, #0
	mov	r3, #1073741824
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	str	r3, [fp, #-32]
.L10:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L11
	mov	r3, #5
	str	r3, [fp, #-28]
	b	.L12
.L15:
	mov	r3, #7
	str	r3, [fp, #-24]
	b	.L13
.L14:
	sub	r2, fp, #44
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	getBit
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	mov	r2, #0
	mov	r3, #1073741824
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	sub	r3, r3, #1
	str	r3, [fp, #-24]
.L13:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bge	.L14
	ldr	r3, [fp, #-28]
	sub	r3, r3, #1
	str	r3, [fp, #-28]
.L12:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L15
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	1071644672
	.word	1072693248
	.size	getMantissa, .-getMantissa
	.align	2
	.global	getSign
	.syntax unified
	.arm
	.fpu softvfp
	.type	getSign, %function
getSign:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	mov	r1, #7
	mov	r0, r3
	bl	getBit
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	mov	r3, #45
	b	.L21
.L20:
	mov	r3, #43
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getSign, .-getSign
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter a number:\000"
	.align	2
.LC1:
	.ascii	"%lf\000"
	.align	2
.LC2:
	.ascii	"Result:  %c%g*2^%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 = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #28
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r0, .L25+4
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L25+8
	bl	__isoc99_scanf
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	getSign
	mov	r3, r0
	mov	r6, r3
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	getMantissa
	mov	r4, r0
	mov	r5, r1
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	getExponent
	mov	r3, r0
	str	r3, [sp]
	mov	r2, r4
	mov	r3, r5
	mov	r1, r6
	ldr	r0, .L25+12
	bl	printf
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC3
	.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
