/* 
 * Script decompiled by jagdecs2 v3.2
 * Decompiler opts:
 * --------------
 * t1LocalAnalyzer:true
 * t2LocalAnalyzer:true
 * beautifier:true
 * --------------
 * Made by mgi125 ;)
 */


void script_7929(int a0,int a1,int a2,int a3) {
	if (cs2method_10580() == 1) {
		cs2method_20162(new function<none>() {
		}, "", new WidgetPointer(a3));
		cs2method_10467(1, a0);
		cs2method_10467(1, a3);
	}
	if (cs2method_10133() > a1) {
		a2 = cs2method_10060(a2, 1);
		if (a2 > 7) {
			a2 = 0;
		}
		switch (a2) {
			case 0:
				cs2method_10758(19207, a0);
				break;
			case 1:
				cs2method_10758(19208, a0);
				break;
			case 2:
				cs2method_10758(19209, a0);
				break;
			case 3:
				cs2method_10758(19210, a0);
				break;
			case 4:
				cs2method_10758(19211, a0);
				break;
			case 5:
				cs2method_10758(19212, a0);
				break;
			case 6:
				cs2method_10758(19213, a0);
				break;
			case 7:
				cs2method_10758(19214, a0);
		}
		a1 = cs2method_10060(cs2method_10133(), 20);
	}
	cs2method_10026(a3, (string)cs2method_10379(cs2method_10661()) + "%");
	if (cs2method_10661() == 100) {
		cs2method_20162(new function<none>() {
		}, "", new WidgetPointer(a3));
		cs2method_10467(1, a0);
		cs2method_10467(1, a3);
	} else {
		cs2method_20162(load function<7929>, new WidgetPointer(a0), new WidgetPointer(a3), a2, a1, "IIii", new WidgetPointer(a3));
	}
	return;
}
