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


void script_7104(int a0,int a1,int a2) {
	if (a1 == -1) {
		return;
	}
	int v1 = cs2method_10968(25, 3);
	int v0 = cs2method_10968(255, v1);
	int v2 = cs2method_10133();
	if (cs2method_11038(a1, cs2method_10461(cs2method_10163(a1), 1)) == 1) {
		if (cs2method_10461(v2, a2) <= v1) {
			cs2method_10002(cs2method_11048(0, cs2method_10872(255, cs2method_10051(cs2method_10461(v2, a2), v0))));
		} else if (cs2method_10461(a0, v2) <= v1) {
			if (v2 >= a0) {
				cs2method_10002(0);
				cs2method_20162(new function<none>() {
				}, "", new WidgetPointer(a1));
				return;
			}
			cs2method_10002(cs2method_11048(0, cs2method_10872(255, cs2method_10051(cs2method_10461(a0, v2), v0))));
		} else {
			cs2method_10002(255);
		}
	} else {
		cs2method_20162(new function<none>() {
		}, "", new WidgetPointer(a1));
	}
	return;
}
