public static int intersectQuad(double n1, double n2, double n3, double n4, double n5, double n6, double n7, double n8, double n9, double n10){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.geom.GeneralPath$ShapeUtil: int intersectQuad(double, double, double, double, double, double, double, double, double, double)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::System.Object _r11_o = null;
    global::org.xmlvm._nElement _r12;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    global::System.Object _r13_o = null;
    global::org.xmlvm._nElement _r14;
    global::System.Object _r14_o = null;
    global::org.xmlvm._nElement _r15;
    global::System.Object _r15_o = null;
    global::org.xmlvm._nElement _r16;
    global::System.Object _r16_o = null;
    global::org.xmlvm._nElement _r17;
    global::System.Object _r17_o = null;
    global::org.xmlvm._nElement _r18;
    global::System.Object _r18_o = null;
    global::org.xmlvm._nElement _r19;
    global::System.Object _r19_o = null;
    global::org.xmlvm._nElement _r20;
    global::System.Object _r20_o = null;
    global::org.xmlvm._nElement _r21;
    global::System.Object _r21_o = null;
    global::org.xmlvm._nElement _r22;
    global::System.Object _r22_o = null;
    global::org.xmlvm._nElement _r23;
    global::System.Object _r23_o = null;
    global::org.xmlvm._nElement _r24;
    global::System.Object _r24_o = null;
    global::org.xmlvm._nElement _r25;
    global::System.Object _r25_o = null;
    global::org.xmlvm._nElement _r26;
    global::System.Object _r26_o = null;
    global::org.xmlvm._nElement _r27;
    global::System.Object _r27_o = null;
    global::org.xmlvm._nElement _r28;
    global::System.Object _r28_o = null;
    global::org.xmlvm._nElement _r29;
    global::System.Object _r29_o = null;
    global::org.xmlvm._nElement _r30;
    global::System.Object _r30_o = null;
    global::org.xmlvm._nElement _r31;
    global::System.Object _r31_o = null;
    global::org.xmlvm._nElement _r32;
    global::System.Object _r32_o = null;
    global::org.xmlvm._nElement _r33;
    global::System.Object _r33_o = null;
    global::org.xmlvm._nElement _r34;
    global::System.Object _r34_o = null;
    global::org.xmlvm._nElement _r35;
    global::System.Object _r35_o = null;
    global::org.xmlvm._nElement _r36;
    global::System.Object _r36_o = null;
    global::org.xmlvm._nElement _r37;
    global::System.Object _r37_o = null;
    global::org.xmlvm._nElement _r38;
    global::System.Object _r38_o = null;
    global::org.xmlvm._nElement _r39;
    global::System.Object _r39_o = null;
    global::org.xmlvm._nElement _r40;
    global::System.Object _r40_o = null;
    global::org.xmlvm._nElement _r41;
    global::System.Object _r41_o = null;
    global::org.xmlvm._nElement _r42;
    global::System.Object _r42_o = null;
    global::org.xmlvm._nElement _r43;
    global::System.Object _r43_o = null;
    global::org.xmlvm._nElement _r44;
    global::System.Object _r44_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r25.d = n1;
    _r27.d = n2;
    _r29.d = n3;
    _r31.d = n4;
    _r33.d = n5;
    _r35.d = n6;
    _r37.d = n7;
    _r39.d = n8;
    _r41.d = n9;
    _r43.d = n10;
    _r4.i = _r41.d > _r25.d ? 1 : (_r41.d == _r25.d ? 0 : -1);
    if (_r4.i >= 0) goto label12;
    _r4.i = _r41.d > _r29.d ? 1 : (_r41.d == _r29.d ? 0 : -1);
    if (_r4.i >= 0) goto label12;
    _r4.i = _r41.d > _r33.d ? 1 : (_r41.d == _r33.d ? 0 : -1);
    if (_r4.i < 0) goto label36;
    label12:;
    _r4.i = _r37.d > _r25.d ? 1 : (_r37.d == _r25.d ? 0 : -1);
    if (_r4.i <= 0) goto label24;
    _r4.i = _r37.d > _r29.d ? 1 : (_r37.d == _r29.d ? 0 : -1);
    if (_r4.i <= 0) goto label24;
    _r4.i = _r37.d > _r33.d ? 1 : (_r37.d == _r33.d ? 0 : -1);
    if (_r4.i > 0) goto label36;
    label24:;
    _r4.i = _r39.d > _r27.d ? 1 : (_r39.d == _r27.d ? 0 : -1);
    if (_r4.i <= 0) goto label39;
    _r4.i = _r39.d > _r31.d ? 1 : (_r39.d == _r31.d ? 0 : -1);
    if (_r4.i <= 0) goto label39;
    _r4.i = _r39.d > _r35.d ? 1 : (_r39.d == _r35.d ? 0 : -1);
    if (_r4.i <= 0) goto label39;
    label36:;
    _r25.i = 0;
    label38:;
    return _r25.i;
    label39:;
    _r4.i = _r43.d > _r27.d ? 1 : (_r43.d == _r27.d ? 0 : -1);
    if (_r4.i >= 0) goto label91;
    _r4.i = _r43.d > _r31.d ? 1 : (_r43.d == _r31.d ? 0 : -1);
    if (_r4.i >= 0) goto label91;
    _r4.i = _r43.d > _r35.d ? 1 : (_r43.d == _r35.d ? 0 : -1);
    if (_r4.i >= 0) goto label91;
    _r4.i = _r37.d > _r25.d ? 1 : (_r37.d == _r25.d ? 0 : -1);
    if (_r4.i == 0) goto label91;
    _r4.i = _r37.d > _r33.d ? 1 : (_r37.d == _r33.d ? 0 : -1);
    if (_r4.i == 0) goto label91;
    _r27.i = _r25.d > _r33.d ? 1 : (_r25.d == _r33.d ? 0 : -1);
    if (_r27.i >= 0) goto label77;
    _r25.i = _r25.d > _r37.d ? 1 : (_r25.d == _r37.d ? 0 : -1);
    if (_r25.i >= 0) goto label74;
    _r25.i = _r37.d > _r33.d ? 1 : (_r37.d == _r33.d ? 0 : -1);
    if (_r25.i >= 0) goto label74;
    _r25.i = 1;
    goto label38;
    label74:;
    _r25.i = 0;
    goto label38;
    label77:;
    _r27.i = _r33.d > _r37.d ? 1 : (_r33.d == _r37.d ? 0 : -1);
    if (_r27.i >= 0) goto label88;
    _r25.i = _r37.d > _r25.d ? 1 : (_r37.d == _r25.d ? 0 : -1);
    if (_r25.i >= 0) goto label88;
    _r25.i = -1;
    goto label38;
    label88:;
    _r25.i = 0;
    goto label38;
    label91:;
    _r4_o = new global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve();
    _r5.d = _r25.d;
    _r7.d = _r27.d;
    _r9.d = _r29.d;
    _r11.d = _r31.d;
    _r13.d = _r33.d;
    _r15.d = _r35.d;
    ((global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve) _r4_o).@this((double) _r5.d, (double) _r7.d, (double) _r9.d, (double) _r11.d, (double) _r13.d, (double) _r15.d);
    _r29.d = _r37.d - _r25.d;
    _r35.d = _r39.d - _r27.d;
    _r31.d = _r41.d - _r25.d;
    _r27.d = _r43.d - _r27.d;
    _r39.i = 3;
    _r0.i = _r39.i;
    _r0_o = new global::org.xmlvm._nArrayAdapter<double>(new double[_r0.i]);
    _r7_o = _r0_o;
    _r39.i = 3;
    _r0.i = _r39.i;
    _r0_o = new global::org.xmlvm._nArrayAdapter<double>(new double[_r0.i]);
    _r16_o = _r0_o;
    _r0_o = _r4_o;
    _r1_o = _r7_o;
    _r2.d = _r29.d;
    _r8.i = ((global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve) _r0_o).solvePoint((global::org.xmlvm._nArrayAdapter<double>) _r1_o, (double) _r2.d);
    _r0_o = _r4_o;
    _r1_o = _r16_o;
    _r2.d = _r31.d;
    _r17.i = ((global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve) _r0_o).solvePoint((global::org.xmlvm._nArrayAdapter<double>) _r1_o, (double) _r2.d);
    if (_r8.i != 0) goto label155;
    if (_r17.i != 0) goto label155;
    _r25.i = 0;
    goto label38;
    label155:;
    _r39.d = 1.0E-5D;
    _r9.d = _r29.d - _r39.d;
    _r29.d = 1.0E-5D;
    _r11.d = _r31.d + _r29.d;
    _r29.i = 28;
    _r0.i = _r29.i;
    _r0_o = new global::org.xmlvm._nArrayAdapter<double>(new double[_r0.i]);
    _r5_o = _r0_o;
    _r6.i = 0;
    _r13.i = 0;
    _r14.i = 0;
    _r6.i = ((global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve) _r4_o).addBound((global::org.xmlvm._nArrayAdapter<double>) _r5_o, (int) _r6.i, (global::org.xmlvm._nArrayAdapter<double>) _r7_o, (int) _r8.i, (double) _r9.d, (double) _r11.d, 0!=_r13.i, (int) _r14.i);
    _r22.i = 0;
    _r23.i = 1;
    _r13_o = _r4_o;
    _r14_o = _r5_o;
    _r15.i = _r6.i;
    _r18.d = _r9.d;
    _r20.d = _r11.d;
    _r6.i = ((global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve) _r13_o).addBound((global::org.xmlvm._nArrayAdapter<double>) _r14_o, (int) _r15.i, (global::org.xmlvm._nArrayAdapter<double>) _r16_o, (int) _r17.i, (double) _r18.d, (double) _r20.d, 0!=_r22.i, (int) _r23.i);
    _r0_o = _r4_o;
    _r1_o = _r16_o;
    _r17.i = ((global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve) _r0_o).solveExtrem((global::org.xmlvm._nArrayAdapter<double>) _r1_o);
    _r22.i = 1;
    _r23.i = 2;
    _r13_o = _r4_o;
    _r14_o = _r5_o;
    _r15.i = _r6.i;
    _r18.d = _r9.d;
    _r20.d = _r11.d;
    _r6.i = ((global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve) _r13_o).addBound((global::org.xmlvm._nArrayAdapter<double>) _r14_o, (int) _r15.i, (global::org.xmlvm._nArrayAdapter<double>) _r16_o, (int) _r17.i, (double) _r18.d, (double) _r20.d, 0!=_r22.i, (int) _r23.i);
    _r29.i = _r37.d > _r25.d ? 1 : (_r37.d == _r25.d ? 0 : -1);
    if (_r29.i >= 0) goto label252;
    _r25.i = _r25.d > _r41.d ? 1 : (_r25.d == _r41.d ? 0 : -1);
    if (_r25.i >= 0) goto label252;
    _r25.i = _r6.i + 1;
    _r29.d = 0.0D;
    ((global::org.xmlvm._nArrayAdapter<double>) _r5_o)[_r6.i] = _r29.d;
    _r6.i = _r25.i + 1;
    _r29.d = 0.0D;
    ((global::org.xmlvm._nArrayAdapter<double>) _r5_o)[_r25.i] = _r29.d;
    _r25.i = _r6.i + 1;
    _r29.d = 0.0D;
    ((global::org.xmlvm._nArrayAdapter<double>) _r5_o)[_r6.i] = _r29.d;
    _r6.i = _r25.i + 1;
    _r29.d = 4.0D;
    ((global::org.xmlvm._nArrayAdapter<double>) _r5_o)[_r25.i] = _r29.d;
    label252:;
    _r25.i = _r6.i;
    _r26.i = _r37.d > _r33.d ? 1 : (_r37.d == _r33.d ? 0 : -1);
    if (_r26.i >= 0) goto label292;
    _r26.i = _r33.d > _r41.d ? 1 : (_r33.d == _r41.d ? 0 : -1);
    if (_r26.i >= 0) goto label292;
    _r6.i = _r25.i + 1;
    _r29.d = 1.0D;
    ((global::org.xmlvm._nArrayAdapter<double>) _r5_o)[_r25.i] = _r29.d;
    _r25.i = _r6.i + 1;
    _r0_o = _r4_o;
    _r0.d = ((global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve) _r0_o)._fax;
    _r29.d = _r0.d;
    ((global::org.xmlvm._nArrayAdapter<double>) _r5_o)[_r6.i] = _r29.d;
    _r6.i = _r25.i + 1;
    _r0_o = _r4_o;
    _r0.d = ((global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve) _r0_o)._fay;
    _r29.d = _r0.d;
    ((global::org.xmlvm._nArrayAdapter<double>) _r5_o)[_r25.i] = _r29.d;
    _r25.i = _r6.i + 1;
    _r29.d = 5.0D;
    ((global::org.xmlvm._nArrayAdapter<double>) _r5_o)[_r6.i] = _r29.d;
    label292:;
    _r6.i = _r25.i;
    _r18_o = _r5_o;
    _r19.i = _r6.i;
    _r20.d = _r35.d;
    _r22.d = _r27.d;
    _r25.i = global::com.codename1.ui.geom.GeneralPath_2ShapeUtil.crossBound((global::org.xmlvm._nArrayAdapter<double>) _r18_o, (int) _r19.i, (double) _r20.d, (double) _r22.d);
    _r26.i = 254;
    _r0.i = _r25.i;
    _r1.i = _r26.i;
    if (_r0.i != _r1.i) goto label38;
    _r18_o = _r4_o;
    _r19_o = _r7_o;
    _r20.i = _r8.i;
    _r21.d = _r35.d;
    _r23.d = _r27.d;
    _r25.i = ((global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve) _r18_o).cross((global::org.xmlvm._nArrayAdapter<double>) _r19_o, (int) _r20.i, (double) _r21.d, (double) _r23.d);
    goto label38;
//XMLVM_END_WRAPPER[com.codename1.ui.geom.GeneralPath$ShapeUtil: int intersectQuad(double, double, double, double, double, double, double, double, double, double)]
}
public static int crossQuad(double n1, double n2, double n3, double n4, double n5, double n6, double n7, double n8){
//XMLVM_BEGIN_WRAPPER[com.codename1.ui.geom.GeneralPath$ShapeUtil: int crossQuad(double, double, double, double, double, double, double, double)]
    global::org.xmlvm._nElement _r0;
    global::System.Object _r0_o = null;
    global::org.xmlvm._nElement _r1;
    global::System.Object _r1_o = null;
    global::org.xmlvm._nElement _r2;
    global::System.Object _r2_o = null;
    global::org.xmlvm._nElement _r3;
    global::System.Object _r3_o = null;
    global::org.xmlvm._nElement _r4;
    global::System.Object _r4_o = null;
    global::org.xmlvm._nElement _r5;
    global::System.Object _r5_o = null;
    global::org.xmlvm._nElement _r6;
    global::System.Object _r6_o = null;
    global::org.xmlvm._nElement _r7;
    global::System.Object _r7_o = null;
    global::org.xmlvm._nElement _r8;
    global::System.Object _r8_o = null;
    global::org.xmlvm._nElement _r9;
    global::System.Object _r9_o = null;
    global::org.xmlvm._nElement _r10;
    global::System.Object _r10_o = null;
    global::org.xmlvm._nElement _r11;
    global::System.Object _r11_o = null;
    global::org.xmlvm._nElement _r12;
    global::System.Object _r12_o = null;
    global::org.xmlvm._nElement _r13;
    global::System.Object _r13_o = null;
    global::org.xmlvm._nElement _r14;
    global::System.Object _r14_o = null;
    global::org.xmlvm._nElement _r15;
    global::System.Object _r15_o = null;
    global::org.xmlvm._nElement _r16;
    global::System.Object _r16_o = null;
    global::org.xmlvm._nElement _r17;
    global::System.Object _r17_o = null;
    global::org.xmlvm._nElement _r18;
    global::System.Object _r18_o = null;
    global::org.xmlvm._nElement _r19;
    global::System.Object _r19_o = null;
    global::org.xmlvm._nElement _r20;
    global::System.Object _r20_o = null;
    global::org.xmlvm._nElement _r21;
    global::System.Object _r21_o = null;
    global::org.xmlvm._nElement _r22;
    global::System.Object _r22_o = null;
    global::org.xmlvm._nElement _r23;
    global::System.Object _r23_o = null;
    global::org.xmlvm._nElement _r24;
    global::System.Object _r24_o = null;
    global::org.xmlvm._nElement _r25;
    global::System.Object _r25_o = null;
    global::org.xmlvm._nElement _r26;
    global::System.Object _r26_o = null;
    global::org.xmlvm._nElement _r27;
    global::System.Object _r27_o = null;
    global::org.xmlvm._nElement _r28;
    global::System.Object _r28_o = null;
    global::org.xmlvm._nExceptionAdapter _ex = null;
    _r13.d = n1;
    _r15.d = n2;
    _r17.d = n3;
    _r19.d = n4;
    _r21.d = n5;
    _r23.d = n6;
    _r25.d = n7;
    _r27.d = n8;
    _r0.i = _r25.d > _r13.d ? 1 : (_r25.d == _r13.d ? 0 : -1);
    if (_r0.i >= 0) goto label12;
    _r0.i = _r25.d > _r17.d ? 1 : (_r25.d == _r17.d ? 0 : -1);
    if (_r0.i >= 0) goto label12;
    _r0.i = _r25.d > _r21.d ? 1 : (_r25.d == _r21.d ? 0 : -1);
    if (_r0.i < 0) goto label44;
    label12:;
    _r0.i = _r25.d > _r13.d ? 1 : (_r25.d == _r13.d ? 0 : -1);
    if (_r0.i <= 0) goto label24;
    _r0.i = _r25.d > _r17.d ? 1 : (_r25.d == _r17.d ? 0 : -1);
    if (_r0.i <= 0) goto label24;
    _r0.i = _r25.d > _r21.d ? 1 : (_r25.d == _r21.d ? 0 : -1);
    if (_r0.i > 0) goto label44;
    label24:;
    _r0.i = _r27.d > _r15.d ? 1 : (_r27.d == _r15.d ? 0 : -1);
    if (_r0.i <= 0) goto label36;
    _r0.i = _r27.d > _r19.d ? 1 : (_r27.d == _r19.d ? 0 : -1);
    if (_r0.i <= 0) goto label36;
    _r0.i = _r27.d > _r23.d ? 1 : (_r27.d == _r23.d ? 0 : -1);
    if (_r0.i > 0) goto label44;
    label36:;
    _r0.i = _r13.d > _r17.d ? 1 : (_r13.d == _r17.d ? 0 : -1);
    if (_r0.i != 0) goto label46;
    _r0.i = _r17.d > _r21.d ? 1 : (_r17.d == _r21.d ? 0 : -1);
    if (_r0.i != 0) goto label46;
    label44:;
    _r13.i = 0;
    label45:;
    return _r13.i;
    label46:;
    _r0.i = _r27.d > _r15.d ? 1 : (_r27.d == _r15.d ? 0 : -1);
    if (_r0.i >= 0) goto label94;
    _r0.i = _r27.d > _r19.d ? 1 : (_r27.d == _r19.d ? 0 : -1);
    if (_r0.i >= 0) goto label94;
    _r0.i = _r27.d > _r23.d ? 1 : (_r27.d == _r23.d ? 0 : -1);
    if (_r0.i >= 0) goto label94;
    _r0.i = _r25.d > _r13.d ? 1 : (_r25.d == _r13.d ? 0 : -1);
    if (_r0.i == 0) goto label94;
    _r0.i = _r25.d > _r21.d ? 1 : (_r25.d == _r21.d ? 0 : -1);
    if (_r0.i == 0) goto label94;
    _r15.i = _r13.d > _r21.d ? 1 : (_r13.d == _r21.d ? 0 : -1);
    if (_r15.i >= 0) goto label82;
    _r13.i = _r13.d > _r25.d ? 1 : (_r13.d == _r25.d ? 0 : -1);
    if (_r13.i >= 0) goto label80;
    _r13.i = _r25.d > _r21.d ? 1 : (_r25.d == _r21.d ? 0 : -1);
    if (_r13.i >= 0) goto label80;
    _r13.i = 1;
    goto label45;
    label80:;
    _r13.i = 0;
    goto label45;
    label82:;
    _r15.i = _r21.d > _r25.d ? 1 : (_r21.d == _r25.d ? 0 : -1);
    if (_r15.i >= 0) goto label92;
    _r13.i = _r25.d > _r13.d ? 1 : (_r25.d == _r13.d ? 0 : -1);
    if (_r13.i >= 0) goto label92;
    _r13.i = -1;
    goto label45;
    label92:;
    _r13.i = 0;
    goto label45;
    label94:;
    _r0_o = new global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve();
    _r1.d = _r13.d;
    _r3.d = _r15.d;
    _r5.d = _r17.d;
    _r7.d = _r19.d;
    _r9.d = _r21.d;
    _r11.d = _r23.d;
    ((global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve) _r0_o).@this((double) _r1.d, (double) _r3.d, (double) _r5.d, (double) _r7.d, (double) _r9.d, (double) _r11.d);
    _r13.d = _r25.d - _r13.d;
    _r3.d = _r27.d - _r15.d;
    _r15.i = 3;
    _r1_o = new global::org.xmlvm._nArrayAdapter<double>(new double[_r15.i]);
    _r2.i = ((global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve) _r0_o).solvePoint((global::org.xmlvm._nArrayAdapter<double>) _r1_o, (double) _r13.d);
    _r5.d = _r3.d;
    _r13.i = ((global::com.codename1.ui.geom.GeneralPath_2ShapeUtil_2QuadCurve) _r0_o).cross((global::org.xmlvm._nArrayAdapter<double>) _r1_o, (int) _r2.i, (double) _r3.d, (double) _r5.d);
    goto label45;
//XMLVM_END_WRAPPER[com.codename1.ui.geom.GeneralPath$ShapeUtil: int crossQuad(double, double, double, double, double, double, double, double)]
}