static final void method449(String string, String string_1_, boolean bool,
				int i, boolean bool_2_) {
	do {
	    try {
		anInt849++;
		BufferedPacket class348_sub47 = Class203.method1478(true);
		((BufferedPacket) class348_sub47).buffer
		    .putByte
		    (((HandshakePacket) Class178.aClass29_2348).opcode);
		((BufferedPacket) class348_sub47).buffer
		    .putShort(0);
		int i_3_
		    = (((ByteBuffer) (((BufferedPacket) class348_sub47)
					  .buffer))
		       .position);
		((BufferedPacket) class348_sub47).buffer
		    .putShort(634);
		int[] is = Class50_Sub1.method463(class348_sub47, false);
		int i_4_
		    = (((ByteBuffer) (((BufferedPacket) class348_sub47)
					  .buffer))
		       .position);
		((BufferedPacket) class348_sub47).buffer
		    .putJStr((byte) -5, string_1_);
		((BufferedPacket) class348_sub47).buffer
		    .putShort(SocketWorker.affiliateId);
		((BufferedPacket) class348_sub47).buffer
		    .putJStr((byte) -5, string);
		((BufferedPacket) class348_sub47).buffer
		    .putLong(TextureLoader.aLong4615);
		((BufferedPacket) class348_sub47).buffer
		    .putByte(Class348_Sub33.gameLanguage);
		((BufferedPacket) class348_sub47).buffer
		    .putByte
		    ((((GameMode) Class348_Sub42_Sub8_Sub2.gameType)
		      .id));
		s_Sub2.getClientSignature((((BufferedPacket) class348_sub47)
				   .buffer),
				  (byte) 55);
		String string_5_ = Class14_Sub1.aString8605;
		((BufferedPacket) class348_sub47).buffer
		    .putByte(string_5_ == null ? 0 : 1);
		if (string_5_ != null)
		    ((BufferedPacket) class348_sub47)
			.buffer
			.putJStr((byte) -5, string_5_);
		((BufferedPacket) class348_sub47).buffer
		    .putByte(i);
		((BufferedPacket) class348_sub47).buffer
		    .putByte(!bool_2_ ? 0 : 1);
		((ByteBuffer) (((BufferedPacket) class348_sub47)
				   .buffer)).position
		    += 7;
		((BufferedPacket) class348_sub47).buffer
		    .encipherXtea
		    (is, i_4_,
		     (((ByteBuffer) (((BufferedPacket) class348_sub47)
					 .buffer))
		      .position));
		((BufferedPacket) class348_sub47).buffer
		    .finalizeVarShort
		    (1809639944,
		     (((ByteBuffer) (((BufferedPacket) class348_sub47)
					 .buffer)).position
		      + -i_3_));
		Class348_Sub42_Sub14.queuePacket(2, class348_sub47);
		GameFont.connectionOpcode = -3;
		Class367_Sub2.anInt7297 = 1;
		Class169.anInt2264 = 0;
		NativeRaster.anInt8398 = 0;
		if ((i ^ 0xffffffff) <= -14)
		    break;
		Class330.aBoolean4127 = true;
		Class286_Sub8.method2172(60);
	    } catch (RuntimeException runtimeexception) {
		throw Class348_Sub17.method2929(runtimeexception,
						("iq.D("
						 + (string != null ? "{...}"
						    : "null")
						 + ','
						 + (string_1_ != null ? "{...}"
						    : "null")
						 + ',' + bool + ',' + i + ','
						 + bool_2_ + ')'));
	    }
	    break;
	} while (false);
    }