int script_1552(int arg0,int arg1,int arg2,int arg3,string arg4) {
	int ivar4;
	ivar4 = 0;
	if (setWidgetRegister(new WidgetPointer(arg2), arg3) || ((arg3 == -1) && setWidgetRegister(new WidgetPointer(arg2)))) {
		ivar4 = add(getWidgetActualX(), divide(getWidgetActualWidth(), 2));
	} else {
		return 0;
	}
	return script_1551(arg0, arg1, subtract(ivar4, divide(getTextWidth(arg1, script_1602(arg4)), 2)), arg4);
}
