	.file	"1004073.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Get a grip! File name less than 50 letters please."
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, -44[rbp]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, -40[rbp]
	mov	QWORD PTR -16[rbp], rax
	cmp	DWORD PTR -36[rbp], 1
	jg	.L2
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rax, 50
	jbe	.L3
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	factor
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"rb"
.LC2:
	.string	"wb+"
.LC3:
	.string	"output-test.txt"
.LC4:
	.string	"%c%c"
	.text
	.globl	factor
	.type	factor, @function
factor:
.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, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -88[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	lea	rsi, .LC2[rip]
	lea	rdi, .LC3[rip]
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	jmp	.L6
.L18:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -40[rbp], eax
	cmp	DWORD PTR -40[rbp], -1
	jne	.L7
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -56[rbp], eax
.L7:
	mov	eax, DWORD PTR -40[rbp]
	test	rax, rax
	js	.L8
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L9
.L8:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L9:
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	call	sqrt@PLT
	cvttsd2si	rax, xmm0
	mov	eax, eax
	test	rax, rax
	js	.L10
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L11
.L10:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L11:
	movss	DWORD PTR -36[rbp], xmm0
	mov	DWORD PTR -52[rbp], 3
	jmp	.L12
.L17:
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 0
	div	DWORD PTR -52[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L13
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	DWORD PTR -16[rbp+rax*4], edx
	add	DWORD PTR -48[rbp], 1
	mov	eax, DWORD PTR -40[rbp]
	mov	edx, 0
	div	DWORD PTR -52[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -48[rbp]
	mov	DWORD PTR -16[rbp+rax*4], edx
	mov	DWORD PTR -48[rbp], 0
	jmp	.L14
.L13:
	add	DWORD PTR -52[rbp], 2
.L12:
	mov	eax, DWORD PTR -52[rbp]
	test	rax, rax
	js	.L15
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L16
.L15:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L16:
	movss	xmm1, DWORD PTR -36[rbp]
	comiss	xmm1, xmm0
	jnb	.L17
.L14:
	mov	ecx, DWORD PTR -12[rbp]
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L6:
	cmp	DWORD PTR -56[rbp], 0
	jne	.L18
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	factor, .-factor
	.local	byte_counter.0
	.comm	byte_counter.0,8,8
	.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	"1004073.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Get a grip! File name less than 50 letters please.\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L5
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-20]
	sub	r3, fp, #32
	str	r3, [fp, #-16]
	sub	r3, fp, #28
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r3, #1
	bgt	.L2
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	cmp	r3, #50
	bls	.L3
	ldr	r0, .L5+4
	bl	puts
	mov	r0, #1
	bl	exit
.L3:
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	factor
	mov	r0, #0
	bl	exit
.L6:
	.align	2
.L5:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.ascii	"rb\000"
	.align	2
.LC3:
	.ascii	"wb+\000"
	.align	2
.LC4:
	.ascii	"output-test.txt\000"
	.global	__aeabi_ui2f
	.global	__aeabi_f2d
	.global	__aeabi_d2uiz
	.global	__aeabi_uidivmod
	.global	__aeabi_uidiv
	.global	__aeabi_fcmpge
	.align	2
.LC5:
	.ascii	"%c%c\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	factor
	.syntax unified
	.arm
	.fpu softvfp
	.type	factor, %function
factor:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	str	r2, [fp, #-64]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-40]
	sub	r3, fp, #16
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	ldr	r1, .L16+4
	ldr	r0, [fp, #-64]
	bl	fopen
	str	r0, [fp, #-32]
	ldr	r1, .L16+8
	ldr	r0, .L16+12
	bl	fopen
	str	r0, [fp, #-28]
	b	.L8
.L14:
	ldr	r0, [fp, #-32]
	bl	getc
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L9
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-48]
.L9:
	ldr	r0, [fp, #-24]
	bl	__aeabi_ui2f
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_ui2f
	mov	r3, r0
	str	r3, [fp, #-20]	@ float
	mov	r3, #3
	str	r3, [fp, #-44]
	b	.L10
.L13:
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-44]
	mov	r0, r3
	bl	__aeabi_uidivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-44]
	str	r2, [r3, #-12]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-24]
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-12]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L12
.L11:
	ldr	r3, [fp, #-44]
	add	r3, r3, #2
	str	r3, [fp, #-44]
.L10:
	ldr	r0, [fp, #-44]
	bl	__aeabi_ui2f
	mov	r3, r0
	mov	r1, r3
	ldr	r0, [fp, #-20]	@ float
	bl	__aeabi_fcmpge
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
.L12:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	ldr	r1, .L16+16
	ldr	r0, [fp, #-28]
	bl	fprintf
.L8:
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L14
	ldr	r0, [fp, #-28]
	bl	fclose
	ldr	r0, [fp, #-32]
	bl	fclose
	nop
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC6
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	factor, .-factor
	.local	byte_counter.6358
	.comm	byte_counter.6358,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
