static final void method1802(int i) throws IOException {
	if (Class348_Sub40_Sub8.gameConnection != null
	    && (Class348_Sub34.anInt6969 ^ 0xffffffff) < -1) {
	    int i_2_ = 0;
	    for (;;) {
		BufferedPacket packet = (BufferedPacket) Class348_Sub40_Sub13.aClass262_9201.getFirst(i ^ 0x4);
		if (packet == null)
		    break;
		Class348_Sub40_Sub8.gameConnection.write(0, ((BufferedPacket) packet).bufferPosition,
		     (((ByteBuffer) (((BufferedPacket) packet)
					 .buffer))
		      .payload));
		i_2_ += ((BufferedPacket) packet).bufferPosition;
		Class348_Sub34.anInt6969 -= ((BufferedPacket) packet).bufferPosition;
		packet.removeNode();
		((BufferedPacket) packet).buffer.method3360((byte) -69);
		packet.method3326((byte) -45);
	    }
	    Class11.anInt193 = 0;
	    Class81.anInt1433 += i_2_;
	}
	if (i != 0)
	    method1799(58);
	anInt6038++;
    }