int script_3365(int arg0) {
	int ivar1;
	int ivar2;
	ivar1 = getWidgetActualX(new WidgetPointer(arg0));
	ivar2 = getWidgetParentId(new WidgetPointer(arg0));
	while (ivar2 != -1) {
		ivar1 = subtract(add(ivar1, getWidgetActualX(new WidgetPointer(ivar2))), cs2method2600(new WidgetPointer(ivar2)));
		ivar2 = getWidgetParentId(new WidgetPointer(ivar2));
	}
	return ivar1;
}
