/* Class169_Sub2_Sub3_Sub2 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import jagdx.IDirect3DDevice;
import jagdx.IUnknown;

public class Class169_Sub2_Sub3_Sub2 extends Class169_Sub2_Sub3
{
    Interface26 anInterface26_11079 = null;
    Class87_Sub2_Sub1 aClass87_Sub2_Sub1_11080;
    static final int anInt11081 = 16;
    int anInt11082;
    int anInt11083;
    int anInt11084;
    boolean aBool11085;
    Interface28[] anInterface28Array11086 = new Interface28[4];
    
    public int method3836() {
	return ((Class169_Sub2_Sub3_Sub2) this).anInt11082;
    }
    
    public int method3825() {
	return ((Class169_Sub2_Sub3_Sub2) this).anInt11082;
    }
    
    void method17594() {
	if (((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 != null)
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079.method176();
	for (int i = 0; i < (((Class169_Sub2_Sub3_Sub2) this)
			     .anInterface28Array11086).length; i++) {
	    if (((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		!= null)
		((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		    .method176();
	}
    }
    
    public void method15848(Interface4 interface4) {
	Interface26 interface26 = (Interface26) interface4;
	if (interface4 != null) {
	    if (((Class169_Sub2_Sub3_Sub2) this).anInt11083 != 0) {
		if ((((Class169_Sub2_Sub3_Sub2) this).anInt11084
		     != interface26.method28())
		    || (((Class169_Sub2_Sub3_Sub2) this).anInt11082
			!= interface26.method26()))
		    throw new RuntimeException();
	    } else {
		((Class169_Sub2_Sub3_Sub2) this).anInt11082
		    = interface26.method26();
		((Class169_Sub2_Sub3_Sub2) this).anInt11084
		    = interface26.method28();
		method16889();
	    }
	    ((Class169_Sub2_Sub3_Sub2) this).anInt11083 |= 0x10;
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 = interface26;
	    if (((Class169_Sub2_Sub3_Sub2) this).aBool11085)
		method17595(interface26.method179());
	} else {
	    ((Class169_Sub2_Sub3_Sub2) this).anInt11083 &= ~0x10;
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 = null;
	    if (((Class169_Sub2_Sub3_Sub2) this).aBool11085)
		method17595(0L);
	    if (((Class169_Sub2_Sub3_Sub2) this).anInt11083 == 0) {
		((Class169_Sub2_Sub3_Sub2) this).anInt11082 = 0;
		((Class169_Sub2_Sub3_Sub2) this).anInt11084 = 0;
	    }
	}
    }
    
    public void method15850(int i, Interface5 interface5) {
	int i_0_ = 1 << i;
	Interface28 interface28 = (Interface28) interface5;
	if (interface5 != null) {
	    if (((Class169_Sub2_Sub3_Sub2) this).anInt11083 != 0) {
		if ((((Class169_Sub2_Sub3_Sub2) this).anInt11084
		     != interface28.method28())
		    || (((Class169_Sub2_Sub3_Sub2) this).anInt11082
			!= interface28.method26()))
		    throw new RuntimeException();
	    } else {
		((Class169_Sub2_Sub3_Sub2) this).anInt11082
		    = interface28.method26();
		((Class169_Sub2_Sub3_Sub2) this).anInt11084
		    = interface28.method28();
		method16889();
	    }
	    ((Class169_Sub2_Sub3_Sub2) this).anInt11083 |= i_0_;
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		= interface28;
	    if (((Class169_Sub2_Sub3_Sub2) this).aBool11085)
		method17597(i, interface28.method179());
	} else {
	    ((Class169_Sub2_Sub3_Sub2) this).anInt11083 &= i_0_ ^ 0xffffffff;
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i] = null;
	    if (((Class169_Sub2_Sub3_Sub2) this).aBool11085)
		method17597(i, 0L);
	    if (((Class169_Sub2_Sub3_Sub2) this).anInt11083 == 0) {
		((Class169_Sub2_Sub3_Sub2) this).anInt11082 = 0;
		((Class169_Sub2_Sub3_Sub2) this).anInt11084 = 0;
	    }
	}
    }
    
    boolean method17595(long l) {
	return Class31.method992(IDirect3DDevice.SetDepthStencilSurface
				 (((Class87_Sub2_Sub1)
				   (((Class169_Sub2_Sub3_Sub2) this)
				    .aClass87_Sub2_Sub1_11080)).aLong10888,
				  l));
    }
    
    void method17596() throws Throwable {
	method17594();
	super.finalize();
    }
    
    public int method3831() {
	return ((Class169_Sub2_Sub3_Sub2) this).anInt11082;
    }
    
    public boolean method15851() {
	return (((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[0]
		!= null);
    }
    
    boolean method3828() {
	for (int i = 1; i < 4; i++) {
	    Interface28 interface28
		= ((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i];
	    if (interface28 != null)
		method17597(i, 0L);
	}
	if (((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 != null)
	    method17595(0L);
	((Class169_Sub2_Sub3_Sub2) this).aBool11085 = false;
	return true;
    }
    
    public void method15852(int i, int i_1_, int i_2_, int i_3_, int i_4_,
			    int i_5_, boolean bool, boolean bool_6_) {
	if (bool) {
	    long l = (IDirect3DDevice.GetRenderTarget
		      ((((Class87_Sub2_Sub1) (((Class169_Sub2_Sub3_Sub2) this)
					      .aClass87_Sub2_Sub1_11080))
			.aLong10888),
		       0));
	    IDirect3DDevice.StretchRect((((Class87_Sub2_Sub1)
					  (((Class169_Sub2_Sub3_Sub2) this)
					   .aClass87_Sub2_Sub1_11080))
					 .aLong10888),
					((Class169_Sub2_Sub3_Sub2) this)
					    .anInterface28Array11086[0]
					    .method179(),
					i, i_1_, i_2_, i_3_, l, i_4_, i_5_,
					i_2_, i_3_, 0);
	    IUnknown.Release(l);
	}
    }
    
    public void method23() {
	if (((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 != null)
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079.method23();
	for (int i = 0; i < (((Class169_Sub2_Sub3_Sub2) this)
			     .anInterface28Array11086).length; i++) {
	    if (((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		!= null)
		((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		    .method23();
	}
    }
    
    public int method3829() {
	return ((Class169_Sub2_Sub3_Sub2) this).anInt11084;
    }
    
    boolean method17597(int i, long l) {
	return Class31.method992(IDirect3DDevice.SetRenderTarget
				 (((Class87_Sub2_Sub1)
				   (((Class169_Sub2_Sub3_Sub2) this)
				    .aClass87_Sub2_Sub1_11080)).aLong10888,
				  i, l));
    }
    
    public int method3826() {
	return ((Class169_Sub2_Sub3_Sub2) this).anInt11084;
    }
    
    public int method3830() {
	return ((Class169_Sub2_Sub3_Sub2) this).anInt11084;
    }
    
    public int method3827() {
	return ((Class169_Sub2_Sub3_Sub2) this).anInt11082;
    }
    
    public void method15857(Interface4 interface4) {
	Interface26 interface26 = (Interface26) interface4;
	if (interface4 != null) {
	    if (((Class169_Sub2_Sub3_Sub2) this).anInt11083 != 0) {
		if ((((Class169_Sub2_Sub3_Sub2) this).anInt11084
		     != interface26.method28())
		    || (((Class169_Sub2_Sub3_Sub2) this).anInt11082
			!= interface26.method26()))
		    throw new RuntimeException();
	    } else {
		((Class169_Sub2_Sub3_Sub2) this).anInt11082
		    = interface26.method26();
		((Class169_Sub2_Sub3_Sub2) this).anInt11084
		    = interface26.method28();
		method16889();
	    }
	    ((Class169_Sub2_Sub3_Sub2) this).anInt11083 |= 0x10;
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 = interface26;
	    if (((Class169_Sub2_Sub3_Sub2) this).aBool11085)
		method17595(interface26.method179());
	} else {
	    ((Class169_Sub2_Sub3_Sub2) this).anInt11083 &= ~0x10;
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 = null;
	    if (((Class169_Sub2_Sub3_Sub2) this).aBool11085)
		method17595(0L);
	    if (((Class169_Sub2_Sub3_Sub2) this).anInt11083 == 0) {
		((Class169_Sub2_Sub3_Sub2) this).anInt11082 = 0;
		((Class169_Sub2_Sub3_Sub2) this).anInt11084 = 0;
	    }
	}
    }
    
    public int method3835() {
	return ((Class169_Sub2_Sub3_Sub2) this).anInt11082;
    }
    
    boolean method171() {
	for (int i = 0; i < 4; i++) {
	    Interface28 interface28
		= ((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i];
	    if (interface28 != null) {
		long l = interface28.method179();
		method17597(i, l);
	    }
	}
	if (((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 != null)
	    method17595(((Class169_Sub2_Sub3_Sub2) this)
			    .anInterface26_11079.method179());
	((Class169_Sub2_Sub3_Sub2) this).aBool11085 = true;
	return super.method171();
    }
    
    public void method15853(int i, Interface5 interface5) {
	int i_7_ = 1 << i;
	Interface28 interface28 = (Interface28) interface5;
	if (interface5 != null) {
	    if (((Class169_Sub2_Sub3_Sub2) this).anInt11083 != 0) {
		if ((((Class169_Sub2_Sub3_Sub2) this).anInt11084
		     != interface28.method28())
		    || (((Class169_Sub2_Sub3_Sub2) this).anInt11082
			!= interface28.method26()))
		    throw new RuntimeException();
	    } else {
		((Class169_Sub2_Sub3_Sub2) this).anInt11082
		    = interface28.method26();
		((Class169_Sub2_Sub3_Sub2) this).anInt11084
		    = interface28.method28();
		method16889();
	    }
	    ((Class169_Sub2_Sub3_Sub2) this).anInt11083 |= i_7_;
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		= interface28;
	    if (((Class169_Sub2_Sub3_Sub2) this).aBool11085)
		method17597(i, interface28.method179());
	} else {
	    ((Class169_Sub2_Sub3_Sub2) this).anInt11083 &= i_7_ ^ 0xffffffff;
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i] = null;
	    if (((Class169_Sub2_Sub3_Sub2) this).aBool11085)
		method17597(i, 0L);
	    if (((Class169_Sub2_Sub3_Sub2) this).anInt11083 == 0) {
		((Class169_Sub2_Sub3_Sub2) this).anInt11082 = 0;
		((Class169_Sub2_Sub3_Sub2) this).anInt11084 = 0;
	    }
	}
    }
    
    public void method15854(Interface4 interface4) {
	Interface26 interface26 = (Interface26) interface4;
	if (interface4 != null) {
	    if (((Class169_Sub2_Sub3_Sub2) this).anInt11083 != 0) {
		if ((((Class169_Sub2_Sub3_Sub2) this).anInt11084
		     != interface26.method28())
		    || (((Class169_Sub2_Sub3_Sub2) this).anInt11082
			!= interface26.method26()))
		    throw new RuntimeException();
	    } else {
		((Class169_Sub2_Sub3_Sub2) this).anInt11082
		    = interface26.method26();
		((Class169_Sub2_Sub3_Sub2) this).anInt11084
		    = interface26.method28();
		method16889();
	    }
	    ((Class169_Sub2_Sub3_Sub2) this).anInt11083 |= 0x10;
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 = interface26;
	    if (((Class169_Sub2_Sub3_Sub2) this).aBool11085)
		method17595(interface26.method179());
	} else {
	    ((Class169_Sub2_Sub3_Sub2) this).anInt11083 &= ~0x10;
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 = null;
	    if (((Class169_Sub2_Sub3_Sub2) this).aBool11085)
		method17595(0L);
	    if (((Class169_Sub2_Sub3_Sub2) this).anInt11083 == 0) {
		((Class169_Sub2_Sub3_Sub2) this).anInt11082 = 0;
		((Class169_Sub2_Sub3_Sub2) this).anInt11084 = 0;
	    }
	}
    }
    
    public void finalize() throws Throwable {
	method17594();
	super.finalize();
    }
    
    boolean method3832() {
	for (int i = 1; i < 4; i++) {
	    Interface28 interface28
		= ((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i];
	    if (interface28 != null)
		method17597(i, 0L);
	}
	if (((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 != null)
	    method17595(0L);
	((Class169_Sub2_Sub3_Sub2) this).aBool11085 = false;
	return true;
    }
    
    boolean method3833() {
	for (int i = 1; i < 4; i++) {
	    Interface28 interface28
		= ((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i];
	    if (interface28 != null)
		method17597(i, 0L);
	}
	if (((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 != null)
	    method17595(0L);
	((Class169_Sub2_Sub3_Sub2) this).aBool11085 = false;
	return true;
    }
    
    boolean method3834() {
	for (int i = 1; i < 4; i++) {
	    Interface28 interface28
		= ((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i];
	    if (interface28 != null)
		method17597(i, 0L);
	}
	if (((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 != null)
	    method17595(0L);
	((Class169_Sub2_Sub3_Sub2) this).aBool11085 = false;
	return true;
    }
    
    public void method15849(int i, int i_8_, int i_9_, int i_10_, int i_11_,
			    int i_12_, boolean bool, boolean bool_13_) {
	if (bool) {
	    long l = (IDirect3DDevice.GetRenderTarget
		      ((((Class87_Sub2_Sub1) (((Class169_Sub2_Sub3_Sub2) this)
					      .aClass87_Sub2_Sub1_11080))
			.aLong10888),
		       0));
	    IDirect3DDevice.StretchRect((((Class87_Sub2_Sub1)
					  (((Class169_Sub2_Sub3_Sub2) this)
					   .aClass87_Sub2_Sub1_11080))
					 .aLong10888),
					((Class169_Sub2_Sub3_Sub2) this)
					    .anInterface28Array11086[0]
					    .method179(),
					i, i_8_, i_9_, i_10_, l, i_11_, i_12_,
					i_9_, i_10_, 0);
	    IUnknown.Release(l);
	}
    }
    
    public void method15856(int i, int i_14_, int i_15_, int i_16_, int i_17_,
			    int i_18_, boolean bool, boolean bool_19_) {
	if (bool) {
	    long l = (IDirect3DDevice.GetRenderTarget
		      ((((Class87_Sub2_Sub1) (((Class169_Sub2_Sub3_Sub2) this)
					      .aClass87_Sub2_Sub1_11080))
			.aLong10888),
		       0));
	    IDirect3DDevice.StretchRect((((Class87_Sub2_Sub1)
					  (((Class169_Sub2_Sub3_Sub2) this)
					   .aClass87_Sub2_Sub1_11080))
					 .aLong10888),
					((Class169_Sub2_Sub3_Sub2) this)
					    .anInterface28Array11086[0]
					    .method179(),
					i, i_14_, i_15_, i_16_, l, i_17_,
					i_18_, i_15_, i_16_, 0);
	    IUnknown.Release(l);
	}
    }
    
    public void method37() {
	if (((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 != null)
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079.method23();
	for (int i = 0; i < (((Class169_Sub2_Sub3_Sub2) this)
			     .anInterface28Array11086).length; i++) {
	    if (((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		!= null)
		((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		    .method23();
	}
    }
    
    void method17598() {
	if (((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 != null)
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079.method176();
	for (int i = 0; i < (((Class169_Sub2_Sub3_Sub2) this)
			     .anInterface28Array11086).length; i++) {
	    if (((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		!= null)
		((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		    .method176();
	}
    }
    
    public boolean method15858() {
	return (((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[0]
		!= null);
    }
    
    boolean method172() {
	for (int i = 0; i < 4; i++) {
	    Interface28 interface28
		= ((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i];
	    if (interface28 != null) {
		long l = interface28.method179();
		method17597(i, l);
	    }
	}
	if (((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 != null)
	    method17595(((Class169_Sub2_Sub3_Sub2) this)
			    .anInterface26_11079.method179());
	((Class169_Sub2_Sub3_Sub2) this).aBool11085 = true;
	return super.method171();
    }
    
    Class169_Sub2_Sub3_Sub2(Class87_Sub2_Sub1 class87_sub2_sub1) {
	super((Class87_Sub2) class87_sub2_sub1);
	((Class169_Sub2_Sub3_Sub2) this).aClass87_Sub2_Sub1_11080
	    = class87_sub2_sub1;
    }
    
    public boolean method15855() {
	return (((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[0]
		!= null);
    }
    
    public void method170() {
	if (((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 != null)
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079.method23();
	for (int i = 0; i < (((Class169_Sub2_Sub3_Sub2) this)
			     .anInterface28Array11086).length; i++) {
	    if (((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		!= null)
		((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		    .method23();
	}
    }
    
    public boolean method15859() {
	return (((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[0]
		!= null);
    }
    
    boolean method17599(int i, long l) {
	return Class31.method992(IDirect3DDevice.SetRenderTarget
				 (((Class87_Sub2_Sub1)
				   (((Class169_Sub2_Sub3_Sub2) this)
				    .aClass87_Sub2_Sub1_11080)).aLong10888,
				  i, l));
    }
    
    boolean method17600(long l) {
	return Class31.method992(IDirect3DDevice.SetDepthStencilSurface
				 (((Class87_Sub2_Sub1)
				   (((Class169_Sub2_Sub3_Sub2) this)
				    .aClass87_Sub2_Sub1_11080)).aLong10888,
				  l));
    }
    
    public void method173() {
	if (((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079 != null)
	    ((Class169_Sub2_Sub3_Sub2) this).anInterface26_11079.method23();
	for (int i = 0; i < (((Class169_Sub2_Sub3_Sub2) this)
			     .anInterface28Array11086).length; i++) {
	    if (((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		!= null)
		((Class169_Sub2_Sub3_Sub2) this).anInterface28Array11086[i]
		    .method23();
	}
    }
}
