	.file	"381989.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC1:
	.string	"%d +"
.LC2:
	.string	" %d = "
.LC3:
	.string	"%d\n"
.LC5:
	.string	"%d + %d + %f = 1000!\n"
.LC6:
	.string	"%d*%d*%f = %d\n"
	.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, 48
	mov	DWORD PTR -28[rbp], 31
	mov	DWORD PTR -36[rbp], 1
	jmp	.L2
.L9:
	mov	DWORD PTR -32[rbp], 1
	jmp	.L3
.L8:
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -36[rbp]
	movq	rax, xmm2
	movsd	xmm0, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, DWORD PTR -32[rbp]
	movq	rax, xmm3
	movsd	xmm0, QWORD PTR .LC0[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	pxor	xmm4, xmm4
	cvtsi2sd	xmm4, DWORD PTR -16[rbp]
	movq	rax, xmm4
	movq	xmm0, rax
	call	sqrt@PLT
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movq	xmm0, rax
	call	floor@PLT
	movq	rax, xmm0
	movq	xmm5, rax
	ucomisd	xmm5, QWORD PTR -8[rbp]
	jp	.L4
	movq	xmm6, rax
	ucomisd	xmm6, QWORD PTR -8[rbp]
	jne	.L4
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	addsd	xmm0, QWORD PTR -8[rbp]
	ucomisd	xmm0, QWORD PTR .LC4[rip]
	jp	.L4
	ucomisd	xmm0, QWORD PTR .LC4[rip]
	jne	.L4
	mov	rcx, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	movq	xmm0, rcx
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	imul	eax, DWORD PTR -32[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mulsd	xmm0, QWORD PTR -8[rbp]
	cvttsd2si	eax, xmm0
	mov	DWORD PTR -12[rbp], eax
	mov	ecx, DWORD PTR -12[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	movq	xmm0, rsi
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 1
	call	printf@PLT
	mov	eax, 0
	jmp	.L7
.L4:
	add	DWORD PTR -32[rbp], 1
.L3:
	mov	eax, 1000
	sub	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -32[rbp], eax
	jl	.L8
	add	DWORD PTR -36[rbp], 1
.L2:
	cmp	DWORD PTR -36[rbp], 999
	jle	.L9
	mov	eax, 0
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1073741824
	.align 8
.LC4:
	.long	0
	.long	1083129856
	.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	"381989.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_d2iz
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d +\000"
	.align	2
.LC1:
	.ascii	" %d = \000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.global	__aeabi_dcmpeq
	.global	__aeabi_dadd
	.align	2
.LC3:
	.ascii	"%d + %d + %f = 1000!\012\000"
	.global	__aeabi_dmul
	.align	2
.LC4:
	.ascii	"%d*%d*%f = %d\012\000"
	.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, #56
	mov	r3, #31
	str	r3, [fp, #-32]
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L2
.L9:
	mov	r3, #1
	str	r3, [fp, #-36]
	b	.L3
.L8:
	ldr	r0, [fp, #-40]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r1, [fp, #-28]
	ldr	r0, .L12
	bl	printf
	ldr	r0, [fp, #-36]
	bl	__aeabi_i2d
	mov	r2, #0
	mov	r3, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, .L12+4
	bl	printf
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L12+8
	bl	printf
	ldr	r0, [fp, #-20]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	sqrt
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	floor
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L12+12
	bl	__aeabi_dcmpeq
	mov	r3, r0
	cmp	r3, #0
	beq	.L4
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, .L12+16
	bl	printf
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [sp, #8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, .L12+20
	bl	printf
	mov	r3, #0
	b	.L7
.L4:
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L3:
	ldr	r3, [fp, #-40]
	rsb	r3, r3, #1000
	ldr	r2, [fp, #-36]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L2:
	ldr	r3, [fp, #-40]
	cmp	r3, #1000
	blt	.L9
	mov	r3, #0
.L7:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	1083129856
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
