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


void script_4342(int a0,int a1,int a2,int a3,int a4) {
	object v4;
	object v0;
	object v6;
	object v5;
	object v1 = "";
	object v7 = "";
	if (cs2method_10038(cs2method_10133(), 3000) == 0) {
		int v2 = cs2method_10060(a3, 1);
		if (v2 >= 60) {
			v2 = 0;
			a0 = cs2method_10060(a0, 1);
			if (a0 >= 24) {
				a0 = 0;
			}
		}
		if (a0 < 10) {
			v5 = "0" + (string)cs2method_10379(a0);
		} else {
			v5 = cs2method_10379(a0);
		}
		if (v2 < 10) {
			v0 = "0" + (string)cs2method_10379(v2);
		} else {
			v0 = cs2method_10379(v2);
		}
		cs2method_10026(a4, (string)v5 + ":" + (string)v0);
		cs2method_20162(load function<4342>, a0, v2, a1, new WidgetPointer(a4), new WidgetPointer(a2), "iiiII", new WidgetPointer(a4));
		int v13 = a1;
		int v9 = a0;
		int v11 = v2;
		script_4341_struct(0,2,0) v14 = script_4341(v13, v9, v11);
		object v10 = v14.objectpart_1;
		object v12 = v14.objectpart_0;
		cs2method_10026(a2, (string)v12 + ":" + (string)v10);
	} else {
		if (cs2method_10038(cs2method_10133(), 50) == 0) {
			if (a0 < 10) {
				v6 = "0" + (string)cs2method_10379(a0);
			} else {
				v6 = cs2method_10379(a0);
			}
			if (a3 < 10) {
				v4 = "0" + (string)cs2method_10379(a3);
			} else {
				v4 = cs2method_10379(a3);
			}
			if (cs2method_10038(cs2method_10133(), 100) == 0) {
				cs2method_10026(a4, (string)v6 + ":" + (string)v4);
			} else {
				cs2method_10026(a4, (string)v6 + " " + (string)v4);
			}
			int v9 = a1;
			int v11 = a0;
			int v10 = a3;
			script_4341_struct(0,2,0) v12 = script_4341(v9, v11, v10);
			object v3 = v12.objectpart_1;
			object v8 = v12.objectpart_0;
			if (cs2method_10038(cs2method_10133(), 100) == 0) {
				cs2method_10026(a2, (string)v8 + ":" + (string)v3);
			} else {
				cs2method_10026(a2, (string)v8 + " " + (string)v3);
			}
		}
	}
	return;
}
