	.file	"1010177.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"P4\n%d %d\n"
	.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	DWORD PTR -92[rbp], 0
	mov	BYTE PTR -93[rbp], 0
	mov	DWORD PTR -84[rbp], 50
	movsd	xmm0, QWORD PTR .LC0[rip]
	movsd	QWORD PTR -24[rbp], xmm0
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	mov	eax, 0
	call	atoi@PLT
	mov	DWORD PTR -80[rbp], eax
	mov	eax, DWORD PTR -80[rbp]
	mov	DWORD PTR -76[rbp], eax
	mov	edx, DWORD PTR -80[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	pxor	xmm0, xmm0
	movsd	QWORD PTR -64[rbp], xmm0
	jmp	.L2
.L13:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -72[rbp], xmm0
	jmp	.L3
.L12:
	pxor	xmm0, xmm0
	movsd	QWORD PTR -32[rbp], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	xmm0, QWORD PTR -40[rbp]
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR -48[rbp]
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm0, QWORD PTR -72[rbp]
	addsd	xmm0, xmm0
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -76[rbp]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC3[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -16[rbp], xmm0
	movsd	xmm0, QWORD PTR -64[rbp]
	addsd	xmm0, xmm0
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -80[rbp]
	divsd	xmm0, xmm1
	movsd	xmm1, QWORD PTR .LC4[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR -8[rbp], xmm0
	mov	DWORD PTR -88[rbp], 0
	jmp	.L4
.L6:
	movsd	xmm0, QWORD PTR -56[rbp]
	addsd	xmm0, xmm0
	mulsd	xmm0, QWORD PTR -48[rbp]
	movsd	xmm1, QWORD PTR -8[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -48[rbp], xmm0
	movsd	xmm0, QWORD PTR -40[rbp]
	subsd	xmm0, QWORD PTR -32[rbp]
	movsd	xmm1, QWORD PTR -16[rbp]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -56[rbp], xmm0
	movsd	xmm0, QWORD PTR -56[rbp]
	mulsd	xmm0, xmm0
	movsd	QWORD PTR -40[rbp], xmm0
	movsd	xmm0, QWORD PTR -48[rbp]
	mulsd	xmm0, xmm0
	movsd	QWORD PTR -32[rbp], xmm0
	add	DWORD PTR -88[rbp], 1
.L4:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -84[rbp]
	jge	.L5
	movsd	xmm0, QWORD PTR -40[rbp]
	movapd	xmm1, xmm0
	addsd	xmm1, QWORD PTR -32[rbp]
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, xmm0
	comisd	xmm0, xmm1
	jnb	.L6
.L5:
	movsx	eax, BYTE PTR -93[rbp]
	add	eax, eax
	mov	BYTE PTR -93[rbp], al
	movsd	xmm0, QWORD PTR -40[rbp]
	movapd	xmm1, xmm0
	addsd	xmm1, QWORD PTR -32[rbp]
	movsd	xmm0, QWORD PTR -24[rbp]
	mulsd	xmm0, xmm0
	comisd	xmm0, xmm1
	jb	.L7
	or	BYTE PTR -93[rbp], 1
.L7:
	add	DWORD PTR -92[rbp], 1
	cmp	DWORD PTR -92[rbp], 8
	jne	.L9
	mov	rdx, QWORD PTR stdout[rip]
	movsx	eax, BYTE PTR -93[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	putc@PLT
	mov	BYTE PTR -93[rbp], 0
	mov	DWORD PTR -92[rbp], 0
	jmp	.L10
.L9:
	mov	eax, DWORD PTR -76[rbp]
	sub	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	ucomisd	xmm0, QWORD PTR -72[rbp]
	jp	.L10
	ucomisd	xmm0, QWORD PTR -72[rbp]
	jne	.L10
	movsx	edx, BYTE PTR -93[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 29
	add	eax, ecx
	and	eax, 7
	sub	eax, ecx
	mov	ecx, eax
	mov	eax, 8
	sub	eax, ecx
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	BYTE PTR -93[rbp], al
	mov	rdx, QWORD PTR stdout[rip]
	movsx	eax, BYTE PTR -93[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	putc@PLT
	mov	BYTE PTR -93[rbp], 0
	mov	DWORD PTR -92[rbp], 0
.L10:
	movsd	xmm1, QWORD PTR -72[rbp]
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -72[rbp], xmm0
.L3:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -76[rbp]
	comisd	xmm0, QWORD PTR -72[rbp]
	ja	.L12
	movsd	xmm1, QWORD PTR -64[rbp]
	movsd	xmm0, QWORD PTR .LC4[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR -64[rbp], xmm0
.L2:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -80[rbp]
	comisd	xmm0, QWORD PTR -64[rbp]
	ja	.L13
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1073741824
	.align 8
.LC3:
	.long	0
	.long	1073217536
	.align 8
.LC4:
	.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	"1010177.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"P4\012%d %d\012\000"
	.global	__aeabi_dadd
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.global	__aeabi_dmul
	.global	__aeabi_dcmple
	.global	__aeabi_dcmpeq
	.global	__aeabi_dcmplt
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #104
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	mov	r3, #0
	str	r3, [fp, #-104]
	mov	r3, #0
	strb	r3, [fp, #-105]
	mov	r3, #50
	str	r3, [fp, #-96]
	mov	r2, #0
	mov	r3, #1073741824
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	str	r3, [fp, #-88]
	ldr	r2, [fp, #-92]
	ldr	r1, [fp, #-88]
	ldr	r0, .L17
	bl	printf
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	b	.L2
.L13:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	b	.L3
.L12:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-88]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L17+4
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-92]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L17+8
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L4
.L6:
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	mov	r2, r0
	mov	r3, r1
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-100]
	add	r3, r3, #1
	str	r3, [fp, #-100]
.L4:
	ldr	r2, [fp, #-100]
	ldr	r3, [fp, #-96]
	cmp	r2, r3
	bge	.L5
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
.L5:
	ldrb	r3, [fp, #-105]
	lsl	r3, r3, #1
	strb	r3, [fp, #-105]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r3, fp, #36
	ldmia	r3, {r2-r3}
	sub	r1, fp, #36
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmple
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldrb	r3, [fp, #-105]
	orr	r3, r3, #1
	strb	r3, [fp, #-105]
.L7:
	ldr	r3, [fp, #-104]
	add	r3, r3, #1
	str	r3, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #8
	bne	.L9
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	ldr	r2, .L17+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	putc
	mov	r3, #0
	strb	r3, [fp, #-105]
	mov	r3, #0
	str	r3, [fp, #-104]
	b	.L10
.L9:
	ldr	r3, [fp, #-88]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L10
	ldrb	r2, [fp, #-105]	@ zero_extendqisi2
	ldr	r3, [fp, #-88]
	rsbs	r1, r3, #0
	and	r3, r3, #7
	and	r1, r1, #7
	rsbpl	r3, r1, #0
	rsb	r3, r3, #8
	lsl	r3, r2, r3
	strb	r3, [fp, #-105]
	ldrb	r3, [fp, #-105]	@ zero_extendqisi2
	ldr	r2, .L17+12
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	putc
	mov	r3, #0
	strb	r3, [fp, #-105]
	mov	r3, #0
	str	r3, [fp, #-104]
.L10:
	mov	r2, #0
	ldr	r3, .L17+8
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
.L3:
	ldr	r0, [fp, #-88]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L12
	mov	r2, #0
	ldr	r3, .L17+8
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
.L2:
	ldr	r0, [fp, #-92]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	1073217536
	.word	1072693248
	.word	stdout
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
