	.file	"738763.c"
	.intel_syntax noprefix
	.text
	.globl	x
	.bss
	.align 8
	.type	x, @object
	.size	x, 8
x:
	.zero	8
	.globl	y
	.align 8
	.type	y, @object
	.size	y, 8
y:
	.zero	8
	.globl	x_incmt
	.align 8
	.type	x_incmt, @object
	.size	x_incmt, 8
x_incmt:
	.zero	8
	.globl	y_incmt
	.align 8
	.type	y_incmt, @object
	.size	y_incmt, 8
y_incmt:
	.zero	8
	.globl	fuel
	.data
	.align 8
	.type	fuel, @object
	.size	fuel, 8
fuel:
	.long	0
	.long	1079574528
	.globl	logfile
	.bss
	.align 8
	.type	logfile, @object
	.size	logfile, 8
logfile:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"\nClient - ERROR (the_stack_data/738763.c:%d) -- %s\n"
	.align 8
.LC1:
	.string	"\tAn error has been reported on log file."
	.text
	.globl	check
	.type	check, @function
check:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], -1
	jne	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, rdx
	mov	edx, 31
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check, .-check
	.section	.rodata
.LC2:
	.string	"UP"
.LC3:
	.string	"RIGHTDOWN"
.LC4:
	.string	"LEFT"
.LC5:
	.string	"UP-RIGHT"
.LC6:
	.string	"UP-LEFT"
.LC7:
	.string	"DOWN-RIGHT"
.LC8:
	.string	"DOWN-LEFT"
	.text
	.globl	movement
	.type	movement, @function
movement:
.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC2[rip]
	mov	QWORD PTR -64[rbp], rax
	lea	rax, .LC3[rip]
	mov	QWORD PTR -56[rbp], rax
	lea	rax, .LC4[rip]
	mov	QWORD PTR -48[rbp], rax
	lea	rax, .LC5[rip]
	mov	QWORD PTR -40[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC7[rip]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, .LC8[rip]
	mov	QWORD PTR -16[rbp], rax
	call	rand@PLT
	cdq
	shr	edx, 30
	add	eax, edx
	and	eax, 3
	sub	eax, edx
	cdqe
	mov	rax, QWORD PTR -64[rbp+rax*8]
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	movement, .-movement
	.section	.rodata
.LC9:
	.string	"a"
.LC10:
	.string	"Drone.txt"
	.align 8
.LC11:
	.string	"An error occured while creating Drone's log file"
.LC12:
	.string	"******log file created******\n"
.LC13:
	.string	"c - socket created\n"
.LC14:
	.string	"c - correct server\n"
.LC15:
	.string	"127.0.0.1"
.LC16:
	.string	"c - connected to socket\n"
	.align 8
.LC17:
	.string	"c - randomizing seed for random error generator\n"
.LC19:
	.string	"RIGHT"
.LC20:
	.string	"DOWN"
.LC21:
	.string	"%c,%lf,%lf,%lf,"
	.align 8
.LC22:
	.string	"c - Drone's next state has been sent\n"
.LC23:
	.string	"Received Confirmation %d\n"
.LC24:
	.string	"%d,"
	.align 8
.LC26:
	.string	"Fuel is about to end, landing..."
	.align 8
.LC27:
	.string	"c - Fuel is about to end, landing...\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 3120
	mov	DWORD PTR -3108[rbp], edi
	mov	QWORD PTR -3120[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC9[rip]
	lea	rdi, .LC10[rip]
	call	fopen@PLT
	mov	QWORD PTR logfile[rip], rax
	mov	rax, QWORD PTR logfile[rip]
	test	rax, rax
	jne	.L8
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L25
.L8:
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -3120[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR x[rip], xmm0
	mov	rax, QWORD PTR -3120[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	QWORD PTR y[rip], xmm0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	edi, eax
	call	check
	mov	DWORD PTR -3096[rbp], eax
	lea	rax, -1040[rbp]
	mov	esi, 1024
	mov	rdi, rax
	call	gethostname@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -3088[rbp], rax
	cmp	QWORD PTR -3088[rbp], 0
	jne	.L10
	mov	edi, -1
	call	check
.L10:
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -3072[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	WORD PTR -3072[rbp], 2
	mov	rax, QWORD PTR -3088[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -3088[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -3072[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	edi, 7777
	call	htons@PLT
	mov	WORD PTR -3070[rbp], ax
	lea	rdi, .LC15[rip]
	call	inet_addr@PLT
	mov	DWORD PTR -3068[rbp], eax
	lea	rcx, -3072[rbp]
	mov	eax, DWORD PTR -3096[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	mov	edi, eax
	call	check
	test	eax, eax
	jns	.L11
	mov	edi, -1
	call	check
.L11:
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srand@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, rax
	mov	edx, 48
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	jmp	.L12
.L24:
	mov	eax, 0
	call	movement
	mov	QWORD PTR -3080[rbp], rax
	mov	DWORD PTR -3100[rbp], 0
	jmp	.L13
.L23:
	movsd	xmm0, QWORD PTR x[rip]
	movsd	QWORD PTR x_incmt[rip], xmm0
	movsd	xmm0, QWORD PTR y[rip]
	movsd	QWORD PTR y_incmt[rip], xmm0
	lea	rax, .LC2[rip]
	cmp	QWORD PTR -3080[rbp], rax
	jne	.L14
	movsd	xmm1, QWORD PTR y_incmt[rip]
	movsd	xmm0, QWORD PTR .LC18[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR y_incmt[rip], xmm0
.L14:
	lea	rax, .LC19[rip]
	cmp	QWORD PTR -3080[rbp], rax
	jne	.L15
	movsd	xmm1, QWORD PTR x_incmt[rip]
	movsd	xmm0, QWORD PTR .LC18[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR x_incmt[rip], xmm0
.L15:
	lea	rax, .LC20[rip]
	cmp	QWORD PTR -3080[rbp], rax
	jne	.L16
	movsd	xmm0, QWORD PTR y_incmt[rip]
	movsd	xmm1, QWORD PTR .LC18[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR y_incmt[rip], xmm0
.L16:
	lea	rax, .LC4[rip]
	cmp	QWORD PTR -3080[rbp], rax
	jne	.L17
	movsd	xmm0, QWORD PTR x_incmt[rip]
	movsd	xmm1, QWORD PTR .LC18[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR x_incmt[rip], xmm0
.L17:
	lea	rax, .LC5[rip]
	cmp	QWORD PTR -3080[rbp], rax
	jne	.L18
	movsd	xmm1, QWORD PTR y_incmt[rip]
	movsd	xmm0, QWORD PTR .LC18[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR y_incmt[rip], xmm0
	movsd	xmm1, QWORD PTR x_incmt[rip]
	movsd	xmm0, QWORD PTR .LC18[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR x_incmt[rip], xmm0
.L18:
	lea	rax, .LC6[rip]
	cmp	QWORD PTR -3080[rbp], rax
	jne	.L19
	movsd	xmm1, QWORD PTR y_incmt[rip]
	movsd	xmm0, QWORD PTR .LC18[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR y_incmt[rip], xmm0
	movsd	xmm0, QWORD PTR x_incmt[rip]
	movsd	xmm1, QWORD PTR .LC18[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR x_incmt[rip], xmm0
.L19:
	lea	rax, .LC7[rip]
	cmp	QWORD PTR -3080[rbp], rax
	jne	.L20
	movsd	xmm0, QWORD PTR y_incmt[rip]
	movsd	xmm1, QWORD PTR .LC18[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR y_incmt[rip], xmm0
	movsd	xmm1, QWORD PTR x_incmt[rip]
	movsd	xmm0, QWORD PTR .LC18[rip]
	addsd	xmm0, xmm1
	movsd	QWORD PTR x_incmt[rip], xmm0
.L20:
	lea	rax, .LC8[rip]
	cmp	QWORD PTR -3080[rbp], rax
	jne	.L21
	movsd	xmm0, QWORD PTR y_incmt[rip]
	movsd	xmm1, QWORD PTR .LC18[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR y_incmt[rip], xmm0
	movsd	xmm0, QWORD PTR x_incmt[rip]
	movsd	xmm1, QWORD PTR .LC18[rip]
	subsd	xmm0, xmm1
	movsd	QWORD PTR x_incmt[rip], xmm0
.L21:
	lea	rax, -3056[rbp]
	mov	DWORD PTR [rax], 0
	movsd	xmm1, QWORD PTR fuel[rip]
	movsd	xmm0, QWORD PTR y_incmt[rip]
	mov	rdx, QWORD PTR x_incmt[rip]
	lea	rax, -3056[rbp]
	movapd	xmm2, xmm1
	movapd	xmm1, xmm0
	movq	xmm0, rdx
	mov	edx, 97
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 3
	call	sprintf@PLT
	lea	rax, -3056[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -3056[rbp]
	mov	eax, DWORD PTR -3096[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edi, eax
	call	check
	mov	eax, DWORD PTR -3096[rbp]
	mov	edi, eax
	call	fsync@PLT
	mov	edi, 1
	call	sleep@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rcx, -2048[rbp]
	mov	eax, DWORD PTR -3096[rbp]
	mov	edx, 1000
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	edi, eax
	call	check
	mov	DWORD PTR -3092[rbp], eax
	mov	eax, DWORD PTR -3092[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	edi, eax
	call	fsync@PLT
	lea	rdx, -3104[rbp]
	lea	rax, -2048[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	eax, DWORD PTR -3104[rbp]
	cmp	eax, 1
	jne	.L12
	add	DWORD PTR -3100[rbp], 1
.L13:
	cmp	DWORD PTR -3100[rbp], 4
	jle	.L23
.L12:
	movsd	xmm0, QWORD PTR fuel[rip]
	pxor	xmm1, xmm1
	comisd	xmm0, xmm1
	ja	.L24
	lea	rdi, .LC26[rip]
	call	puts@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rcx, rax
	mov	edx, 37
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR logfile[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L25:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC18:
	.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	"738763.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"UP\000"
	.align	2
.LC1:
	.ascii	"RIGHTDOWN\000"
	.align	2
.LC2:
	.ascii	"LEFT\000"
	.align	2
.LC3:
	.ascii	"UP-RIGHT\000"
	.align	2
.LC4:
	.ascii	"UP-LEFT\000"
	.align	2
.LC5:
	.ascii	"DOWN-RIGHT\000"
	.align	2
.LC6:
	.ascii	"DOWN-LEFT\000"
	.text
	.comm	x,8,8
	.comm	y,8,8
	.comm	x_incmt,8,8
	.comm	y_incmt,8,8
	.global	fuel
	.data
	.align	3
	.type	fuel, %object
	.size	fuel, 8
fuel:
	.word	0
	.word	1079574528
	.comm	logfile,4,4
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\012Client - ERROR (the_stack_data/738763.c:%d) -- "
	.ascii	"%s\012\000"
	.align	2
.LC9:
	.ascii	"\011An error has been reported on log file.\000"
	.text
	.align	2
	.global	check
	.syntax unified
	.arm
	.fpu softvfp
	.type	check, %function
check:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L2
	ldr	r3, .L4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, #31
	ldr	r1, .L4+4
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r0, .L4+8
	bl	puts
	ldr	r3, .L4+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mvn	r0, #0
	bl	exit
.L2:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L5:
	.align	2
.L4:
	.word	logfile
	.word	.LC8
	.word	.LC9
	.word	stdout
	.size	check, .-check
	.section	.rodata
	.align	2
.LC10:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	movement
	.syntax unified
	.arm
	.fpu softvfp
	.type	movement, %function
movement:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L9+4
	sub	ip, fp, #36
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	bl	rand
	mov	r3, r0
	rsbs	r2, r3, #0
	and	r3, r3, #3
	and	r2, r2, #3
	rsbpl	r3, r2, #0
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-32]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-40]
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC11
	.word	.LC10
	.size	movement, .-movement
	.section	.rodata
	.align	2
.LC12:
	.ascii	"a\000"
	.align	2
.LC13:
	.ascii	"Drone.txt\000"
	.align	2
.LC14:
	.ascii	"An error occured while creating Drone's log file\000"
	.align	2
.LC15:
	.ascii	"******log file created******\012\000"
	.global	__aeabi_i2d
	.align	2
.LC16:
	.ascii	"c - socket created\012\000"
	.align	2
.LC17:
	.ascii	"c - correct server\012\000"
	.align	2
.LC18:
	.ascii	"127.0.0.1\000"
	.align	2
.LC19:
	.ascii	"c - connected to socket\012\000"
	.align	2
.LC20:
	.ascii	"c - randomizing seed for random error generator\012"
	.ascii	"\000"
	.global	__aeabi_dadd
	.align	2
.LC21:
	.ascii	"RIGHT\000"
	.align	2
.LC22:
	.ascii	"DOWN\000"
	.global	__aeabi_dsub
	.align	2
.LC23:
	.ascii	"%c,%lf,%lf,%lf,\000"
	.align	2
.LC24:
	.ascii	"c - Drone's next state has been sent\012\000"
	.align	2
.LC25:
	.ascii	"Received Confirmation %d\012\000"
	.align	2
.LC26:
	.ascii	"%d,\000"
	.global	__aeabi_dcmpgt
	.align	2
.LC27:
	.ascii	"Fuel is about to end, landing...\000"
	.align	2
.LC28:
	.ascii	"c - Fuel is about to end, landing...\012\000"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 3080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #3104
	str	r0, [fp, #-3096]
	str	r1, [fp, #-3100]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r1, .L31+4
	ldr	r0, .L31+8
	bl	fopen
	mov	r3, r0
	ldr	r2, .L31+12
	str	r3, [r2]
	ldr	r3, .L31+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L31+16
	bl	puts
	mov	r3, #0
	b	.L29
.L12:
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L31+20
	bl	fwrite
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, [fp, #-3100]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+24
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-3100]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+28
	stm	r1, {r2-r3}
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	mov	r0, r3
	bl	check
	str	r0, [fp, #-3080]
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, #1024
	mov	r0, r3
	bl	gethostname
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L31+32
	bl	fwrite
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #1040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-3076]
	ldr	r3, [fp, #-3076]
	cmp	r3, #0
	bne	.L14
	mvn	r0, #0
	bl	check
.L14:
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L31+36
	bl	fwrite
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #3056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	sub	r3, fp, #20
	sub	r3, r3, #3040
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-3076]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-3076]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #3056
	sub	r3, r3, #4
	sub	r3, r3, #4
	add	r3, r3, #4
	mov	r0, r3
	bl	memmove
	ldr	r0, .L31+40
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #20
	sub	r3, r3, #3040
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	ldr	r0, .L31+44
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-3060]
	sub	r3, fp, #3056
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-3080]
	bl	connect
	mov	r3, r0
	mov	r0, r3
	bl	check
	mov	r3, r0
	cmp	r3, #0
	bge	.L15
	mvn	r0, #0
	bl	check
.L15:
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L31+48
	bl	fwrite
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srand
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r2, #48
	mov	r1, #1
	ldr	r0, .L31+52
	bl	fwrite
	b	.L16
.L28:
	bl	movement
	str	r0, [fp, #-3072]
	mov	r3, #0
	str	r3, [fp, #-3084]
	b	.L17
.L27:
	ldr	r3, .L31+24
	ldmia	r3, {r2-r3}
	ldr	r1, .L31+56
	stm	r1, {r2-r3}
	ldr	r3, .L31+28
	ldmia	r3, {r2-r3}
	ldr	r1, .L31+60
	stm	r1, {r2-r3}
	ldr	r3, [fp, #-3072]
	ldr	r2, .L31+64
	cmp	r3, r2
	bne	.L18
	ldr	r3, .L31+60
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L31+68
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+60
	stm	r1, {r2-r3}
.L18:
	ldr	r3, [fp, #-3072]
	ldr	r2, .L31+72
	cmp	r3, r2
	bne	.L19
	ldr	r3, .L31+56
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L31+68
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+56
	stm	r1, {r2-r3}
.L19:
	ldr	r3, [fp, #-3072]
	ldr	r2, .L31+76
	cmp	r3, r2
	bne	.L20
	ldr	r3, .L31+60
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L31+68
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+60
	stm	r1, {r2-r3}
.L20:
	ldr	r3, [fp, #-3072]
	ldr	r2, .L31+80
	cmp	r3, r2
	bne	.L21
	ldr	r3, .L31+56
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L31+68
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+56
	stm	r1, {r2-r3}
.L21:
	ldr	r3, [fp, #-3072]
	ldr	r2, .L31+84
	cmp	r3, r2
	bne	.L22
	ldr	r3, .L31+60
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L31+68
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+60
	stm	r1, {r2-r3}
	ldr	r3, .L31+56
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L31+68
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+56
	stm	r1, {r2-r3}
.L22:
	ldr	r3, [fp, #-3072]
	ldr	r2, .L31+88
	cmp	r3, r2
	bne	.L23
	ldr	r3, .L31+60
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L31+68
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+60
	stm	r1, {r2-r3}
	ldr	r3, .L31+56
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L31+68
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+56
	stm	r1, {r2-r3}
.L23:
	ldr	r3, [fp, #-3072]
	ldr	r2, .L31+92
	cmp	r3, r2
	bne	.L24
	ldr	r3, .L31+60
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L31+68
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+60
	stm	r1, {r2-r3}
	ldr	r3, .L31+56
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L31+68
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+56
	stm	r1, {r2-r3}
.L24:
	ldr	r3, [fp, #-3072]
	ldr	r2, .L31+96
	cmp	r3, r2
	bne	.L25
	ldr	r3, .L31+60
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L31+68
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+60
	stm	r1, {r2-r3}
	ldr	r3, .L31+56
	ldmia	r3, {r0-r1}
	mov	r2, #0
	ldr	r3, .L31+68
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L31+56
	stm	r1, {r2-r3}
.L25:
	sub	r3, fp, #3040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L31+56
	ldmia	r3, {r0-r1}
	ldr	r3, .L31+60
	ldmia	r3, {r4-r5}
	ldr	r3, .L31+100
	ldmia	r3, {r6-r7}
	sub	r3, fp, #3040
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r6, [sp, #16]
	str	r7, [sp, #20]
	str	r4, [sp, #8]
	str	r5, [sp, #12]
	stm	sp, {r0-r1}
	mov	r2, #97
	ldr	r1, .L31+104
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #3040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #3040
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-3080]
	bl	write
	mov	r3, r0
	mov	r0, r3
	bl	check
	ldr	r0, [fp, #-3080]
	bl	fsync
	mov	r0, #1
	bl	sleep
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L31+108
	bl	fwrite
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #2032
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #1000
	mov	r1, r3
	ldr	r0, [fp, #-3080]
	bl	read
	mov	r3, r0
	mov	r0, r3
	bl	check
	str	r0, [fp, #-3068]
	ldr	r1, [fp, #-3068]
	ldr	r0, .L31+112
	bl	printf
	ldr	r3, .L31+116
	ldr	r3, [r3]
	mov	r0, r3
	bl	fsync
	sub	r2, fp, #3072
	sub	r2, r2, #4
	sub	r2, r2, #12
	sub	r3, fp, #2032
	sub	r3, r3, #4
	sub	r3, r3, #12
	ldr	r1, .L31+120
	mov	r0, r3
	bl	__isoc99_sscanf
	ldr	r3, [fp, #-3088]
	cmp	r3, #1
	bne	.L16
	ldr	r3, [fp, #-3084]
	add	r3, r3, #1
	str	r3, [fp, #-3084]
.L17:
	ldr	r3, [fp, #-3084]
	cmp	r3, #4
	ble	.L27
.L16:
	ldr	r3, .L31+100
	ldmia	r3, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L31+124
	bl	puts
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r2, #37
	mov	r1, #1
	ldr	r0, .L31+128
	bl	fwrite
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r3, .L31+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	mov	r3, #0
.L29:
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC29
	.word	.LC12
	.word	.LC13
	.word	logfile
	.word	.LC14
	.word	.LC15
	.word	x
	.word	y
	.word	.LC16
	.word	.LC17
	.word	7777
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	x_incmt
	.word	y_incmt
	.word	.LC0
	.word	1072693248
	.word	.LC21
	.word	.LC22
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	fuel
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	stdout
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
