void script_2805(int arg0,int arg1,int arg2,int arg3,int arg4) {
	int ivar5;
	int ivar6;
	ivar5 = getWidgetShadeColor(new WidgetPointer(arg0));
	ivar6 = min(max(add(ivar5, arg1), arg3), arg4);
	if ((ivar6 == arg3) || (ivar6 == arg4)) {
		setScriptCallOnGameloop(2805, new WidgetPointer(arg0), arg2, arg1, arg3, arg4, "Iiiii", new WidgetPointer(arg0));
	}
	cs2method2103(ivar6, new WidgetPointer(arg0));
	return;
}
