static final BufferedPacket createBufferedPacket(GamePacket outgoingPacket, IsaacCipher isaac) {
	try {
	    anInt6230++;
	    BufferedPacket packet = Class300.getBufferedOutgoingPacket();
	    ((BufferedPacket) packet).sizeType = ((GamePacket) outgoingPacket).sizeType;
	    ((BufferedPacket) packet).outgoingPacket = outgoingPacket;
	    if ((((BufferedPacket) packet).sizeType ^ 0xffffffff)
		!= 0) {
		if (((BufferedPacket) packet).sizeType == -2)
		    ((BufferedPacket) packet).buffer
			= new GameBuffer(10000);
		else if (((BufferedPacket) packet).sizeType <= 18)
		    ((BufferedPacket) packet).buffer
			= new GameBuffer(20);
		else if (((BufferedPacket) packet).sizeType <= 98)
		    ((BufferedPacket) packet).buffer
			= new GameBuffer(100);
		else
		    ((BufferedPacket) packet).buffer
			= new GameBuffer(260);
	    } else
		((BufferedPacket) packet).buffer
		    = new GameBuffer(260);
	    ((BufferedPacket) packet).buffer.setEncryption(-17, isaac);
	    ((BufferedPacket) packet).buffer.encipherPacket(((BufferedPacket) packet).outgoingPacket.getOpcode(200), 18676);
	    ((BufferedPacket) packet).bufferPosition = 0;
	    return packet;
	} catch (RuntimeException runtimeexception) {
	    throw Class348_Sub17.method2929(runtimeexception,
					    ("em.C("
					     + (outgoingPacket != null ? "{...}"
						: "null")
					     + ','
					     + (isaac != null ? "{...}"
						: "null")
					     + ')'));
	}
    }