package SHARK2.keymon.com.mx;

import anywheresoftware.b4a.BA;
import anywheresoftware.b4a.pc.*;

public class escposprinter_subs_0 {


public static RemoteObject  _astream_error(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("AStream_Error (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,1141);
if (RapidSub.canDelegate("astream_error")) { return __ref.runUserSub(false, "escposprinter","astream_error", __ref);}
 BA.debugLineNum = 1141;BA.debugLine="Private Sub AStream_Error";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 1142;BA.debugLine="If SubExists(CallBack, EventName & \"_Error\") Then";
Debug.ShouldStop(2097152);
if (escposprinter.__c.runMethod(true,"SubExists",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_callback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_eventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_Error")))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1143;BA.debugLine="CallSub(CallBack, EventName & \"_Error\")";
Debug.ShouldStop(4194304);
escposprinter.__c.runMethodAndSync(false,"CallSubNew",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_callback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_eventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_Error"))));
 };
 BA.debugLineNum = 1145;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _astream_newdata(RemoteObject __ref,RemoteObject _buffer) throws Exception{
try {
		Debug.PushSubsStack("AStream_NewData (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,1134);
if (RapidSub.canDelegate("astream_newdata")) { return __ref.runUserSub(false, "escposprinter","astream_newdata", __ref, _buffer);}
Debug.locals.put("Buffer", _buffer);
 BA.debugLineNum = 1134;BA.debugLine="Private Sub AStream_NewData (Buffer() As Byte)";
Debug.ShouldStop(8192);
 BA.debugLineNum = 1135;BA.debugLine="If SubExists(CallBack, EventName & \"_NewData\") Th";
Debug.ShouldStop(16384);
if (escposprinter.__c.runMethod(true,"SubExists",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_callback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_eventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_NewData")))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1136;BA.debugLine="CallSub2(CallBack, EventName & \"_NewData\", Buffe";
Debug.ShouldStop(32768);
escposprinter.__c.runMethodAndSync(false,"CallSubNew2",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_callback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_eventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_NewData"))),(Object)((_buffer)));
 };
 BA.debugLineNum = 1138;BA.debugLine="Log(\"Data \" & Buffer(0))";
Debug.ShouldStop(131072);
escposprinter.__c.runVoidMethod ("LogImpl","531719428",RemoteObject.concat(RemoteObject.createImmutable("Data "),_buffer.getArrayElement(true,BA.numberCast(int.class, 0))),0);
 BA.debugLineNum = 1139;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _astream_terminated(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("AStream_Terminated (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,1147);
if (RapidSub.canDelegate("astream_terminated")) { return __ref.runUserSub(false, "escposprinter","astream_terminated", __ref);}
 BA.debugLineNum = 1147;BA.debugLine="Private Sub AStream_Terminated";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 1148;BA.debugLine="Connected = False";
Debug.ShouldStop(134217728);
__ref.setField ("_connected" /*RemoteObject*/ ,escposprinter.__c.getField(true,"False"));
 BA.debugLineNum = 1149;BA.debugLine="If SubExists(CallBack, EventName & \"_Terminated\")";
Debug.ShouldStop(268435456);
if (escposprinter.__c.runMethod(true,"SubExists",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_callback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_eventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_Terminated")))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1150;BA.debugLine="CallSub(CallBack, EventName & \"_Terminated\")";
Debug.ShouldStop(536870912);
escposprinter.__c.runMethodAndSync(false,"CallSubNew",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_callback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_eventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_Terminated"))));
 };
 BA.debugLineNum = 1152;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _class_globals(RemoteObject __ref) throws Exception{
 //BA.debugLineNum = 4;BA.debugLine="Sub Class_Globals";
 //BA.debugLineNum = 11;BA.debugLine="Private Version As Double = 2.0 ' Printer class v";
escposprinter._version = BA.numberCast(double.class, 2.0);__ref.setField("_version",escposprinter._version);
 //BA.debugLineNum = 13;BA.debugLine="Type AnImage(Width As Int, Height As Int, Data()";
;
 //BA.debugLineNum = 15;BA.debugLine="Private EventName As String 'ignore";
escposprinter._eventname = RemoteObject.createImmutable("");__ref.setField("_eventname",escposprinter._eventname);
 //BA.debugLineNum = 16;BA.debugLine="Private CallBack As Object 'ignore";
escposprinter._callback = RemoteObject.createNew ("Object");__ref.setField("_callback",escposprinter._callback);
 //BA.debugLineNum = 18;BA.debugLine="Private Serial1 As Serial";
escposprinter._serial1 = RemoteObject.createNew ("anywheresoftware.b4a.objects.Serial");__ref.setField("_serial1",escposprinter._serial1);
 //BA.debugLineNum = 19;BA.debugLine="Private Astream As AsyncStreams";
escposprinter._astream = RemoteObject.createNew ("anywheresoftware.b4a.randomaccessfile.AsyncStreams");__ref.setField("_astream",escposprinter._astream);
 //BA.debugLineNum = 20;BA.debugLine="Private Connected As Boolean";
escposprinter._connected = RemoteObject.createImmutable(false);__ref.setField("_connected",escposprinter._connected);
 //BA.debugLineNum = 21;BA.debugLine="Private ConnectedError As String";
escposprinter._connectederror = RemoteObject.createImmutable("");__ref.setField("_connectederror",escposprinter._connectederror);
 //BA.debugLineNum = 23;BA.debugLine="Dim ESC As String = Chr(27)";
escposprinter._esc = BA.ObjectToString(escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 27))));__ref.setField("_esc",escposprinter._esc);
 //BA.debugLineNum = 24;BA.debugLine="Dim FS As String = Chr(28)";
escposprinter._fs = BA.ObjectToString(escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 28))));__ref.setField("_fs",escposprinter._fs);
 //BA.debugLineNum = 25;BA.debugLine="Dim GS As String = Chr(29)";
escposprinter._gs = BA.ObjectToString(escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 29))));__ref.setField("_gs",escposprinter._gs);
 //BA.debugLineNum = 28;BA.debugLine="Dim UNREVERSE As String  = GS & \"B\" & Chr(0)";
escposprinter._unreverse = RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("B"),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 0))));__ref.setField("_unreverse",escposprinter._unreverse);
 //BA.debugLineNum = 29;BA.debugLine="Dim REVERSE As String = GS & \"B\" & Chr(1)";
escposprinter._reverse = RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("B"),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 1))));__ref.setField("_reverse",escposprinter._reverse);
 //BA.debugLineNum = 32;BA.debugLine="Dim UNINVERT As String = ESC & \"{0\"";
escposprinter._uninvert = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("{0"));__ref.setField("_uninvert",escposprinter._uninvert);
 //BA.debugLineNum = 33;BA.debugLine="Dim INVERT As String = ESC & \"{1\"";
escposprinter._invert = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("{1"));__ref.setField("_invert",escposprinter._invert);
 //BA.debugLineNum = 36;BA.debugLine="Dim UNROTATE As String = ESC & \"V0\"";
escposprinter._unrotate = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("V0"));__ref.setField("_unrotate",escposprinter._unrotate);
 //BA.debugLineNum = 37;BA.debugLine="Dim ROTATE As String = ESC & \"V1\"";
escposprinter._rotate = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("V1"));__ref.setField("_rotate",escposprinter._rotate);
 //BA.debugLineNum = 40;BA.debugLine="Dim HT As String = Chr(9)";
escposprinter._ht = BA.ObjectToString(escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 9))));__ref.setField("_ht",escposprinter._ht);
 //BA.debugLineNum = 43;BA.debugLine="Dim ULINE0 As String = ESC & \"-0\"";
escposprinter._uline0 = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("-0"));__ref.setField("_uline0",escposprinter._uline0);
 //BA.debugLineNum = 44;BA.debugLine="Dim ULINE1 As String = ESC & \"-1\"";
escposprinter._uline1 = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("-1"));__ref.setField("_uline1",escposprinter._uline1);
 //BA.debugLineNum = 45;BA.debugLine="Dim ULINE2 As String = ESC & \"-2\"";
escposprinter._uline2 = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("-2"));__ref.setField("_uline2",escposprinter._uline2);
 //BA.debugLineNum = 48;BA.debugLine="Dim BOLD As String = ESC & \"E1\"";
escposprinter._bold = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("E1"));__ref.setField("_bold",escposprinter._bold);
 //BA.debugLineNum = 49;BA.debugLine="Dim NOBOLD As String = ESC & \"E0\"";
escposprinter._nobold = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("E0"));__ref.setField("_nobold",escposprinter._nobold);
 //BA.debugLineNum = 52;BA.debugLine="Dim SINGLE As String = GS & \"!\" & Chr(0x00)";
escposprinter._single = RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("!"),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x00)))));__ref.setField("_single",escposprinter._single);
 //BA.debugLineNum = 53;BA.debugLine="Dim HIGH As String = GS & \"!\" & Chr(0x01)";
escposprinter._high = RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("!"),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x01)))));__ref.setField("_high",escposprinter._high);
 //BA.debugLineNum = 54;BA.debugLine="Dim WIDE As String = GS & \"!\" & Chr(0x10)";
escposprinter._wide = RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("!"),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x10)))));__ref.setField("_wide",escposprinter._wide);
 //BA.debugLineNum = 55;BA.debugLine="Dim HIGHWIDE As String = GS & \"!\" & Chr(0x11)";
escposprinter._highwide = RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("!"),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x11)))));__ref.setField("_highwide",escposprinter._highwide);
 //BA.debugLineNum = 58;BA.debugLine="Private LEFTJUSTIFY As String = ESC & \"a0\"";
escposprinter._leftjustify = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("a0"));__ref.setField("_leftjustify",escposprinter._leftjustify);
 //BA.debugLineNum = 59;BA.debugLine="Private LINEDEFAULT As String = ESC & \"2\"";
escposprinter._linedefault = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("2"));__ref.setField("_linedefault",escposprinter._linedefault);
 //BA.debugLineNum = 60;BA.debugLine="Private LINSET0 As String = ESC & \"$\" & Chr(0x0)";
escposprinter._linset0 = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("$"),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x0)))),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x0)))));__ref.setField("_linset0",escposprinter._linset0);
 //BA.debugLineNum = 61;BA.debugLine="Private LMARGIN0 As String = GS & \"L\" & Chr(0x0)";
escposprinter._lmargin0 = RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("L"),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x0)))),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0x0)))));__ref.setField("_lmargin0",escposprinter._lmargin0);
 //BA.debugLineNum = 62;BA.debugLine="Private WIDTH0 As String = GS & \"W\" & Chr(0xff) &";
escposprinter._width0 = RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("W"),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0xff)))),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, ((int)0xff)))));__ref.setField("_width0",escposprinter._width0);
 //BA.debugLineNum = 63;BA.debugLine="Private CHARSPACING0 As String = ESC & \" \" & Chr(";
escposprinter._charspacing0 = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable(" "),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 0))));__ref.setField("_charspacing0",escposprinter._charspacing0);
 //BA.debugLineNum = 64;BA.debugLine="Private CHARFONT0 As String = ESC & \"M\" & Chr(0)";
escposprinter._charfont0 = RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("M"),escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 0))));__ref.setField("_charfont0",escposprinter._charfont0);
 //BA.debugLineNum = 65;BA.debugLine="Dim DEFAULTS As String =  CHARSPACING0 & CHARFONT";
escposprinter._defaults = RemoteObject.concat(__ref.getField(true,"_charspacing0" /*RemoteObject*/ ),__ref.getField(true,"_charfont0" /*RemoteObject*/ ),__ref.getField(true,"_lmargin0" /*RemoteObject*/ ),__ref.getField(true,"_width0" /*RemoteObject*/ ),__ref.getField(true,"_linset0" /*RemoteObject*/ ),__ref.getField(true,"_linedefault" /*RemoteObject*/ ),__ref.getField(true,"_leftjustify" /*RemoteObject*/ ),__ref.getField(true,"_uninvert" /*RemoteObject*/ ),__ref.getField(true,"_unrotate" /*RemoteObject*/ ),__ref.getField(true,"_unreverse" /*RemoteObject*/ ),__ref.getField(true,"_nobold" /*RemoteObject*/ ),__ref.getField(true,"_uline0" /*RemoteObject*/ ));__ref.setField("_defaults",escposprinter._defaults);
 //BA.debugLineNum = 68;BA.debugLine="End Sub";
return RemoteObject.createImmutable("");
}
public static RemoteObject  _connect(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Connect (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,100);
if (RapidSub.canDelegate("connect")) { return __ref.runUserSub(false, "escposprinter","connect", __ref);}
RemoteObject _paireddevices = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.Map");
RemoteObject _l = RemoteObject.declareNull("anywheresoftware.b4a.objects.collections.List");
int _i = 0;
RemoteObject _res = RemoteObject.createImmutable(0);
 BA.debugLineNum = 100;BA.debugLine="Public Sub Connect As Boolean";
Debug.ShouldStop(8);
 BA.debugLineNum = 104;BA.debugLine="Try";
Debug.ShouldStop(128);
try { BA.debugLineNum = 105;BA.debugLine="If Starter.MAC_IMPRESORA = \"0\" Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean("=",escposprinter._starter._mac_impresora /*RemoteObject*/ ,BA.ObjectToString("0"))) { 
 BA.debugLineNum = 106;BA.debugLine="Dim PairedDevices As Map";
Debug.ShouldStop(512);
_paireddevices = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.Map");Debug.locals.put("PairedDevices", _paireddevices);
 BA.debugLineNum = 107;BA.debugLine="PairedDevices = Serial1.GetPairedDevices";
Debug.ShouldStop(1024);
_paireddevices = __ref.getField(false,"_serial1" /*RemoteObject*/ ).runMethod(false,"GetPairedDevices");Debug.locals.put("PairedDevices", _paireddevices);
 BA.debugLineNum = 108;BA.debugLine="Dim l As List";
Debug.ShouldStop(2048);
_l = RemoteObject.createNew ("anywheresoftware.b4a.objects.collections.List");Debug.locals.put("l", _l);
 BA.debugLineNum = 109;BA.debugLine="l.Initialize";
Debug.ShouldStop(4096);
_l.runVoidMethod ("Initialize");
 BA.debugLineNum = 110;BA.debugLine="Log(\"aqui 1\")";
Debug.ShouldStop(8192);
escposprinter.__c.runVoidMethod ("LogImpl","528573706",RemoteObject.createImmutable("aqui 1"),0);
 BA.debugLineNum = 111;BA.debugLine="For i = 0 To PairedDevices.Size - 1";
Debug.ShouldStop(16384);
{
final int step8 = 1;
final int limit8 = RemoteObject.solve(new RemoteObject[] {_paireddevices.runMethod(true,"getSize"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step8 > 0 && _i <= limit8) || (step8 < 0 && _i >= limit8) ;_i = ((int)(0 + _i + step8))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 112;BA.debugLine="l.Add(PairedDevices.GetKeyAt(i))";
Debug.ShouldStop(32768);
_l.runVoidMethod ("Add",(Object)(_paireddevices.runMethod(false,"GetKeyAt",(Object)(BA.numberCast(int.class, _i)))));
 BA.debugLineNum = 113;BA.debugLine="Log(\"aqui 2\")";
Debug.ShouldStop(65536);
escposprinter.__c.runVoidMethod ("LogImpl","528573709",RemoteObject.createImmutable("aqui 2"),0);
 BA.debugLineNum = 114;BA.debugLine="DisConnect";
Debug.ShouldStop(131072);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 116;BA.debugLine="Dim Res As Int";
Debug.ShouldStop(524288);
_res = RemoteObject.createImmutable(0);Debug.locals.put("Res", _res);
 BA.debugLineNum = 117;BA.debugLine="Res = InputList(l, \"Choose a printer\", -1) 'sho";
Debug.ShouldStop(1048576);
_res = escposprinter.__c.runMethodAndSync(true,"InputList",(Object)(_l),(Object)(BA.ObjectToCharSequence("Choose a printer")),(Object)(BA.numberCast(int.class, -(double) (0 + 1))),__ref.runMethod(false,"getActivityBA"));Debug.locals.put("Res", _res);
 BA.debugLineNum = 118;BA.debugLine="If Res <> DialogResponse.CANCEL Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean("!",_res,BA.numberCast(double.class, escposprinter.__c.getField(false,"DialogResponse").getField(true,"CANCEL")))) { 
 BA.debugLineNum = 119;BA.debugLine="Serial1.Connect(PairedDevices.Get(l.Get(Res)))";
Debug.ShouldStop(4194304);
__ref.getField(false,"_serial1" /*RemoteObject*/ ).runVoidMethod ("Connect",__ref.getField(false, "ba"),(Object)(BA.ObjectToString(_paireddevices.runMethod(false,"Get",(Object)(_l.runMethod(false,"Get",(Object)(_res)))))));
 BA.debugLineNum = 121;BA.debugLine="Starter.mac_impresora = PairedDevices.Get(l.Ge";
Debug.ShouldStop(16777216);
escposprinter._starter._mac_impresora /*RemoteObject*/  = BA.ObjectToString(_paireddevices.runMethod(false,"Get",(Object)(_l.runMethod(false,"Get",(Object)(_res)))));
 BA.debugLineNum = 122;BA.debugLine="Return True";
Debug.ShouldStop(33554432);
Debug.CheckDeviceExceptions();if (true) return escposprinter.__c.getField(true,"True");
 BA.debugLineNum = 123;BA.debugLine="DisConnect";
Debug.ShouldStop(67108864);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 124;BA.debugLine="Log(\"aqui 3\")";
Debug.ShouldStop(134217728);
escposprinter.__c.runVoidMethod ("LogImpl","528573720",RemoteObject.createImmutable("aqui 3"),0);
 };
 BA.debugLineNum = 126;BA.debugLine="Log(\"aqui 4\")";
Debug.ShouldStop(536870912);
escposprinter.__c.runVoidMethod ("LogImpl","528573722",RemoteObject.createImmutable("aqui 4"),0);
 BA.debugLineNum = 127;BA.debugLine="Return False";
Debug.ShouldStop(1073741824);
Debug.CheckDeviceExceptions();if (true) return escposprinter.__c.getField(true,"False");
 }else {
 BA.debugLineNum = 129;BA.debugLine="Serial1.Connect(Starter.mac_impresora)";
Debug.ShouldStop(1);
__ref.getField(false,"_serial1" /*RemoteObject*/ ).runVoidMethod ("Connect",__ref.getField(false, "ba"),(Object)(escposprinter._starter._mac_impresora /*RemoteObject*/ ));
 BA.debugLineNum = 131;BA.debugLine="Return True";
Debug.ShouldStop(4);
Debug.CheckDeviceExceptions();if (true) return escposprinter.__c.getField(true,"True");
 BA.debugLineNum = 132;BA.debugLine="DisConnect";
Debug.ShouldStop(8);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_disconnect" /*RemoteObject*/ );
 BA.debugLineNum = 133;BA.debugLine="Log(\"aqui 5\")";
Debug.ShouldStop(16);
escposprinter.__c.runVoidMethod ("LogImpl","528573729",RemoteObject.createImmutable("aqui 5"),0);
 };
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e31) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e31.toString()); BA.debugLineNum = 136;BA.debugLine="Log(LastException)";
Debug.ShouldStop(128);
escposprinter.__c.runVoidMethod ("LogImpl","528573732",BA.ObjectToString(escposprinter.__c.runMethod(false,"LastException",__ref.runMethod(false,"getActivityBA"))),0);
 BA.debugLineNum = 137;BA.debugLine="Return False";
Debug.ShouldStop(256);
if (true) return escposprinter.__c.getField(true,"False");
 };
 BA.debugLineNum = 139;BA.debugLine="End Sub";
Debug.ShouldStop(1024);
return RemoteObject.createImmutable(false);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _connectederrormsg(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("ConnectedErrorMsg (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,84);
if (RapidSub.canDelegate("connectederrormsg")) { return __ref.runUserSub(false, "escposprinter","connectederrormsg", __ref);}
 BA.debugLineNum = 84;BA.debugLine="Public Sub ConnectedErrorMsg As String";
Debug.ShouldStop(524288);
 BA.debugLineNum = 85;BA.debugLine="Return ConnectedError";
Debug.ShouldStop(1048576);
if (true) return __ref.getField(true,"_connectederror" /*RemoteObject*/ );
 BA.debugLineNum = 86;BA.debugLine="End Sub";
Debug.ShouldStop(2097152);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _createbox(RemoteObject __ref,RemoteObject _x0,RemoteObject _y0,RemoteObject _x1,RemoteObject _y1,RemoteObject _fill) throws Exception{
try {
		Debug.PushSubsStack("CreateBox (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,520);
if (RapidSub.canDelegate("createbox")) { return __ref.runUserSub(false, "escposprinter","createbox", __ref, _x0, _y0, _x1, _y1, _fill);}
RemoteObject _box = RemoteObject.createImmutable(0);
Debug.locals.put("x0", _x0);
Debug.locals.put("y0", _y0);
Debug.locals.put("x1", _x1);
Debug.locals.put("y1", _y1);
Debug.locals.put("fill", _fill);
 BA.debugLineNum = 520;BA.debugLine="Public Sub CreateBox(x0 As Int, y0 As Int, x1 As I";
Debug.ShouldStop(128);
 BA.debugLineNum = 521;BA.debugLine="Dim box As Int = 0x10000000";
Debug.ShouldStop(256);
_box = BA.numberCast(int.class, ((int)0x10000000));Debug.locals.put("box", _box);Debug.locals.put("box", _box);
 BA.debugLineNum = 522;BA.debugLine="If fill Then box = box + 0x80000000";
Debug.ShouldStop(512);
if (_fill.<Boolean>get().booleanValue()) { 
_box = RemoteObject.solve(new RemoteObject[] {_box,RemoteObject.createImmutable(((int)0x80000000))}, "+",1, 1);Debug.locals.put("box", _box);};
 BA.debugLineNum = 523;BA.debugLine="box = box + Bit.ShiftLeft(Bit.And(0xf,x0), 24)";
Debug.ShouldStop(1024);
_box = RemoteObject.solve(new RemoteObject[] {_box,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0xf))),(Object)(_x0))),(Object)(BA.numberCast(int.class, 24)))}, "+",1, 1);Debug.locals.put("box", _box);
 BA.debugLineNum = 524;BA.debugLine="box = box + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)";
Debug.ShouldStop(2048);
_box = RemoteObject.solve(new RemoteObject[] {_box,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x1f))),(Object)(_y0))),(Object)(BA.numberCast(int.class, 16)))}, "+",1, 1);Debug.locals.put("box", _box);
 BA.debugLineNum = 525;BA.debugLine="box = box + Bit.ShiftLeft(Bit.And(0xf,x1), 8)";
Debug.ShouldStop(4096);
_box = RemoteObject.solve(new RemoteObject[] {_box,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0xf))),(Object)(_x1))),(Object)(BA.numberCast(int.class, 8)))}, "+",1, 1);Debug.locals.put("box", _box);
 BA.debugLineNum = 526;BA.debugLine="box = box + Bit.And(0x1f,y1)";
Debug.ShouldStop(8192);
_box = RemoteObject.solve(new RemoteObject[] {_box,escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x1f))),(Object)(_y1))}, "+",1, 1);Debug.locals.put("box", _box);
 BA.debugLineNum = 527;BA.debugLine="Return box";
Debug.ShouldStop(16384);
if (true) return _box;
 BA.debugLineNum = 528;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
return RemoteObject.createImmutable(0);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _createcircle(RemoteObject __ref,RemoteObject _radius,RemoteObject _quadrants,RemoteObject _x1,RemoteObject _y1,RemoteObject _fill) throws Exception{
try {
		Debug.PushSubsStack("CreateCircle (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,490);
if (RapidSub.canDelegate("createcircle")) { return __ref.runUserSub(false, "escposprinter","createcircle", __ref, _radius, _quadrants, _x1, _y1, _fill);}
RemoteObject _circle = RemoteObject.createImmutable(0);
Debug.locals.put("radius", _radius);
Debug.locals.put("quadrants", _quadrants);
Debug.locals.put("x1", _x1);
Debug.locals.put("y1", _y1);
Debug.locals.put("fill", _fill);
 BA.debugLineNum = 490;BA.debugLine="Public Sub CreateCircle(radius As Int, quadrants A";
Debug.ShouldStop(512);
 BA.debugLineNum = 491;BA.debugLine="Dim circle As Int = 0x20000000";
Debug.ShouldStop(1024);
_circle = BA.numberCast(int.class, ((int)0x20000000));Debug.locals.put("circle", _circle);Debug.locals.put("circle", _circle);
 BA.debugLineNum = 492;BA.debugLine="If fill Then circle = circle + 0x80000000";
Debug.ShouldStop(2048);
if (_fill.<Boolean>get().booleanValue()) { 
_circle = RemoteObject.solve(new RemoteObject[] {_circle,RemoteObject.createImmutable(((int)0x80000000))}, "+",1, 1);Debug.locals.put("circle", _circle);};
 BA.debugLineNum = 493;BA.debugLine="circle = circle + Bit.ShiftLeft(radius, 24)";
Debug.ShouldStop(4096);
_circle = RemoteObject.solve(new RemoteObject[] {_circle,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(_radius),(Object)(BA.numberCast(int.class, 24)))}, "+",1, 1);Debug.locals.put("circle", _circle);
 BA.debugLineNum = 494;BA.debugLine="circle = circle + Bit.ShiftLeft(quadrants, 16)";
Debug.ShouldStop(8192);
_circle = RemoteObject.solve(new RemoteObject[] {_circle,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(_quadrants),(Object)(BA.numberCast(int.class, 16)))}, "+",1, 1);Debug.locals.put("circle", _circle);
 BA.debugLineNum = 495;BA.debugLine="circle = circle + Bit.ShiftLeft(x1, 8)";
Debug.ShouldStop(16384);
_circle = RemoteObject.solve(new RemoteObject[] {_circle,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(_x1),(Object)(BA.numberCast(int.class, 8)))}, "+",1, 1);Debug.locals.put("circle", _circle);
 BA.debugLineNum = 496;BA.debugLine="circle = circle + y1";
Debug.ShouldStop(32768);
_circle = RemoteObject.solve(new RemoteObject[] {_circle,_y1}, "+",1, 1);Debug.locals.put("circle", _circle);
 BA.debugLineNum = 497;BA.debugLine="Return circle";
Debug.ShouldStop(65536);
if (true) return _circle;
 BA.debugLineNum = 498;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable(0);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _createcustomcharacter(RemoteObject __ref,RemoteObject _shapes,RemoteObject _characterfont) throws Exception{
try {
		Debug.PushSubsStack("CreateCustomCharacter (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,404);
if (RapidSub.canDelegate("createcustomcharacter")) { return __ref.runUserSub(false, "escposprinter","createcustomcharacter", __ref, _shapes, _characterfont);}
RemoteObject _masks = null;
RemoteObject _points = null;
int _x = 0;
int _y = 0;
RemoteObject _size = RemoteObject.createImmutable(0);
RemoteObject _charbyes = null;
int _c = 0;
int _i = 0;
RemoteObject _fill = RemoteObject.createImmutable(0);
RemoteObject _shape = RemoteObject.createImmutable(0);
RemoteObject _x0 = RemoteObject.createImmutable(0);
RemoteObject _y0 = RemoteObject.createImmutable(0);
RemoteObject _x1 = RemoteObject.createImmutable(0);
RemoteObject _y1 = RemoteObject.createImmutable(0);
RemoteObject _x2 = RemoteObject.createImmutable(0);
RemoteObject _y2 = RemoteObject.createImmutable(0);
RemoteObject _logmsg = RemoteObject.createImmutable("");
RemoteObject _bits = RemoteObject.createImmutable((byte)0);
int _b = 0;
Debug.locals.put("shapes", _shapes);
Debug.locals.put("characterfont", _characterfont);
 BA.debugLineNum = 404;BA.debugLine="Public Sub CreateCustomCharacter(shapes() As Int,";
Debug.ShouldStop(524288);
 BA.debugLineNum = 405;BA.debugLine="Dim masks(8) As Byte";
Debug.ShouldStop(1048576);
_masks = RemoteObject.createNewArray ("byte", new int[] {8}, new Object[]{});Debug.locals.put("masks", _masks);
 BA.debugLineNum = 406;BA.debugLine="masks(0) = 0x80";
Debug.ShouldStop(2097152);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x80)),BA.numberCast(int.class, 0));
 BA.debugLineNum = 407;BA.debugLine="masks(1) = 0x40";
Debug.ShouldStop(4194304);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x40)),BA.numberCast(int.class, 1));
 BA.debugLineNum = 408;BA.debugLine="masks(2) = 0x20";
Debug.ShouldStop(8388608);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x20)),BA.numberCast(int.class, 2));
 BA.debugLineNum = 409;BA.debugLine="masks(3) = 0x10";
Debug.ShouldStop(16777216);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x10)),BA.numberCast(int.class, 3));
 BA.debugLineNum = 410;BA.debugLine="masks(4) = 0x08";
Debug.ShouldStop(33554432);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x08)),BA.numberCast(int.class, 4));
 BA.debugLineNum = 411;BA.debugLine="masks(5) = 0x04";
Debug.ShouldStop(67108864);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x04)),BA.numberCast(int.class, 5));
 BA.debugLineNum = 412;BA.debugLine="masks(6) = 0x02";
Debug.ShouldStop(134217728);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x02)),BA.numberCast(int.class, 6));
 BA.debugLineNum = 413;BA.debugLine="masks(7) = 0x01";
Debug.ShouldStop(268435456);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x01)),BA.numberCast(int.class, 7));
 BA.debugLineNum = 416;BA.debugLine="Dim points(16,32) As Byte";
Debug.ShouldStop(-2147483648);
_points = RemoteObject.createNewArray ("byte", new int[] {16,32}, new Object[]{});Debug.locals.put("points", _points);
 BA.debugLineNum = 418;BA.debugLine="For x = 0 To 15";
Debug.ShouldStop(2);
{
final int step11 = 1;
final int limit11 = 15;
_x = 0 ;
for (;(step11 > 0 && _x <= limit11) || (step11 < 0 && _x >= limit11) ;_x = ((int)(0 + _x + step11))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 419;BA.debugLine="For y = 0 To 31";
Debug.ShouldStop(4);
{
final int step12 = 1;
final int limit12 = 31;
_y = 0 ;
for (;(step12 > 0 && _y <= limit12) || (step12 < 0 && _y >= limit12) ;_y = ((int)(0 + _y + step12))  ) {
Debug.locals.put("y", _y);
 BA.debugLineNum = 420;BA.debugLine="points(x,y) = 0";
Debug.ShouldStop(8);
_points.setArrayElement (BA.numberCast(byte.class, 0),BA.numberCast(int.class, _x),BA.numberCast(int.class, _y));
 }
}Debug.locals.put("y", _y);
;
 }
}Debug.locals.put("x", _x);
;
 BA.debugLineNum = 423;BA.debugLine="Dim size As Int = 12";
Debug.ShouldStop(64);
_size = BA.numberCast(int.class, 12);Debug.locals.put("size", _size);Debug.locals.put("size", _size);
 BA.debugLineNum = 424;BA.debugLine="If characterfont = 1 Then size = 9";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("=",_characterfont,BA.numberCast(double.class, 1))) { 
_size = BA.numberCast(int.class, 9);Debug.locals.put("size", _size);};
 BA.debugLineNum = 425;BA.debugLine="Dim charbyes(size * 3) As Byte";
Debug.ShouldStop(256);
_charbyes = RemoteObject.createNewArray ("byte", new int[] {RemoteObject.solve(new RemoteObject[] {_size,RemoteObject.createImmutable(3)}, "*",0, 1).<Integer>get().intValue()}, new Object[]{});Debug.locals.put("charbyes", _charbyes);
 BA.debugLineNum = 426;BA.debugLine="For c = 0 To charbyes.Length - 1";
Debug.ShouldStop(512);
{
final int step19 = 1;
final int limit19 = RemoteObject.solve(new RemoteObject[] {_charbyes.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_c = 0 ;
for (;(step19 > 0 && _c <= limit19) || (step19 < 0 && _c >= limit19) ;_c = ((int)(0 + _c + step19))  ) {
Debug.locals.put("c", _c);
 BA.debugLineNum = 427;BA.debugLine="charbyes(c) = 0";
Debug.ShouldStop(1024);
_charbyes.setArrayElement (BA.numberCast(byte.class, 0),BA.numberCast(int.class, _c));
 }
}Debug.locals.put("c", _c);
;
 BA.debugLineNum = 430;BA.debugLine="For i = 0 To shapes.Length -1";
Debug.ShouldStop(8192);
{
final int step22 = 1;
final int limit22 = RemoteObject.solve(new RemoteObject[] {_shapes.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step22 > 0 && _i <= limit22) || (step22 < 0 && _i >= limit22) ;_i = ((int)(0 + _i + step22))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 431;BA.debugLine="Dim fill As Int =  Bit.UnsignedShiftRight(Bit.An";
Debug.ShouldStop(16384);
_fill = escposprinter.__c.getField(false,"Bit").runMethod(true,"UnsignedShiftRight",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x80000000))),(Object)(_shapes.getArrayElement(true,BA.numberCast(int.class, _i))))),(Object)(BA.numberCast(int.class, 31)));Debug.locals.put("fill", _fill);Debug.locals.put("fill", _fill);
 BA.debugLineNum = 432;BA.debugLine="Dim shape As Int = Bit.UnsignedShiftRight(Bit.An";
Debug.ShouldStop(32768);
_shape = escposprinter.__c.getField(false,"Bit").runMethod(true,"UnsignedShiftRight",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x70000000))),(Object)(_shapes.getArrayElement(true,BA.numberCast(int.class, _i))))),(Object)(BA.numberCast(int.class, 28)));Debug.locals.put("shape", _shape);Debug.locals.put("shape", _shape);
 BA.debugLineNum = 433;BA.debugLine="Dim x0 As Int = Bit.UnsignedShiftRight(Bit.And(0";
Debug.ShouldStop(65536);
_x0 = escposprinter.__c.getField(false,"Bit").runMethod(true,"UnsignedShiftRight",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x0f000000))),(Object)(_shapes.getArrayElement(true,BA.numberCast(int.class, _i))))),(Object)(BA.numberCast(int.class, 24)));Debug.locals.put("x0", _x0);Debug.locals.put("x0", _x0);
 BA.debugLineNum = 434;BA.debugLine="Dim y0 As Int = Bit.UnsignedShiftRight(Bit.And(0";
Debug.ShouldStop(131072);
_y0 = escposprinter.__c.getField(false,"Bit").runMethod(true,"UnsignedShiftRight",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x001f0000))),(Object)(_shapes.getArrayElement(true,BA.numberCast(int.class, _i))))),(Object)(BA.numberCast(int.class, 16)));Debug.locals.put("y0", _y0);Debug.locals.put("y0", _y0);
 BA.debugLineNum = 435;BA.debugLine="Dim x1 As Int = Bit.UnsignedShiftRight(Bit.And(0";
Debug.ShouldStop(262144);
_x1 = escposprinter.__c.getField(false,"Bit").runMethod(true,"UnsignedShiftRight",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x00000f00))),(Object)(_shapes.getArrayElement(true,BA.numberCast(int.class, _i))))),(Object)(BA.numberCast(int.class, 8)));Debug.locals.put("x1", _x1);Debug.locals.put("x1", _x1);
 BA.debugLineNum = 436;BA.debugLine="Dim y1 As Int = Bit.And(0x0000001f, shapes(i))";
Debug.ShouldStop(524288);
_y1 = escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x0000001f))),(Object)(_shapes.getArrayElement(true,BA.numberCast(int.class, _i))));Debug.locals.put("y1", _y1);Debug.locals.put("y1", _y1);
 BA.debugLineNum = 437;BA.debugLine="Dim x2 As Int = Bit.UnsignedShiftRight(Bit.And(0";
Debug.ShouldStop(1048576);
_x2 = escposprinter.__c.getField(false,"Bit").runMethod(true,"UnsignedShiftRight",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x0000f000))),(Object)(_shapes.getArrayElement(true,BA.numberCast(int.class, _i))))),(Object)(BA.numberCast(int.class, 12)));Debug.locals.put("x2", _x2);Debug.locals.put("x2", _x2);
 BA.debugLineNum = 438;BA.debugLine="Dim y2 As Int = Bit.UnsignedShiftRight(Bit.And(0";
Debug.ShouldStop(2097152);
_y2 = RemoteObject.solve(new RemoteObject[] {escposprinter.__c.getField(false,"Bit").runMethod(true,"UnsignedShiftRight",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x00e00000))),(Object)(_shapes.getArrayElement(true,BA.numberCast(int.class, _i))))),(Object)(BA.numberCast(int.class, 18))),escposprinter.__c.getField(false,"Bit").runMethod(true,"UnsignedShiftRight",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x000000e0))),(Object)(_shapes.getArrayElement(true,BA.numberCast(int.class, _i))))),(Object)(BA.numberCast(int.class, 5)))}, "+",1, 1);Debug.locals.put("y2", _y2);Debug.locals.put("y2", _y2);
 BA.debugLineNum = 444;BA.debugLine="Dim logmsg As String = \": Fill=\" & fill & \" : Po";
Debug.ShouldStop(134217728);
_logmsg = RemoteObject.concat(RemoteObject.createImmutable(": Fill="),_fill,RemoteObject.createImmutable(" : Points "),_x0,RemoteObject.createImmutable(","),_y0,RemoteObject.createImmutable("  "),_x1,RemoteObject.createImmutable(","),_y1,RemoteObject.createImmutable("  "),_x2,RemoteObject.createImmutable(","),_y2);Debug.locals.put("logmsg", _logmsg);Debug.locals.put("logmsg", _logmsg);
 BA.debugLineNum = 445;BA.debugLine="If shape = 3 Then";
Debug.ShouldStop(268435456);
if (RemoteObject.solveBoolean("=",_shape,BA.numberCast(double.class, 3))) { 
 BA.debugLineNum = 446;BA.debugLine="Log(\"Triangle \" & logmsg)";
Debug.ShouldStop(536870912);
escposprinter.__c.runVoidMethod ("LogImpl","529884458",RemoteObject.concat(RemoteObject.createImmutable("Triangle "),_logmsg),0);
 BA.debugLineNum = 447;BA.debugLine="PlotTriangle(x0, y0, x1, y1, x2, y2, points, fi";
Debug.ShouldStop(1073741824);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plottriangle" /*RemoteObject*/ ,(Object)(_x0),(Object)(_y0),(Object)(_x1),(Object)(_y1),(Object)(_x2),(Object)(_y2),(Object)(_points),(Object)(_fill));
 }else 
{ BA.debugLineNum = 448;BA.debugLine="else If shape = 2 Then";
Debug.ShouldStop(-2147483648);
if (RemoteObject.solveBoolean("=",_shape,BA.numberCast(double.class, 2))) { 
 BA.debugLineNum = 449;BA.debugLine="Log(\"Circle \" & logmsg)";
Debug.ShouldStop(1);
escposprinter.__c.runVoidMethod ("LogImpl","529884461",RemoteObject.concat(RemoteObject.createImmutable("Circle "),_logmsg),0);
 BA.debugLineNum = 450;BA.debugLine="PlotCircle(x0, y0, x1, y1, points, fill)";
Debug.ShouldStop(2);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotcircle" /*RemoteObject*/ ,(Object)(_x0),(Object)(_y0),(Object)(_x1),(Object)(_y1),(Object)(_points),(Object)(_fill));
 }else 
{ BA.debugLineNum = 451;BA.debugLine="Else If shape = 1 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("=",_shape,BA.numberCast(double.class, 1))) { 
 BA.debugLineNum = 452;BA.debugLine="Log(\"Box \" & logmsg)";
Debug.ShouldStop(8);
escposprinter.__c.runVoidMethod ("LogImpl","529884464",RemoteObject.concat(RemoteObject.createImmutable("Box "),_logmsg),0);
 BA.debugLineNum = 453;BA.debugLine="PlotBox(x0, y0, x1, y1, points, fill)";
Debug.ShouldStop(16);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotbox" /*RemoteObject*/ ,(Object)(_x0),(Object)(_y0),(Object)(_x1),(Object)(_y1),(Object)(_points),(Object)(_fill));
 }else {
 BA.debugLineNum = 455;BA.debugLine="Log(\"Line \" & logmsg)";
Debug.ShouldStop(64);
escposprinter.__c.runVoidMethod ("LogImpl","529884467",RemoteObject.concat(RemoteObject.createImmutable("Line "),_logmsg),0);
 BA.debugLineNum = 456;BA.debugLine="PlotLine(x0, y0, x1, y1, points)";
Debug.ShouldStop(128);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotline" /*RemoteObject*/ ,(Object)(_x0),(Object)(_y0),(Object)(_x1),(Object)(_y1),(Object)(_points));
 }}}
;
 BA.debugLineNum = 459;BA.debugLine="For x = 0 To size -1 ' 9 or 12 horizontal bytes";
Debug.ShouldStop(1024);
{
final int step45 = 1;
final int limit45 = RemoteObject.solve(new RemoteObject[] {_size,RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_x = 0 ;
for (;(step45 > 0 && _x <= limit45) || (step45 < 0 && _x >= limit45) ;_x = ((int)(0 + _x + step45))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 460;BA.debugLine="For y = 0 To 2 ' 3 vertical bytes";
Debug.ShouldStop(2048);
{
final int step46 = 1;
final int limit46 = 2;
_y = 0 ;
for (;(step46 > 0 && _y <= limit46) || (step46 < 0 && _y >= limit46) ;_y = ((int)(0 + _y + step46))  ) {
Debug.locals.put("y", _y);
 BA.debugLineNum = 461;BA.debugLine="Dim bits As Byte = 0";
Debug.ShouldStop(4096);
_bits = BA.numberCast(byte.class, 0);Debug.locals.put("bits", _bits);Debug.locals.put("bits", _bits);
 BA.debugLineNum = 462;BA.debugLine="For b = 0 To 7 ' 8 vertical bits";
Debug.ShouldStop(8192);
{
final int step48 = 1;
final int limit48 = 7;
_b = 0 ;
for (;(step48 > 0 && _b <= limit48) || (step48 < 0 && _b >= limit48) ;_b = ((int)(0 + _b + step48))  ) {
Debug.locals.put("b", _b);
 BA.debugLineNum = 463;BA.debugLine="If points(x, y*8+b) <> 0 Then";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean("!",_points.getArrayElement(true,BA.numberCast(int.class, _x),RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_y),RemoteObject.createImmutable(8),RemoteObject.createImmutable(_b)}, "*+",1, 1)),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 464;BA.debugLine="bits = Bit.Or(bits, masks(b))";
Debug.ShouldStop(32768);
_bits = BA.numberCast(byte.class, escposprinter.__c.getField(false,"Bit").runMethod(true,"Or",(Object)(BA.numberCast(int.class, _bits)),(Object)(BA.numberCast(int.class, _masks.getArrayElement(true,BA.numberCast(int.class, _b))))));Debug.locals.put("bits", _bits);
 };
 }
}Debug.locals.put("b", _b);
;
 BA.debugLineNum = 467;BA.debugLine="charbyes(x*3+y) = bits";
Debug.ShouldStop(262144);
_charbyes.setArrayElement (_bits,RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_x),RemoteObject.createImmutable(3),RemoteObject.createImmutable(_y)}, "*+",1, 1));
 }
}Debug.locals.put("y", _y);
;
 }
}Debug.locals.put("x", _x);
;
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 471;BA.debugLine="Return charbyes";
Debug.ShouldStop(4194304);
if (true) return _charbyes;
 BA.debugLineNum = 472;BA.debugLine="End Sub";
Debug.ShouldStop(8388608);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _createline(RemoteObject __ref,RemoteObject _x0,RemoteObject _y0,RemoteObject _x1,RemoteObject _y1) throws Exception{
try {
		Debug.PushSubsStack("CreateLine (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,477);
if (RapidSub.canDelegate("createline")) { return __ref.runUserSub(false, "escposprinter","createline", __ref, _x0, _y0, _x1, _y1);}
RemoteObject _line = RemoteObject.createImmutable(0);
Debug.locals.put("x0", _x0);
Debug.locals.put("y0", _y0);
Debug.locals.put("x1", _x1);
Debug.locals.put("y1", _y1);
 BA.debugLineNum = 477;BA.debugLine="Public Sub CreateLine(x0 As Int, y0 As Int, x1 As";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 478;BA.debugLine="Dim line As Int = 0";
Debug.ShouldStop(536870912);
_line = BA.numberCast(int.class, 0);Debug.locals.put("line", _line);Debug.locals.put("line", _line);
 BA.debugLineNum = 479;BA.debugLine="line = line + Bit.ShiftLeft(Bit.And(0xf,x0), 24)";
Debug.ShouldStop(1073741824);
_line = RemoteObject.solve(new RemoteObject[] {_line,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0xf))),(Object)(_x0))),(Object)(BA.numberCast(int.class, 24)))}, "+",1, 1);Debug.locals.put("line", _line);
 BA.debugLineNum = 480;BA.debugLine="line = line + Bit.ShiftLeft(Bit.And(0x1f,y0), 16)";
Debug.ShouldStop(-2147483648);
_line = RemoteObject.solve(new RemoteObject[] {_line,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x1f))),(Object)(_y0))),(Object)(BA.numberCast(int.class, 16)))}, "+",1, 1);Debug.locals.put("line", _line);
 BA.debugLineNum = 481;BA.debugLine="line = line + Bit.ShiftLeft(Bit.And(0xf,x1), 8)";
Debug.ShouldStop(1);
_line = RemoteObject.solve(new RemoteObject[] {_line,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0xf))),(Object)(_x1))),(Object)(BA.numberCast(int.class, 8)))}, "+",1, 1);Debug.locals.put("line", _line);
 BA.debugLineNum = 482;BA.debugLine="line = line + Bit.And(0x1f,y1)";
Debug.ShouldStop(2);
_line = RemoteObject.solve(new RemoteObject[] {_line,escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x1f))),(Object)(_y1))}, "+",1, 1);Debug.locals.put("line", _line);
 BA.debugLineNum = 483;BA.debugLine="Return line";
Debug.ShouldStop(4);
if (true) return _line;
 BA.debugLineNum = 484;BA.debugLine="End Sub";
Debug.ShouldStop(8);
return RemoteObject.createImmutable(0);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _createtriangle(RemoteObject __ref,RemoteObject _x0,RemoteObject _y0,RemoteObject _x1,RemoteObject _y1,RemoteObject _x2,RemoteObject _y2,RemoteObject _fill) throws Exception{
try {
		Debug.PushSubsStack("CreateTriangle (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,504);
if (RapidSub.canDelegate("createtriangle")) { return __ref.runUserSub(false, "escposprinter","createtriangle", __ref, _x0, _y0, _x1, _y1, _x2, _y2, _fill);}
RemoteObject _triangle = RemoteObject.createImmutable(0);
Debug.locals.put("x0", _x0);
Debug.locals.put("y0", _y0);
Debug.locals.put("x1", _x1);
Debug.locals.put("y1", _y1);
Debug.locals.put("x2", _x2);
Debug.locals.put("y2", _y2);
Debug.locals.put("fill", _fill);
 BA.debugLineNum = 504;BA.debugLine="Public Sub CreateTriangle(x0 As Int, y0 As Int, x1";
Debug.ShouldStop(8388608);
 BA.debugLineNum = 505;BA.debugLine="Dim triangle As Int = 0x30000000";
Debug.ShouldStop(16777216);
_triangle = BA.numberCast(int.class, ((int)0x30000000));Debug.locals.put("triangle", _triangle);Debug.locals.put("triangle", _triangle);
 BA.debugLineNum = 506;BA.debugLine="If fill Then triangle = triangle + 0x80000000";
Debug.ShouldStop(33554432);
if (_fill.<Boolean>get().booleanValue()) { 
_triangle = RemoteObject.solve(new RemoteObject[] {_triangle,RemoteObject.createImmutable(((int)0x80000000))}, "+",1, 1);Debug.locals.put("triangle", _triangle);};
 BA.debugLineNum = 507;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x";
Debug.ShouldStop(67108864);
_triangle = RemoteObject.solve(new RemoteObject[] {_triangle,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0xf))),(Object)(_x0))),(Object)(BA.numberCast(int.class, 24)))}, "+",1, 1);Debug.locals.put("triangle", _triangle);
 BA.debugLineNum = 508;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0x1f,";
Debug.ShouldStop(134217728);
_triangle = RemoteObject.solve(new RemoteObject[] {_triangle,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x1f))),(Object)(_y0))),(Object)(BA.numberCast(int.class, 16)))}, "+",1, 1);Debug.locals.put("triangle", _triangle);
 BA.debugLineNum = 509;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x";
Debug.ShouldStop(268435456);
_triangle = RemoteObject.solve(new RemoteObject[] {_triangle,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0xf))),(Object)(_x1))),(Object)(BA.numberCast(int.class, 8)))}, "+",1, 1);Debug.locals.put("triangle", _triangle);
 BA.debugLineNum = 510;BA.debugLine="triangle = triangle + Bit.And(0x1f,y1)";
Debug.ShouldStop(536870912);
_triangle = RemoteObject.solve(new RemoteObject[] {_triangle,escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x1f))),(Object)(_y1))}, "+",1, 1);Debug.locals.put("triangle", _triangle);
 BA.debugLineNum = 511;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0xf,x";
Debug.ShouldStop(1073741824);
_triangle = RemoteObject.solve(new RemoteObject[] {_triangle,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0xf))),(Object)(_x2))),(Object)(BA.numberCast(int.class, 12)))}, "+",1, 1);Debug.locals.put("triangle", _triangle);
 BA.debugLineNum = 512;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0x7,y";
Debug.ShouldStop(-2147483648);
_triangle = RemoteObject.solve(new RemoteObject[] {_triangle,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x7))),(Object)(_y2))),(Object)(BA.numberCast(int.class, 5)))}, "+",1, 1);Debug.locals.put("triangle", _triangle);
 BA.debugLineNum = 513;BA.debugLine="triangle = triangle + Bit.ShiftLeft(Bit.And(0x18,";
Debug.ShouldStop(1);
_triangle = RemoteObject.solve(new RemoteObject[] {_triangle,escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, ((int)0x18))),(Object)(_y2))),(Object)(BA.numberCast(int.class, 18)))}, "+",1, 1);Debug.locals.put("triangle", _triangle);
 BA.debugLineNum = 514;BA.debugLine="Return triangle";
Debug.ShouldStop(2);
if (true) return _triangle;
 BA.debugLineNum = 515;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable(0);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _definecustomcharacter(RemoteObject __ref,RemoteObject _charcode,RemoteObject _bitdata) throws Exception{
try {
		Debug.PushSubsStack("DefineCustomCharacter (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,352);
if (RapidSub.canDelegate("definecustomcharacter")) { return __ref.runUserSub(false, "escposprinter","definecustomcharacter", __ref, _charcode, _bitdata);}
RemoteObject _excess = RemoteObject.createImmutable(0);
RemoteObject _size = RemoteObject.createImmutable(0);
RemoteObject _params = null;
Debug.locals.put("charcode", _charcode);
Debug.locals.put("bitdata", _bitdata);
 BA.debugLineNum = 352;BA.debugLine="Public Sub DefineCustomCharacter(charcode As Int,";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 353;BA.debugLine="Dim excess As Int = bitdata.Length Mod 3";
Debug.ShouldStop(1);
_excess = RemoteObject.solve(new RemoteObject[] {_bitdata.getField(true,"length"),RemoteObject.createImmutable(3)}, "%",0, 1);Debug.locals.put("excess", _excess);Debug.locals.put("excess", _excess);
 BA.debugLineNum = 354;BA.debugLine="If excess <> 0 Then Return -1";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean("!",_excess,BA.numberCast(double.class, 0))) { 
if (true) return BA.numberCast(int.class, -(double) (0 + 1));};
 BA.debugLineNum = 355;BA.debugLine="Dim size As Int = bitdata.Length / 3";
Debug.ShouldStop(4);
_size = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_bitdata.getField(true,"length"),RemoteObject.createImmutable(3)}, "/",0, 0));Debug.locals.put("size", _size);Debug.locals.put("size", _size);
 BA.debugLineNum = 356;BA.debugLine="WriteString(ESC & \"&\")";
Debug.ShouldStop(8);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("&"))));
 BA.debugLineNum = 357;BA.debugLine="Dim params(4) As Byte";
Debug.ShouldStop(16);
_params = RemoteObject.createNewArray ("byte", new int[] {4}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 358;BA.debugLine="params(0) = 3";
Debug.ShouldStop(32);
_params.setArrayElement (BA.numberCast(byte.class, 3),BA.numberCast(int.class, 0));
 BA.debugLineNum = 359;BA.debugLine="params(1) = charcode";
Debug.ShouldStop(64);
_params.setArrayElement (BA.numberCast(byte.class, _charcode),BA.numberCast(int.class, 1));
 BA.debugLineNum = 360;BA.debugLine="params(2) = charcode";
Debug.ShouldStop(128);
_params.setArrayElement (BA.numberCast(byte.class, _charcode),BA.numberCast(int.class, 2));
 BA.debugLineNum = 361;BA.debugLine="params(3) = size";
Debug.ShouldStop(256);
_params.setArrayElement (BA.numberCast(byte.class, _size),BA.numberCast(int.class, 3));
 BA.debugLineNum = 362;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(512);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 363;BA.debugLine="WriteBytes(bitdata)";
Debug.ShouldStop(1024);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_bitdata));
 BA.debugLineNum = 364;BA.debugLine="Return 0";
Debug.ShouldStop(2048);
if (true) return BA.numberCast(int.class, 0);
 BA.debugLineNum = 365;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable(0);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _deletecustomcharacter(RemoteObject __ref,RemoteObject _charcode) throws Exception{
try {
		Debug.PushSubsStack("DeleteCustomCharacter (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,317);
if (RapidSub.canDelegate("deletecustomcharacter")) { return __ref.runUserSub(false, "escposprinter","deletecustomcharacter", __ref, _charcode);}
RemoteObject _params = null;
Debug.locals.put("charcode", _charcode);
 BA.debugLineNum = 317;BA.debugLine="Public Sub DeleteCustomCharacter(charcode As Int)";
Debug.ShouldStop(268435456);
 BA.debugLineNum = 318;BA.debugLine="WriteString(ESC & \"?\")";
Debug.ShouldStop(536870912);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("?"))));
 BA.debugLineNum = 319;BA.debugLine="Dim params(1) As Byte";
Debug.ShouldStop(1073741824);
_params = RemoteObject.createNewArray ("byte", new int[] {1}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 320;BA.debugLine="params(0) = charcode";
Debug.ShouldStop(-2147483648);
_params.setArrayElement (BA.numberCast(byte.class, _charcode),BA.numberCast(int.class, 0));
 BA.debugLineNum = 321;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(1);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 322;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _disconnect(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("DisConnect (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,143);
if (RapidSub.canDelegate("disconnect")) { return __ref.runUserSub(false, "escposprinter","disconnect", __ref);}
 BA.debugLineNum = 143;BA.debugLine="Public Sub DisConnect";
Debug.ShouldStop(16384);
 BA.debugLineNum = 144;BA.debugLine="Serial1.Disconnect";
Debug.ShouldStop(32768);
__ref.getField(false,"_serial1" /*RemoteObject*/ ).runVoidMethod ("Disconnect");
 BA.debugLineNum = 145;BA.debugLine="Connected = False";
Debug.ShouldStop(65536);
__ref.setField ("_connected" /*RemoteObject*/ ,escposprinter.__c.getField(true,"False"));
 BA.debugLineNum = 146;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _ditherimage1d(RemoteObject __ref,RemoteObject _img,RemoteObject _threshold) throws Exception{
try {
		Debug.PushSubsStack("DitherImage1D (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,763);
if (RapidSub.canDelegate("ditherimage1d")) { return __ref.runUserSub(false, "escposprinter","ditherimage1d", __ref, _img, _threshold);}
RemoteObject _pixels = null;
RemoteObject _error = RemoteObject.createImmutable(0);
int _y = 0;
int _x = 0;
RemoteObject _lum = RemoteObject.createImmutable(0);
RemoteObject _ret = RemoteObject.declareNull("SHARK2.keymon.com.mx.escposprinter._animage");
Debug.locals.put("img", _img);
Debug.locals.put("threshold", _threshold);
 BA.debugLineNum = 763;BA.debugLine="Sub DitherImage1D(img As AnImage, threshold As Int";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 764;BA.debugLine="Dim pixels(img.Data.Length) As Byte";
Debug.ShouldStop(134217728);
_pixels = RemoteObject.createNewArray ("byte", new int[] {_img.getField(false,"Data" /*RemoteObject*/ ).getField(true,"length").<Integer>get().intValue()}, new Object[]{});Debug.locals.put("pixels", _pixels);
 BA.debugLineNum = 765;BA.debugLine="Dim error As Int";
Debug.ShouldStop(268435456);
_error = RemoteObject.createImmutable(0);Debug.locals.put("error", _error);
 BA.debugLineNum = 766;BA.debugLine="For y = 0 To img.Height - 1";
Debug.ShouldStop(536870912);
{
final int step3 = 1;
final int limit3 = RemoteObject.solve(new RemoteObject[] {_img.getField(true,"Height" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_y = 0 ;
for (;(step3 > 0 && _y <= limit3) || (step3 < 0 && _y >= limit3) ;_y = ((int)(0 + _y + step3))  ) {
Debug.locals.put("y", _y);
 BA.debugLineNum = 767;BA.debugLine="error = 0 ' reset on each new line";
Debug.ShouldStop(1073741824);
_error = BA.numberCast(int.class, 0);Debug.locals.put("error", _error);
 BA.debugLineNum = 768;BA.debugLine="For x = 0 To img.Width - 1";
Debug.ShouldStop(-2147483648);
{
final int step5 = 1;
final int limit5 = RemoteObject.solve(new RemoteObject[] {_img.getField(true,"Width" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_x = 0 ;
for (;(step5 > 0 && _x <= limit5) || (step5 < 0 && _x >= limit5) ;_x = ((int)(0 + _x + step5))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 769;BA.debugLine="Dim lum As Int = Bit.And(img.Data(y*img.Width +";
Debug.ShouldStop(1);
_lum = escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, _img.getField(false,"Data" /*RemoteObject*/ ).getArrayElement(true,RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_y),_img.getField(true,"Width" /*RemoteObject*/ ),RemoteObject.createImmutable(_x)}, "*+",1, 1)))),(Object)(BA.numberCast(int.class, ((int)0xff))));Debug.locals.put("lum", _lum);Debug.locals.put("lum", _lum);
 BA.debugLineNum = 770;BA.debugLine="lum = lum + error";
Debug.ShouldStop(2);
_lum = RemoteObject.solve(new RemoteObject[] {_lum,_error}, "+",1, 1);Debug.locals.put("lum", _lum);
 BA.debugLineNum = 771;BA.debugLine="If lum < threshold Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean("<",_lum,BA.numberCast(double.class, _threshold))) { 
 BA.debugLineNum = 772;BA.debugLine="error = lum";
Debug.ShouldStop(8);
_error = _lum;Debug.locals.put("error", _error);
 BA.debugLineNum = 773;BA.debugLine="lum = 1";
Debug.ShouldStop(16);
_lum = BA.numberCast(int.class, 1);Debug.locals.put("lum", _lum);
 }else {
 BA.debugLineNum = 775;BA.debugLine="error = lum - 255";
Debug.ShouldStop(64);
_error = RemoteObject.solve(new RemoteObject[] {_lum,RemoteObject.createImmutable(255)}, "-",1, 1);Debug.locals.put("error", _error);
 BA.debugLineNum = 776;BA.debugLine="lum = 0";
Debug.ShouldStop(128);
_lum = BA.numberCast(int.class, 0);Debug.locals.put("lum", _lum);
 };
 BA.debugLineNum = 778;BA.debugLine="pixels(y*img.Width + x) = lum";
Debug.ShouldStop(512);
_pixels.setArrayElement (BA.numberCast(byte.class, _lum),RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_y),_img.getField(true,"Width" /*RemoteObject*/ ),RemoteObject.createImmutable(_x)}, "*+",1, 1));
 }
}Debug.locals.put("x", _x);
;
 }
}Debug.locals.put("y", _y);
;
 BA.debugLineNum = 781;BA.debugLine="Dim ret As AnImage";
Debug.ShouldStop(4096);
_ret = RemoteObject.createNew ("SHARK2.keymon.com.mx.escposprinter._animage");Debug.locals.put("ret", _ret);
 BA.debugLineNum = 782;BA.debugLine="ret.Width = img.Width";
Debug.ShouldStop(8192);
_ret.setField ("Width" /*RemoteObject*/ ,_img.getField(true,"Width" /*RemoteObject*/ ));
 BA.debugLineNum = 783;BA.debugLine="ret.Height = img.Height";
Debug.ShouldStop(16384);
_ret.setField ("Height" /*RemoteObject*/ ,_img.getField(true,"Height" /*RemoteObject*/ ));
 BA.debugLineNum = 784;BA.debugLine="ret.Data = pixels";
Debug.ShouldStop(32768);
_ret.setField ("Data" /*RemoteObject*/ ,_pixels);
 BA.debugLineNum = 785;BA.debugLine="Return ret";
Debug.ShouldStop(65536);
if (true) return _ret;
 BA.debugLineNum = 786;BA.debugLine="End Sub";
Debug.ShouldStop(131072);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _ditherimage2d(RemoteObject __ref,RemoteObject _img,RemoteObject _threshold) throws Exception{
try {
		Debug.PushSubsStack("DitherImage2D (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,794);
if (RapidSub.canDelegate("ditherimage2d")) { return __ref.runUserSub(false, "escposprinter","ditherimage2d", __ref, _img, _threshold);}
RemoteObject _pixels = null;
RemoteObject _xerror = RemoteObject.createImmutable(0);
RemoteObject _yerrors = null;
int _i = 0;
int _y = 0;
int _x = 0;
RemoteObject _lum = RemoteObject.createImmutable(0);
RemoteObject _ret = RemoteObject.declareNull("SHARK2.keymon.com.mx.escposprinter._animage");
Debug.locals.put("img", _img);
Debug.locals.put("threshold", _threshold);
 BA.debugLineNum = 794;BA.debugLine="Sub DitherImage2D(img As AnImage, threshold As Int";
Debug.ShouldStop(33554432);
 BA.debugLineNum = 795;BA.debugLine="Dim pixels(img.Data.Length) As Byte";
Debug.ShouldStop(67108864);
_pixels = RemoteObject.createNewArray ("byte", new int[] {_img.getField(false,"Data" /*RemoteObject*/ ).getField(true,"length").<Integer>get().intValue()}, new Object[]{});Debug.locals.put("pixels", _pixels);
 BA.debugLineNum = 796;BA.debugLine="Dim xerror As Int";
Debug.ShouldStop(134217728);
_xerror = RemoteObject.createImmutable(0);Debug.locals.put("xerror", _xerror);
 BA.debugLineNum = 797;BA.debugLine="Dim yerrors(img.Width) As Int";
Debug.ShouldStop(268435456);
_yerrors = RemoteObject.createNewArray ("int", new int[] {_img.getField(true,"Width" /*RemoteObject*/ ).<Integer>get().intValue()}, new Object[]{});Debug.locals.put("yerrors", _yerrors);
 BA.debugLineNum = 798;BA.debugLine="For i = 0 To yerrors.Length -1";
Debug.ShouldStop(536870912);
{
final int step4 = 1;
final int limit4 = RemoteObject.solve(new RemoteObject[] {_yerrors.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step4 > 0 && _i <= limit4) || (step4 < 0 && _i >= limit4) ;_i = ((int)(0 + _i + step4))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 799;BA.debugLine="yerrors(0) = 0";
Debug.ShouldStop(1073741824);
_yerrors.setArrayElement (BA.numberCast(int.class, 0),BA.numberCast(int.class, 0));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 801;BA.debugLine="For y = 0 To img.Height - 1";
Debug.ShouldStop(1);
{
final int step7 = 1;
final int limit7 = RemoteObject.solve(new RemoteObject[] {_img.getField(true,"Height" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_y = 0 ;
for (;(step7 > 0 && _y <= limit7) || (step7 < 0 && _y >= limit7) ;_y = ((int)(0 + _y + step7))  ) {
Debug.locals.put("y", _y);
 BA.debugLineNum = 802;BA.debugLine="xerror = 0 ' reset on each new line";
Debug.ShouldStop(2);
_xerror = BA.numberCast(int.class, 0);Debug.locals.put("xerror", _xerror);
 BA.debugLineNum = 803;BA.debugLine="For x = 0 To img.Width - 1";
Debug.ShouldStop(4);
{
final int step9 = 1;
final int limit9 = RemoteObject.solve(new RemoteObject[] {_img.getField(true,"Width" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_x = 0 ;
for (;(step9 > 0 && _x <= limit9) || (step9 < 0 && _x >= limit9) ;_x = ((int)(0 + _x + step9))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 804;BA.debugLine="Dim lum As Int = Bit.And(img.Data(y*img.Width +";
Debug.ShouldStop(8);
_lum = escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, _img.getField(false,"Data" /*RemoteObject*/ ).getArrayElement(true,RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_y),_img.getField(true,"Width" /*RemoteObject*/ ),RemoteObject.createImmutable(_x)}, "*+",1, 1)))),(Object)(BA.numberCast(int.class, ((int)0xff))));Debug.locals.put("lum", _lum);Debug.locals.put("lum", _lum);
 BA.debugLineNum = 805;BA.debugLine="lum = lum + xerror + yerrors(x)";
Debug.ShouldStop(16);
_lum = RemoteObject.solve(new RemoteObject[] {_lum,_xerror,_yerrors.getArrayElement(true,BA.numberCast(int.class, _x))}, "++",2, 1);Debug.locals.put("lum", _lum);
 BA.debugLineNum = 806;BA.debugLine="If lum < threshold Then";
Debug.ShouldStop(32);
if (RemoteObject.solveBoolean("<",_lum,BA.numberCast(double.class, _threshold))) { 
 BA.debugLineNum = 807;BA.debugLine="xerror = lum/2";
Debug.ShouldStop(64);
_xerror = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_lum,RemoteObject.createImmutable(2)}, "/",0, 0));Debug.locals.put("xerror", _xerror);
 BA.debugLineNum = 808;BA.debugLine="yerrors(x) = xerror";
Debug.ShouldStop(128);
_yerrors.setArrayElement (_xerror,BA.numberCast(int.class, _x));
 BA.debugLineNum = 809;BA.debugLine="lum = 1";
Debug.ShouldStop(256);
_lum = BA.numberCast(int.class, 1);Debug.locals.put("lum", _lum);
 }else {
 BA.debugLineNum = 811;BA.debugLine="xerror = (lum - 255)/2";
Debug.ShouldStop(1024);
_xerror = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {_lum,RemoteObject.createImmutable(255)}, "-",1, 1)),RemoteObject.createImmutable(2)}, "/",0, 0));Debug.locals.put("xerror", _xerror);
 BA.debugLineNum = 812;BA.debugLine="yerrors(x) = xerror";
Debug.ShouldStop(2048);
_yerrors.setArrayElement (_xerror,BA.numberCast(int.class, _x));
 BA.debugLineNum = 813;BA.debugLine="lum = 0";
Debug.ShouldStop(4096);
_lum = BA.numberCast(int.class, 0);Debug.locals.put("lum", _lum);
 };
 BA.debugLineNum = 815;BA.debugLine="pixels(y*img.Width + x) = lum";
Debug.ShouldStop(16384);
_pixels.setArrayElement (BA.numberCast(byte.class, _lum),RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_y),_img.getField(true,"Width" /*RemoteObject*/ ),RemoteObject.createImmutable(_x)}, "*+",1, 1));
 }
}Debug.locals.put("x", _x);
;
 }
}Debug.locals.put("y", _y);
;
 BA.debugLineNum = 818;BA.debugLine="Dim ret As AnImage";
Debug.ShouldStop(131072);
_ret = RemoteObject.createNew ("SHARK2.keymon.com.mx.escposprinter._animage");Debug.locals.put("ret", _ret);
 BA.debugLineNum = 819;BA.debugLine="ret.Width = img.Width";
Debug.ShouldStop(262144);
_ret.setField ("Width" /*RemoteObject*/ ,_img.getField(true,"Width" /*RemoteObject*/ ));
 BA.debugLineNum = 820;BA.debugLine="ret.Height = img.Height";
Debug.ShouldStop(524288);
_ret.setField ("Height" /*RemoteObject*/ ,_img.getField(true,"Height" /*RemoteObject*/ ));
 BA.debugLineNum = 821;BA.debugLine="ret.Data = pixels";
Debug.ShouldStop(1048576);
_ret.setField ("Data" /*RemoteObject*/ ,_pixels);
 BA.debugLineNum = 822;BA.debugLine="Return ret";
Debug.ShouldStop(2097152);
if (true) return _ret;
 BA.debugLineNum = 823;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _filltriangle(RemoteObject __ref,RemoteObject _x0,RemoteObject _y0,RemoteObject _x1,RemoteObject _y1,RemoteObject _x2,RemoteObject _y2,RemoteObject _points) throws Exception{
try {
		Debug.PushSubsStack("FillTriangle (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,544);
if (RapidSub.canDelegate("filltriangle")) { return __ref.runUserSub(false, "escposprinter","filltriangle", __ref, _x0, _y0, _x1, _y1, _x2, _y2, _points);}
RemoteObject _tx = RemoteObject.createImmutable(0);
RemoteObject _ty = RemoteObject.createImmutable(0);
RemoteObject _dx0 = RemoteObject.createImmutable(0);
RemoteObject _dx1 = RemoteObject.createImmutable(0);
RemoteObject _dx2 = RemoteObject.createImmutable(0);
RemoteObject _x3 = RemoteObject.createImmutable(0);
RemoteObject _x4 = RemoteObject.createImmutable(0);
RemoteObject _y3 = RemoteObject.createImmutable(0);
RemoteObject _y4 = RemoteObject.createImmutable(0);
RemoteObject _inc = RemoteObject.createImmutable(0);
int _x = 0;
Debug.locals.put("x0", _x0);
Debug.locals.put("y0", _y0);
Debug.locals.put("x1", _x1);
Debug.locals.put("y1", _y1);
Debug.locals.put("x2", _x2);
Debug.locals.put("y2", _y2);
Debug.locals.put("points", _points);
 BA.debugLineNum = 544;BA.debugLine="Private Sub FillTriangle(x0 As Int, y0 As Int, x1";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 546;BA.debugLine="Dim tx, ty As Int";
Debug.ShouldStop(2);
_tx = RemoteObject.createImmutable(0);Debug.locals.put("tx", _tx);
_ty = RemoteObject.createImmutable(0);Debug.locals.put("ty", _ty);
 BA.debugLineNum = 547;BA.debugLine="If y0 > y1 Then";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean(">",_y0,BA.numberCast(double.class, _y1))) { 
 BA.debugLineNum = 548;BA.debugLine="tx = x0 : ty = y0";
Debug.ShouldStop(8);
_tx = _x0;Debug.locals.put("tx", _tx);
 BA.debugLineNum = 548;BA.debugLine="tx = x0 : ty = y0";
Debug.ShouldStop(8);
_ty = _y0;Debug.locals.put("ty", _ty);
 BA.debugLineNum = 549;BA.debugLine="x0 = x1 : y0 = y1";
Debug.ShouldStop(16);
_x0 = _x1;Debug.locals.put("x0", _x0);
 BA.debugLineNum = 549;BA.debugLine="x0 = x1 : y0 = y1";
Debug.ShouldStop(16);
_y0 = _y1;Debug.locals.put("y0", _y0);
 BA.debugLineNum = 550;BA.debugLine="x1 = tx : y1 = ty";
Debug.ShouldStop(32);
_x1 = _tx;Debug.locals.put("x1", _x1);
 BA.debugLineNum = 550;BA.debugLine="x1 = tx : y1 = ty";
Debug.ShouldStop(32);
_y1 = _ty;Debug.locals.put("y1", _y1);
 };
 BA.debugLineNum = 552;BA.debugLine="If y0 > y2 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",_y0,BA.numberCast(double.class, _y2))) { 
 BA.debugLineNum = 553;BA.debugLine="tx = x0 : ty = y0";
Debug.ShouldStop(256);
_tx = _x0;Debug.locals.put("tx", _tx);
 BA.debugLineNum = 553;BA.debugLine="tx = x0 : ty = y0";
Debug.ShouldStop(256);
_ty = _y0;Debug.locals.put("ty", _ty);
 BA.debugLineNum = 554;BA.debugLine="x0 = x2 : y0 = y2";
Debug.ShouldStop(512);
_x0 = _x2;Debug.locals.put("x0", _x0);
 BA.debugLineNum = 554;BA.debugLine="x0 = x2 : y0 = y2";
Debug.ShouldStop(512);
_y0 = _y2;Debug.locals.put("y0", _y0);
 BA.debugLineNum = 555;BA.debugLine="x2 = tx : y2 = ty";
Debug.ShouldStop(1024);
_x2 = _tx;Debug.locals.put("x2", _x2);
 BA.debugLineNum = 555;BA.debugLine="x2 = tx : y2 = ty";
Debug.ShouldStop(1024);
_y2 = _ty;Debug.locals.put("y2", _y2);
 };
 BA.debugLineNum = 557;BA.debugLine="If y1 > y2 Then";
Debug.ShouldStop(4096);
if (RemoteObject.solveBoolean(">",_y1,BA.numberCast(double.class, _y2))) { 
 BA.debugLineNum = 558;BA.debugLine="tx = x1 : ty = y1";
Debug.ShouldStop(8192);
_tx = _x1;Debug.locals.put("tx", _tx);
 BA.debugLineNum = 558;BA.debugLine="tx = x1 : ty = y1";
Debug.ShouldStop(8192);
_ty = _y1;Debug.locals.put("ty", _ty);
 BA.debugLineNum = 559;BA.debugLine="x1 = x2 : y1 = y2";
Debug.ShouldStop(16384);
_x1 = _x2;Debug.locals.put("x1", _x1);
 BA.debugLineNum = 559;BA.debugLine="x1 = x2 : y1 = y2";
Debug.ShouldStop(16384);
_y1 = _y2;Debug.locals.put("y1", _y1);
 BA.debugLineNum = 560;BA.debugLine="x2 = tx : y2 = ty";
Debug.ShouldStop(32768);
_x2 = _tx;Debug.locals.put("x2", _x2);
 BA.debugLineNum = 560;BA.debugLine="x2 = tx : y2 = ty";
Debug.ShouldStop(32768);
_y2 = _ty;Debug.locals.put("y2", _y2);
 };
 BA.debugLineNum = 563;BA.debugLine="Dim dx0, dx1, dx2 As Double";
Debug.ShouldStop(262144);
_dx0 = RemoteObject.createImmutable(0);Debug.locals.put("dx0", _dx0);
_dx1 = RemoteObject.createImmutable(0);Debug.locals.put("dx1", _dx1);
_dx2 = RemoteObject.createImmutable(0);Debug.locals.put("dx2", _dx2);
 BA.debugLineNum = 564;BA.debugLine="Dim x3, x4, y3, y4 As Double";
Debug.ShouldStop(524288);
_x3 = RemoteObject.createImmutable(0);Debug.locals.put("x3", _x3);
_x4 = RemoteObject.createImmutable(0);Debug.locals.put("x4", _x4);
_y3 = RemoteObject.createImmutable(0);Debug.locals.put("y3", _y3);
_y4 = RemoteObject.createImmutable(0);Debug.locals.put("y4", _y4);
 BA.debugLineNum = 565;BA.debugLine="Dim inc As Int";
Debug.ShouldStop(1048576);
_inc = RemoteObject.createImmutable(0);Debug.locals.put("inc", _inc);
 BA.debugLineNum = 567;BA.debugLine="If y1 - y0 > 0 Then	dx0=(x1-x0)/(y1-y0) Else	dx0=";
Debug.ShouldStop(4194304);
if (RemoteObject.solveBoolean(">",RemoteObject.solve(new RemoteObject[] {_y1,_y0}, "-",1, 1),BA.numberCast(double.class, 0))) { 
_dx0 = RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {_x1,_x0}, "-",1, 1)),(RemoteObject.solve(new RemoteObject[] {_y1,_y0}, "-",1, 1))}, "/",0, 0);Debug.locals.put("dx0", _dx0);}
else {
_dx0 = BA.numberCast(double.class, 0);Debug.locals.put("dx0", _dx0);};
 BA.debugLineNum = 568;BA.debugLine="If y2 - y0 > 0 Then dx1=(x2-x0)/(y2-y0) Else dx1=";
Debug.ShouldStop(8388608);
if (RemoteObject.solveBoolean(">",RemoteObject.solve(new RemoteObject[] {_y2,_y0}, "-",1, 1),BA.numberCast(double.class, 0))) { 
_dx1 = RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {_x2,_x0}, "-",1, 1)),(RemoteObject.solve(new RemoteObject[] {_y2,_y0}, "-",1, 1))}, "/",0, 0);Debug.locals.put("dx1", _dx1);}
else {
_dx1 = BA.numberCast(double.class, 0);Debug.locals.put("dx1", _dx1);};
 BA.debugLineNum = 569;BA.debugLine="If y2 - y1 > 0 Then dx2=(x2-x1)/(y2-y1) Else dx2=";
Debug.ShouldStop(16777216);
if (RemoteObject.solveBoolean(">",RemoteObject.solve(new RemoteObject[] {_y2,_y1}, "-",1, 1),BA.numberCast(double.class, 0))) { 
_dx2 = RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {_x2,_x1}, "-",1, 1)),(RemoteObject.solve(new RemoteObject[] {_y2,_y1}, "-",1, 1))}, "/",0, 0);Debug.locals.put("dx2", _dx2);}
else {
_dx2 = BA.numberCast(double.class, 0);Debug.locals.put("dx2", _dx2);};
 BA.debugLineNum = 570;BA.debugLine="x3 = x0 : x4 = x0";
Debug.ShouldStop(33554432);
_x3 = BA.numberCast(double.class, _x0);Debug.locals.put("x3", _x3);
 BA.debugLineNum = 570;BA.debugLine="x3 = x0 : x4 = x0";
Debug.ShouldStop(33554432);
_x4 = BA.numberCast(double.class, _x0);Debug.locals.put("x4", _x4);
 BA.debugLineNum = 571;BA.debugLine="y3 = y0 : y4 = y0";
Debug.ShouldStop(67108864);
_y3 = BA.numberCast(double.class, _y0);Debug.locals.put("y3", _y3);
 BA.debugLineNum = 571;BA.debugLine="y3 = y0 : y4 = y0";
Debug.ShouldStop(67108864);
_y4 = BA.numberCast(double.class, _y0);Debug.locals.put("y4", _y4);
 BA.debugLineNum = 572;BA.debugLine="If dx0 > dx1 Then";
Debug.ShouldStop(134217728);
if (RemoteObject.solveBoolean(">",_dx0,_dx1)) { 
 BA.debugLineNum = 573;BA.debugLine="While";
Debug.ShouldStop(268435456);
escposprinter.__c.runVoidMethod ("While");
 BA.debugLineNum = 574;BA.debugLine="Do While y3 <= y1";
Debug.ShouldStop(536870912);
while (RemoteObject.solveBoolean("k",_y3,BA.numberCast(double.class, _y1))) {
 BA.debugLineNum = 575;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1";
Debug.ShouldStop(1073741824);
if (RemoteObject.solveBoolean(">",_x3,_x4)) { 
_inc = BA.numberCast(int.class, -(double) (0 + 1));Debug.locals.put("inc", _inc);}
else {
_inc = BA.numberCast(int.class, 1);Debug.locals.put("inc", _inc);};
 BA.debugLineNum = 576;BA.debugLine="For x = x3 To x4 Step inc";
Debug.ShouldStop(-2147483648);
{
final int step40 = _inc.<Integer>get().intValue();
final int limit40 = (int) (0 + _x4.<Double>get().doubleValue());
_x = (int) (0 + _x3.<Double>get().doubleValue()) ;
for (;(step40 > 0 && _x <= limit40) || (step40 < 0 && _x >= limit40) ;_x = ((int)(0 + _x + step40))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 577;BA.debugLine="points(x, y3) = 1";
Debug.ShouldStop(1);
_points.setArrayElement (BA.numberCast(byte.class, 1),BA.numberCast(int.class, _x),BA.numberCast(int.class, _y3));
 }
}Debug.locals.put("x", _x);
;
 BA.debugLineNum = 579;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
Debug.ShouldStop(4);
_y3 = RemoteObject.solve(new RemoteObject[] {_y3,RemoteObject.createImmutable(1)}, "+",1, 0);Debug.locals.put("y3", _y3);
 BA.debugLineNum = 579;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
Debug.ShouldStop(4);
_y4 = RemoteObject.solve(new RemoteObject[] {_y4,RemoteObject.createImmutable(1)}, "+",1, 0);Debug.locals.put("y4", _y4);
 BA.debugLineNum = 579;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
Debug.ShouldStop(4);
_x3 = RemoteObject.solve(new RemoteObject[] {_x3,_dx1}, "+",1, 0);Debug.locals.put("x3", _x3);
 BA.debugLineNum = 579;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
Debug.ShouldStop(4);
_x4 = RemoteObject.solve(new RemoteObject[] {_x4,_dx0}, "+",1, 0);Debug.locals.put("x4", _x4);
 }
;
 BA.debugLineNum = 581;BA.debugLine="x4=x1";
Debug.ShouldStop(16);
_x4 = BA.numberCast(double.class, _x1);Debug.locals.put("x4", _x4);
 BA.debugLineNum = 582;BA.debugLine="y4=y1";
Debug.ShouldStop(32);
_y4 = BA.numberCast(double.class, _y1);Debug.locals.put("y4", _y4);
 BA.debugLineNum = 583;BA.debugLine="Do While y3 <= y2";
Debug.ShouldStop(64);
while (RemoteObject.solveBoolean("k",_y3,BA.numberCast(double.class, _y2))) {
 BA.debugLineNum = 584;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",_x3,_x4)) { 
_inc = BA.numberCast(int.class, -(double) (0 + 1));Debug.locals.put("inc", _inc);}
else {
_inc = BA.numberCast(int.class, 1);Debug.locals.put("inc", _inc);};
 BA.debugLineNum = 585;BA.debugLine="For x = x3 To x4 Step inc";
Debug.ShouldStop(256);
{
final int step52 = _inc.<Integer>get().intValue();
final int limit52 = (int) (0 + _x4.<Double>get().doubleValue());
_x = (int) (0 + _x3.<Double>get().doubleValue()) ;
for (;(step52 > 0 && _x <= limit52) || (step52 < 0 && _x >= limit52) ;_x = ((int)(0 + _x + step52))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 586;BA.debugLine="points(x ,y3) = 1";
Debug.ShouldStop(512);
_points.setArrayElement (BA.numberCast(byte.class, 1),BA.numberCast(int.class, _x),BA.numberCast(int.class, _y3));
 }
}Debug.locals.put("x", _x);
;
 BA.debugLineNum = 588;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
Debug.ShouldStop(2048);
_y3 = RemoteObject.solve(new RemoteObject[] {_y3,RemoteObject.createImmutable(1)}, "+",1, 0);Debug.locals.put("y3", _y3);
 BA.debugLineNum = 588;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
Debug.ShouldStop(2048);
_y4 = RemoteObject.solve(new RemoteObject[] {_y4,RemoteObject.createImmutable(1)}, "+",1, 0);Debug.locals.put("y4", _y4);
 BA.debugLineNum = 588;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
Debug.ShouldStop(2048);
_x3 = RemoteObject.solve(new RemoteObject[] {_x3,_dx1}, "+",1, 0);Debug.locals.put("x3", _x3);
 BA.debugLineNum = 588;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx1 : x4";
Debug.ShouldStop(2048);
_x4 = RemoteObject.solve(new RemoteObject[] {_x4,_dx2}, "+",1, 0);Debug.locals.put("x4", _x4);
 }
;
 }else {
 BA.debugLineNum = 591;BA.debugLine="While";
Debug.ShouldStop(16384);
escposprinter.__c.runVoidMethod ("While");
 BA.debugLineNum = 592;BA.debugLine="Do While y3 <= y1";
Debug.ShouldStop(32768);
while (RemoteObject.solveBoolean("k",_y3,BA.numberCast(double.class, _y1))) {
 BA.debugLineNum = 593;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1";
Debug.ShouldStop(65536);
if (RemoteObject.solveBoolean(">",_x3,_x4)) { 
_inc = BA.numberCast(int.class, -(double) (0 + 1));Debug.locals.put("inc", _inc);}
else {
_inc = BA.numberCast(int.class, 1);Debug.locals.put("inc", _inc);};
 BA.debugLineNum = 594;BA.debugLine="For x = x3 To x4 Step inc";
Debug.ShouldStop(131072);
{
final int step64 = _inc.<Integer>get().intValue();
final int limit64 = (int) (0 + _x4.<Double>get().doubleValue());
_x = (int) (0 + _x3.<Double>get().doubleValue()) ;
for (;(step64 > 0 && _x <= limit64) || (step64 < 0 && _x >= limit64) ;_x = ((int)(0 + _x + step64))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 595;BA.debugLine="points(x, y3) = 1";
Debug.ShouldStop(262144);
_points.setArrayElement (BA.numberCast(byte.class, 1),BA.numberCast(int.class, _x),BA.numberCast(int.class, _y3));
 }
}Debug.locals.put("x", _x);
;
 BA.debugLineNum = 597;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4";
Debug.ShouldStop(1048576);
_y3 = RemoteObject.solve(new RemoteObject[] {_y3,RemoteObject.createImmutable(1)}, "+",1, 0);Debug.locals.put("y3", _y3);
 BA.debugLineNum = 597;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4";
Debug.ShouldStop(1048576);
_y4 = RemoteObject.solve(new RemoteObject[] {_y4,RemoteObject.createImmutable(1)}, "+",1, 0);Debug.locals.put("y4", _y4);
 BA.debugLineNum = 597;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4";
Debug.ShouldStop(1048576);
_x3 = RemoteObject.solve(new RemoteObject[] {_x3,_dx0}, "+",1, 0);Debug.locals.put("x3", _x3);
 BA.debugLineNum = 597;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx0 : x4";
Debug.ShouldStop(1048576);
_x4 = RemoteObject.solve(new RemoteObject[] {_x4,_dx1}, "+",1, 0);Debug.locals.put("x4", _x4);
 }
;
 BA.debugLineNum = 599;BA.debugLine="x3=x1";
Debug.ShouldStop(4194304);
_x3 = BA.numberCast(double.class, _x1);Debug.locals.put("x3", _x3);
 BA.debugLineNum = 600;BA.debugLine="y3=y1";
Debug.ShouldStop(8388608);
_y3 = BA.numberCast(double.class, _y1);Debug.locals.put("y3", _y3);
 BA.debugLineNum = 601;BA.debugLine="Do While y3<=y2";
Debug.ShouldStop(16777216);
while (RemoteObject.solveBoolean("k",_y3,BA.numberCast(double.class, _y2))) {
 BA.debugLineNum = 602;BA.debugLine="If x3 > x4 Then inc = -1 Else inc = 1";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",_x3,_x4)) { 
_inc = BA.numberCast(int.class, -(double) (0 + 1));Debug.locals.put("inc", _inc);}
else {
_inc = BA.numberCast(int.class, 1);Debug.locals.put("inc", _inc);};
 BA.debugLineNum = 603;BA.debugLine="For x = x3 To x4 Step inc";
Debug.ShouldStop(67108864);
{
final int step76 = _inc.<Integer>get().intValue();
final int limit76 = (int) (0 + _x4.<Double>get().doubleValue());
_x = (int) (0 + _x3.<Double>get().doubleValue()) ;
for (;(step76 > 0 && _x <= limit76) || (step76 < 0 && _x >= limit76) ;_x = ((int)(0 + _x + step76))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 604;BA.debugLine="points(x, y3) = 1";
Debug.ShouldStop(134217728);
_points.setArrayElement (BA.numberCast(byte.class, 1),BA.numberCast(int.class, _x),BA.numberCast(int.class, _y3));
 }
}Debug.locals.put("x", _x);
;
 BA.debugLineNum = 606;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4";
Debug.ShouldStop(536870912);
_y3 = RemoteObject.solve(new RemoteObject[] {_y3,RemoteObject.createImmutable(1)}, "+",1, 0);Debug.locals.put("y3", _y3);
 BA.debugLineNum = 606;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4";
Debug.ShouldStop(536870912);
_y4 = RemoteObject.solve(new RemoteObject[] {_y4,RemoteObject.createImmutable(1)}, "+",1, 0);Debug.locals.put("y4", _y4);
 BA.debugLineNum = 606;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4";
Debug.ShouldStop(536870912);
_x3 = RemoteObject.solve(new RemoteObject[] {_x3,_dx2}, "+",1, 0);Debug.locals.put("x3", _x3);
 BA.debugLineNum = 606;BA.debugLine="y3 = y3 + 1 : y4 = y4 + 1 : x3 = x3 + dx2 : x4";
Debug.ShouldStop(536870912);
_x4 = RemoteObject.solve(new RemoteObject[] {_x4,_dx1}, "+",1, 0);Debug.locals.put("x4", _x4);
 }
;
 };
 BA.debugLineNum = 609;BA.debugLine="End Sub";
Debug.ShouldStop(1);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _imagetobwimage(RemoteObject __ref,RemoteObject _bmp) throws Exception{
try {
		Debug.PushSubsStack("ImageToBWIMage (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,713);
if (RapidSub.canDelegate("imagetobwimage")) { return __ref.runUserSub(false, "escposprinter","imagetobwimage", __ref, _bmp);}
RemoteObject _bc = RemoteObject.declareNull("b4a.example.bitmapcreator");
RemoteObject _w = RemoteObject.createImmutable(0);
RemoteObject _h = RemoteObject.createImmutable(0);
RemoteObject _pixels = null;
int _y = 0;
int _x = 0;
RemoteObject _j = RemoteObject.createImmutable(0);
RemoteObject _col = RemoteObject.declareNull("b4a.example.bitmapcreator._argbcolor");
RemoteObject _lum = RemoteObject.createImmutable(0);
RemoteObject _ret = RemoteObject.declareNull("SHARK2.keymon.com.mx.escposprinter._animage");
Debug.locals.put("bmp", _bmp);
 BA.debugLineNum = 713;BA.debugLine="Sub ImageToBWIMage(bmp As Bitmap) As AnImage";
Debug.ShouldStop(256);
 BA.debugLineNum = 714;BA.debugLine="Dim BC As BitmapCreator 'ignore";
Debug.ShouldStop(512);
_bc = RemoteObject.createNew ("b4a.example.bitmapcreator");Debug.locals.put("BC", _bc);
 BA.debugLineNum = 715;BA.debugLine="Dim W As Int = bmp.Width";
Debug.ShouldStop(1024);
_w = _bmp.runMethod(true,"getWidth");Debug.locals.put("W", _w);Debug.locals.put("W", _w);
 BA.debugLineNum = 716;BA.debugLine="Dim H As Int = bmp.Height";
Debug.ShouldStop(2048);
_h = _bmp.runMethod(true,"getHeight");Debug.locals.put("H", _h);Debug.locals.put("H", _h);
 BA.debugLineNum = 717;BA.debugLine="Dim pixels(W * H) As Byte";
Debug.ShouldStop(4096);
_pixels = RemoteObject.createNewArray ("byte", new int[] {RemoteObject.solve(new RemoteObject[] {_w,_h}, "*",0, 1).<Integer>get().intValue()}, new Object[]{});Debug.locals.put("pixels", _pixels);
 BA.debugLineNum = 719;BA.debugLine="For y = 0 To H - 1";
Debug.ShouldStop(16384);
{
final int step5 = 1;
final int limit5 = RemoteObject.solve(new RemoteObject[] {_h,RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_y = 0 ;
for (;(step5 > 0 && _y <= limit5) || (step5 < 0 && _y >= limit5) ;_y = ((int)(0 + _y + step5))  ) {
Debug.locals.put("y", _y);
 BA.debugLineNum = 720;BA.debugLine="For x = 0 To W - 1";
Debug.ShouldStop(32768);
{
final int step6 = 1;
final int limit6 = RemoteObject.solve(new RemoteObject[] {_w,RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_x = 0 ;
for (;(step6 > 0 && _x <= limit6) || (step6 < 0 && _x >= limit6) ;_x = ((int)(0 + _x + step6))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 721;BA.debugLine="Dim j As Int = bmp.GetPixel(x, y)";
Debug.ShouldStop(65536);
_j = _bmp.runMethod(true,"GetPixel",(Object)(BA.numberCast(int.class, _x)),(Object)(BA.numberCast(int.class, _y)));Debug.locals.put("j", _j);Debug.locals.put("j", _j);
 BA.debugLineNum = 723;BA.debugLine="Dim col As ARGBColor";
Debug.ShouldStop(262144);
_col = RemoteObject.createNew ("b4a.example.bitmapcreator._argbcolor");Debug.locals.put("col", _col);
 BA.debugLineNum = 724;BA.debugLine="BC.ColorToARGB(j, col )";
Debug.ShouldStop(524288);
_bc.runVoidMethod ("_colortoargb",(Object)(_j),(Object)(_col));
 BA.debugLineNum = 725;BA.debugLine="Dim lum As Int = col.r * 0.2 + col.b*0.1 + col.";
Debug.ShouldStop(1048576);
_lum = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_col.getField(true,"r"),RemoteObject.createImmutable(0.2),_col.getField(true,"b"),RemoteObject.createImmutable(0.1),_col.getField(true,"g"),RemoteObject.createImmutable(0.7)}, "*+*+*",2, 0));Debug.locals.put("lum", _lum);Debug.locals.put("lum", _lum);
 BA.debugLineNum = 726;BA.debugLine="If lum> 255 Then lum = 255";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean(">",_lum,BA.numberCast(double.class, 255))) { 
_lum = BA.numberCast(int.class, 255);Debug.locals.put("lum", _lum);};
 BA.debugLineNum = 728;BA.debugLine="pixels(y*W + x) = lum";
Debug.ShouldStop(8388608);
_pixels.setArrayElement (BA.numberCast(byte.class, _lum),RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_y),_w,RemoteObject.createImmutable(_x)}, "*+",1, 1));
 }
}Debug.locals.put("x", _x);
;
 }
}Debug.locals.put("y", _y);
;
 BA.debugLineNum = 731;BA.debugLine="Dim ret As AnImage";
Debug.ShouldStop(67108864);
_ret = RemoteObject.createNew ("SHARK2.keymon.com.mx.escposprinter._animage");Debug.locals.put("ret", _ret);
 BA.debugLineNum = 732;BA.debugLine="ret.Width = bmp.Width";
Debug.ShouldStop(134217728);
_ret.setField ("Width" /*RemoteObject*/ ,_bmp.runMethod(true,"getWidth"));
 BA.debugLineNum = 733;BA.debugLine="ret.Height = bmp.Height";
Debug.ShouldStop(268435456);
_ret.setField ("Height" /*RemoteObject*/ ,_bmp.runMethod(true,"getHeight"));
 BA.debugLineNum = 734;BA.debugLine="ret.Data = pixels";
Debug.ShouldStop(536870912);
_ret.setField ("Data" /*RemoteObject*/ ,_pixels);
 BA.debugLineNum = 735;BA.debugLine="Return ret";
Debug.ShouldStop(1073741824);
if (true) return _ret;
 BA.debugLineNum = 736;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _initialize(RemoteObject __ref,RemoteObject _ba,RemoteObject _vcallback,RemoteObject _veventname) throws Exception{
try {
		Debug.PushSubsStack("Initialize (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,75);
if (RapidSub.canDelegate("initialize")) { return __ref.runUserSub(false, "escposprinter","initialize", __ref, _ba, _vcallback, _veventname);}
__ref.runVoidMethodAndSync("innerInitializeHelper", _ba);
Debug.locals.put("ba", _ba);
Debug.locals.put("vCallback", _vcallback);
Debug.locals.put("vEventName", _veventname);
 BA.debugLineNum = 75;BA.debugLine="Public Sub Initialize(vCallback As Object, vEventN";
Debug.ShouldStop(1024);
 BA.debugLineNum = 76;BA.debugLine="EventName = vEventName";
Debug.ShouldStop(2048);
__ref.setField ("_eventname" /*RemoteObject*/ ,_veventname);
 BA.debugLineNum = 77;BA.debugLine="CallBack = vCallback";
Debug.ShouldStop(4096);
__ref.setField ("_callback" /*RemoteObject*/ ,_vcallback);
 BA.debugLineNum = 78;BA.debugLine="Serial1.Initialize(\"Serial1\")";
Debug.ShouldStop(8192);
__ref.getField(false,"_serial1" /*RemoteObject*/ ).runVoidMethod ("Initialize",(Object)(RemoteObject.createImmutable("Serial1")));
 BA.debugLineNum = 79;BA.debugLine="Connected = False";
Debug.ShouldStop(16384);
__ref.setField ("_connected" /*RemoteObject*/ ,escposprinter.__c.getField(true,"False"));
 BA.debugLineNum = 80;BA.debugLine="ConnectedError = \"\"";
Debug.ShouldStop(32768);
__ref.setField ("_connectederror" /*RemoteObject*/ ,BA.ObjectToString(""));
 BA.debugLineNum = 81;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _isbluetoothon(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("IsBluetoothOn (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,94);
if (RapidSub.canDelegate("isbluetoothon")) { return __ref.runUserSub(false, "escposprinter","isbluetoothon", __ref);}
 BA.debugLineNum = 94;BA.debugLine="Public Sub IsBluetoothOn As Boolean";
Debug.ShouldStop(536870912);
 BA.debugLineNum = 95;BA.debugLine="Return Serial1.IsEnabled";
Debug.ShouldStop(1073741824);
if (true) return __ref.getField(false,"_serial1" /*RemoteObject*/ ).runMethod(true,"IsEnabled");
 BA.debugLineNum = 96;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable(false);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _isconnected(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("IsConnected (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,89);
if (RapidSub.canDelegate("isconnected")) { return __ref.runUserSub(false, "escposprinter","isconnected", __ref);}
 BA.debugLineNum = 89;BA.debugLine="Public Sub IsConnected As Boolean";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 90;BA.debugLine="Return Connected";
Debug.ShouldStop(33554432);
if (true) return __ref.getField(true,"_connected" /*RemoteObject*/ );
 BA.debugLineNum = 91;BA.debugLine="End Sub";
Debug.ShouldStop(67108864);
return RemoteObject.createImmutable(false);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _packimage(RemoteObject __ref,RemoteObject _imagedata) throws Exception{
try {
		Debug.PushSubsStack("PackImage (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,865);
if (RapidSub.canDelegate("packimage")) { return __ref.runUserSub(false, "escposprinter","packimage", __ref, _imagedata);}
RemoteObject _xbytes = RemoteObject.createImmutable(0);
RemoteObject _pixels = null;
RemoteObject _masks = null;
RemoteObject _index = RemoteObject.createImmutable(0);
int _y = 0;
int _x = 0;
RemoteObject _xbyte = RemoteObject.createImmutable((byte)0);
int _b = 0;
RemoteObject _pix = RemoteObject.createImmutable((byte)0);
RemoteObject _ret = RemoteObject.declareNull("SHARK2.keymon.com.mx.escposprinter._animage");
Debug.locals.put("imagedata", _imagedata);
 BA.debugLineNum = 865;BA.debugLine="Public Sub PackImage(imagedata As AnImage) As AnIm";
Debug.ShouldStop(1);
 BA.debugLineNum = 866;BA.debugLine="Dim xbytes As Int = imagedata.width/8";
Debug.ShouldStop(2);
_xbytes = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_imagedata.getField(true,"Width" /*RemoteObject*/ ),RemoteObject.createImmutable(8)}, "/",0, 0));Debug.locals.put("xbytes", _xbytes);Debug.locals.put("xbytes", _xbytes);
 BA.debugLineNum = 867;BA.debugLine="Dim pixels(xbytes * imagedata.height) As Byte";
Debug.ShouldStop(4);
_pixels = RemoteObject.createNewArray ("byte", new int[] {RemoteObject.solve(new RemoteObject[] {_xbytes,_imagedata.getField(true,"Height" /*RemoteObject*/ )}, "*",0, 1).<Integer>get().intValue()}, new Object[]{});Debug.locals.put("pixels", _pixels);
 BA.debugLineNum = 868;BA.debugLine="Dim masks(8) As Byte";
Debug.ShouldStop(8);
_masks = RemoteObject.createNewArray ("byte", new int[] {8}, new Object[]{});Debug.locals.put("masks", _masks);
 BA.debugLineNum = 869;BA.debugLine="masks(0) = 0x80";
Debug.ShouldStop(16);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x80)),BA.numberCast(int.class, 0));
 BA.debugLineNum = 870;BA.debugLine="masks(1) = 0x40";
Debug.ShouldStop(32);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x40)),BA.numberCast(int.class, 1));
 BA.debugLineNum = 871;BA.debugLine="masks(2) = 0x20";
Debug.ShouldStop(64);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x20)),BA.numberCast(int.class, 2));
 BA.debugLineNum = 872;BA.debugLine="masks(3) = 0x10";
Debug.ShouldStop(128);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x10)),BA.numberCast(int.class, 3));
 BA.debugLineNum = 873;BA.debugLine="masks(4) = 0x08";
Debug.ShouldStop(256);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x08)),BA.numberCast(int.class, 4));
 BA.debugLineNum = 874;BA.debugLine="masks(5) = 0x04";
Debug.ShouldStop(512);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x04)),BA.numberCast(int.class, 5));
 BA.debugLineNum = 875;BA.debugLine="masks(6) = 0x02";
Debug.ShouldStop(1024);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x02)),BA.numberCast(int.class, 6));
 BA.debugLineNum = 876;BA.debugLine="masks(7) = 0x01";
Debug.ShouldStop(2048);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x01)),BA.numberCast(int.class, 7));
 BA.debugLineNum = 877;BA.debugLine="Dim index As Int = 0";
Debug.ShouldStop(4096);
_index = BA.numberCast(int.class, 0);Debug.locals.put("index", _index);Debug.locals.put("index", _index);
 BA.debugLineNum = 878;BA.debugLine="For y = 0 To imagedata.Height - 1";
Debug.ShouldStop(8192);
{
final int step13 = 1;
final int limit13 = RemoteObject.solve(new RemoteObject[] {_imagedata.getField(true,"Height" /*RemoteObject*/ ),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_y = 0 ;
for (;(step13 > 0 && _y <= limit13) || (step13 < 0 && _y >= limit13) ;_y = ((int)(0 + _y + step13))  ) {
Debug.locals.put("y", _y);
 BA.debugLineNum = 879;BA.debugLine="For x = 0 To xbytes - 1";
Debug.ShouldStop(16384);
{
final int step14 = 1;
final int limit14 = RemoteObject.solve(new RemoteObject[] {_xbytes,RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_x = 0 ;
for (;(step14 > 0 && _x <= limit14) || (step14 < 0 && _x >= limit14) ;_x = ((int)(0 + _x + step14))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 880;BA.debugLine="Dim xbyte As Byte = 0";
Debug.ShouldStop(32768);
_xbyte = BA.numberCast(byte.class, 0);Debug.locals.put("xbyte", _xbyte);Debug.locals.put("xbyte", _xbyte);
 BA.debugLineNum = 881;BA.debugLine="For b = 0 To 7";
Debug.ShouldStop(65536);
{
final int step16 = 1;
final int limit16 = 7;
_b = 0 ;
for (;(step16 > 0 && _b <= limit16) || (step16 < 0 && _b >= limit16) ;_b = ((int)(0 + _b + step16))  ) {
Debug.locals.put("b", _b);
 BA.debugLineNum = 883;BA.debugLine="Dim pix As Byte = imagedata.Data(index)";
Debug.ShouldStop(262144);
_pix = _imagedata.getField(false,"Data" /*RemoteObject*/ ).getArrayElement(true,_index);Debug.locals.put("pix", _pix);Debug.locals.put("pix", _pix);
 BA.debugLineNum = 884;BA.debugLine="If pix <> 0 Then";
Debug.ShouldStop(524288);
if (RemoteObject.solveBoolean("!",_pix,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 885;BA.debugLine="xbyte = xbyte + masks(b)";
Debug.ShouldStop(1048576);
_xbyte = BA.numberCast(byte.class, RemoteObject.solve(new RemoteObject[] {_xbyte,_masks.getArrayElement(true,BA.numberCast(int.class, _b))}, "+",1, 1));Debug.locals.put("xbyte", _xbyte);
 };
 BA.debugLineNum = 887;BA.debugLine="index = index + 1";
Debug.ShouldStop(4194304);
_index = RemoteObject.solve(new RemoteObject[] {_index,RemoteObject.createImmutable(1)}, "+",1, 1);Debug.locals.put("index", _index);
 }
}Debug.locals.put("b", _b);
;
 BA.debugLineNum = 889;BA.debugLine="pixels(y*xbytes + x) = xbyte";
Debug.ShouldStop(16777216);
_pixels.setArrayElement (_xbyte,RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_y),_xbytes,RemoteObject.createImmutable(_x)}, "*+",1, 1));
 }
}Debug.locals.put("x", _x);
;
 }
}Debug.locals.put("y", _y);
;
 BA.debugLineNum = 892;BA.debugLine="Dim ret As AnImage";
Debug.ShouldStop(134217728);
_ret = RemoteObject.createNew ("SHARK2.keymon.com.mx.escposprinter._animage");Debug.locals.put("ret", _ret);
 BA.debugLineNum = 893;BA.debugLine="ret.Width = xbytes";
Debug.ShouldStop(268435456);
_ret.setField ("Width" /*RemoteObject*/ ,_xbytes);
 BA.debugLineNum = 894;BA.debugLine="ret.Height = imagedata.Height";
Debug.ShouldStop(536870912);
_ret.setField ("Height" /*RemoteObject*/ ,_imagedata.getField(true,"Height" /*RemoteObject*/ ));
 BA.debugLineNum = 895;BA.debugLine="ret.Data = pixels";
Debug.ShouldStop(1073741824);
_ret.setField ("Data" /*RemoteObject*/ ,_pixels);
 BA.debugLineNum = 896;BA.debugLine="Return ret";
Debug.ShouldStop(-2147483648);
if (true) return _ret;
 BA.debugLineNum = 897;BA.debugLine="End Sub";
Debug.ShouldStop(1);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _packimageslice(RemoteObject __ref,RemoteObject _img,RemoteObject _slice,RemoteObject _dots24) throws Exception{
try {
		Debug.PushSubsStack("PackImageSlice (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,963);
if (RapidSub.canDelegate("packimageslice")) { return __ref.runUserSub(false, "escposprinter","packimageslice", __ref, _img, _slice, _dots24);}
RemoteObject _bytes = RemoteObject.createImmutable(0);
RemoteObject _pixels = null;
RemoteObject _slicestart = RemoteObject.createImmutable(0);
RemoteObject _masks = null;
int _x = 0;
int _s = 0;
RemoteObject _xbyte = RemoteObject.createImmutable((byte)0);
int _b = 0;
RemoteObject _pix = RemoteObject.createImmutable((byte)0);
Debug.locals.put("img", _img);
Debug.locals.put("slice", _slice);
Debug.locals.put("dots24", _dots24);
 BA.debugLineNum = 963;BA.debugLine="Public Sub PackImageSlice(img As AnImage, slice As";
Debug.ShouldStop(4);
 BA.debugLineNum = 964;BA.debugLine="Dim bytes As Int = img.width";
Debug.ShouldStop(8);
_bytes = _img.getField(true,"Width" /*RemoteObject*/ );Debug.locals.put("bytes", _bytes);Debug.locals.put("bytes", _bytes);
 BA.debugLineNum = 965;BA.debugLine="If dots24 Then";
Debug.ShouldStop(16);
if (_dots24.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 966;BA.debugLine="Dim pixels(bytes * 3) As Byte";
Debug.ShouldStop(32);
_pixels = RemoteObject.createNewArray ("byte", new int[] {RemoteObject.solve(new RemoteObject[] {_bytes,RemoteObject.createImmutable(3)}, "*",0, 1).<Integer>get().intValue()}, new Object[]{});Debug.locals.put("pixels", _pixels);
 BA.debugLineNum = 967;BA.debugLine="Dim slicestart As Int = slice * bytes * 8 * 3";
Debug.ShouldStop(64);
_slicestart = RemoteObject.solve(new RemoteObject[] {_slice,_bytes,RemoteObject.createImmutable(8),RemoteObject.createImmutable(3)}, "***",0, 1);Debug.locals.put("slicestart", _slicestart);Debug.locals.put("slicestart", _slicestart);
 }else {
 BA.debugLineNum = 969;BA.debugLine="Dim pixels(bytes) As Byte";
Debug.ShouldStop(256);
_pixels = RemoteObject.createNewArray ("byte", new int[] {_bytes.<Integer>get().intValue()}, new Object[]{});Debug.locals.put("pixels", _pixels);
 BA.debugLineNum = 970;BA.debugLine="Dim slicestart As Int = slice * bytes * 8";
Debug.ShouldStop(512);
_slicestart = RemoteObject.solve(new RemoteObject[] {_slice,_bytes,RemoteObject.createImmutable(8)}, "**",0, 1);Debug.locals.put("slicestart", _slicestart);Debug.locals.put("slicestart", _slicestart);
 };
 BA.debugLineNum = 973;BA.debugLine="Dim masks(8) As Byte";
Debug.ShouldStop(4096);
_masks = RemoteObject.createNewArray ("byte", new int[] {8}, new Object[]{});Debug.locals.put("masks", _masks);
 BA.debugLineNum = 974;BA.debugLine="masks(0) = 0x80";
Debug.ShouldStop(8192);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x80)),BA.numberCast(int.class, 0));
 BA.debugLineNum = 975;BA.debugLine="masks(1) = 0x40";
Debug.ShouldStop(16384);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x40)),BA.numberCast(int.class, 1));
 BA.debugLineNum = 976;BA.debugLine="masks(2) = 0x20";
Debug.ShouldStop(32768);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x20)),BA.numberCast(int.class, 2));
 BA.debugLineNum = 977;BA.debugLine="masks(3) = 0x10";
Debug.ShouldStop(65536);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x10)),BA.numberCast(int.class, 3));
 BA.debugLineNum = 978;BA.debugLine="masks(4) = 0x08";
Debug.ShouldStop(131072);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x08)),BA.numberCast(int.class, 4));
 BA.debugLineNum = 979;BA.debugLine="masks(5) = 0x04";
Debug.ShouldStop(262144);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x04)),BA.numberCast(int.class, 5));
 BA.debugLineNum = 980;BA.debugLine="masks(6) = 0x02";
Debug.ShouldStop(524288);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x02)),BA.numberCast(int.class, 6));
 BA.debugLineNum = 981;BA.debugLine="masks(7) = 0x01";
Debug.ShouldStop(1048576);
_masks.setArrayElement (BA.numberCast(byte.class, ((int)0x01)),BA.numberCast(int.class, 7));
 BA.debugLineNum = 983;BA.debugLine="If dots24 Then";
Debug.ShouldStop(4194304);
if (_dots24.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 984;BA.debugLine="For x = 0 To bytes - 1";
Debug.ShouldStop(8388608);
{
final int step19 = 1;
final int limit19 = RemoteObject.solve(new RemoteObject[] {_bytes,RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_x = 0 ;
for (;(step19 > 0 && _x <= limit19) || (step19 < 0 && _x >= limit19) ;_x = ((int)(0 + _x + step19))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 985;BA.debugLine="For s = 0 To 2";
Debug.ShouldStop(16777216);
{
final int step20 = 1;
final int limit20 = 2;
_s = 0 ;
for (;(step20 > 0 && _s <= limit20) || (step20 < 0 && _s >= limit20) ;_s = ((int)(0 + _s + step20))  ) {
Debug.locals.put("s", _s);
 BA.debugLineNum = 986;BA.debugLine="Dim xbyte As Byte = 0";
Debug.ShouldStop(33554432);
_xbyte = BA.numberCast(byte.class, 0);Debug.locals.put("xbyte", _xbyte);Debug.locals.put("xbyte", _xbyte);
 BA.debugLineNum = 987;BA.debugLine="For b = 0 To 7";
Debug.ShouldStop(67108864);
{
final int step22 = 1;
final int limit22 = 7;
_b = 0 ;
for (;(step22 > 0 && _b <= limit22) || (step22 < 0 && _b >= limit22) ;_b = ((int)(0 + _b + step22))  ) {
Debug.locals.put("b", _b);
 BA.debugLineNum = 989;BA.debugLine="Dim pix As Byte = img.Data(slicestart + ((b +";
Debug.ShouldStop(268435456);
_pix = _img.getField(false,"Data" /*RemoteObject*/ ).getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_slicestart,(RemoteObject.solve(new RemoteObject[] {(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_b),RemoteObject.createImmutable(_s),RemoteObject.createImmutable(8)}, "+*",1, 1)),_bytes}, "*",0, 1)),RemoteObject.createImmutable(_x)}, "++",2, 1));Debug.locals.put("pix", _pix);Debug.locals.put("pix", _pix);
 BA.debugLineNum = 990;BA.debugLine="If pix <> 0 Then";
Debug.ShouldStop(536870912);
if (RemoteObject.solveBoolean("!",_pix,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 991;BA.debugLine="xbyte = xbyte + masks(b)";
Debug.ShouldStop(1073741824);
_xbyte = BA.numberCast(byte.class, RemoteObject.solve(new RemoteObject[] {_xbyte,_masks.getArrayElement(true,BA.numberCast(int.class, _b))}, "+",1, 1));Debug.locals.put("xbyte", _xbyte);
 };
 }
}Debug.locals.put("b", _b);
;
 BA.debugLineNum = 994;BA.debugLine="pixels(x*3+s) = xbyte";
Debug.ShouldStop(2);
_pixels.setArrayElement (_xbyte,RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_x),RemoteObject.createImmutable(3),RemoteObject.createImmutable(_s)}, "*+",1, 1));
 }
}Debug.locals.put("s", _s);
;
 }
}Debug.locals.put("x", _x);
;
 }else {
 BA.debugLineNum = 998;BA.debugLine="For x = 0 To bytes - 1";
Debug.ShouldStop(32);
{
final int step32 = 1;
final int limit32 = RemoteObject.solve(new RemoteObject[] {_bytes,RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_x = 0 ;
for (;(step32 > 0 && _x <= limit32) || (step32 < 0 && _x >= limit32) ;_x = ((int)(0 + _x + step32))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 999;BA.debugLine="Dim xbyte As Byte = 0";
Debug.ShouldStop(64);
_xbyte = BA.numberCast(byte.class, 0);Debug.locals.put("xbyte", _xbyte);Debug.locals.put("xbyte", _xbyte);
 BA.debugLineNum = 1000;BA.debugLine="For b = 0 To 7";
Debug.ShouldStop(128);
{
final int step34 = 1;
final int limit34 = 7;
_b = 0 ;
for (;(step34 > 0 && _b <= limit34) || (step34 < 0 && _b >= limit34) ;_b = ((int)(0 + _b + step34))  ) {
Debug.locals.put("b", _b);
 BA.debugLineNum = 1002;BA.debugLine="Dim pix As Byte = img.Data(slicestart + (b * b";
Debug.ShouldStop(512);
_pix = _img.getField(false,"Data" /*RemoteObject*/ ).getArrayElement(true,RemoteObject.solve(new RemoteObject[] {_slicestart,(RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_b),_bytes}, "*",0, 1)),RemoteObject.createImmutable(_x)}, "++",2, 1));Debug.locals.put("pix", _pix);Debug.locals.put("pix", _pix);
 BA.debugLineNum = 1003;BA.debugLine="If pix <> 0 Then";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean("!",_pix,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 1004;BA.debugLine="xbyte = xbyte + masks(b)";
Debug.ShouldStop(2048);
_xbyte = BA.numberCast(byte.class, RemoteObject.solve(new RemoteObject[] {_xbyte,_masks.getArrayElement(true,BA.numberCast(int.class, _b))}, "+",1, 1));Debug.locals.put("xbyte", _xbyte);
 };
 }
}Debug.locals.put("b", _b);
;
 BA.debugLineNum = 1007;BA.debugLine="pixels(x) = xbyte";
Debug.ShouldStop(16384);
_pixels.setArrayElement (_xbyte,BA.numberCast(int.class, _x));
 }
}Debug.locals.put("x", _x);
;
 };
 BA.debugLineNum = 1010;BA.debugLine="Return pixels";
Debug.ShouldStop(131072);
if (true) return _pixels;
 BA.debugLineNum = 1011;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _plotbox(RemoteObject __ref,RemoteObject _x0,RemoteObject _y0,RemoteObject _x1,RemoteObject _y1,RemoteObject _points,RemoteObject _fill) throws Exception{
try {
		Debug.PushSubsStack("PlotBox (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,611);
if (RapidSub.canDelegate("plotbox")) { return __ref.runUserSub(false, "escposprinter","plotbox", __ref, _x0, _y0, _x1, _y1, _points, _fill);}
int _x = 0;
Debug.locals.put("x0", _x0);
Debug.locals.put("y0", _y0);
Debug.locals.put("x1", _x1);
Debug.locals.put("y1", _y1);
Debug.locals.put("points", _points);
Debug.locals.put("Fill", _fill);
 BA.debugLineNum = 611;BA.debugLine="Private Sub PlotBox(x0 As Int, y0 As Int, x1 As In";
Debug.ShouldStop(4);
 BA.debugLineNum = 613;BA.debugLine="PlotLine(x0, y0, x0, y1, points)";
Debug.ShouldStop(16);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotline" /*RemoteObject*/ ,(Object)(_x0),(Object)(_y0),(Object)(_x0),(Object)(_y1),(Object)(_points));
 BA.debugLineNum = 614;BA.debugLine="PlotLine(x0, y0, x1, y0, points)";
Debug.ShouldStop(32);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotline" /*RemoteObject*/ ,(Object)(_x0),(Object)(_y0),(Object)(_x1),(Object)(_y0),(Object)(_points));
 BA.debugLineNum = 615;BA.debugLine="PlotLine(x1, y0, x1, y1, points)";
Debug.ShouldStop(64);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotline" /*RemoteObject*/ ,(Object)(_x1),(Object)(_y0),(Object)(_x1),(Object)(_y1),(Object)(_points));
 BA.debugLineNum = 616;BA.debugLine="PlotLine(x0, y1, x1, y1, points)";
Debug.ShouldStop(128);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotline" /*RemoteObject*/ ,(Object)(_x0),(Object)(_y1),(Object)(_x1),(Object)(_y1),(Object)(_points));
 BA.debugLineNum = 617;BA.debugLine="If Fill > 0 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",_fill,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 618;BA.debugLine="For x = x0 To x1";
Debug.ShouldStop(512);
{
final int step6 = 1;
final int limit6 = _x1.<Integer>get().intValue();
_x = _x0.<Integer>get().intValue() ;
for (;(step6 > 0 && _x <= limit6) || (step6 < 0 && _x >= limit6) ;_x = ((int)(0 + _x + step6))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 619;BA.debugLine="PlotLine(x, y0, x, y1, points)";
Debug.ShouldStop(1024);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotline" /*RemoteObject*/ ,(Object)(BA.numberCast(int.class, _x)),(Object)(_y0),(Object)(BA.numberCast(int.class, _x)),(Object)(_y1),(Object)(_points));
 }
}Debug.locals.put("x", _x);
;
 };
 BA.debugLineNum = 622;BA.debugLine="End Sub";
Debug.ShouldStop(8192);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _plotcircle(RemoteObject __ref,RemoteObject _radius,RemoteObject _quadrants,RemoteObject _x1,RemoteObject _y1,RemoteObject _points,RemoteObject _fill) throws Exception{
try {
		Debug.PushSubsStack("PlotCircle (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,625);
if (RapidSub.canDelegate("plotcircle")) { return __ref.runUserSub(false, "escposprinter","plotcircle", __ref, _radius, _quadrants, _x1, _y1, _points, _fill);}
RemoteObject _mask = RemoteObject.createImmutable(0);
int _q = 0;
int _i = 0;
RemoteObject _x = RemoteObject.createImmutable(0);
RemoteObject _y = RemoteObject.createImmutable(0);
Debug.locals.put("radius", _radius);
Debug.locals.put("quadrants", _quadrants);
Debug.locals.put("x1", _x1);
Debug.locals.put("y1", _y1);
Debug.locals.put("points", _points);
Debug.locals.put("fill", _fill);
 BA.debugLineNum = 625;BA.debugLine="Private Sub PlotCircle(radius As Int, quadrants As";
Debug.ShouldStop(65536);
 BA.debugLineNum = 627;BA.debugLine="Dim mask As Int = 1";
Debug.ShouldStop(262144);
_mask = BA.numberCast(int.class, 1);Debug.locals.put("mask", _mask);Debug.locals.put("mask", _mask);
 BA.debugLineNum = 628;BA.debugLine="For q = 3 To 0 Step -1";
Debug.ShouldStop(524288);
{
final int step2 = -1;
final int limit2 = 0;
_q = 3 ;
for (;(step2 > 0 && _q <= limit2) || (step2 < 0 && _q >= limit2) ;_q = ((int)(0 + _q + step2))  ) {
Debug.locals.put("q", _q);
 BA.debugLineNum = 629;BA.debugLine="If Bit.And(quadrants, mask) <> 0 Then";
Debug.ShouldStop(1048576);
if (RemoteObject.solveBoolean("!",escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(_quadrants),(Object)(_mask)),BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 630;BA.debugLine="For i = q*90 To q*90+90 Step 1";
Debug.ShouldStop(2097152);
{
final int step4 = 1;
final int limit4 = RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_q),RemoteObject.createImmutable(90),RemoteObject.createImmutable(90)}, "*+",1, 1).<Integer>get().intValue();
_i = RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(_q),RemoteObject.createImmutable(90)}, "*",0, 1).<Integer>get().intValue() ;
for (;(step4 > 0 && _i <= limit4) || (step4 < 0 && _i >= limit4) ;_i = ((int)(0 + _i + step4))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 631;BA.debugLine="Dim x,y As Double";
Debug.ShouldStop(4194304);
_x = RemoteObject.createImmutable(0);Debug.locals.put("x", _x);
_y = RemoteObject.createImmutable(0);Debug.locals.put("y", _y);
 BA.debugLineNum = 632;BA.debugLine="x = x1 - SinD(i)*radius";
Debug.ShouldStop(8388608);
_x = RemoteObject.solve(new RemoteObject[] {_x1,escposprinter.__c.runMethod(true,"SinD",(Object)(BA.numberCast(double.class, _i))),_radius}, "-*",1, 0);Debug.locals.put("x", _x);
 BA.debugLineNum = 633;BA.debugLine="y = y1 - CosD(i)*radius";
Debug.ShouldStop(16777216);
_y = RemoteObject.solve(new RemoteObject[] {_y1,escposprinter.__c.runMethod(true,"CosD",(Object)(BA.numberCast(double.class, _i))),_radius}, "-*",1, 0);Debug.locals.put("y", _y);
 BA.debugLineNum = 634;BA.debugLine="If fill > 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean(">",_fill,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 635;BA.debugLine="PlotLine(x1, y1, x, y, points)";
Debug.ShouldStop(67108864);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotline" /*RemoteObject*/ ,(Object)(_x1),(Object)(_y1),(Object)(BA.numberCast(int.class, _x)),(Object)(BA.numberCast(int.class, _y)),(Object)(_points));
 }else {
 BA.debugLineNum = 637;BA.debugLine="points(Round(x), Round(y)) = 1";
Debug.ShouldStop(268435456);
_points.setArrayElement (BA.numberCast(byte.class, 1),BA.numberCast(int.class, escposprinter.__c.runMethod(true,"Round",(Object)(_x))),BA.numberCast(int.class, escposprinter.__c.runMethod(true,"Round",(Object)(_y))));
 };
 }
}Debug.locals.put("i", _i);
;
 };
 BA.debugLineNum = 641;BA.debugLine="mask = Bit.ShiftLeft(mask, 1)";
Debug.ShouldStop(1);
_mask = escposprinter.__c.getField(false,"Bit").runMethod(true,"ShiftLeft",(Object)(_mask),(Object)(BA.numberCast(int.class, 1)));Debug.locals.put("mask", _mask);
 }
}Debug.locals.put("q", _q);
;
 BA.debugLineNum = 643;BA.debugLine="End Sub";
Debug.ShouldStop(4);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _plotline(RemoteObject __ref,RemoteObject _x0,RemoteObject _y0,RemoteObject _x1,RemoteObject _y1,RemoteObject _points) throws Exception{
try {
		Debug.PushSubsStack("PlotLine (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,646);
if (RapidSub.canDelegate("plotline")) { return __ref.runUserSub(false, "escposprinter","plotline", __ref, _x0, _y0, _x1, _y1, _points);}
Debug.locals.put("x0", _x0);
Debug.locals.put("y0", _y0);
Debug.locals.put("x1", _x1);
Debug.locals.put("y1", _y1);
Debug.locals.put("points", _points);
 BA.debugLineNum = 646;BA.debugLine="Private Sub PlotLine(x0 As Int, y0 As Int, x1 As I";
Debug.ShouldStop(32);
 BA.debugLineNum = 647;BA.debugLine="If Abs(y1 - y0) < Abs(x1 - x0) Then";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean("<",escposprinter.__c.runMethod(true,"Abs",(Object)(BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_y1,_y0}, "-",1, 1)))),escposprinter.__c.runMethod(true,"Abs",(Object)(BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_x1,_x0}, "-",1, 1)))))) { 
 BA.debugLineNum = 648;BA.debugLine="If x0 > x1 Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",_x0,BA.numberCast(double.class, _x1))) { 
 BA.debugLineNum = 649;BA.debugLine="PlotLineLow(x1, y1, x0, y0, points)";
Debug.ShouldStop(256);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotlinelow" /*RemoteObject*/ ,(Object)(_x1),(Object)(_y1),(Object)(_x0),(Object)(_y0),(Object)(_points));
 }else {
 BA.debugLineNum = 651;BA.debugLine="PlotLineLow(x0, y0, x1, y1, points)";
Debug.ShouldStop(1024);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotlinelow" /*RemoteObject*/ ,(Object)(_x0),(Object)(_y0),(Object)(_x1),(Object)(_y1),(Object)(_points));
 };
 }else {
 BA.debugLineNum = 654;BA.debugLine="If y0 > y1 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean(">",_y0,BA.numberCast(double.class, _y1))) { 
 BA.debugLineNum = 655;BA.debugLine="PlotLineHigh(x1, y1, x0, y0, points)";
Debug.ShouldStop(16384);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotlinehigh" /*RemoteObject*/ ,(Object)(_x1),(Object)(_y1),(Object)(_x0),(Object)(_y0),(Object)(_points));
 }else {
 BA.debugLineNum = 657;BA.debugLine="PlotLineHigh(x0, y0, x1, y1, points)";
Debug.ShouldStop(65536);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotlinehigh" /*RemoteObject*/ ,(Object)(_x0),(Object)(_y0),(Object)(_x1),(Object)(_y1),(Object)(_points));
 };
 };
 BA.debugLineNum = 660;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _plotlinehigh(RemoteObject __ref,RemoteObject _x0,RemoteObject _y0,RemoteObject _x1,RemoteObject _y1,RemoteObject _points) throws Exception{
try {
		Debug.PushSubsStack("PlotLineHigh (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,662);
if (RapidSub.canDelegate("plotlinehigh")) { return __ref.runUserSub(false, "escposprinter","plotlinehigh", __ref, _x0, _y0, _x1, _y1, _points);}
RemoteObject _dx = RemoteObject.createImmutable(0);
RemoteObject _dy = RemoteObject.createImmutable(0);
RemoteObject _xi = RemoteObject.createImmutable(0);
RemoteObject _d = RemoteObject.createImmutable(0);
RemoteObject _x = RemoteObject.createImmutable(0);
int _y = 0;
Debug.locals.put("x0", _x0);
Debug.locals.put("y0", _y0);
Debug.locals.put("x1", _x1);
Debug.locals.put("y1", _y1);
Debug.locals.put("points", _points);
 BA.debugLineNum = 662;BA.debugLine="Private Sub PlotLineHigh(x0 As Int, y0 As Int, x1";
Debug.ShouldStop(2097152);
 BA.debugLineNum = 663;BA.debugLine="Dim dx As Int = x1 - x0";
Debug.ShouldStop(4194304);
_dx = RemoteObject.solve(new RemoteObject[] {_x1,_x0}, "-",1, 1);Debug.locals.put("dx", _dx);Debug.locals.put("dx", _dx);
 BA.debugLineNum = 664;BA.debugLine="Dim dy  As Int = y1 - y0";
Debug.ShouldStop(8388608);
_dy = RemoteObject.solve(new RemoteObject[] {_y1,_y0}, "-",1, 1);Debug.locals.put("dy", _dy);Debug.locals.put("dy", _dy);
 BA.debugLineNum = 665;BA.debugLine="Dim xi As Int = 1";
Debug.ShouldStop(16777216);
_xi = BA.numberCast(int.class, 1);Debug.locals.put("xi", _xi);Debug.locals.put("xi", _xi);
 BA.debugLineNum = 666;BA.debugLine="If dx < 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("<",_dx,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 667;BA.debugLine="xi = -1";
Debug.ShouldStop(67108864);
_xi = BA.numberCast(int.class, -(double) (0 + 1));Debug.locals.put("xi", _xi);
 BA.debugLineNum = 668;BA.debugLine="dx = -dx";
Debug.ShouldStop(134217728);
_dx = BA.numberCast(int.class, -(double) (0 + _dx.<Integer>get().intValue()));Debug.locals.put("dx", _dx);
 };
 BA.debugLineNum = 670;BA.debugLine="Dim D As Int = 2*dx - dy";
Debug.ShouldStop(536870912);
_d = RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(2),_dx,_dy}, "*-",1, 1);Debug.locals.put("D", _d);Debug.locals.put("D", _d);
 BA.debugLineNum = 671;BA.debugLine="Dim x As Int = x0";
Debug.ShouldStop(1073741824);
_x = _x0;Debug.locals.put("x", _x);Debug.locals.put("x", _x);
 BA.debugLineNum = 672;BA.debugLine="For y = y0 To y1";
Debug.ShouldStop(-2147483648);
{
final int step10 = 1;
final int limit10 = _y1.<Integer>get().intValue();
_y = _y0.<Integer>get().intValue() ;
for (;(step10 > 0 && _y <= limit10) || (step10 < 0 && _y >= limit10) ;_y = ((int)(0 + _y + step10))  ) {
Debug.locals.put("y", _y);
 BA.debugLineNum = 673;BA.debugLine="points(x,y) = 1";
Debug.ShouldStop(1);
_points.setArrayElement (BA.numberCast(byte.class, 1),_x,BA.numberCast(int.class, _y));
 BA.debugLineNum = 674;BA.debugLine="If D > 0 Then";
Debug.ShouldStop(2);
if (RemoteObject.solveBoolean(">",_d,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 675;BA.debugLine="x = x + xi";
Debug.ShouldStop(4);
_x = RemoteObject.solve(new RemoteObject[] {_x,_xi}, "+",1, 1);Debug.locals.put("x", _x);
 BA.debugLineNum = 676;BA.debugLine="D = D - 2*dy";
Debug.ShouldStop(8);
_d = RemoteObject.solve(new RemoteObject[] {_d,RemoteObject.createImmutable(2),_dy}, "-*",1, 1);Debug.locals.put("D", _d);
 };
 BA.debugLineNum = 678;BA.debugLine="D = D + 2*dx";
Debug.ShouldStop(32);
_d = RemoteObject.solve(new RemoteObject[] {_d,RemoteObject.createImmutable(2),_dx}, "+*",1, 1);Debug.locals.put("D", _d);
 }
}Debug.locals.put("y", _y);
;
 BA.debugLineNum = 680;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _plotlinelow(RemoteObject __ref,RemoteObject _x0,RemoteObject _y0,RemoteObject _x1,RemoteObject _y1,RemoteObject _points) throws Exception{
try {
		Debug.PushSubsStack("PlotLineLow (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,682);
if (RapidSub.canDelegate("plotlinelow")) { return __ref.runUserSub(false, "escposprinter","plotlinelow", __ref, _x0, _y0, _x1, _y1, _points);}
RemoteObject _dx = RemoteObject.createImmutable(0);
RemoteObject _dy = RemoteObject.createImmutable(0);
RemoteObject _yi = RemoteObject.createImmutable(0);
RemoteObject _d = RemoteObject.createImmutable(0);
RemoteObject _y = RemoteObject.createImmutable(0);
int _x = 0;
Debug.locals.put("x0", _x0);
Debug.locals.put("y0", _y0);
Debug.locals.put("x1", _x1);
Debug.locals.put("y1", _y1);
Debug.locals.put("points", _points);
 BA.debugLineNum = 682;BA.debugLine="Private Sub	PlotLineLow(x0 As Int, y0 As Int, x1 A";
Debug.ShouldStop(512);
 BA.debugLineNum = 683;BA.debugLine="Dim dx As Int = x1 - x0";
Debug.ShouldStop(1024);
_dx = RemoteObject.solve(new RemoteObject[] {_x1,_x0}, "-",1, 1);Debug.locals.put("dx", _dx);Debug.locals.put("dx", _dx);
 BA.debugLineNum = 684;BA.debugLine="Dim dy As Int = y1 - y0";
Debug.ShouldStop(2048);
_dy = RemoteObject.solve(new RemoteObject[] {_y1,_y0}, "-",1, 1);Debug.locals.put("dy", _dy);Debug.locals.put("dy", _dy);
 BA.debugLineNum = 685;BA.debugLine="Dim yi As Int = 1";
Debug.ShouldStop(4096);
_yi = BA.numberCast(int.class, 1);Debug.locals.put("yi", _yi);Debug.locals.put("yi", _yi);
 BA.debugLineNum = 686;BA.debugLine="If dy < 0 Then";
Debug.ShouldStop(8192);
if (RemoteObject.solveBoolean("<",_dy,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 687;BA.debugLine="yi = -1";
Debug.ShouldStop(16384);
_yi = BA.numberCast(int.class, -(double) (0 + 1));Debug.locals.put("yi", _yi);
 BA.debugLineNum = 688;BA.debugLine="dy = -dy";
Debug.ShouldStop(32768);
_dy = BA.numberCast(int.class, -(double) (0 + _dy.<Integer>get().intValue()));Debug.locals.put("dy", _dy);
 };
 BA.debugLineNum = 690;BA.debugLine="Dim D As Int = 2*dy - dx";
Debug.ShouldStop(131072);
_d = RemoteObject.solve(new RemoteObject[] {RemoteObject.createImmutable(2),_dy,_dx}, "*-",1, 1);Debug.locals.put("D", _d);Debug.locals.put("D", _d);
 BA.debugLineNum = 691;BA.debugLine="Dim y As Int = y0";
Debug.ShouldStop(262144);
_y = _y0;Debug.locals.put("y", _y);Debug.locals.put("y", _y);
 BA.debugLineNum = 692;BA.debugLine="For x = x0 To x1";
Debug.ShouldStop(524288);
{
final int step10 = 1;
final int limit10 = _x1.<Integer>get().intValue();
_x = _x0.<Integer>get().intValue() ;
for (;(step10 > 0 && _x <= limit10) || (step10 < 0 && _x >= limit10) ;_x = ((int)(0 + _x + step10))  ) {
Debug.locals.put("x", _x);
 BA.debugLineNum = 693;BA.debugLine="points(x,y) = 1";
Debug.ShouldStop(1048576);
_points.setArrayElement (BA.numberCast(byte.class, 1),BA.numberCast(int.class, _x),_y);
 BA.debugLineNum = 694;BA.debugLine="If D > 0 Then";
Debug.ShouldStop(2097152);
if (RemoteObject.solveBoolean(">",_d,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 695;BA.debugLine="y = y + yi";
Debug.ShouldStop(4194304);
_y = RemoteObject.solve(new RemoteObject[] {_y,_yi}, "+",1, 1);Debug.locals.put("y", _y);
 BA.debugLineNum = 696;BA.debugLine="D = D - 2*dx";
Debug.ShouldStop(8388608);
_d = RemoteObject.solve(new RemoteObject[] {_d,RemoteObject.createImmutable(2),_dx}, "-*",1, 1);Debug.locals.put("D", _d);
 };
 BA.debugLineNum = 698;BA.debugLine="D = D + 2*dy";
Debug.ShouldStop(33554432);
_d = RemoteObject.solve(new RemoteObject[] {_d,RemoteObject.createImmutable(2),_dy}, "+*",1, 1);Debug.locals.put("D", _d);
 }
}Debug.locals.put("x", _x);
;
 BA.debugLineNum = 700;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _plottriangle(RemoteObject __ref,RemoteObject _x0,RemoteObject _y0,RemoteObject _x1,RemoteObject _y1,RemoteObject _x2,RemoteObject _y2,RemoteObject _points,RemoteObject _fill) throws Exception{
try {
		Debug.PushSubsStack("PlotTriangle (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,534);
if (RapidSub.canDelegate("plottriangle")) { return __ref.runUserSub(false, "escposprinter","plottriangle", __ref, _x0, _y0, _x1, _y1, _x2, _y2, _points, _fill);}
Debug.locals.put("x0", _x0);
Debug.locals.put("y0", _y0);
Debug.locals.put("x1", _x1);
Debug.locals.put("y1", _y1);
Debug.locals.put("x2", _x2);
Debug.locals.put("y2", _y2);
Debug.locals.put("points", _points);
Debug.locals.put("Fill", _fill);
 BA.debugLineNum = 534;BA.debugLine="Private Sub PlotTriangle(x0 As Int, y0 As Int, x1";
Debug.ShouldStop(2097152);
 BA.debugLineNum = 536;BA.debugLine="PlotLine(x0, y0, x1, y1, points)";
Debug.ShouldStop(8388608);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotline" /*RemoteObject*/ ,(Object)(_x0),(Object)(_y0),(Object)(_x1),(Object)(_y1),(Object)(_points));
 BA.debugLineNum = 537;BA.debugLine="PlotLine(x1, y1, x2, y2, points)";
Debug.ShouldStop(16777216);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotline" /*RemoteObject*/ ,(Object)(_x1),(Object)(_y1),(Object)(_x2),(Object)(_y2),(Object)(_points));
 BA.debugLineNum = 538;BA.debugLine="PlotLine(x2, y2, x0, y0, points)";
Debug.ShouldStop(33554432);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_plotline" /*RemoteObject*/ ,(Object)(_x2),(Object)(_y2),(Object)(_x0),(Object)(_y0),(Object)(_points));
 BA.debugLineNum = 539;BA.debugLine="If Fill > 0 Then";
Debug.ShouldStop(67108864);
if (RemoteObject.solveBoolean(">",_fill,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 540;BA.debugLine="FillTriangle(x0, y0, x1, y1, x2, y2, points)";
Debug.ShouldStop(134217728);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_filltriangle" /*RemoteObject*/ ,(Object)(_x0),(Object)(_y0),(Object)(_x1),(Object)(_y1),(Object)(_x2),(Object)(_y2),(Object)(_points));
 };
 BA.debugLineNum = 542;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _printandfeedpaper(RemoteObject __ref,RemoteObject _units) throws Exception{
try {
		Debug.PushSubsStack("PrintAndFeedPaper (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,160);
if (RapidSub.canDelegate("printandfeedpaper")) { return __ref.runUserSub(false, "escposprinter","printandfeedpaper", __ref, _units);}
RemoteObject _params = null;
Debug.locals.put("units", _units);
 BA.debugLineNum = 160;BA.debugLine="Public Sub PrintAndFeedPaper(units As Int)";
Debug.ShouldStop(-2147483648);
 BA.debugLineNum = 161;BA.debugLine="WriteString(ESC & \"J\")";
Debug.ShouldStop(1);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("J"))));
 BA.debugLineNum = 162;BA.debugLine="Dim params(1) As Byte";
Debug.ShouldStop(2);
_params = RemoteObject.createNewArray ("byte", new int[] {1}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 163;BA.debugLine="params(0) = units";
Debug.ShouldStop(4);
_params.setArrayElement (BA.numberCast(byte.class, _units),BA.numberCast(int.class, 0));
 BA.debugLineNum = 164;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(8);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 165;BA.debugLine="End Sub";
Debug.ShouldStop(16);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _printimage(RemoteObject __ref,RemoteObject _img) throws Exception{
try {
		Debug.PushSubsStack("PrintImage (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,837);
if (RapidSub.canDelegate("printimage")) { return __ref.runUserSub(false, "escposprinter","printimage", __ref, _img);}
RemoteObject _xh = RemoteObject.createImmutable(0);
RemoteObject _xl = RemoteObject.createImmutable(0);
RemoteObject _yh = RemoteObject.createImmutable(0);
RemoteObject _yl = RemoteObject.createImmutable(0);
RemoteObject _params = null;
Debug.locals.put("img", _img);
 BA.debugLineNum = 837;BA.debugLine="Public Sub PrintImage(img As AnImage) As Int";
Debug.ShouldStop(16);
 BA.debugLineNum = 840;BA.debugLine="If img.width > 72 Then Return -1";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean(">",_img.getField(true,"Width" /*RemoteObject*/ ),BA.numberCast(double.class, 72))) { 
if (true) return BA.numberCast(int.class, -(double) (0 + 1));};
 BA.debugLineNum = 841;BA.debugLine="If img.height > 512 Then Return -2";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(">",_img.getField(true,"Height" /*RemoteObject*/ ),BA.numberCast(double.class, 512))) { 
if (true) return BA.numberCast(int.class, -(double) (0 + 2));};
 BA.debugLineNum = 842;BA.debugLine="If img.data.Length < img.width * img.height Then";
Debug.ShouldStop(512);
if (RemoteObject.solveBoolean("<",_img.getField(false,"Data" /*RemoteObject*/ ).getField(true,"length"),BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_img.getField(true,"Width" /*RemoteObject*/ ),_img.getField(true,"Height" /*RemoteObject*/ )}, "*",0, 1)))) { 
if (true) return BA.numberCast(int.class, -(double) (0 + 3));};
 BA.debugLineNum = 843;BA.debugLine="Dim xh As Int = img.width / 256";
Debug.ShouldStop(1024);
_xh = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_img.getField(true,"Width" /*RemoteObject*/ ),RemoteObject.createImmutable(256)}, "/",0, 0));Debug.locals.put("xh", _xh);Debug.locals.put("xh", _xh);
 BA.debugLineNum = 844;BA.debugLine="Dim xl As Int = img.width - xh * 256";
Debug.ShouldStop(2048);
_xl = RemoteObject.solve(new RemoteObject[] {_img.getField(true,"Width" /*RemoteObject*/ ),_xh,RemoteObject.createImmutable(256)}, "-*",1, 1);Debug.locals.put("xl", _xl);Debug.locals.put("xl", _xl);
 BA.debugLineNum = 845;BA.debugLine="Dim yh As Int = img.height / 256";
Debug.ShouldStop(4096);
_yh = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_img.getField(true,"Height" /*RemoteObject*/ ),RemoteObject.createImmutable(256)}, "/",0, 0));Debug.locals.put("yh", _yh);Debug.locals.put("yh", _yh);
 BA.debugLineNum = 846;BA.debugLine="Dim yl As Int = img.height - yh * 256";
Debug.ShouldStop(8192);
_yl = RemoteObject.solve(new RemoteObject[] {_img.getField(true,"Height" /*RemoteObject*/ ),_yh,RemoteObject.createImmutable(256)}, "-*",1, 1);Debug.locals.put("yl", _yl);Debug.locals.put("yl", _yl);
 BA.debugLineNum = 847;BA.debugLine="Dim params(5) As Byte";
Debug.ShouldStop(16384);
_params = RemoteObject.createNewArray ("byte", new int[] {5}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 848;BA.debugLine="params(0) = 0 '";
Debug.ShouldStop(32768);
_params.setArrayElement (BA.numberCast(byte.class, 0),BA.numberCast(int.class, 0));
 BA.debugLineNum = 849;BA.debugLine="params(1) = xl";
Debug.ShouldStop(65536);
_params.setArrayElement (BA.numberCast(byte.class, _xl),BA.numberCast(int.class, 1));
 BA.debugLineNum = 850;BA.debugLine="params(2) = xh";
Debug.ShouldStop(131072);
_params.setArrayElement (BA.numberCast(byte.class, _xh),BA.numberCast(int.class, 2));
 BA.debugLineNum = 851;BA.debugLine="params(3) = yl";
Debug.ShouldStop(262144);
_params.setArrayElement (BA.numberCast(byte.class, _yl),BA.numberCast(int.class, 3));
 BA.debugLineNum = 852;BA.debugLine="params(4) = yh";
Debug.ShouldStop(524288);
_params.setArrayElement (BA.numberCast(byte.class, _yh),BA.numberCast(int.class, 4));
 BA.debugLineNum = 853;BA.debugLine="WriteString(GS & \"v0\")";
Debug.ShouldStop(1048576);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("v0"))));
 BA.debugLineNum = 854;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(2097152);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 855;BA.debugLine="WriteBytes(img.data)";
Debug.ShouldStop(4194304);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_img.getField(false,"Data" /*RemoteObject*/ )));
 BA.debugLineNum = 856;BA.debugLine="WriteString(CRLF)";
Debug.ShouldStop(8388608);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(escposprinter.__c.getField(true,"CRLF")));
 BA.debugLineNum = 857;BA.debugLine="Return 0";
Debug.ShouldStop(16777216);
if (true) return BA.numberCast(int.class, 0);
 BA.debugLineNum = 858;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable(0);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _printimage2(RemoteObject __ref,RemoteObject _width,RemoteObject _data,RemoteObject _highdensity,RemoteObject _dotds24) throws Exception{
try {
		Debug.PushSubsStack("PrintImage2 (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,927);
if (RapidSub.canDelegate("printimage2")) { return __ref.runUserSub(false, "escposprinter","printimage2", __ref, _width, _data, _highdensity, _dotds24);}
RemoteObject _d = RemoteObject.createImmutable("");
RemoteObject _xh = RemoteObject.createImmutable(0);
RemoteObject _xl = RemoteObject.createImmutable(0);
RemoteObject _params = null;
Debug.locals.put("width", _width);
Debug.locals.put("data", _data);
Debug.locals.put("highdensity", _highdensity);
Debug.locals.put("dotds24", _dotds24);
 BA.debugLineNum = 927;BA.debugLine="Public Sub PrintImage2(width As Int, data() As Byt";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 928;BA.debugLine="Dim d As String = Chr(0)";
Debug.ShouldStop(-2147483648);
_d = BA.ObjectToString(escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 0))));Debug.locals.put("d", _d);Debug.locals.put("d", _d);
 BA.debugLineNum = 929;BA.debugLine="If Not(highdensity) And Not(dotds24 )	 Then";
Debug.ShouldStop(1);
if (RemoteObject.solveBoolean(".",escposprinter.__c.runMethod(true,"Not",(Object)(_highdensity))) && RemoteObject.solveBoolean(".",escposprinter.__c.runMethod(true,"Not",(Object)(_dotds24)))) { 
 BA.debugLineNum = 930;BA.debugLine="d = Chr(0)";
Debug.ShouldStop(2);
_d = BA.ObjectToString(escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 0))));Debug.locals.put("d", _d);
 BA.debugLineNum = 931;BA.debugLine="If width > 288 Then Return -1";
Debug.ShouldStop(4);
if (RemoteObject.solveBoolean(">",_width,BA.numberCast(double.class, 288))) { 
if (true) return BA.numberCast(int.class, -(double) (0 + 1));};
 BA.debugLineNum = 932;BA.debugLine="If data.Length <> width Then Return -3";
Debug.ShouldStop(8);
if (RemoteObject.solveBoolean("!",_data.getField(true,"length"),BA.numberCast(double.class, _width))) { 
if (true) return BA.numberCast(int.class, -(double) (0 + 3));};
 }else 
{ BA.debugLineNum = 933;BA.debugLine="Else If highdensity And Not(dotds24) 	 Then";
Debug.ShouldStop(16);
if (RemoteObject.solveBoolean(".",_highdensity) && RemoteObject.solveBoolean(".",escposprinter.__c.runMethod(true,"Not",(Object)(_dotds24)))) { 
 BA.debugLineNum = 934;BA.debugLine="d = Chr(1)";
Debug.ShouldStop(32);
_d = BA.ObjectToString(escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 1))));Debug.locals.put("d", _d);
 BA.debugLineNum = 935;BA.debugLine="If width > 576 Then Return -1";
Debug.ShouldStop(64);
if (RemoteObject.solveBoolean(">",_width,BA.numberCast(double.class, 576))) { 
if (true) return BA.numberCast(int.class, -(double) (0 + 1));};
 BA.debugLineNum = 936;BA.debugLine="If data.Length <> width Then Return -3";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("!",_data.getField(true,"length"),BA.numberCast(double.class, _width))) { 
if (true) return BA.numberCast(int.class, -(double) (0 + 3));};
 }else 
{ BA.debugLineNum = 937;BA.debugLine="Else 	If Not(highdensity) And dotds24 	 Then";
Debug.ShouldStop(256);
if (RemoteObject.solveBoolean(".",escposprinter.__c.runMethod(true,"Not",(Object)(_highdensity))) && RemoteObject.solveBoolean(".",_dotds24)) { 
 BA.debugLineNum = 938;BA.debugLine="d = Chr(32)";
Debug.ShouldStop(512);
_d = BA.ObjectToString(escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 32))));Debug.locals.put("d", _d);
 BA.debugLineNum = 939;BA.debugLine="If width > 288 Then Return -1";
Debug.ShouldStop(1024);
if (RemoteObject.solveBoolean(">",_width,BA.numberCast(double.class, 288))) { 
if (true) return BA.numberCast(int.class, -(double) (0 + 1));};
 BA.debugLineNum = 940;BA.debugLine="If data.Length <> width*3 Then Return -3";
Debug.ShouldStop(2048);
if (RemoteObject.solveBoolean("!",_data.getField(true,"length"),BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_width,RemoteObject.createImmutable(3)}, "*",0, 1)))) { 
if (true) return BA.numberCast(int.class, -(double) (0 + 3));};
 }else {
 BA.debugLineNum = 942;BA.debugLine="d = Chr(33)";
Debug.ShouldStop(8192);
_d = BA.ObjectToString(escposprinter.__c.runMethod(true,"Chr",(Object)(BA.numberCast(int.class, 33))));Debug.locals.put("d", _d);
 BA.debugLineNum = 943;BA.debugLine="If width > 576 Then Return -1";
Debug.ShouldStop(16384);
if (RemoteObject.solveBoolean(">",_width,BA.numberCast(double.class, 576))) { 
if (true) return BA.numberCast(int.class, -(double) (0 + 1));};
 BA.debugLineNum = 944;BA.debugLine="If data.Length <> width*3 Then Return -3";
Debug.ShouldStop(32768);
if (RemoteObject.solveBoolean("!",_data.getField(true,"length"),BA.numberCast(double.class, RemoteObject.solve(new RemoteObject[] {_width,RemoteObject.createImmutable(3)}, "*",0, 1)))) { 
if (true) return BA.numberCast(int.class, -(double) (0 + 3));};
 }}}
;
 BA.debugLineNum = 946;BA.debugLine="Dim xh As Int = width / 256";
Debug.ShouldStop(131072);
_xh = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_width,RemoteObject.createImmutable(256)}, "/",0, 0));Debug.locals.put("xh", _xh);Debug.locals.put("xh", _xh);
 BA.debugLineNum = 947;BA.debugLine="Dim xl As Int = width - xh * 256";
Debug.ShouldStop(262144);
_xl = RemoteObject.solve(new RemoteObject[] {_width,_xh,RemoteObject.createImmutable(256)}, "-*",1, 1);Debug.locals.put("xl", _xl);Debug.locals.put("xl", _xl);
 BA.debugLineNum = 948;BA.debugLine="Dim params(2) As Byte";
Debug.ShouldStop(524288);
_params = RemoteObject.createNewArray ("byte", new int[] {2}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 949;BA.debugLine="params(0) = xl";
Debug.ShouldStop(1048576);
_params.setArrayElement (BA.numberCast(byte.class, _xl),BA.numberCast(int.class, 0));
 BA.debugLineNum = 950;BA.debugLine="params(1) = xh";
Debug.ShouldStop(2097152);
_params.setArrayElement (BA.numberCast(byte.class, _xh),BA.numberCast(int.class, 1));
 BA.debugLineNum = 951;BA.debugLine="WriteString(ESC & \"*\" & d)";
Debug.ShouldStop(4194304);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("*"),_d)));
 BA.debugLineNum = 952;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(8388608);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 953;BA.debugLine="WriteBytes(data)";
Debug.ShouldStop(16777216);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_data));
 BA.debugLineNum = 954;BA.debugLine="WriteString(CRLF)";
Debug.ShouldStop(33554432);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(escposprinter.__c.getField(true,"CRLF")));
 BA.debugLineNum = 955;BA.debugLine="Return 0";
Debug.ShouldStop(67108864);
if (true) return BA.numberCast(int.class, 0);
 BA.debugLineNum = 956;BA.debugLine="End Sub";
Debug.ShouldStop(134217728);
return RemoteObject.createImmutable(0);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _reset(RemoteObject __ref) throws Exception{
try {
		Debug.PushSubsStack("Reset (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,149);
if (RapidSub.canDelegate("reset")) { return __ref.runUserSub(false, "escposprinter","reset", __ref);}
 BA.debugLineNum = 149;BA.debugLine="Public Sub Reset";
Debug.ShouldStop(1048576);
 BA.debugLineNum = 150;BA.debugLine="WriteString(ESC & \"@\")";
Debug.ShouldStop(2097152);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("@"))));
 BA.debugLineNum = 151;BA.debugLine="End Sub";
Debug.ShouldStop(4194304);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _serial1_connected(RemoteObject __ref,RemoteObject _success) throws Exception{
try {
		Debug.PushSubsStack("Serial1_Connected (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,1115);
if (RapidSub.canDelegate("serial1_connected")) { return __ref.runUserSub(false, "escposprinter","serial1_connected", __ref, _success);}
Debug.locals.put("Success", _success);
 BA.debugLineNum = 1115;BA.debugLine="Private Sub Serial1_Connected (Success As Boolean)";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 1116;BA.debugLine="If Success Then";
Debug.ShouldStop(134217728);
if (_success.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1117;BA.debugLine="Astream.Initialize(Serial1.InputStream, Serial1.";
Debug.ShouldStop(268435456);
__ref.getField(false,"_astream" /*RemoteObject*/ ).runVoidMethod ("Initialize",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_serial1" /*RemoteObject*/ ).runMethod(false,"getInputStream")),(Object)(__ref.getField(false,"_serial1" /*RemoteObject*/ ).runMethod(false,"getOutputStream")),(Object)(RemoteObject.createImmutable("astream")));
 BA.debugLineNum = 1118;BA.debugLine="Connected = True";
Debug.ShouldStop(536870912);
__ref.setField ("_connected" /*RemoteObject*/ ,escposprinter.__c.getField(true,"True"));
 BA.debugLineNum = 1119;BA.debugLine="ConnectedError = \"\"";
Debug.ShouldStop(1073741824);
__ref.setField ("_connectederror" /*RemoteObject*/ ,BA.ObjectToString(""));
 BA.debugLineNum = 1120;BA.debugLine="Serial1.Listen";
Debug.ShouldStop(-2147483648);
__ref.getField(false,"_serial1" /*RemoteObject*/ ).runVoidMethod ("Listen",__ref.getField(false, "ba"));
 }else {
 BA.debugLineNum = 1122;BA.debugLine="Connected = False";
Debug.ShouldStop(2);
__ref.setField ("_connected" /*RemoteObject*/ ,escposprinter.__c.getField(true,"False"));
 BA.debugLineNum = 1123;BA.debugLine="ConnectedError = LastException.Message";
Debug.ShouldStop(4);
__ref.setField ("_connectederror" /*RemoteObject*/ ,escposprinter.__c.runMethod(false,"LastException",__ref.runMethod(false,"getActivityBA")).runMethod(true,"getMessage"));
 };
 BA.debugLineNum = 1125;BA.debugLine="If SubExists(CallBack, EventName & \"_Connected\")";
Debug.ShouldStop(16);
if (escposprinter.__c.runMethod(true,"SubExists",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_callback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_eventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_Connected")))).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 1126;BA.debugLine="CallSub2(CallBack, EventName & \"_Connected\", Suc";
Debug.ShouldStop(32);
escposprinter.__c.runMethodAndSync(false,"CallSubNew2",__ref.getField(false, "ba"),(Object)(__ref.getField(false,"_callback" /*RemoteObject*/ )),(Object)(RemoteObject.concat(__ref.getField(true,"_eventname" /*RemoteObject*/ ),RemoteObject.createImmutable("_Connected"))),(Object)((_success)));
 };
 BA.debugLineNum = 1128;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setbarcodeheight(RemoteObject __ref,RemoteObject _height) throws Exception{
try {
		Debug.PushSubsStack("setBarCodeHeight (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,1019);
if (RapidSub.canDelegate("setbarcodeheight")) { return __ref.runUserSub(false, "escposprinter","setbarcodeheight", __ref, _height);}
RemoteObject _params = null;
Debug.locals.put("height", _height);
 BA.debugLineNum = 1019;BA.debugLine="Public Sub setBarCodeHeight(height As Int)";
Debug.ShouldStop(67108864);
 BA.debugLineNum = 1020;BA.debugLine="WriteString(GS & \"h\")";
Debug.ShouldStop(134217728);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("h"))));
 BA.debugLineNum = 1021;BA.debugLine="Dim params(1) As Byte";
Debug.ShouldStop(268435456);
_params = RemoteObject.createNewArray ("byte", new int[] {1}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 1022;BA.debugLine="params(0) = height";
Debug.ShouldStop(536870912);
_params.setArrayElement (BA.numberCast(byte.class, _height),BA.numberCast(int.class, 0));
 BA.debugLineNum = 1023;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(1073741824);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 1024;BA.debugLine="End Sub";
Debug.ShouldStop(-2147483648);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setbarcodeleft(RemoteObject __ref,RemoteObject _left) throws Exception{
try {
		Debug.PushSubsStack("setBarCodeLeft (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,1028);
if (RapidSub.canDelegate("setbarcodeleft")) { return __ref.runUserSub(false, "escposprinter","setbarcodeleft", __ref, _left);}
RemoteObject _params = null;
Debug.locals.put("left", _left);
 BA.debugLineNum = 1028;BA.debugLine="Public Sub setBarCodeLeft(left As Int)";
Debug.ShouldStop(8);
 BA.debugLineNum = 1029;BA.debugLine="WriteString(GS & \"x\")";
Debug.ShouldStop(16);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("x"))));
 BA.debugLineNum = 1030;BA.debugLine="Dim params(1) As Byte";
Debug.ShouldStop(32);
_params = RemoteObject.createNewArray ("byte", new int[] {1}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 1031;BA.debugLine="params(0) = left";
Debug.ShouldStop(64);
_params.setArrayElement (BA.numberCast(byte.class, _left),BA.numberCast(int.class, 0));
 BA.debugLineNum = 1032;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(128);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 1033;BA.debugLine="End Sub";
Debug.ShouldStop(256);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setbarcodewidth(RemoteObject __ref,RemoteObject _width) throws Exception{
try {
		Debug.PushSubsStack("setBarCodeWidth (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,1038);
if (RapidSub.canDelegate("setbarcodewidth")) { return __ref.runUserSub(false, "escposprinter","setbarcodewidth", __ref, _width);}
RemoteObject _params = null;
Debug.locals.put("width", _width);
 BA.debugLineNum = 1038;BA.debugLine="Public Sub setBarCodeWidth(width As Int)";
Debug.ShouldStop(8192);
 BA.debugLineNum = 1039;BA.debugLine="WriteString(GS & \"w\")";
Debug.ShouldStop(16384);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("w"))));
 BA.debugLineNum = 1040;BA.debugLine="Dim params(1) As Byte";
Debug.ShouldStop(32768);
_params = RemoteObject.createNewArray ("byte", new int[] {1}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 1041;BA.debugLine="params(0) = width";
Debug.ShouldStop(65536);
_params.setArrayElement (BA.numberCast(byte.class, _width),BA.numberCast(int.class, 0));
 BA.debugLineNum = 1042;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(131072);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 1043;BA.debugLine="End Sub";
Debug.ShouldStop(262144);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setcharacterfont(RemoteObject __ref,RemoteObject _font) throws Exception{
try {
		Debug.PushSubsStack("setCharacterFont (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,247);
if (RapidSub.canDelegate("setcharacterfont")) { return __ref.runUserSub(false, "escposprinter","setcharacterfont", __ref, _font);}
Debug.locals.put("font", _font);
 BA.debugLineNum = 247;BA.debugLine="Public Sub setCharacterFont(font As Int)";
Debug.ShouldStop(4194304);
 BA.debugLineNum = 248;BA.debugLine="WriteString(ESC & \"M\" & Chr(Bit.And(1,font)))";
Debug.ShouldStop(8388608);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("M"),escposprinter.__c.runMethod(true,"Chr",(Object)(escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, 1)),(Object)(_font)))))));
 BA.debugLineNum = 249;BA.debugLine="End Sub";
Debug.ShouldStop(16777216);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setcharacterspacing(RemoteObject __ref,RemoteObject _spacing) throws Exception{
try {
		Debug.PushSubsStack("setCharacterSpacing (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,168);
if (RapidSub.canDelegate("setcharacterspacing")) { return __ref.runUserSub(false, "escposprinter","setcharacterspacing", __ref, _spacing);}
RemoteObject _params = null;
Debug.locals.put("spacing", _spacing);
 BA.debugLineNum = 168;BA.debugLine="Public Sub setCharacterSpacing(spacing As Int)";
Debug.ShouldStop(128);
 BA.debugLineNum = 169;BA.debugLine="WriteString(ESC & \" \")";
Debug.ShouldStop(256);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable(" "))));
 BA.debugLineNum = 170;BA.debugLine="Dim params(1) As Byte";
Debug.ShouldStop(512);
_params = RemoteObject.createNewArray ("byte", new int[] {1}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 171;BA.debugLine="params(0) = spacing";
Debug.ShouldStop(1024);
_params.setArrayElement (BA.numberCast(byte.class, _spacing),BA.numberCast(int.class, 0));
 BA.debugLineNum = 172;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(2048);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 173;BA.debugLine="End Sub";
Debug.ShouldStop(4096);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setcodepage(RemoteObject __ref,RemoteObject _codepage) throws Exception{
try {
		Debug.PushSubsStack("setCodePage (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,236);
if (RapidSub.canDelegate("setcodepage")) { return __ref.runUserSub(false, "escposprinter","setcodepage", __ref, _codepage);}
RemoteObject _params = null;
Debug.locals.put("codepage", _codepage);
 BA.debugLineNum = 236;BA.debugLine="Public Sub setCodePage(codepage As Int)";
Debug.ShouldStop(2048);
 BA.debugLineNum = 237;BA.debugLine="WriteString(ESC & \"t\")";
Debug.ShouldStop(4096);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("t"))));
 BA.debugLineNum = 238;BA.debugLine="Dim params(1) As Byte";
Debug.ShouldStop(8192);
_params = RemoteObject.createNewArray ("byte", new int[] {1}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 239;BA.debugLine="params(0) = codepage";
Debug.ShouldStop(16384);
_params.setArrayElement (BA.numberCast(byte.class, _codepage),BA.numberCast(int.class, 0));
 BA.debugLineNum = 240;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(32768);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 241;BA.debugLine="End Sub";
Debug.ShouldStop(65536);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _sethrifont(RemoteObject __ref,RemoteObject _font) throws Exception{
try {
		Debug.PushSubsStack("setHriFont (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,1060);
if (RapidSub.canDelegate("sethrifont")) { return __ref.runUserSub(false, "escposprinter","sethrifont", __ref, _font);}
Debug.locals.put("font", _font);
 BA.debugLineNum = 1060;BA.debugLine="Public Sub setHriFont(font As Int)";
Debug.ShouldStop(8);
 BA.debugLineNum = 1061;BA.debugLine="WriteString(GS & \"f\" & Chr(font))";
Debug.ShouldStop(16);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("f"),escposprinter.__c.runMethod(true,"Chr",(Object)(_font)))));
 BA.debugLineNum = 1062;BA.debugLine="End Sub";
Debug.ShouldStop(32);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _sethriposn(RemoteObject __ref,RemoteObject _posn) throws Exception{
try {
		Debug.PushSubsStack("setHriPosn (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,1049);
if (RapidSub.canDelegate("sethriposn")) { return __ref.runUserSub(false, "escposprinter","sethriposn", __ref, _posn);}
RemoteObject _params = null;
Debug.locals.put("posn", _posn);
 BA.debugLineNum = 1049;BA.debugLine="Public Sub setHriPosn(posn As Int)";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 1050;BA.debugLine="WriteString(GS & \"H\")";
Debug.ShouldStop(33554432);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("H"))));
 BA.debugLineNum = 1051;BA.debugLine="Dim params(1) As Byte";
Debug.ShouldStop(67108864);
_params = RemoteObject.createNewArray ("byte", new int[] {1}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 1052;BA.debugLine="params(0) = posn";
Debug.ShouldStop(134217728);
_params.setArrayElement (BA.numberCast(byte.class, _posn),BA.numberCast(int.class, 0));
 BA.debugLineNum = 1053;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(268435456);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 1054;BA.debugLine="End Sub";
Debug.ShouldStop(536870912);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setjustify(RemoteObject __ref,RemoteObject _justify) throws Exception{
try {
		Debug.PushSubsStack("setJustify (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,230);
if (RapidSub.canDelegate("setjustify")) { return __ref.runUserSub(false, "escposprinter","setjustify", __ref, _justify);}
Debug.locals.put("justify", _justify);
 BA.debugLineNum = 230;BA.debugLine="Public Sub setJustify(justify As Int)";
Debug.ShouldStop(32);
 BA.debugLineNum = 231;BA.debugLine="WriteString(ESC & \"a\" & Chr(justify + 48))";
Debug.ShouldStop(64);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("a"),escposprinter.__c.runMethod(true,"Chr",(Object)(RemoteObject.solve(new RemoteObject[] {_justify,RemoteObject.createImmutable(48)}, "+",1, 1))))));
 BA.debugLineNum = 232;BA.debugLine="End Sub";
Debug.ShouldStop(128);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setleftinset(RemoteObject __ref,RemoteObject _inset) throws Exception{
try {
		Debug.PushSubsStack("setLeftInset (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,178);
if (RapidSub.canDelegate("setleftinset")) { return __ref.runUserSub(false, "escposprinter","setleftinset", __ref, _inset);}
RemoteObject _dh = RemoteObject.createImmutable(0);
RemoteObject _dl = RemoteObject.createImmutable(0);
RemoteObject _params = null;
Debug.locals.put("inset", _inset);
 BA.debugLineNum = 178;BA.debugLine="Public Sub setLeftInset(inset As Int)";
Debug.ShouldStop(131072);
 BA.debugLineNum = 179;BA.debugLine="Dim dh As Int = inset / 256";
Debug.ShouldStop(262144);
_dh = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_inset,RemoteObject.createImmutable(256)}, "/",0, 0));Debug.locals.put("dh", _dh);Debug.locals.put("dh", _dh);
 BA.debugLineNum = 180;BA.debugLine="Dim dl As Int = inset - dh";
Debug.ShouldStop(524288);
_dl = RemoteObject.solve(new RemoteObject[] {_inset,_dh}, "-",1, 1);Debug.locals.put("dl", _dl);Debug.locals.put("dl", _dl);
 BA.debugLineNum = 181;BA.debugLine="WriteString(ESC & \"$\" & Chr(dl) & Chr(dh))";
Debug.ShouldStop(1048576);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("$"),escposprinter.__c.runMethod(true,"Chr",(Object)(_dl)),escposprinter.__c.runMethod(true,"Chr",(Object)(_dh)))));
 BA.debugLineNum = 182;BA.debugLine="Dim params(2) As Byte";
Debug.ShouldStop(2097152);
_params = RemoteObject.createNewArray ("byte", new int[] {2}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 183;BA.debugLine="params(0) = dl";
Debug.ShouldStop(4194304);
_params.setArrayElement (BA.numberCast(byte.class, _dl),BA.numberCast(int.class, 0));
 BA.debugLineNum = 184;BA.debugLine="params(1) = dh";
Debug.ShouldStop(8388608);
_params.setArrayElement (BA.numberCast(byte.class, _dh),BA.numberCast(int.class, 1));
 BA.debugLineNum = 185;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(16777216);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 186;BA.debugLine="End Sub";
Debug.ShouldStop(33554432);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setleftmargin(RemoteObject __ref,RemoteObject _margin) throws Exception{
try {
		Debug.PushSubsStack("setLeftMargin (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,191);
if (RapidSub.canDelegate("setleftmargin")) { return __ref.runUserSub(false, "escposprinter","setleftmargin", __ref, _margin);}
RemoteObject _dh = RemoteObject.createImmutable(0);
RemoteObject _dl = RemoteObject.createImmutable(0);
RemoteObject _params = null;
Debug.locals.put("margin", _margin);
 BA.debugLineNum = 191;BA.debugLine="Public Sub setLeftMargin(margin As Int)";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 192;BA.debugLine="Dim dh As Int = margin / 256";
Debug.ShouldStop(-2147483648);
_dh = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_margin,RemoteObject.createImmutable(256)}, "/",0, 0));Debug.locals.put("dh", _dh);Debug.locals.put("dh", _dh);
 BA.debugLineNum = 193;BA.debugLine="Dim dl As Int = margin - dh";
Debug.ShouldStop(1);
_dl = RemoteObject.solve(new RemoteObject[] {_margin,_dh}, "-",1, 1);Debug.locals.put("dl", _dl);Debug.locals.put("dl", _dl);
 BA.debugLineNum = 194;BA.debugLine="WriteString(GS & \"L\")";
Debug.ShouldStop(2);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("L"))));
 BA.debugLineNum = 195;BA.debugLine="Dim params(2) As Byte";
Debug.ShouldStop(4);
_params = RemoteObject.createNewArray ("byte", new int[] {2}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 196;BA.debugLine="params(0) = dl";
Debug.ShouldStop(8);
_params.setArrayElement (BA.numberCast(byte.class, _dl),BA.numberCast(int.class, 0));
 BA.debugLineNum = 197;BA.debugLine="params(1) = dh";
Debug.ShouldStop(16);
_params.setArrayElement (BA.numberCast(byte.class, _dh),BA.numberCast(int.class, 1));
 BA.debugLineNum = 198;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(32);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 199;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setlinespacing(RemoteObject __ref,RemoteObject _spacing) throws Exception{
try {
		Debug.PushSubsStack("setLineSpacing (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,217);
if (RapidSub.canDelegate("setlinespacing")) { return __ref.runUserSub(false, "escposprinter","setlinespacing", __ref, _spacing);}
RemoteObject _params = null;
Debug.locals.put("spacing", _spacing);
 BA.debugLineNum = 217;BA.debugLine="Public Sub setLineSpacing(spacing As Int)";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 218;BA.debugLine="If spacing < 0 Then";
Debug.ShouldStop(33554432);
if (RemoteObject.solveBoolean("<",_spacing,BA.numberCast(double.class, 0))) { 
 BA.debugLineNum = 219;BA.debugLine="WriteString(ESC & \"2\")";
Debug.ShouldStop(67108864);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("2"))));
 }else {
 BA.debugLineNum = 221;BA.debugLine="WriteString(ESC & \"3\")";
Debug.ShouldStop(268435456);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("3"))));
 BA.debugLineNum = 222;BA.debugLine="Dim params(1) As Byte";
Debug.ShouldStop(536870912);
_params = RemoteObject.createNewArray ("byte", new int[] {1}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 223;BA.debugLine="params(0) = spacing";
Debug.ShouldStop(1073741824);
_params.setArrayElement (BA.numberCast(byte.class, _spacing),BA.numberCast(int.class, 0));
 BA.debugLineNum = 224;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(-2147483648);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 };
 BA.debugLineNum = 226;BA.debugLine="End Sub";
Debug.ShouldStop(2);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setprintwidth(RemoteObject __ref,RemoteObject _width) throws Exception{
try {
		Debug.PushSubsStack("setPrintWidth (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,205);
if (RapidSub.canDelegate("setprintwidth")) { return __ref.runUserSub(false, "escposprinter","setprintwidth", __ref, _width);}
RemoteObject _dh = RemoteObject.createImmutable(0);
RemoteObject _dl = RemoteObject.createImmutable(0);
RemoteObject _params = null;
Debug.locals.put("width", _width);
 BA.debugLineNum = 205;BA.debugLine="Public Sub setPrintWidth(width As Int)";
Debug.ShouldStop(4096);
 BA.debugLineNum = 206;BA.debugLine="Dim dh As Int = width / 256";
Debug.ShouldStop(8192);
_dh = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_width,RemoteObject.createImmutable(256)}, "/",0, 0));Debug.locals.put("dh", _dh);Debug.locals.put("dh", _dh);
 BA.debugLineNum = 207;BA.debugLine="Dim dl As Int = width - dh";
Debug.ShouldStop(16384);
_dl = RemoteObject.solve(new RemoteObject[] {_width,_dh}, "-",1, 1);Debug.locals.put("dl", _dl);Debug.locals.put("dl", _dl);
 BA.debugLineNum = 208;BA.debugLine="WriteString(GS & \"W\")";
Debug.ShouldStop(32768);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("W"))));
 BA.debugLineNum = 209;BA.debugLine="Dim params(2) As Byte";
Debug.ShouldStop(65536);
_params = RemoteObject.createNewArray ("byte", new int[] {2}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 210;BA.debugLine="params(0) = dl";
Debug.ShouldStop(131072);
_params.setArrayElement (BA.numberCast(byte.class, _dl),BA.numberCast(int.class, 0));
 BA.debugLineNum = 211;BA.debugLine="params(1) = dh";
Debug.ShouldStop(262144);
_params.setArrayElement (BA.numberCast(byte.class, _dh),BA.numberCast(int.class, 1));
 BA.debugLineNum = 212;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(524288);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 213;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setrelativeprintposn(RemoteObject __ref,RemoteObject _relposn) throws Exception{
try {
		Debug.PushSubsStack("setRelativePrintPosn (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,269);
if (RapidSub.canDelegate("setrelativeprintposn")) { return __ref.runUserSub(false, "escposprinter","setrelativeprintposn", __ref, _relposn);}
RemoteObject _dh = RemoteObject.createImmutable(0);
RemoteObject _dl = RemoteObject.createImmutable(0);
RemoteObject _params = null;
Debug.locals.put("relposn", _relposn);
 BA.debugLineNum = 269;BA.debugLine="Public Sub setRelativePrintPosn(relposn As Int)";
Debug.ShouldStop(4096);
 BA.debugLineNum = 270;BA.debugLine="Dim dh As Int = relposn / 256";
Debug.ShouldStop(8192);
_dh = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_relposn,RemoteObject.createImmutable(256)}, "/",0, 0));Debug.locals.put("dh", _dh);Debug.locals.put("dh", _dh);
 BA.debugLineNum = 271;BA.debugLine="Dim dl As Int = relposn - dh";
Debug.ShouldStop(16384);
_dl = RemoteObject.solve(new RemoteObject[] {_relposn,_dh}, "-",1, 1);Debug.locals.put("dl", _dl);Debug.locals.put("dl", _dl);
 BA.debugLineNum = 272;BA.debugLine="WriteString(ESC & \"\\\")";
Debug.ShouldStop(32768);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("\\"))));
 BA.debugLineNum = 273;BA.debugLine="Dim params(2) As Byte";
Debug.ShouldStop(65536);
_params = RemoteObject.createNewArray ("byte", new int[] {2}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 274;BA.debugLine="params(0) = dl";
Debug.ShouldStop(131072);
_params.setArrayElement (BA.numberCast(byte.class, _dl),BA.numberCast(int.class, 0));
 BA.debugLineNum = 275;BA.debugLine="params(1) = dh";
Debug.ShouldStop(262144);
_params.setArrayElement (BA.numberCast(byte.class, _dh),BA.numberCast(int.class, 1));
 BA.debugLineNum = 276;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(524288);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 277;BA.debugLine="End Sub";
Debug.ShouldStop(1048576);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _settabpositions(RemoteObject __ref,RemoteObject _tabs) throws Exception{
try {
		Debug.PushSubsStack("setTabPositions (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,255);
if (RapidSub.canDelegate("settabpositions")) { return __ref.runUserSub(false, "escposprinter","settabpositions", __ref, _tabs);}
RemoteObject _data = null;
int _i = 0;
Debug.locals.put("tabs", _tabs);
 BA.debugLineNum = 255;BA.debugLine="Public Sub setTabPositions(tabs() As Int)";
Debug.ShouldStop(1073741824);
 BA.debugLineNum = 256;BA.debugLine="WriteString(ESC & \"D\")";
Debug.ShouldStop(-2147483648);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("D"))));
 BA.debugLineNum = 257;BA.debugLine="Dim data(tabs.Length+1) As Byte";
Debug.ShouldStop(1);
_data = RemoteObject.createNewArray ("byte", new int[] {RemoteObject.solve(new RemoteObject[] {_tabs.getField(true,"length"),RemoteObject.createImmutable(1)}, "+",1, 1).<Integer>get().intValue()}, new Object[]{});Debug.locals.put("data", _data);
 BA.debugLineNum = 258;BA.debugLine="For i = 0 To tabs.Length - 1";
Debug.ShouldStop(2);
{
final int step3 = 1;
final int limit3 = RemoteObject.solve(new RemoteObject[] {_tabs.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step3 > 0 && _i <= limit3) || (step3 < 0 && _i >= limit3) ;_i = ((int)(0 + _i + step3))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 259;BA.debugLine="data(i) = tabs(i)";
Debug.ShouldStop(4);
_data.setArrayElement (BA.numberCast(byte.class, _tabs.getArrayElement(true,BA.numberCast(int.class, _i))),BA.numberCast(int.class, _i));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 261;BA.debugLine="data(tabs.Length) = 0";
Debug.ShouldStop(16);
_data.setArrayElement (BA.numberCast(byte.class, 0),_tabs.getField(true,"length"));
 BA.debugLineNum = 262;BA.debugLine="WriteBytes(data)";
Debug.ShouldStop(32);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_data));
 BA.debugLineNum = 263;BA.debugLine="End Sub";
Debug.ShouldStop(64);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _setusecustomcharacters(RemoteObject __ref,RemoteObject _custom) throws Exception{
try {
		Debug.PushSubsStack("setUseCustomCharacters (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,329);
if (RapidSub.canDelegate("setusecustomcharacters")) { return __ref.runUserSub(false, "escposprinter","setusecustomcharacters", __ref, _custom);}
Debug.locals.put("custom", _custom);
 BA.debugLineNum = 329;BA.debugLine="Public Sub setUseCustomCharacters(custom As Boolea";
Debug.ShouldStop(256);
 BA.debugLineNum = 330;BA.debugLine="If custom Then";
Debug.ShouldStop(512);
if (_custom.<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 331;BA.debugLine="WriteString(ESC & \"%1\")";
Debug.ShouldStop(1024);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("%1"))));
 }else {
 BA.debugLineNum = 333;BA.debugLine="WriteString(ESC & \"%0\")";
Debug.ShouldStop(4096);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("%0"))));
 };
 BA.debugLineNum = 335;BA.debugLine="End Sub";
Debug.ShouldStop(16384);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _thresholdimage(RemoteObject __ref,RemoteObject _img,RemoteObject _threshold) throws Exception{
try {
		Debug.PushSubsStack("ThresholdImage (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,740);
if (RapidSub.canDelegate("thresholdimage")) { return __ref.runUserSub(false, "escposprinter","thresholdimage", __ref, _img, _threshold);}
RemoteObject _pixels = null;
int _i = 0;
RemoteObject _lum = RemoteObject.createImmutable(0);
RemoteObject _ret = RemoteObject.declareNull("SHARK2.keymon.com.mx.escposprinter._animage");
Debug.locals.put("img", _img);
Debug.locals.put("threshold", _threshold);
 BA.debugLineNum = 740;BA.debugLine="Sub ThresholdImage(img As AnImage, threshold As In";
Debug.ShouldStop(8);
 BA.debugLineNum = 741;BA.debugLine="Dim pixels(img.Data.Length) As Byte";
Debug.ShouldStop(16);
_pixels = RemoteObject.createNewArray ("byte", new int[] {_img.getField(false,"Data" /*RemoteObject*/ ).getField(true,"length").<Integer>get().intValue()}, new Object[]{});Debug.locals.put("pixels", _pixels);
 BA.debugLineNum = 742;BA.debugLine="For i = 0 To pixels.Length - 1";
Debug.ShouldStop(32);
{
final int step2 = 1;
final int limit2 = RemoteObject.solve(new RemoteObject[] {_pixels.getField(true,"length"),RemoteObject.createImmutable(1)}, "-",1, 1).<Integer>get().intValue();
_i = 0 ;
for (;(step2 > 0 && _i <= limit2) || (step2 < 0 && _i >= limit2) ;_i = ((int)(0 + _i + step2))  ) {
Debug.locals.put("i", _i);
 BA.debugLineNum = 743;BA.debugLine="Dim lum As Int = Bit.And(img.Data(i), 0xff) ' by";
Debug.ShouldStop(64);
_lum = escposprinter.__c.getField(false,"Bit").runMethod(true,"And",(Object)(BA.numberCast(int.class, _img.getField(false,"Data" /*RemoteObject*/ ).getArrayElement(true,BA.numberCast(int.class, _i)))),(Object)(BA.numberCast(int.class, ((int)0xff))));Debug.locals.put("lum", _lum);Debug.locals.put("lum", _lum);
 BA.debugLineNum = 744;BA.debugLine="If lum < threshold Then";
Debug.ShouldStop(128);
if (RemoteObject.solveBoolean("<",_lum,BA.numberCast(double.class, _threshold))) { 
 BA.debugLineNum = 745;BA.debugLine="lum = 1";
Debug.ShouldStop(256);
_lum = BA.numberCast(int.class, 1);Debug.locals.put("lum", _lum);
 }else {
 BA.debugLineNum = 747;BA.debugLine="lum = 0";
Debug.ShouldStop(1024);
_lum = BA.numberCast(int.class, 0);Debug.locals.put("lum", _lum);
 };
 BA.debugLineNum = 749;BA.debugLine="pixels(i) = lum";
Debug.ShouldStop(4096);
_pixels.setArrayElement (BA.numberCast(byte.class, _lum),BA.numberCast(int.class, _i));
 }
}Debug.locals.put("i", _i);
;
 BA.debugLineNum = 751;BA.debugLine="Dim ret As AnImage";
Debug.ShouldStop(16384);
_ret = RemoteObject.createNew ("SHARK2.keymon.com.mx.escposprinter._animage");Debug.locals.put("ret", _ret);
 BA.debugLineNum = 752;BA.debugLine="ret.Width = img.Width";
Debug.ShouldStop(32768);
_ret.setField ("Width" /*RemoteObject*/ ,_img.getField(true,"Width" /*RemoteObject*/ ));
 BA.debugLineNum = 753;BA.debugLine="ret.Height = img.Height";
Debug.ShouldStop(65536);
_ret.setField ("Height" /*RemoteObject*/ ,_img.getField(true,"Height" /*RemoteObject*/ ));
 BA.debugLineNum = 754;BA.debugLine="ret.Data = pixels";
Debug.ShouldStop(131072);
_ret.setField ("Data" /*RemoteObject*/ ,_pixels);
 BA.debugLineNum = 755;BA.debugLine="Return ret";
Debug.ShouldStop(262144);
if (true) return _ret;
 BA.debugLineNum = 756;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable(null);
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _writebarcode(RemoteObject __ref,RemoteObject _bartype,RemoteObject _data) throws Exception{
try {
		Debug.PushSubsStack("WriteBarCode (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,1076);
if (RapidSub.canDelegate("writebarcode")) { return __ref.runUserSub(false, "escposprinter","writebarcode", __ref, _bartype, _data);}
RemoteObject _databytes = null;
RemoteObject _dlow = RemoteObject.createImmutable(0);
RemoteObject _params = null;
Debug.locals.put("bartype", _bartype);
Debug.locals.put("data", _data);
 BA.debugLineNum = 1076;BA.debugLine="Public Sub WriteBarCode(bartype As String, data As";
Debug.ShouldStop(524288);
 BA.debugLineNum = 1077;BA.debugLine="Dim databytes() As Byte = data.GetBytes(\"ASCII\")";
Debug.ShouldStop(1048576);
_databytes = _data.runMethod(false,"getBytes",(Object)(RemoteObject.createImmutable("ASCII")));Debug.locals.put("databytes", _databytes);Debug.locals.put("databytes", _databytes);
 BA.debugLineNum = 1078;BA.debugLine="Dim dlow As Int = databytes.Length";
Debug.ShouldStop(2097152);
_dlow = _databytes.getField(true,"length");Debug.locals.put("dlow", _dlow);Debug.locals.put("dlow", _dlow);
 BA.debugLineNum = 1079;BA.debugLine="Log(\"Barcode \" & bartype & \", Size \" & dlow & \",";
Debug.ShouldStop(4194304);
escposprinter.__c.runVoidMethod ("LogImpl","531522819",RemoteObject.concat(RemoteObject.createImmutable("Barcode "),_bartype,RemoteObject.createImmutable(", Size "),_dlow,RemoteObject.createImmutable(", "),_data),0);
 BA.debugLineNum = 1080;BA.debugLine="WriteString(GS & \"k\" & bartype.ToUpperCase.CharAt";
Debug.ShouldStop(8388608);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_gs" /*RemoteObject*/ ),RemoteObject.createImmutable("k"),_bartype.runMethod(true,"toUpperCase").runMethod(true,"charAt",(Object)(BA.numberCast(int.class, 0))))));
 BA.debugLineNum = 1081;BA.debugLine="Dim params(1) As Byte";
Debug.ShouldStop(16777216);
_params = RemoteObject.createNewArray ("byte", new int[] {1}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 1082;BA.debugLine="params(0) = dlow";
Debug.ShouldStop(33554432);
_params.setArrayElement (BA.numberCast(byte.class, _dlow),BA.numberCast(int.class, 0));
 BA.debugLineNum = 1083;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(67108864);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 1084;BA.debugLine="WriteBytes(databytes)";
Debug.ShouldStop(134217728);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_databytes));
 BA.debugLineNum = 1085;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _writebytes(RemoteObject __ref,RemoteObject _data) throws Exception{
try {
		Debug.PushSubsStack("WriteBytes (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,281);
if (RapidSub.canDelegate("writebytes")) { return __ref.runUserSub(false, "escposprinter","writebytes", __ref, _data);}
Debug.locals.put("data", _data);
 BA.debugLineNum = 281;BA.debugLine="Public Sub WriteBytes(data() As Byte)";
Debug.ShouldStop(16777216);
 BA.debugLineNum = 282;BA.debugLine="If Connected Then";
Debug.ShouldStop(33554432);
if (__ref.getField(true,"_connected" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 283;BA.debugLine="Astream.Write(data)";
Debug.ShouldStop(67108864);
__ref.getField(false,"_astream" /*RemoteObject*/ ).runVoidMethod ("Write",(Object)(_data));
 };
 BA.debugLineNum = 285;BA.debugLine="End Sub";
Debug.ShouldStop(268435456);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _writeqrcode(RemoteObject __ref,RemoteObject _size,RemoteObject _ec,RemoteObject _scale,RemoteObject _data) throws Exception{
try {
		Debug.PushSubsStack("WriteQRCode (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,1092);
if (RapidSub.canDelegate("writeqrcode")) { return __ref.runUserSub(false, "escposprinter","writeqrcode", __ref, _size, _ec, _scale, _data);}
RemoteObject _databytes = null;
RemoteObject _dhigh = RemoteObject.createImmutable(0);
RemoteObject _dlow = RemoteObject.createImmutable(0);
RemoteObject _params = null;
Debug.locals.put("size", _size);
Debug.locals.put("EC", _ec);
Debug.locals.put("scale", _scale);
Debug.locals.put("data", _data);
 BA.debugLineNum = 1092;BA.debugLine="Public Sub WriteQRCode(size As Int, EC As String,";
Debug.ShouldStop(8);
 BA.debugLineNum = 1093;BA.debugLine="Dim databytes() As Byte = data.GetBytes(\"ISO-8859";
Debug.ShouldStop(16);
_databytes = _data.runMethod(false,"getBytes",(Object)(RemoteObject.createImmutable("ISO-8859-1")));Debug.locals.put("databytes", _databytes);Debug.locals.put("databytes", _databytes);
 BA.debugLineNum = 1094;BA.debugLine="Dim dhigh As Int = databytes.Length / 256";
Debug.ShouldStop(32);
_dhigh = BA.numberCast(int.class, RemoteObject.solve(new RemoteObject[] {_databytes.getField(true,"length"),RemoteObject.createImmutable(256)}, "/",0, 0));Debug.locals.put("dhigh", _dhigh);Debug.locals.put("dhigh", _dhigh);
 BA.debugLineNum = 1095;BA.debugLine="Dim dlow As Int = databytes.Length - dhigh*256";
Debug.ShouldStop(64);
_dlow = RemoteObject.solve(new RemoteObject[] {_databytes.getField(true,"length"),_dhigh,RemoteObject.createImmutable(256)}, "-*",1, 1);Debug.locals.put("dlow", _dlow);Debug.locals.put("dlow", _dlow);
 BA.debugLineNum = 1096;BA.debugLine="Log(\"QR Code : Size \" & size & \", EC \" & EC & \",";
Debug.ShouldStop(128);
escposprinter.__c.runVoidMethod ("LogImpl","531588356",RemoteObject.concat(RemoteObject.createImmutable("QR Code : Size "),_size,RemoteObject.createImmutable(", EC "),_ec,RemoteObject.createImmutable(", Scale "),_scale,RemoteObject.createImmutable(", Size "),_dlow,RemoteObject.createImmutable(" "),_dhigh,RemoteObject.createImmutable(" : Data = "),_data),0);
 BA.debugLineNum = 1097;BA.debugLine="Dim params(3) As Byte";
Debug.ShouldStop(256);
_params = RemoteObject.createNewArray ("byte", new int[] {3}, new Object[]{});Debug.locals.put("params", _params);
 BA.debugLineNum = 1098;BA.debugLine="params(0) = scale";
Debug.ShouldStop(512);
_params.setArrayElement (BA.numberCast(byte.class, _scale),BA.numberCast(int.class, 0));
 BA.debugLineNum = 1099;BA.debugLine="params(1) = dlow";
Debug.ShouldStop(1024);
_params.setArrayElement (BA.numberCast(byte.class, _dlow),BA.numberCast(int.class, 1));
 BA.debugLineNum = 1100;BA.debugLine="params(2) = dhigh";
Debug.ShouldStop(2048);
_params.setArrayElement (BA.numberCast(byte.class, _dhigh),BA.numberCast(int.class, 2));
 BA.debugLineNum = 1101;BA.debugLine="WriteString(ESC & \"Z\" & Chr(size) & EC.ToUpperCas";
Debug.ShouldStop(4096);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring" /*RemoteObject*/ ,(Object)(RemoteObject.concat(__ref.getField(true,"_esc" /*RemoteObject*/ ),RemoteObject.createImmutable("Z"),escposprinter.__c.runMethod(true,"Chr",(Object)(_size)),_ec.runMethod(true,"toUpperCase").runMethod(true,"charAt",(Object)(BA.numberCast(int.class, 0))))));
 BA.debugLineNum = 1102;BA.debugLine="WriteBytes(params)";
Debug.ShouldStop(8192);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_params));
 BA.debugLineNum = 1103;BA.debugLine="WriteBytes(databytes)";
Debug.ShouldStop(16384);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writebytes" /*RemoteObject*/ ,(Object)(_databytes));
 BA.debugLineNum = 1104;BA.debugLine="End Sub";
Debug.ShouldStop(32768);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _writestring(RemoteObject __ref,RemoteObject _data) throws Exception{
try {
		Debug.PushSubsStack("WriteString (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,291);
if (RapidSub.canDelegate("writestring")) { return __ref.runUserSub(false, "escposprinter","writestring", __ref, _data);}
Debug.locals.put("data", _data);
 BA.debugLineNum = 291;BA.debugLine="Public Sub WriteString(data As String)";
Debug.ShouldStop(4);
 BA.debugLineNum = 292;BA.debugLine="WriteString2(data, \"IBM437\")";
Debug.ShouldStop(8);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_writestring2" /*RemoteObject*/ ,(Object)(_data),(Object)(RemoteObject.createImmutable("IBM437")));
 BA.debugLineNum = 293;BA.debugLine="End Sub";
Debug.ShouldStop(16);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
public static RemoteObject  _writestring2(RemoteObject __ref,RemoteObject _data,RemoteObject _encoding) throws Exception{
try {
		Debug.PushSubsStack("WriteString2 (escposprinter) ","escposprinter",22,__ref.getField(false, "ba"),__ref,299);
if (RapidSub.canDelegate("writestring2")) { return __ref.runUserSub(false, "escposprinter","writestring2", __ref, _data, _encoding);}
Debug.locals.put("data", _data);
Debug.locals.put("encoding", _encoding);
 BA.debugLineNum = 299;BA.debugLine="Public Sub WriteString2(data As String, encoding A";
Debug.ShouldStop(1024);
 BA.debugLineNum = 300;BA.debugLine="Try";
Debug.ShouldStop(2048);
try { BA.debugLineNum = 301;BA.debugLine="If Connected Then";
Debug.ShouldStop(4096);
if (__ref.getField(true,"_connected" /*RemoteObject*/ ).<Boolean>get().booleanValue()) { 
 BA.debugLineNum = 302;BA.debugLine="Astream.Write(data.GetBytes(encoding))";
Debug.ShouldStop(8192);
__ref.getField(false,"_astream" /*RemoteObject*/ ).runVoidMethod ("Write",(Object)(_data.runMethod(false,"getBytes",(Object)(_encoding))));
 };
 Debug.CheckDeviceExceptions();
} 
       catch (Exception e6) {
			BA.rdebugUtils.runVoidMethod("setLastException",__ref.getField(false, "ba"), e6.toString()); BA.debugLineNum = 305;BA.debugLine="Log(\"Printer error : \" & LastException.Message)";
Debug.ShouldStop(65536);
escposprinter.__c.runVoidMethod ("LogImpl","529622278",RemoteObject.concat(RemoteObject.createImmutable("Printer error : "),escposprinter.__c.runMethod(false,"LastException",__ref.runMethod(false,"getActivityBA")).runMethod(true,"getMessage")),0);
 BA.debugLineNum = 306;BA.debugLine="AStream_Error";
Debug.ShouldStop(131072);
__ref.runClassMethod (SHARK2.keymon.com.mx.escposprinter.class, "_astream_error" /*RemoteObject*/ );
 };
 BA.debugLineNum = 308;BA.debugLine="End Sub";
Debug.ShouldStop(524288);
return RemoteObject.createImmutable("");
}
catch (Exception e) {
			throw Debug.ErrorCaught(e);
		} 
finally {
			Debug.PopSubsStack();
		}}
}