	.file	"251561.c"
	.intel_syntax noprefix
	.text
	.local	fourths
	.comm	fourths,8008,32
	.globl	cmp_long
	.type	cmp_long, @function
cmp_long:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, rdx
	sub	rax, rcx
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	js	.L2
	cmp	QWORD PTR -8[rbp], 0
	setg	al
	movzx	eax, al
	jmp	.L4
.L2:
	mov	eax, -1
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmp_long, .-cmp_long
	.section	.rodata
	.align 8
.LC0:
	.string	"%d**4 + %d**4 = %d**4 + %d**4\n"
.LC1:
	.string	"Done Searching"
	.text
	.globl	main
	.type	main, @function
main:
.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -40[rbp], 0
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -40[rbp]
	imul	rax, rax
	imul	rax, QWORD PTR -40[rbp]
	imul	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rcx, 0[0+rdx*8]
	lea	rdx, fourths[rip]
	mov	QWORD PTR [rcx+rdx], rax
	add	QWORD PTR -40[rbp], 1
.L6:
	cmp	QWORD PTR -40[rbp], 1000
	jle	.L7
	mov	QWORD PTR -40[rbp], 1
	jmp	.L8
.L15:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 2
	mov	QWORD PTR -32[rbp], rax
	jmp	.L9
.L14:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	mov	QWORD PTR -24[rbp], rax
	jmp	.L10
.L13:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, fourths[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, fourths[rip]
	mov	rax, QWORD PTR [rdx+rax]
	add	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, fourths[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -48[rbp], rax
	lea	rax, -48[rbp]
	lea	r8, cmp_long[rip]
	mov	ecx, 8
	mov	edx, 1001
	lea	rsi, fourths[rip]
	mov	rdi, rax
	call	bsearch@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L11
	lea	rdx, fourths[rip]
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, rdx
	sar	rax, 3
	mov	rsi, rax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L16
.L11:
	add	QWORD PTR -24[rbp], 1
.L10:
	mov	rax, QWORD PTR -24[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jl	.L13
	add	QWORD PTR -32[rbp], 1
.L9:
	cmp	QWORD PTR -32[rbp], 1000
	jle	.L14
	add	QWORD PTR -40[rbp], 1
.L8:
	cmp	QWORD PTR -40[rbp], 998
	jle	.L15
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
.L16:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.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	"251561.c"
	.text
	.local	fourths
	.comm	fourths,4004,4
	.align	2
	.global	cmp_long
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmp_long, %function
cmp_long:
	@ 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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	b	.L4
.L2:
	mvn	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cmp_long, .-cmp_long
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d**4 + %d**4 = %d**4 + %d**4\012\000"
	.align	2
.LC1:
	.ascii	"Done Searching\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L6
.L7:
	ldr	r3, [fp, #-24]
	mov	r2, r3
	mul	r2, r3, r2
	mov	r3, r2
	ldr	r2, [fp, #-24]
	mul	r3, r2, r3
	ldr	r2, [fp, #-24]
	mul	r2, r3, r2
	ldr	r1, .L18+4
	ldr	r3, [fp, #-24]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L6:
	ldr	r3, [fp, #-24]
	cmp	r3, #1000
	ble	.L7
	mov	r3, #1
	str	r3, [fp, #-24]
	b	.L8
.L15:
	ldr	r3, [fp, #-24]
	add	r3, r3, #2
	str	r3, [fp, #-20]
	b	.L9
.L14:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L10
.L13:
	ldr	r2, .L18+4
	ldr	r3, [fp, #-24]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L18+4
	ldr	r3, [fp, #-20]
	ldr	r3, [r1, r3, lsl #2]
	add	r2, r2, r3
	ldr	r1, .L18+4
	ldr	r3, [fp, #-16]
	ldr	r3, [r1, r3, lsl #2]
	sub	r3, r2, r3
	str	r3, [fp, #-28]
	sub	r0, fp, #28
	ldr	r3, .L18+8
	str	r3, [sp]
	mov	r3, #4
	ldr	r2, .L18+12
	ldr	r1, .L18+4
	bl	bsearch
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-12]
	ldr	r2, .L18+4
	sub	r3, r3, r2
	asr	r3, r3, #2
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	ldr	r0, .L18+16
	bl	printf
	mov	r3, #1
	b	.L16
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L10:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L9:
	ldr	r3, [fp, #-20]
	cmp	r3, #1000
	ble	.L14
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L8:
	ldr	r3, [fp, #-24]
	ldr	r2, .L18+20
	cmp	r3, r2
	ble	.L15
	ldr	r0, .L18+24
	bl	puts
	mov	r3, #0
.L16:
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC2
	.word	fourths
	.word	cmp_long
	.word	1001
	.word	.LC0
	.word	998
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
