#include <openb3d.mod/b3dglgraphics.mod/.bmx/b3dglgraphics.bmx.debug.win32.x64.h>
struct BBString_7{BBClass_String* clas;BBULONG hash;int length;BBChar buf[7];};
struct BBString_9{BBClass_String* clas;BBULONG hash;int length;BBChar buf[9];};
struct BBString_8{BBClass_String* clas;BBULONG hash;int length;BBChar buf[8];};
struct BBString_1{BBClass_String* clas;BBULONG hash;int length;BBChar buf[1];};
struct BBString_23{BBClass_String* clas;BBULONG hash;int length;BBChar buf[23];};
struct BBString_15{BBClass_String* clas;BBULONG hash;int length;BBChar buf[15];};
struct BBString_13{BBClass_String* clas;BBULONG hash;int length;BBChar buf[13];};
struct BBString_14{BBClass_String* clas;BBULONG hash;int length;BBChar buf[14];};
struct BBString_6{BBClass_String* clas;BBULONG hash;int length;BBChar buf[6];};
struct BBString_28{BBClass_String* clas;BBULONG hash;int length;BBChar buf[28];};
struct BBString_10{BBClass_String* clas;BBULONG hash;int length;BBChar buf[10];};
struct BBString_21{BBClass_String* clas;BBULONG hash;int length;BBChar buf[21];};
struct BBString_4{BBClass_String* clas;BBULONG hash;int length;BBChar buf[4];};
struct BBString_5{BBClass_String* clas;BBULONG hash;int length;BBChar buf[5];};
struct BBString_11{BBClass_String* clas;BBULONG hash;int length;BBChar buf[11];};
struct BBString_12{BBClass_String* clas;BBULONG hash;int length;BBChar buf[12];};
struct BBString_3{BBClass_String* clas;BBULONG hash;int length;BBChar buf[3];};
static struct BBString_7 _s32={
	&bbStringClass,
	0x421218e40b7972b2,
	7,
	{32,66,114,117,115,104,58}
};
static struct BBString_9 _s10={
	&bbStringClass,
	0x64ee46459dfa8fc9,
	9,
	{46,32,67,108,97,115,115,58,32}
};
static struct BBString_8 _s9={
	&bbStringClass,
	0xcefedd1efa595a35,
	8,
	{46,32,78,97,109,101,58,32}
};
static struct BBString_1 _s8={
	&bbStringClass,
	0x93db4e2578382cd,
	1,
	{47}
};
static struct BBString_23 _s13={
	&bbStringClass,
	0x70201055846531b6,
	23,
	{49,46,32,69,110,116,105,116,121,32,80,111,115,105,116,105,111
	,110,32,73,110,102,111}
};
static struct BBString_15 _s22={
	&bbStringClass,
	0x57b09f6c2ff5f2f,
	15,
	{50,46,32,83,117,114,102,97,99,101,32,73,110,102,111}
};
static struct BBString_13 _s31={
	&bbStringClass,
	0x43f0afe0b4e22166,
	13,
	{51,46,32,66,114,117,115,104,32,73,110,102,111}
};
static struct BBString_14 _s54={
	&bbStringClass,
	0x9fb3e2e8e7758676,
	14,
	{51,46,32,67,97,109,101,114,97,32,73,110,102,111}
};
static struct BBString_15 _s26={
	&bbStringClass,
	0xd0dc4aa7a44f5d32,
	15,
	{65,108,112,104,97,32,69,110,97,98,108,101,100,58,32}
};
static struct BBString_7 _s37={
	&bbStringClass,
	0xf4c459f0a7c6b07c,
	7,
	{65,108,112,104,97,58,32}
};
static struct BBString_7 _s38={
	&bbStringClass,
	0x4aa48a385fba158d,
	7,
	{66,108,101,110,100,58,32}
};
static struct BBString_6 _s36={
	&bbStringClass,
	0x5151ddf1271840e6,
	6,
	{66,108,117,101,58,32}
};
static struct BBString_7 _s6={
	&bbStringClass,
	0x1d7e41a0e4b37356,
	7,
	{66,111,110,101,115,58,32}
};
static struct BBString_28 _s56={
	&bbStringClass,
	0xbc2f673dcc094750,
	28,
	{67,97,109,101,114,97,32,101,110,116,105,116,121,32,110,111,116
	,32,115,112,101,99,105,102,105,101,100,33}
};
static struct BBString_9 _s1={
	&bbStringClass,
	0xf17e02289ca816da,
	9,
	{67,97,109,101,114,97,115,58,32}
};
static struct BBString_10 _s0={
	&bbStringClass,
	0xcf11d357eb93d14e,
	10,
	{69,110,116,105,116,105,101,115,58,32}
};
static struct BBString_13 _s53={
	&bbStringClass,
	0xbfcf523694bb2a8a,
	13,
	{69,110,116,105,116,121,32,66,114,117,115,104,58}
};
static struct BBString_21 _s30={
	&bbStringClass,
	0x12e82812df94ff45,
	21,
	{69,110,116,105,116,121,32,105,115,32,110,111,116,32,97,32,109
	,101,115,104,33}
};
static struct BBString_8 _s7={
	&bbStringClass,
	0x169688002c1a0dd4,
	8,
	{69,110,116,105,116,121,58,32}
};
static struct BBString_14 _s55={
	&bbStringClass,
	0x63427e533f9cb9d2,
	14,
	{69,110,116,105,116,121,73,110,86,105,101,119,58,32}
};
static struct BBString_4 _s39={
	&bbStringClass,
	0xcce40449cfcce686,
	4,
	{70,88,58,32}
};
static struct BBString_7 _s14={
	&bbStringClass,
	0x9e1019fc10e4ca2,
	7,
	{71,108,111,98,97,108,58}
};
static struct BBString_7 _s35={
	&bbStringClass,
	0x1c2676ff25c4e4a9,
	7,
	{71,114,101,101,110,58,32}
};
static struct BBString_8 _s2={
	&bbStringClass,
	0xbdbfdedc318fbbae,
	8,
	{76,105,103,104,116,115,58,32}
};
static struct BBString_6 _s21={
	&bbStringClass,
	0x82f91699e1e509f0,
	6,
	{76,111,99,97,108,58}
};
static struct BBString_8 _s4={
	&bbStringClass,
	0x5400a2d3541e8c8f,
	8,
	{77,101,115,104,101,115,58,32}
};
static struct BBString_6 _s33={
	&bbStringClass,
	0x22315ab6f3e05c9c,
	6,
	{78,97,109,101,58,32}
};
static struct BBString_8 _s52={
	&bbStringClass,
	0x35b583f4e22373d1,
	8,
	{78,111,32,98,114,117,115,104}
};
static struct BBString_10 _s29={
	&bbStringClass,
	0x3c4f87bc493144de,
	10,
	{78,111,32,115,117,114,102,97,99,101}
};
static struct BBString_1 _s12={
	&bbStringClass,
	0xe8b1a19dc18ffe04,
	1,
	{79}
};
static struct BBString_7 _s18={
	&bbStringClass,
	0x3fc0cb479990751b,
	7,
	{80,105,116,99,104,58,32}
};
static struct BBString_8 _s3={
	&bbStringClass,
	0x33dbc2432275729f,
	8,
	{80,105,118,111,116,115,58,32}
};
static struct BBString_5 _s34={
	&bbStringClass,
	0x59c505022e4a2e39,
	5,
	{82,101,100,58,32}
};
static struct BBString_6 _s20={
	&bbStringClass,
	0xb758c73c4467e6b,
	6,
	{82,111,108,108,58,32}
};
static struct BBString_9 _s5={
	&bbStringClass,
	0x7c3ec99d7181eee8,
	9,
	{83,112,114,105,116,101,115,58,32}
};
static struct BBString_11 _s28={
	&bbStringClass,
	0x4f488cbb80f7c105,
	11,
	{83,117,114,102,32,86,109,97,120,58,32}
};
static struct BBString_11 _s27={
	&bbStringClass,
	0x1c706058499d23b9,
	11,
	{83,117,114,102,32,86,109,105,110,58,32}
};
static struct BBString_8 _s23={
	&bbStringClass,
	0x18e12bae00c33453,
	8,
	{83,117,114,102,97,99,101,32}
};
static struct BBString_12 _s42={
	&bbStringClass,
	0xd4fc706860cb4bc1,
	12,
	{84,101,120,48,32,66,108,101,110,100,58,32}
};
static struct BBString_12 _s41={
	&bbStringClass,
	0xa32a81089ca6f78c,
	12,
	{84,101,120,48,32,70,108,97,103,115,58,32}
};
static struct BBString_11 _s40={
	&bbStringClass,
	0x141cda1d8743bb7c,
	11,
	{84,101,120,48,32,78,97,109,101,58,32}
};
static struct BBString_12 _s45={
	&bbStringClass,
	0x2dd967d2c4b2776f,
	12,
	{84,101,120,49,32,66,108,101,110,100,58,32}
};
static struct BBString_12 _s44={
	&bbStringClass,
	0x9127f46de56f86cb,
	12,
	{84,101,120,49,32,70,108,97,103,115,58,32}
};
static struct BBString_11 _s43={
	&bbStringClass,
	0x135fd927c09d604e,
	11,
	{84,101,120,49,32,78,97,109,101,58,32}
};
static struct BBString_12 _s48={
	&bbStringClass,
	0x4c7ca188f1f24ee4,
	12,
	{84,101,120,50,32,66,108,101,110,100,58,32}
};
static struct BBString_12 _s47={
	&bbStringClass,
	0xdce73c92c1035a6b,
	12,
	{84,101,120,50,32,70,108,97,103,115,58,32}
};
static struct BBString_11 _s46={
	&bbStringClass,
	0x3c4c1ff43bb24529,
	11,
	{84,101,120,50,32,78,97,109,101,58,32}
};
static struct BBString_12 _s51={
	&bbStringClass,
	0xb1748b690d4275a1,
	12,
	{84,101,120,51,32,66,108,101,110,100,58,32}
};
static struct BBString_12 _s50={
	&bbStringClass,
	0x8160b4bd0167d7a8,
	12,
	{84,101,120,51,32,70,108,97,103,115,58,32}
};
static struct BBString_11 _s49={
	&bbStringClass,
	0xbbc05199e79dd898,
	11,
	{84,101,120,51,32,78,97,109,101,58,32}
};
static struct BBString_11 _s25={
	&bbStringClass,
	0xac8132b65cab9a7f,
	11,
	{84,114,105,97,110,103,108,101,115,58,32}
};
static struct BBString_10 _s24={
	&bbStringClass,
	0x822fbd382e7f9876,
	10,
	{86,101,114,116,105,99,101,115,58,32}
};
static struct BBString_1 _s11={
	&bbStringClass,
	0x2287aeeecb0da086,
	1,
	{88}
};
static struct BBString_3 _s15={
	&bbStringClass,
	0x3124896fa0eb6db2,
	3,
	{88,58,32}
};
static struct BBString_3 _s16={
	&bbStringClass,
	0x18600cdb5fbe0242,
	3,
	{89,58,32}
};
static struct BBString_5 _s19={
	&bbStringClass,
	0xc9931a82f6eacb60,
	5,
	{89,97,119,58,32}
};
static struct BBString_3 _s17={
	&bbStringClass,
	0x8c20dfb654047aee,
	3,
	{90,58,32}
};
struct BBDebugScope_1{int kind; const char *name; BBDebugDecl decls[2]; };
struct BBDebugScope_18{int kind; const char *name; BBDebugDecl decls[19]; };
struct BBDebugScope_2{int kind; const char *name; BBDebugDecl decls[3]; };
struct BBDebugScope_3{int kind; const char *name; BBDebugDecl decls[4]; };
struct BBDebugScope_4{int kind; const char *name; BBDebugDecl decls[5]; };
struct BBDebugScope_5{int kind; const char *name; BBDebugDecl decls[6]; };
struct BBDebugScope_6{int kind; const char *name; BBDebugDecl decls[7]; };
struct BBDebugScope_7{int kind; const char *name; BBDebugDecl decls[8]; };
struct BBDebugScope_8{int kind; const char *name; BBDebugDecl decls[9]; };
struct BBDebugScope_9{int kind; const char *name; BBDebugDecl decls[10]; };
void _openb3d_b3dglgraphics_TDebug_New(struct openb3d_b3dglgraphics_TDebug_obj* o) {
	bbObjectCtor((BBOBJECT)o);
	o->clas = &openb3d_b3dglgraphics_TDebug;
}
void openb3d_b3dglgraphics_TDebug_DebugWorld_v(){
	BBINT bbt_no_ents=0;
	BBINT bbt_no_cams=0;
	BBINT bbt_no_lights=0;
	BBINT bbt_no_pivs=0;
	BBINT bbt_no_meshes=0;
	BBINT bbt_no_sprites=0;
	BBINT bbt_no_bones=0;
	struct BBDebugScope_7 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"DebugWorld",
		{
			{
				BBDEBUGDECL_LOCAL,
				"no_ents",
				"i",
				.var_address=&bbt_no_ents
			},
			{
				BBDEBUGDECL_LOCAL,
				"no_cams",
				"i",
				.var_address=&bbt_no_cams
			},
			{
				BBDEBUGDECL_LOCAL,
				"no_lights",
				"i",
				.var_address=&bbt_no_lights
			},
			{
				BBDEBUGDECL_LOCAL,
				"no_pivs",
				"i",
				.var_address=&bbt_no_pivs
			},
			{
				BBDEBUGDECL_LOCAL,
				"no_meshes",
				"i",
				.var_address=&bbt_no_meshes
			},
			{
				BBDEBUGDECL_LOCAL,
				"no_sprites",
				"i",
				.var_address=&bbt_no_sprites
			},
			{
				BBDEBUGDECL_LOCAL,
				"no_bones",
				"i",
				.var_address=&bbt_no_bones
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 24, 0};
	bbOnDebugEnterStm(&__stmt_0);
	bbt_no_ents=0;
	struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 25, 0};
	bbOnDebugEnterStm(&__stmt_1);
	bbt_no_cams=0;
	struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 26, 0};
	bbOnDebugEnterStm(&__stmt_2);
	bbt_no_lights=0;
	struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 27, 0};
	bbOnDebugEnterStm(&__stmt_3);
	bbt_no_pivs=0;
	struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 28, 0};
	bbOnDebugEnterStm(&__stmt_4);
	bbt_no_meshes=0;
	struct BBDebugStm __stmt_5 = {0x9c699af810b447e, 29, 0};
	bbOnDebugEnterStm(&__stmt_5);
	bbt_no_sprites=0;
	struct BBDebugStm __stmt_6 = {0x9c699af810b447e, 30, 0};
	bbOnDebugEnterStm(&__stmt_6);
	bbt_no_bones=0;
	struct BBDebugStm __stmt_7 = {0x9c699af810b447e, 32, 0};
	bbOnDebugEnterStm(&__stmt_7);
	struct brl_linkedlist_TListEnum_obj* bbt_=(struct brl_linkedlist_TListEnum_obj*)((struct brl_linkedlist_TList_obj*)bbNullObjectTest((BBObject*)openb3d_openb3dcore_TEntity_entity_list))->clas->m_ObjectEnumerator((struct brl_linkedlist_TList_obj*)openb3d_openb3dcore_TEntity_entity_list);
	while(((struct brl_linkedlist_TListEnum_obj*)bbNullObjectTest((BBObject*)bbt_))->clas->m_HasNext((struct brl_linkedlist_TListEnum_obj*)bbt_)!=0){
		struct openb3d_openb3dcore_TEntity_obj* bbt_ent=(struct openb3d_openb3dcore_TEntity_obj*)((struct openb3d_openb3dcore_TEntity_obj*)&bbNullObject);
		struct BBDebugScope_1 __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_LOCAL,
					"ent",
					":TEntity",
					.var_address=&bbt_ent
				},
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		bbt_ent=(struct openb3d_openb3dcore_TEntity_obj*)((struct openb3d_openb3dcore_TEntity_obj*)bbObjectDowncast((BBOBJECT)((struct brl_linkedlist_TListEnum_obj*)bbNullObjectTest((BBObject*)bbt_))->clas->m_NextObject((struct brl_linkedlist_TListEnum_obj*)bbt_),(BBClass*)&openb3d_openb3dcore_TEntity));
		if(((BBOBJECT)bbt_ent)==&bbNullObject){
			bbOnDebugLeaveScope();
			continue;
		}
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 34, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_no_ents+=1;
		struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 36, 0};
		bbOnDebugEnterStm(&__stmt_1);
		if(((BBOBJECT)((struct openb3d_openb3dcore_TCamera_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TCamera)))!=&bbNullObject){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 36, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_no_cams+=1;
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 37, 0};
		bbOnDebugEnterStm(&__stmt_2);
		if(((BBOBJECT)((struct openb3d_openb3dcore_TLight_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TLight)))!=&bbNullObject){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 37, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_no_lights+=1;
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 38, 0};
		bbOnDebugEnterStm(&__stmt_3);
		if(((BBOBJECT)((struct openb3d_openb3dcore_TPivot_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TPivot)))!=&bbNullObject){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 38, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_no_pivs+=1;
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 39, 0};
		bbOnDebugEnterStm(&__stmt_4);
		if(((BBOBJECT)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh)))!=&bbNullObject){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 39, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_no_meshes+=1;
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_5 = {0x9c699af810b447e, 40, 0};
		bbOnDebugEnterStm(&__stmt_5);
		if(((BBOBJECT)((struct openb3d_openb3dcore_TSprite_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TSprite)))!=&bbNullObject){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 40, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_no_sprites+=1;
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_6 = {0x9c699af810b447e, 41, 0};
		bbOnDebugEnterStm(&__stmt_6);
		if(((BBOBJECT)((struct openb3d_openb3dcore_TBone_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TBone)))!=&bbNullObject){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 41, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_no_bones+=1;
			bbOnDebugLeaveScope();
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_8 = {0x9c699af810b447e, 45, 0};
	bbOnDebugEnterStm(&__stmt_8);
	openb3d_b3dglgraphics_Text(0,120,bbStringConcat(((BBString*)&_s0),bbStringFromInt(bbt_no_ents)));
	struct BBDebugStm __stmt_9 = {0x9c699af810b447e, 46, 0};
	bbOnDebugEnterStm(&__stmt_9);
	openb3d_b3dglgraphics_Text(0,140,bbStringConcat(((BBString*)&_s1),bbStringFromInt(bbt_no_cams)));
	struct BBDebugStm __stmt_10 = {0x9c699af810b447e, 47, 0};
	bbOnDebugEnterStm(&__stmt_10);
	openb3d_b3dglgraphics_Text(0,160,bbStringConcat(((BBString*)&_s2),bbStringFromInt(bbt_no_lights)));
	struct BBDebugStm __stmt_11 = {0x9c699af810b447e, 48, 0};
	bbOnDebugEnterStm(&__stmt_11);
	openb3d_b3dglgraphics_Text(0,180,bbStringConcat(((BBString*)&_s3),bbStringFromInt(bbt_no_pivs)));
	struct BBDebugStm __stmt_12 = {0x9c699af810b447e, 49, 0};
	bbOnDebugEnterStm(&__stmt_12);
	openb3d_b3dglgraphics_Text(0,200,bbStringConcat(((BBString*)&_s4),bbStringFromInt(bbt_no_meshes)));
	struct BBDebugStm __stmt_13 = {0x9c699af810b447e, 50, 0};
	bbOnDebugEnterStm(&__stmt_13);
	openb3d_b3dglgraphics_Text(0,220,bbStringConcat(((BBString*)&_s5),bbStringFromInt(bbt_no_sprites)));
	struct BBDebugStm __stmt_14 = {0x9c699af810b447e, 51, 0};
	bbOnDebugEnterStm(&__stmt_14);
	openb3d_b3dglgraphics_Text(0,240,bbStringConcat(((BBString*)&_s6),bbStringFromInt(bbt_no_bones)));
	bbOnDebugLeaveScope();
}
struct openb3d_openb3dcore_TEntity_obj* openb3d_b3dglgraphics_TDebug_DebugEntity_TTEntity_TTEntityTTCamera(struct openb3d_openb3dcore_TEntity_obj* bbt_ent,struct openb3d_openb3dcore_TCamera_obj* bbt_cam){
	BBINT bbt_no_children=0;
	struct openb3d_openb3dcore_TEntity_obj* bbt_old_cent=(struct openb3d_openb3dcore_TEntity_obj*)((struct openb3d_openb3dcore_TEntity_obj*)&bbNullObject);
	BBINT bbt_no_childs=0;
	struct openb3d_openb3dcore_TEntity_obj* bbt_cent=(struct openb3d_openb3dcore_TEntity_obj*)((struct openb3d_openb3dcore_TEntity_obj*)&bbNullObject);
	struct BBDebugScope_6 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"DebugEntity",
		{
			{
				BBDEBUGDECL_LOCAL,
				"ent",
				":TEntity",
				.var_address=&bbt_ent
			},
			{
				BBDEBUGDECL_LOCAL,
				"cam",
				":TCamera",
				.var_address=&bbt_cam
			},
			{
				BBDEBUGDECL_LOCAL,
				"no_children",
				"i",
				.var_address=&bbt_no_children
			},
			{
				BBDEBUGDECL_LOCAL,
				"old_cent",
				":TEntity",
				.var_address=&bbt_old_cent
			},
			{
				BBDEBUGDECL_LOCAL,
				"no_childs",
				"i",
				.var_address=&bbt_no_childs
			},
			{
				BBDEBUGDECL_LOCAL,
				"cent",
				":TEntity",
				.var_address=&bbt_cent
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 57, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(((BBOBJECT)bbt_ent)==&bbNullObject){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 57, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return (struct openb3d_openb3dcore_TEntity_obj*)&bbNullObject;
	}
	struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 59, 0};
	bbOnDebugEnterStm(&__stmt_1);
	bbt_no_children=0;
	struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 60, 0};
	bbOnDebugEnterStm(&__stmt_2);
	bbt_old_cent=(struct openb3d_openb3dcore_TEntity_obj*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_GetChildFromAll_iviTTEntity((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,openb3d_b3dglgraphics_TDebug_cno,(&bbt_no_children),(struct openb3d_openb3dcore_TEntity_obj*)&bbNullObject);
	struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 61, 0};
	bbOnDebugEnterStm(&__stmt_3);
	if(((BBOBJECT)bbt_old_cent)!=&bbNullObject){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 61, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_old_cent))->clas->m_EntityColor_fffi((struct openb3d_openb3dcore_TEntity_obj*)bbt_old_cent,255.000000f,255.000000f,255.000000f,1);
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 63, 0};
	bbOnDebugEnterStm(&__stmt_4);
	if(brl_polledinput_KeyHit(107)!=0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 63, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_b3dglgraphics_TDebug_cno=(openb3d_b3dglgraphics_TDebug_cno+1);
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_5 = {0x9c699af810b447e, 64, 0};
	bbOnDebugEnterStm(&__stmt_5);
	if(brl_polledinput_KeyHit(109)!=0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 64, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_b3dglgraphics_TDebug_cno=(openb3d_b3dglgraphics_TDebug_cno-1);
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_6 = {0x9c699af810b447e, 65, 0};
	bbOnDebugEnterStm(&__stmt_6);
	bbt_no_childs=openb3d_openb3dcore_TEntity_CountAllChildren_i_TTEntityi((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,0);
	struct BBDebugStm __stmt_7 = {0x9c699af810b447e, 66, 0};
	bbOnDebugEnterStm(&__stmt_7);
	if(openb3d_b3dglgraphics_TDebug_cno<0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 66, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_b3dglgraphics_TDebug_cno=0;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_8 = {0x9c699af810b447e, 67, 0};
	bbOnDebugEnterStm(&__stmt_8);
	if(openb3d_b3dglgraphics_TDebug_cno>bbt_no_childs){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 67, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_b3dglgraphics_TDebug_cno=bbt_no_childs;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_9 = {0x9c699af810b447e, 69, 0};
	bbOnDebugEnterStm(&__stmt_9);
	bbt_no_children=0;
	struct BBDebugStm __stmt_10 = {0x9c699af810b447e, 70, 0};
	bbOnDebugEnterStm(&__stmt_10);
	bbt_cent=(struct openb3d_openb3dcore_TEntity_obj*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_GetChildFromAll_iviTTEntity((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,openb3d_b3dglgraphics_TDebug_cno,(&bbt_no_children),(struct openb3d_openb3dcore_TEntity_obj*)&bbNullObject);
	struct BBDebugStm __stmt_11 = {0x9c699af810b447e, 72, 0};
	bbOnDebugEnterStm(&__stmt_11);
	if(((BBOBJECT)bbt_cent)==&bbNullObject){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 72, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_cent=(struct openb3d_openb3dcore_TEntity_obj*)bbt_ent;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_12 = {0x9c699af810b447e, 74, 0};
	bbOnDebugEnterStm(&__stmt_12);
	if(((BBOBJECT)bbt_cent)!=&bbNullObject){
		struct openb3d_openb3dcore_TSurface_obj* bbt_surf=(struct openb3d_openb3dcore_TSurface_obj*)((struct openb3d_openb3dcore_TSurface_obj*)&bbNullObject);
		struct BBDebugScope_1 __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_LOCAL,
					"surf",
					":TSurface",
					.var_address=&bbt_surf
				},
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 77, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_surf=(struct openb3d_openb3dcore_TSurface_obj*)((struct openb3d_openb3dcore_TSurface_obj*)&bbNullObject);
		struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 78, 0};
		bbOnDebugEnterStm(&__stmt_1);
		if(((BBOBJECT)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_cent,(BBClass*)&openb3d_openb3dcore_TMesh)))!=&bbNullObject){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 79, 0};
			bbOnDebugEnterStm(&__stmt_0);
			if(brl_polledinput_KeyHit(111)!=0){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 79, 0};
				bbOnDebugEnterStm(&__stmt_0);
				openb3d_b3dglgraphics_TDebug_surf_no-=1;
				bbOnDebugLeaveScope();
			}
			struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 80, 0};
			bbOnDebugEnterStm(&__stmt_1);
			if(brl_polledinput_KeyHit(106)!=0){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 80, 0};
				bbOnDebugEnterStm(&__stmt_0);
				openb3d_b3dglgraphics_TDebug_surf_no+=1;
				bbOnDebugLeaveScope();
			}
			struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 81, 0};
			bbOnDebugEnterStm(&__stmt_2);
			if(openb3d_b3dglgraphics_TDebug_surf_no<1){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 81, 0};
				bbOnDebugEnterStm(&__stmt_0);
				openb3d_b3dglgraphics_TDebug_surf_no=1;
				bbOnDebugLeaveScope();
			}
			struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 82, 0};
			bbOnDebugEnterStm(&__stmt_3);
			struct openb3d_openb3dcore_TMesh_obj* bbt_;
			if(openb3d_b3dglgraphics_TDebug_surf_no>(((struct openb3d_openb3dcore_TMesh_obj*)((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)(bbt_ = ((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_cent,(BBClass*)&openb3d_openb3dcore_TMesh))))))->clas)->m_CountSurfaces((struct openb3d_openb3dcore_TMesh_obj*)bbt_)){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 82, 0};
				bbOnDebugEnterStm(&__stmt_0);
				struct openb3d_openb3dcore_TMesh_obj* bbt_2;
				openb3d_b3dglgraphics_TDebug_surf_no=(((struct openb3d_openb3dcore_TMesh_obj*)((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)(bbt_2 = ((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_cent,(BBClass*)&openb3d_openb3dcore_TMesh))))))->clas)->m_CountSurfaces((struct openb3d_openb3dcore_TMesh_obj*)bbt_2);
				bbOnDebugLeaveScope();
			}
			struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 83, 0};
			bbOnDebugEnterStm(&__stmt_4);
			bbt_surf=(struct openb3d_openb3dcore_TSurface_obj*)openb3d_openb3dcore_GetSurface((struct openb3d_openb3dcore_TMesh_obj*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_cent,(BBClass*)&openb3d_openb3dcore_TMesh)),openb3d_b3dglgraphics_TDebug_surf_no);
			bbOnDebugLeaveScope();
		}else{
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 85, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_TDebug_surf_no=0;
			struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 86, 0};
			bbOnDebugEnterStm(&__stmt_1);
			bbt_surf=(struct openb3d_openb3dcore_TSurface_obj*)&bbNullObject;
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 89, 0};
		bbOnDebugEnterStm(&__stmt_2);
		if(brl_polledinput_KeyHit(96)!=0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 89, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_TDebug_show_ents=(1-openb3d_b3dglgraphics_TDebug_show_ents);
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 91, 0};
		bbOnDebugEnterStm(&__stmt_3);
		openb3d_b3dglgraphics_TDebug_UpdateBoundingSphere_v_TTEntity((struct openb3d_openb3dcore_TEntity_obj*)bbt_cent);
		struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 92, 0};
		bbOnDebugEnterStm(&__stmt_4);
		openb3d_b3dglgraphics_TDebug_UpdateSurface_v_TTEntityTTSurface((struct openb3d_openb3dcore_TEntity_obj*)bbt_cent,(struct openb3d_openb3dcore_TSurface_obj*)bbt_surf);
		struct BBDebugStm __stmt_5 = {0x9c699af810b447e, 93, 0};
		bbOnDebugEnterStm(&__stmt_5);
		openb3d_b3dglgraphics_TDebug_UpdateMarker_v_TTEntityTTCamera((struct openb3d_openb3dcore_TEntity_obj*)bbt_cent,(struct openb3d_openb3dcore_TCamera_obj*)bbt_cam);
		struct BBDebugStm __stmt_6 = {0x9c699af810b447e, 95, 0};
		bbOnDebugEnterStm(&__stmt_6);
		if(brl_polledinput_KeyHit(97)!=0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 95, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_TDebug_info=1;
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_7 = {0x9c699af810b447e, 96, 0};
		bbOnDebugEnterStm(&__stmt_7);
		if(brl_polledinput_KeyHit(98)!=0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 96, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_TDebug_info=2;
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_8 = {0x9c699af810b447e, 97, 0};
		bbOnDebugEnterStm(&__stmt_8);
		if(brl_polledinput_KeyHit(99)!=0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 97, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_TDebug_info=3;
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_9 = {0x9c699af810b447e, 98, 0};
		bbOnDebugEnterStm(&__stmt_9);
		if(brl_polledinput_KeyHit(100)!=0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 98, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_TDebug_info=4;
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_10 = {0x9c699af810b447e, 99, 0};
		bbOnDebugEnterStm(&__stmt_10);
		if(brl_polledinput_KeyHit(101)!=0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 99, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_TDebug_info=5;
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_11 = {0x9c699af810b447e, 101, 0};
		bbOnDebugEnterStm(&__stmt_11);
		openb3d_b3dglgraphics_Text(0,0,bbStringConcat(bbStringConcat(bbStringConcat(bbStringConcat(bbStringConcat(bbStringConcat(bbStringConcat(((BBString*)&_s7),bbStringFromInt(openb3d_b3dglgraphics_TDebug_cno)),((BBString*)&_s8)),bbStringFromInt(bbt_no_childs)),((BBString*)&_s9)),((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_cent))->clas->m_EntityName((struct openb3d_openb3dcore_TEntity_obj*)bbt_cent)),((BBString*)&_s10)),((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_cent))->clas->m_EntityClass((struct openb3d_openb3dcore_TEntity_obj*)bbt_cent)));
		struct BBDebugStm __stmt_12 = {0x9c699af810b447e, 103, 0};
		bbOnDebugEnterStm(&__stmt_12);
		if(openb3d_b3dglgraphics_TDebug_info==1){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 103, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_TDebug_EntityInfo1_v_TTEntity((struct openb3d_openb3dcore_TEntity_obj*)bbt_cent);
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_13 = {0x9c699af810b447e, 104, 0};
		bbOnDebugEnterStm(&__stmt_13);
		if(openb3d_b3dglgraphics_TDebug_info==2){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 104, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_TDebug_EntityInfo2_v_TTEntityTTSurface((struct openb3d_openb3dcore_TEntity_obj*)bbt_cent,(struct openb3d_openb3dcore_TSurface_obj*)bbt_surf);
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_14 = {0x9c699af810b447e, 105, 0};
		bbOnDebugEnterStm(&__stmt_14);
		if(openb3d_b3dglgraphics_TDebug_info==3){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 105, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_TDebug_EntityInfo3_v_TTEntityTTSurface((struct openb3d_openb3dcore_TEntity_obj*)bbt_cent,(struct openb3d_openb3dcore_TSurface_obj*)bbt_surf);
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_15 = {0x9c699af810b447e, 106, 0};
		bbOnDebugEnterStm(&__stmt_15);
		if(openb3d_b3dglgraphics_TDebug_info==4){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 106, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_TDebug_EntityInfo4_v_TTEntityTTCamera((struct openb3d_openb3dcore_TEntity_obj*)bbt_cent,(struct openb3d_openb3dcore_TCamera_obj*)bbt_cam);
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_16 = {0x9c699af810b447e, 107, 0};
		bbOnDebugEnterStm(&__stmt_16);
		if(openb3d_b3dglgraphics_TDebug_info==5){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 107, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_TDebug_EntityInfo4_v_TTEntityTTCamera((struct openb3d_openb3dcore_TEntity_obj*)bbt_cent,(struct openb3d_openb3dcore_TCamera_obj*)bbt_cam);
			bbOnDebugLeaveScope();
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_13 = {0x9c699af810b447e, 111, 0};
	bbOnDebugEnterStm(&__stmt_13);
	bbOnDebugLeaveScope();
	return (struct openb3d_openb3dcore_TEntity_obj*)bbt_cent;
}
void openb3d_b3dglgraphics_TDebug_UpdateBoundingSphere_v_TTEntity(struct openb3d_openb3dcore_TEntity_obj* bbt_ent){
	BBFLOAT bbt_radius=0;
	BBFLOAT bbt_x=0;
	BBFLOAT bbt_y=0;
	BBFLOAT bbt_z=0;
	BBFLOAT bbt_rx=0;
	BBFLOAT bbt_ry=0;
	BBFLOAT bbt_rz=0;
	struct BBDebugScope_8 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"UpdateBoundingSphere",
		{
			{
				BBDEBUGDECL_LOCAL,
				"ent",
				":TEntity",
				.var_address=&bbt_ent
			},
			{
				BBDEBUGDECL_LOCAL,
				"radius",
				"f",
				.var_address=&bbt_radius
			},
			{
				BBDEBUGDECL_LOCAL,
				"x",
				"f",
				.var_address=&bbt_x
			},
			{
				BBDEBUGDECL_LOCAL,
				"y",
				"f",
				.var_address=&bbt_y
			},
			{
				BBDEBUGDECL_LOCAL,
				"z",
				"f",
				.var_address=&bbt_z
			},
			{
				BBDEBUGDECL_LOCAL,
				"rx",
				"f",
				.var_address=&bbt_rx
			},
			{
				BBDEBUGDECL_LOCAL,
				"ry",
				"f",
				.var_address=&bbt_ry
			},
			{
				BBDEBUGDECL_LOCAL,
				"rz",
				"f",
				.var_address=&bbt_rz
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 117, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(((BBOBJECT)openb3d_b3dglgraphics_TDebug_bounding_sphere)==&bbNullObject){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 118, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_b3dglgraphics_TDebug_bounding_sphere=(struct openb3d_openb3dcore_TMesh_obj*)openb3d_openb3dcore_TMesh_CreateSphere_TTMesh_iTTEntity(16,(struct openb3d_openb3dcore_TEntity_obj*)&bbNullObject);
		struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 119, 0};
		bbOnDebugEnterStm(&__stmt_1);
		((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_bounding_sphere))->clas->m_EntityAlpha_f((struct openb3d_openb3dcore_TEntity_obj*)openb3d_b3dglgraphics_TDebug_bounding_sphere,0.25f);
		struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 120, 0};
		bbOnDebugEnterStm(&__stmt_2);
		((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_bounding_sphere))->clas->m_EntityColor_fffi((struct openb3d_openb3dcore_TEntity_obj*)openb3d_b3dglgraphics_TDebug_bounding_sphere,255.000000f,0.00000000f,0.00000000f,1);
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 123, 0};
	bbOnDebugEnterStm(&__stmt_1);
	if((openb3d_b3dglgraphics_TDebug_show_ents==0) || (((BBOBJECT)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh)))==&bbNullObject)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 124, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_bounding_sphere))->clas->m_HideEntity((struct openb3d_openb3dcore_TEntity_obj*)openb3d_b3dglgraphics_TDebug_bounding_sphere);
		struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 125, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return;
	}
	struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 128, 0};
	bbOnDebugEnterStm(&__stmt_2);
	((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_bounding_sphere))->clas->m_ShowEntity((struct openb3d_openb3dcore_TEntity_obj*)openb3d_b3dglgraphics_TDebug_bounding_sphere);
	struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 131, 0};
	bbOnDebugEnterStm(&__stmt_3);
	bbt_radius=brl_blitz_Abs2(((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_cull_radius [0]);
	struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 134, 0};
	bbOnDebugEnterStm(&__stmt_4);
	bbt_x=((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_min_x [0];
	struct BBDebugStm __stmt_5 = {0x9c699af810b447e, 135, 0};
	bbOnDebugEnterStm(&__stmt_5);
	bbt_y=((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_min_y [0];
	struct BBDebugStm __stmt_6 = {0x9c699af810b447e, 136, 0};
	bbOnDebugEnterStm(&__stmt_6);
	bbt_z=((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_min_z [0];
	struct BBDebugStm __stmt_7 = {0x9c699af810b447e, 137, 0};
	bbOnDebugEnterStm(&__stmt_7);
	bbt_x=(bbt_x+((((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_max_x [0]-((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_min_x [0])/2.0f));
	struct BBDebugStm __stmt_8 = {0x9c699af810b447e, 138, 0};
	bbOnDebugEnterStm(&__stmt_8);
	bbt_y=(bbt_y+((((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_max_y [0]-((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_min_y [0])/2.0f));
	struct BBDebugStm __stmt_9 = {0x9c699af810b447e, 139, 0};
	bbOnDebugEnterStm(&__stmt_9);
	bbt_z=(bbt_z+((((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_max_z [0]-((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_min_z [0])/2.0f));
	struct BBDebugStm __stmt_10 = {0x9c699af810b447e, 142, 0};
	bbOnDebugEnterStm(&__stmt_10);
	openb3d_openb3dcore_TEntity_TFormPoint_i_fffTTEntityTTEntity(bbt_x,bbt_y,bbt_z,(struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,(struct openb3d_openb3dcore_TEntity_obj*)&bbNullObject);
	struct BBDebugStm __stmt_11 = {0x9c699af810b447e, 143, 0};
	bbOnDebugEnterStm(&__stmt_11);
	bbt_x=openb3d_openb3dcore_TEntity_TFormedX_f();
	struct BBDebugStm __stmt_12 = {0x9c699af810b447e, 144, 0};
	bbOnDebugEnterStm(&__stmt_12);
	bbt_y=openb3d_openb3dcore_TEntity_TFormedY_f();
	struct BBDebugStm __stmt_13 = {0x9c699af810b447e, 145, 0};
	bbOnDebugEnterStm(&__stmt_13);
	bbt_z=openb3d_openb3dcore_TEntity_TFormedZ_f();
	struct BBDebugStm __stmt_14 = {0x9c699af810b447e, 148, 0};
	bbOnDebugEnterStm(&__stmt_14);
	bbt_rx=(bbt_radius*((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityScaleX_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,1));
	struct BBDebugStm __stmt_15 = {0x9c699af810b447e, 149, 0};
	bbOnDebugEnterStm(&__stmt_15);
	bbt_ry=(bbt_radius*((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityScaleY_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,1));
	struct BBDebugStm __stmt_16 = {0x9c699af810b447e, 150, 0};
	bbOnDebugEnterStm(&__stmt_16);
	bbt_rz=(bbt_radius*((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityScaleZ_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,1));
	struct BBDebugStm __stmt_17 = {0x9c699af810b447e, 151, 0};
	bbOnDebugEnterStm(&__stmt_17);
	if((bbt_rx>=bbt_ry) && (bbt_rx>=bbt_rz)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 152, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_radius=brl_blitz_Abs2(bbt_rx);
		bbOnDebugLeaveScope();
	}else{
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 153, 0};
		bbOnDebugEnterStm(&__stmt_0);
		if((bbt_ry>=bbt_rx) && (bbt_ry>=bbt_rz)){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 154, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_radius=brl_blitz_Abs2(bbt_ry);
			bbOnDebugLeaveScope();
		}else{
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 156, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_radius=brl_blitz_Abs2(bbt_rz);
			bbOnDebugLeaveScope();
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_18 = {0x9c699af810b447e, 159, 0};
	bbOnDebugEnterStm(&__stmt_18);
	((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_bounding_sphere))->clas->m_PositionEntity_fffi((struct openb3d_openb3dcore_TEntity_obj*)openb3d_b3dglgraphics_TDebug_bounding_sphere,bbt_x,bbt_y,bbt_z,1);
	struct BBDebugStm __stmt_19 = {0x9c699af810b447e, 160, 0};
	bbOnDebugEnterStm(&__stmt_19);
	((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_bounding_sphere))->clas->m_ScaleEntity_fffi((struct openb3d_openb3dcore_TEntity_obj*)openb3d_b3dglgraphics_TDebug_bounding_sphere,bbt_radius,bbt_radius,bbt_radius,0);
	bbOnDebugLeaveScope();
}
void openb3d_b3dglgraphics_TDebug_UpdateSurface_v_TTEntityTTSurface(struct openb3d_openb3dcore_TEntity_obj* bbt_ent,struct openb3d_openb3dcore_TSurface_obj* bbt_surf){
	struct BBDebugScope_2 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"UpdateSurface",
		{
			{
				BBDEBUGDECL_LOCAL,
				"ent",
				":TEntity",
				.var_address=&bbt_ent
			},
			{
				BBDEBUGDECL_LOCAL,
				"surf",
				":TSurface",
				.var_address=&bbt_surf
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 166, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(((BBOBJECT)openb3d_b3dglgraphics_TDebug_debug_mesh)==&bbNullObject){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 167, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_b3dglgraphics_TDebug_debug_mesh=(struct openb3d_openb3dcore_TMesh_obj*)openb3d_openb3dcore_TMesh_CreateMesh_TTMesh_TTEntity((struct openb3d_openb3dcore_TEntity_obj*)&bbNullObject);
		struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 168, 0};
		bbOnDebugEnterStm(&__stmt_1);
		openb3d_b3dglgraphics_TDebug_debug_surf=(struct openb3d_openb3dcore_TSurface_obj*)((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_debug_mesh))->clas->m_CreateSurface_TTBrush((struct openb3d_openb3dcore_TMesh_obj*)openb3d_b3dglgraphics_TDebug_debug_mesh,(struct openb3d_openb3dcore_TBrush_obj*)&bbNullObject);
		struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 169, 0};
		bbOnDebugEnterStm(&__stmt_2);
		((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_debug_mesh))->clas->m_EntityColor_fffi((struct openb3d_openb3dcore_TEntity_obj*)openb3d_b3dglgraphics_TDebug_debug_mesh,255.000000f,0.00000000f,0.00000000f,1);
		struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 170, 0};
		bbOnDebugEnterStm(&__stmt_3);
		((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_debug_mesh))->clas->m_EntityAlpha_f((struct openb3d_openb3dcore_TEntity_obj*)openb3d_b3dglgraphics_TDebug_debug_mesh,0.5f);
		struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 172, 0};
		bbOnDebugEnterStm(&__stmt_4);
		((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_debug_mesh))->clas->m_EntityOrder_i((struct openb3d_openb3dcore_TEntity_obj*)openb3d_b3dglgraphics_TDebug_debug_mesh,-99);
		bbOnDebugLeaveScope();
	}else{
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 174, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_debug_surf))->clas->m_ClearSurface_ii((struct openb3d_openb3dcore_TSurface_obj*)openb3d_b3dglgraphics_TDebug_debug_surf,1,1);
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 177, 0};
	bbOnDebugEnterStm(&__stmt_1);
	if((openb3d_b3dglgraphics_TDebug_show_ents==0) || (((BBOBJECT)bbt_surf)==&bbNullObject)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 178, 0};
		bbOnDebugEnterStm(&__stmt_0);
		((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_debug_mesh))->clas->m_HideEntity((struct openb3d_openb3dcore_TEntity_obj*)openb3d_b3dglgraphics_TDebug_debug_mesh);
		struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 179, 0};
		bbOnDebugEnterStm(&__stmt_1);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return;
	}
	struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 182, 0};
	bbOnDebugEnterStm(&__stmt_2);
	((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_debug_mesh))->clas->m_ShowEntity((struct openb3d_openb3dcore_TEntity_obj*)openb3d_b3dglgraphics_TDebug_debug_mesh);
	struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 184, 0};
	bbOnDebugEnterStm(&__stmt_3);
	{
		BBINT bbt_tri=0;
		BBINT bbt_=((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->clas->m_CountTriangles((struct openb3d_openb3dcore_TSurface_obj*)bbt_surf);
		for(;(bbt_tri<bbt_);bbt_tri=(bbt_tri+1)){
			BBARRAY bbt_v=(&bbEmptyArray);
			BBARRAY bbt_nv=(&bbEmptyArray);
			struct BBDebugScope_3 __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_LOCAL,
						"tri",
						"i",
						.var_address=&bbt_tri
					},
					{
						BBDEBUGDECL_LOCAL,
						"v",
						"[]i",
						.var_address=&bbt_v
					},
					{
						BBDEBUGDECL_LOCAL,
						"nv",
						"[]i",
						.var_address=&bbt_nv
					},
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 186, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_v=bbArrayNew1D("i", 3);
			struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 187, 0};
			bbOnDebugEnterStm(&__stmt_1);
			((BBINT*)BBARRAYDATAINDEX((bbt_v),(bbt_v)->dims,0U))[0U]=((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->clas->m_TriangleVertex_ii((struct openb3d_openb3dcore_TSurface_obj*)bbt_surf,bbt_tri,0);
			struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 188, 0};
			bbOnDebugEnterStm(&__stmt_2);
			((BBINT*)BBARRAYDATAINDEX((bbt_v),(bbt_v)->dims,1U))[1U]=((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->clas->m_TriangleVertex_ii((struct openb3d_openb3dcore_TSurface_obj*)bbt_surf,bbt_tri,1);
			struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 189, 0};
			bbOnDebugEnterStm(&__stmt_3);
			((BBINT*)BBARRAYDATAINDEX((bbt_v),(bbt_v)->dims,2U))[2U]=((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->clas->m_TriangleVertex_ii((struct openb3d_openb3dcore_TSurface_obj*)bbt_surf,bbt_tri,2);
			struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 191, 0};
			bbOnDebugEnterStm(&__stmt_4);
			bbt_nv=bbArrayNew1D("i", 3);
			struct BBDebugStm __stmt_5 = {0x9c699af810b447e, 192, 0};
			bbOnDebugEnterStm(&__stmt_5);
			{
				BBINT bbt_i=0;
				for(;(bbt_i<=2);bbt_i=(bbt_i+1)){
					BBFLOAT bbt_vx=0;
					BBFLOAT bbt_vy=0;
					BBFLOAT bbt_vz=0;
					struct BBDebugScope_4 __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_LOCAL,
								"i",
								"i",
								.var_address=&bbt_i
							},
							{
								BBDEBUGDECL_LOCAL,
								"vx",
								"f",
								.var_address=&bbt_vx
							},
							{
								BBDEBUGDECL_LOCAL,
								"vy",
								"f",
								.var_address=&bbt_vy
							},
							{
								BBDEBUGDECL_LOCAL,
								"vz",
								"f",
								.var_address=&bbt_vz
							},
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 194, 0};
					bbOnDebugEnterStm(&__stmt_0);
					bbt_vx=((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->clas->m_VertexX_i((struct openb3d_openb3dcore_TSurface_obj*)bbt_surf,((BBINT*)BBARRAYDATAINDEX((bbt_v),(bbt_v)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]);
					struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 195, 0};
					bbOnDebugEnterStm(&__stmt_1);
					bbt_vy=((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->clas->m_VertexY_i((struct openb3d_openb3dcore_TSurface_obj*)bbt_surf,((BBINT*)BBARRAYDATAINDEX((bbt_v),(bbt_v)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]);
					struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 196, 0};
					bbOnDebugEnterStm(&__stmt_2);
					bbt_vz=((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->clas->m_VertexZ_i((struct openb3d_openb3dcore_TSurface_obj*)bbt_surf,((BBINT*)BBARRAYDATAINDEX((bbt_v),(bbt_v)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]);
					struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 198, 0};
					bbOnDebugEnterStm(&__stmt_3);
					openb3d_openb3dcore_TEntity_TFormPoint_i_fffTTEntityTTEntity(bbt_vx,bbt_vy,bbt_vz,(struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,(struct openb3d_openb3dcore_TEntity_obj*)&bbNullObject);
					struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 199, 0};
					bbOnDebugEnterStm(&__stmt_4);
					bbt_vx=openb3d_openb3dcore_TEntity_TFormedX_f();
					struct BBDebugStm __stmt_5 = {0x9c699af810b447e, 200, 0};
					bbOnDebugEnterStm(&__stmt_5);
					bbt_vy=openb3d_openb3dcore_TEntity_TFormedY_f();
					struct BBDebugStm __stmt_6 = {0x9c699af810b447e, 201, 0};
					bbOnDebugEnterStm(&__stmt_6);
					bbt_vz=openb3d_openb3dcore_TEntity_TFormedZ_f();
					struct BBDebugStm __stmt_7 = {0x9c699af810b447e, 203, 0};
					bbOnDebugEnterStm(&__stmt_7);
					((BBINT*)BBARRAYDATAINDEX((bbt_nv),(bbt_nv)->dims,((BBUINT)bbt_i)))[((BBUINT)bbt_i)]=((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_debug_surf))->clas->m_AddVertex_ffffff((struct openb3d_openb3dcore_TSurface_obj*)openb3d_b3dglgraphics_TDebug_debug_surf,bbt_vx,bbt_vy,bbt_vz,0.00000000f,0.00000000f,0.00000000f);
					bbOnDebugLeaveScope();
				}
			}
			struct BBDebugStm __stmt_6 = {0x9c699af810b447e, 207, 0};
			bbOnDebugEnterStm(&__stmt_6);
			((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_debug_surf))->clas->m_AddTriangle_iii((struct openb3d_openb3dcore_TSurface_obj*)openb3d_b3dglgraphics_TDebug_debug_surf,((BBINT*)BBARRAYDATAINDEX((bbt_nv),(bbt_nv)->dims,0U))[0U],((BBINT*)BBARRAYDATAINDEX((bbt_nv),(bbt_nv)->dims,1U))[1U],((BBINT*)BBARRAYDATAINDEX((bbt_nv),(bbt_nv)->dims,2U))[2U]);
			bbOnDebugLeaveScope();
		}
	}
	struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 211, 0};
	bbOnDebugEnterStm(&__stmt_4);
	((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)openb3d_b3dglgraphics_TDebug_debug_mesh))->clas->m_PositionMesh_fff((struct openb3d_openb3dcore_TMesh_obj*)openb3d_b3dglgraphics_TDebug_debug_mesh,0.00000000f,0.00000000f,0.00000000f);
	bbOnDebugLeaveScope();
}
void openb3d_b3dglgraphics_TDebug_UpdateMarker_v_TTEntityTTCamera(struct openb3d_openb3dcore_TEntity_obj* bbt_ent,struct openb3d_openb3dcore_TCamera_obj* bbt_cam){
	BBFLOAT bbt_x=0;
	BBFLOAT bbt_y=0;
	BBFLOAT bbt_z=0;
	struct BBDebugScope_5 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"UpdateMarker",
		{
			{
				BBDEBUGDECL_LOCAL,
				"ent",
				":TEntity",
				.var_address=&bbt_ent
			},
			{
				BBDEBUGDECL_LOCAL,
				"cam",
				":TCamera",
				.var_address=&bbt_cam
			},
			{
				BBDEBUGDECL_LOCAL,
				"x",
				"f",
				.var_address=&bbt_x
			},
			{
				BBDEBUGDECL_LOCAL,
				"y",
				"f",
				.var_address=&bbt_y
			},
			{
				BBDEBUGDECL_LOCAL,
				"z",
				"f",
				.var_address=&bbt_z
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 217, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(((BBOBJECT)bbt_cam)==&bbNullObject){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 217, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbOnDebugLeaveScope();
		bbOnDebugLeaveScope();
		return;
	}
	struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 220, 0};
	bbOnDebugEnterStm(&__stmt_1);
	bbt_x=((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_min_x [0];
	struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 221, 0};
	bbOnDebugEnterStm(&__stmt_2);
	bbt_y=((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_min_y [0];
	struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 222, 0};
	bbOnDebugEnterStm(&__stmt_3);
	bbt_z=((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_min_z [0];
	struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 223, 0};
	bbOnDebugEnterStm(&__stmt_4);
	bbt_x=(bbt_x+((((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_max_x [0]-((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_min_x [0])/2.0f));
	struct BBDebugStm __stmt_5 = {0x9c699af810b447e, 224, 0};
	bbOnDebugEnterStm(&__stmt_5);
	bbt_y=(bbt_y+((((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_max_y [0]-((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_min_y [0])/2.0f));
	struct BBDebugStm __stmt_6 = {0x9c699af810b447e, 225, 0};
	bbOnDebugEnterStm(&__stmt_6);
	bbt_z=(bbt_z+((((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_max_z [0]-((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))->_openb3d_openb3dcore_tmesh_min_z [0])/2.0f));
	struct BBDebugStm __stmt_7 = {0x9c699af810b447e, 228, 0};
	bbOnDebugEnterStm(&__stmt_7);
	openb3d_openb3dcore_TEntity_TFormPoint_i_fffTTEntityTTEntity(bbt_x,bbt_y,bbt_z,(struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,(struct openb3d_openb3dcore_TEntity_obj*)&bbNullObject);
	struct BBDebugStm __stmt_8 = {0x9c699af810b447e, 229, 0};
	bbOnDebugEnterStm(&__stmt_8);
	bbt_x=openb3d_openb3dcore_TEntity_TFormedX_f();
	struct BBDebugStm __stmt_9 = {0x9c699af810b447e, 230, 0};
	bbOnDebugEnterStm(&__stmt_9);
	bbt_y=openb3d_openb3dcore_TEntity_TFormedY_f();
	struct BBDebugStm __stmt_10 = {0x9c699af810b447e, 231, 0};
	bbOnDebugEnterStm(&__stmt_10);
	bbt_z=openb3d_openb3dcore_TEntity_TFormedZ_f();
	struct BBDebugStm __stmt_11 = {0x9c699af810b447e, 233, 0};
	bbOnDebugEnterStm(&__stmt_11);
	((struct openb3d_openb3dcore_TCamera_obj*)bbNullObjectTest((BBObject*)bbt_cam))->clas->m_CameraProject_fff((struct openb3d_openb3dcore_TCamera_obj*)bbt_cam,bbt_x,bbt_y,bbt_z);
	struct BBDebugStm __stmt_12 = {0x9c699af810b447e, 235, 0};
	bbOnDebugEnterStm(&__stmt_12);
	openb3d_b3dglgraphics_Text(((BBINT)openb3d_openb3dcore_ProjectedX()),((BBINT)openb3d_openb3dcore_ProjectedY()),((BBString*)&_s11));
	struct BBDebugStm __stmt_13 = {0x9c699af810b447e, 238, 0};
	bbOnDebugEnterStm(&__stmt_13);
	openb3d_openb3dcore_TEntity_TFormPoint_i_fffTTEntityTTEntity(((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityX_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,1),((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityY_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,1),((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityZ_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,1),(struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,(struct openb3d_openb3dcore_TEntity_obj*)&bbNullObject);
	struct BBDebugStm __stmt_14 = {0x9c699af810b447e, 239, 0};
	bbOnDebugEnterStm(&__stmt_14);
	bbt_x=openb3d_openb3dcore_TEntity_TFormedX_f();
	struct BBDebugStm __stmt_15 = {0x9c699af810b447e, 240, 0};
	bbOnDebugEnterStm(&__stmt_15);
	bbt_y=openb3d_openb3dcore_TEntity_TFormedY_f();
	struct BBDebugStm __stmt_16 = {0x9c699af810b447e, 241, 0};
	bbOnDebugEnterStm(&__stmt_16);
	bbt_z=openb3d_openb3dcore_TEntity_TFormedZ_f();
	struct BBDebugStm __stmt_17 = {0x9c699af810b447e, 243, 0};
	bbOnDebugEnterStm(&__stmt_17);
	((struct openb3d_openb3dcore_TCamera_obj*)bbNullObjectTest((BBObject*)bbt_cam))->clas->m_CameraProject_fff((struct openb3d_openb3dcore_TCamera_obj*)bbt_cam,bbt_x,bbt_y,bbt_z);
	struct BBDebugStm __stmt_18 = {0x9c699af810b447e, 245, 0};
	bbOnDebugEnterStm(&__stmt_18);
	openb3d_b3dglgraphics_Text(((BBINT)openb3d_openb3dcore_ProjectedX()),((BBINT)openb3d_openb3dcore_ProjectedY()),((BBString*)&_s12));
	bbOnDebugLeaveScope();
}
void openb3d_b3dglgraphics_TDebug_EntityInfo1_v_TTEntity(struct openb3d_openb3dcore_TEntity_obj* bbt_ent){
	BBFLOAT bbt_xx=0;
	BBINT bbt_tx=0;
	BBINT bbt_ty=0;
	struct BBDebugScope_4 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"EntityInfo1",
		{
			{
				BBDEBUGDECL_LOCAL,
				"ent",
				":TEntity",
				.var_address=&bbt_ent
			},
			{
				BBDEBUGDECL_LOCAL,
				"xx",
				"f",
				.var_address=&bbt_xx
			},
			{
				BBDEBUGDECL_LOCAL,
				"tx",
				"i",
				.var_address=&bbt_tx
			},
			{
				BBDEBUGDECL_LOCAL,
				"ty",
				"i",
				.var_address=&bbt_ty
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 253, 0};
	bbOnDebugEnterStm(&__stmt_0);
	openb3d_b3dglgraphics_Text(0,40,((BBString*)&_s13));
	struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 254, 0};
	bbOnDebugEnterStm(&__stmt_1);
	openb3d_b3dglgraphics_Text(0,80,((BBString*)&_s14));
	struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 256, 0};
	bbOnDebugEnterStm(&__stmt_2);
	bbt_xx=0.00000000f;
	struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 258, 0};
	bbOnDebugEnterStm(&__stmt_3);
	bbt_xx=((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityX_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,1);
	struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 259, 0};
	bbOnDebugEnterStm(&__stmt_4);
	if((bbt_xx<0.0001f) && (bbt_xx>-0.0001f)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 259, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_xx=0.00000000f;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_5 = {0x9c699af810b447e, 260, 0};
	bbOnDebugEnterStm(&__stmt_5);
	openb3d_b3dglgraphics_Text(0,100,bbStringConcat(((BBString*)&_s15),bbStringFromFloat(bbt_xx)));
	struct BBDebugStm __stmt_6 = {0x9c699af810b447e, 262, 0};
	bbOnDebugEnterStm(&__stmt_6);
	bbt_xx=((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityY_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,1);
	struct BBDebugStm __stmt_7 = {0x9c699af810b447e, 263, 0};
	bbOnDebugEnterStm(&__stmt_7);
	if((bbt_xx<0.0001f) && (bbt_xx>-0.0001f)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 263, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_xx=0.00000000f;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_8 = {0x9c699af810b447e, 264, 0};
	bbOnDebugEnterStm(&__stmt_8);
	openb3d_b3dglgraphics_Text(0,120,bbStringConcat(((BBString*)&_s16),bbStringFromFloat(bbt_xx)));
	struct BBDebugStm __stmt_9 = {0x9c699af810b447e, 266, 0};
	bbOnDebugEnterStm(&__stmt_9);
	bbt_xx=((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityZ_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,1);
	struct BBDebugStm __stmt_10 = {0x9c699af810b447e, 267, 0};
	bbOnDebugEnterStm(&__stmt_10);
	if((bbt_xx<0.0001f) && (bbt_xx>-0.0001f)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 267, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_xx=0.00000000f;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_11 = {0x9c699af810b447e, 268, 0};
	bbOnDebugEnterStm(&__stmt_11);
	openb3d_b3dglgraphics_Text(0,140,bbStringConcat(((BBString*)&_s17),bbStringFromFloat(bbt_xx)));
	struct BBDebugStm __stmt_12 = {0x9c699af810b447e, 270, 0};
	bbOnDebugEnterStm(&__stmt_12);
	bbt_xx=((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityPitch_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,1);
	struct BBDebugStm __stmt_13 = {0x9c699af810b447e, 271, 0};
	bbOnDebugEnterStm(&__stmt_13);
	if((bbt_xx<0.0001f) && (bbt_xx>-0.0001f)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 271, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_xx=0.00000000f;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_14 = {0x9c699af810b447e, 272, 0};
	bbOnDebugEnterStm(&__stmt_14);
	openb3d_b3dglgraphics_Text(0,160,bbStringConcat(((BBString*)&_s18),bbStringFromFloat(bbt_xx)));
	struct BBDebugStm __stmt_15 = {0x9c699af810b447e, 274, 0};
	bbOnDebugEnterStm(&__stmt_15);
	bbt_xx=((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityYaw_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,1);
	struct BBDebugStm __stmt_16 = {0x9c699af810b447e, 275, 0};
	bbOnDebugEnterStm(&__stmt_16);
	if((bbt_xx<0.0001f) && (bbt_xx>-0.0001f)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 275, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_xx=0.00000000f;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_17 = {0x9c699af810b447e, 276, 0};
	bbOnDebugEnterStm(&__stmt_17);
	openb3d_b3dglgraphics_Text(0,180,bbStringConcat(((BBString*)&_s19),bbStringFromFloat(bbt_xx)));
	struct BBDebugStm __stmt_18 = {0x9c699af810b447e, 278, 0};
	bbOnDebugEnterStm(&__stmt_18);
	bbt_xx=((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityRoll_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,1);
	struct BBDebugStm __stmt_19 = {0x9c699af810b447e, 279, 0};
	bbOnDebugEnterStm(&__stmt_19);
	if((bbt_xx<0.0001f) && (bbt_xx>-0.0001f)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 279, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_xx=0.00000000f;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_20 = {0x9c699af810b447e, 280, 0};
	bbOnDebugEnterStm(&__stmt_20);
	openb3d_b3dglgraphics_Text(0,200,bbStringConcat(((BBString*)&_s20),bbStringFromFloat(bbt_xx)));
	struct BBDebugStm __stmt_21 = {0x9c699af810b447e, 282, 0};
	bbOnDebugEnterStm(&__stmt_21);
	openb3d_b3dglgraphics_Text(0,240,((BBString*)&_s21));
	struct BBDebugStm __stmt_22 = {0x9c699af810b447e, 284, 0};
	bbOnDebugEnterStm(&__stmt_22);
	bbt_xx=((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityX_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,0);
	struct BBDebugStm __stmt_23 = {0x9c699af810b447e, 285, 0};
	bbOnDebugEnterStm(&__stmt_23);
	if((bbt_xx<0.0001f) && (bbt_xx>-0.0001f)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 285, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_xx=0.00000000f;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_24 = {0x9c699af810b447e, 286, 0};
	bbOnDebugEnterStm(&__stmt_24);
	openb3d_b3dglgraphics_Text(0,260,bbStringConcat(((BBString*)&_s15),bbStringFromFloat(bbt_xx)));
	struct BBDebugStm __stmt_25 = {0x9c699af810b447e, 288, 0};
	bbOnDebugEnterStm(&__stmt_25);
	bbt_xx=((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityY_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,0);
	struct BBDebugStm __stmt_26 = {0x9c699af810b447e, 289, 0};
	bbOnDebugEnterStm(&__stmt_26);
	if((bbt_xx<0.0001f) && (bbt_xx>-0.0001f)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 289, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_xx=0.00000000f;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_27 = {0x9c699af810b447e, 290, 0};
	bbOnDebugEnterStm(&__stmt_27);
	openb3d_b3dglgraphics_Text(0,280,bbStringConcat(((BBString*)&_s16),bbStringFromFloat(bbt_xx)));
	struct BBDebugStm __stmt_28 = {0x9c699af810b447e, 292, 0};
	bbOnDebugEnterStm(&__stmt_28);
	bbt_xx=((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityZ_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,0);
	struct BBDebugStm __stmt_29 = {0x9c699af810b447e, 293, 0};
	bbOnDebugEnterStm(&__stmt_29);
	if((bbt_xx<0.0001f) && (bbt_xx>-0.0001f)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 293, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_xx=0.00000000f;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_30 = {0x9c699af810b447e, 294, 0};
	bbOnDebugEnterStm(&__stmt_30);
	openb3d_b3dglgraphics_Text(0,300,bbStringConcat(((BBString*)&_s17),bbStringFromFloat(bbt_xx)));
	struct BBDebugStm __stmt_31 = {0x9c699af810b447e, 296, 0};
	bbOnDebugEnterStm(&__stmt_31);
	bbt_xx=((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityPitch_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,0);
	struct BBDebugStm __stmt_32 = {0x9c699af810b447e, 297, 0};
	bbOnDebugEnterStm(&__stmt_32);
	if((bbt_xx<0.0001f) && (bbt_xx>-0.0001f)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 297, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_xx=0.00000000f;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_33 = {0x9c699af810b447e, 298, 0};
	bbOnDebugEnterStm(&__stmt_33);
	openb3d_b3dglgraphics_Text(0,320,bbStringConcat(((BBString*)&_s18),bbStringFromFloat(bbt_xx)));
	struct BBDebugStm __stmt_34 = {0x9c699af810b447e, 300, 0};
	bbOnDebugEnterStm(&__stmt_34);
	bbt_xx=((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityYaw_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,0);
	struct BBDebugStm __stmt_35 = {0x9c699af810b447e, 301, 0};
	bbOnDebugEnterStm(&__stmt_35);
	if((bbt_xx<0.0001f) && (bbt_xx>-0.0001f)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 301, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_xx=0.00000000f;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_36 = {0x9c699af810b447e, 302, 0};
	bbOnDebugEnterStm(&__stmt_36);
	openb3d_b3dglgraphics_Text(0,340,bbStringConcat(((BBString*)&_s19),bbStringFromFloat(bbt_xx)));
	struct BBDebugStm __stmt_37 = {0x9c699af810b447e, 304, 0};
	bbOnDebugEnterStm(&__stmt_37);
	bbt_xx=((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->clas->m_EntityRoll_i((struct openb3d_openb3dcore_TEntity_obj*)bbt_ent,0);
	struct BBDebugStm __stmt_38 = {0x9c699af810b447e, 305, 0};
	bbOnDebugEnterStm(&__stmt_38);
	if((bbt_xx<0.0001f) && (bbt_xx>-0.0001f)){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 305, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_xx=0.00000000f;
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_39 = {0x9c699af810b447e, 306, 0};
	bbOnDebugEnterStm(&__stmt_39);
	openb3d_b3dglgraphics_Text(0,360,bbStringConcat(((BBString*)&_s20),bbStringFromFloat(bbt_xx)));
	struct BBDebugStm __stmt_40 = {0x9c699af810b447e, 308, 0};
	bbOnDebugEnterStm(&__stmt_40);
	bbt_tx=0;
	struct BBDebugStm __stmt_41 = {0x9c699af810b447e, 309, 0};
	bbOnDebugEnterStm(&__stmt_41);
	bbt_ty=380;
	struct BBDebugStm __stmt_42 = {0x9c699af810b447e, 310, 0};
	bbOnDebugEnterStm(&__stmt_42);
	{
		BBINT bbt_iy=0;
		for(;(bbt_iy<=3);bbt_iy=(bbt_iy+1)){
			struct BBDebugScope_1 __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_LOCAL,
						"iy",
						"i",
						.var_address=&bbt_iy
					},
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 311, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_tx=0;
			struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 312, 0};
			bbOnDebugEnterStm(&__stmt_1);
			bbt_ty=(bbt_ty+20);
			struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 313, 0};
			bbOnDebugEnterStm(&__stmt_2);
			{
				BBINT bbt_ix=0;
				for(;(bbt_ix<=3);bbt_ix=(bbt_ix+1)){
					struct BBDebugScope_1 __scope = {
						BBDEBUGSCOPE_LOCALBLOCK,
						0,
						{
							{
								BBDEBUGDECL_LOCAL,
								"ix",
								"i",
								.var_address=&bbt_ix
							},
							{
								BBDEBUGDECL_END
							}
						}
					};
					bbOnDebugEnterScope((BBDebugScope *)&__scope);
					struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 314, 0};
					bbOnDebugEnterStm(&__stmt_0);
					bbt_xx=((struct openb3d_openb3dcore_TMatPtr_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_mat ))->_openb3d_openb3dcore_tmatptr_grid [((4*bbt_ix)+bbt_iy)];
					struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 315, 0};
					bbOnDebugEnterStm(&__stmt_1);
					if((bbt_xx<0.0001f) && (bbt_xx>-0.0001f)){
						struct BBDebugScope __scope = {
							BBDEBUGSCOPE_LOCALBLOCK,
							0,
							{
								{
									BBDEBUGDECL_END
								}
							}
						};
						bbOnDebugEnterScope((BBDebugScope *)&__scope);
						struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 315, 0};
						bbOnDebugEnterStm(&__stmt_0);
						bbt_xx=0.00000000f;
						bbOnDebugLeaveScope();
					}
					struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 316, 0};
					bbOnDebugEnterStm(&__stmt_2);
					openb3d_b3dglgraphics_Text(bbt_tx,bbt_ty,bbStringFromFloat(bbt_xx));
					struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 317, 0};
					bbOnDebugEnterStm(&__stmt_3);
					bbt_tx=(bbt_tx+100);
					bbOnDebugLeaveScope();
				}
			}
			bbOnDebugLeaveScope();
		}
	}
	bbOnDebugLeaveScope();
}
void openb3d_b3dglgraphics_TDebug_EntityInfo2_v_TTEntityTTSurface(struct openb3d_openb3dcore_TEntity_obj* bbt_ent,struct openb3d_openb3dcore_TSurface_obj* bbt_surf){
	struct BBDebugScope_2 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"EntityInfo2",
		{
			{
				BBDEBUGDECL_LOCAL,
				"ent",
				":TEntity",
				.var_address=&bbt_ent
			},
			{
				BBDEBUGDECL_LOCAL,
				"surf",
				":TSurface",
				.var_address=&bbt_surf
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 325, 0};
	bbOnDebugEnterStm(&__stmt_0);
	if(((BBOBJECT)((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh)))!=&bbNullObject){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 327, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_b3dglgraphics_Text(0,40,((BBString*)&_s22));
		struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 329, 0};
		bbOnDebugEnterStm(&__stmt_1);
		if(((BBOBJECT)bbt_surf)!=&bbNullObject){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 331, 0};
			bbOnDebugEnterStm(&__stmt_0);
			struct openb3d_openb3dcore_TMesh_obj* bbt_;
			openb3d_b3dglgraphics_Text(0,80,bbStringConcat(bbStringConcat(bbStringConcat(((BBString*)&_s23),bbStringFromInt(openb3d_b3dglgraphics_TDebug_surf_no)),((BBString*)&_s8)),bbStringFromInt((((struct openb3d_openb3dcore_TMesh_obj*)((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)(bbt_ = ((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))))->clas)->m_CountSurfaces((struct openb3d_openb3dcore_TMesh_obj*)bbt_))));
			struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 332, 0};
			bbOnDebugEnterStm(&__stmt_1);
			struct openb3d_openb3dcore_TMesh_obj* bbt_2;
			openb3d_b3dglgraphics_Text(0,100,bbStringConcat(bbStringConcat(bbStringConcat(((BBString*)&_s24),bbStringFromInt(((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->clas->m_CountVertices((struct openb3d_openb3dcore_TSurface_obj*)bbt_surf))),((BBString*)&_s8)),bbStringFromInt((((struct openb3d_openb3dcore_TMesh_obj*)((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)(bbt_2 = ((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))))->clas)->m_CountVertices((struct openb3d_openb3dcore_TMesh_obj*)bbt_2))));
			struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 333, 0};
			bbOnDebugEnterStm(&__stmt_2);
			struct openb3d_openb3dcore_TMesh_obj* bbt_3;
			openb3d_b3dglgraphics_Text(0,120,bbStringConcat(bbStringConcat(bbStringConcat(((BBString*)&_s25),bbStringFromInt(((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->clas->m_CountTriangles((struct openb3d_openb3dcore_TSurface_obj*)bbt_surf))),((BBString*)&_s8)),bbStringFromInt((((struct openb3d_openb3dcore_TMesh_obj*)((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)(bbt_3 = ((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))))->clas)->m_CountTriangles((struct openb3d_openb3dcore_TMesh_obj*)bbt_3))));
			struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 334, 0};
			bbOnDebugEnterStm(&__stmt_3);
			openb3d_b3dglgraphics_Text(0,160,bbStringConcat(((BBString*)&_s26),bbStringFromInt(((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_alpha_enable [0])));
			struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 335, 0};
			bbOnDebugEnterStm(&__stmt_4);
			openb3d_b3dglgraphics_Text(0,200,bbStringConcat(((BBString*)&_s27),bbStringFromInt(((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_vmin [0])));
			struct BBDebugStm __stmt_5 = {0x9c699af810b447e, 336, 0};
			bbOnDebugEnterStm(&__stmt_5);
			openb3d_b3dglgraphics_Text(0,220,bbStringConcat(((BBString*)&_s28),bbStringFromInt(((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_vmax [0])));
			bbOnDebugLeaveScope();
		}else{
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 340, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_Text(0,80,((BBString*)&_s29));
			bbOnDebugLeaveScope();
		}
		bbOnDebugLeaveScope();
	}else{
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 346, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_b3dglgraphics_Text(0,80,((BBString*)&_s30));
		bbOnDebugLeaveScope();
	}
	bbOnDebugLeaveScope();
}
void openb3d_b3dglgraphics_TDebug_EntityInfo3_v_TTEntityTTSurface(struct openb3d_openb3dcore_TEntity_obj* bbt_ent,struct openb3d_openb3dcore_TSurface_obj* bbt_surf){
	struct BBDebugScope_2 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"EntityInfo3",
		{
			{
				BBDEBUGDECL_LOCAL,
				"ent",
				":TEntity",
				.var_address=&bbt_ent
			},
			{
				BBDEBUGDECL_LOCAL,
				"surf",
				":TSurface",
				.var_address=&bbt_surf
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 354, 0};
	bbOnDebugEnterStm(&__stmt_0);
	openb3d_b3dglgraphics_Text(0,40,((BBString*)&_s31));
	struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 356, 0};
	bbOnDebugEnterStm(&__stmt_1);
	if(((BBOBJECT)bbt_surf)!=&bbNullObject){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 358, 0};
		bbOnDebugEnterStm(&__stmt_0);
		struct openb3d_openb3dcore_TMesh_obj* bbt_;
		openb3d_b3dglgraphics_Text(0,80,bbStringConcat(bbStringConcat(bbStringConcat(bbStringConcat(((BBString*)&_s23),bbStringFromInt(openb3d_b3dglgraphics_TDebug_surf_no)),((BBString*)&_s8)),bbStringFromInt((((struct openb3d_openb3dcore_TMesh_obj*)((struct openb3d_openb3dcore_TMesh_obj*)bbNullObjectTest((BBObject*)(bbt_ = ((struct openb3d_openb3dcore_TMesh_obj*)bbObjectDowncast((BBOBJECT)bbt_ent,(BBClass*)&openb3d_openb3dcore_TMesh))))))->clas)->m_CountSurfaces((struct openb3d_openb3dcore_TMesh_obj*)bbt_))),((BBString*)&_s32)));
		struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 360, 0};
		bbOnDebugEnterStm(&__stmt_1);
		if(((BBOBJECT)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush )!=&bbNullObject){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 362, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_Text(0,100,bbStringConcat(((BBString*)&_s33),bbStringFromCString(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_name )));
			struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 363, 0};
			bbOnDebugEnterStm(&__stmt_1);
			openb3d_b3dglgraphics_Text(0,120,bbStringConcat(((BBString*)&_s34),bbStringFromFloat(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_red [0])));
			struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 364, 0};
			bbOnDebugEnterStm(&__stmt_2);
			openb3d_b3dglgraphics_Text(0,140,bbStringConcat(((BBString*)&_s35),bbStringFromFloat(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_green [0])));
			struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 365, 0};
			bbOnDebugEnterStm(&__stmt_3);
			openb3d_b3dglgraphics_Text(0,160,bbStringConcat(((BBString*)&_s36),bbStringFromFloat(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_blue [0])));
			struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 366, 0};
			bbOnDebugEnterStm(&__stmt_4);
			openb3d_b3dglgraphics_Text(0,180,bbStringConcat(((BBString*)&_s37),bbStringFromFloat(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_alpha [0])));
			struct BBDebugStm __stmt_5 = {0x9c699af810b447e, 367, 0};
			bbOnDebugEnterStm(&__stmt_5);
			openb3d_b3dglgraphics_Text(0,200,bbStringConcat(((BBString*)&_s38),bbStringFromInt(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_blend [0])));
			struct BBDebugStm __stmt_6 = {0x9c699af810b447e, 368, 0};
			bbOnDebugEnterStm(&__stmt_6);
			openb3d_b3dglgraphics_Text(0,220,bbStringConcat(((BBString*)&_s39),bbStringFromInt(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_fx [0])));
			struct BBDebugStm __stmt_7 = {0x9c699af810b447e, 370, 0};
			bbOnDebugEnterStm(&__stmt_7);
			if(((BBOBJECT)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,0U))[0U])!=&bbNullObject){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 371, 0};
				bbOnDebugEnterStm(&__stmt_0);
				openb3d_b3dglgraphics_Text(0,240,bbStringConcat(((BBString*)&_s40),bbStringFromCString(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,0U))[0U]))->_openb3d_openb3dcore_ttexture_file )));
				struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 372, 0};
				bbOnDebugEnterStm(&__stmt_1);
				openb3d_b3dglgraphics_Text(0,260,bbStringConcat(((BBString*)&_s41),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,0U))[0U]))->_openb3d_openb3dcore_ttexture_flags [0])));
				struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 373, 0};
				bbOnDebugEnterStm(&__stmt_2);
				openb3d_b3dglgraphics_Text(0,280,bbStringConcat(((BBString*)&_s42),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,0U))[0U]))->_openb3d_openb3dcore_ttexture_blend [0])));
				bbOnDebugLeaveScope();
			}
			struct BBDebugStm __stmt_8 = {0x9c699af810b447e, 375, 0};
			bbOnDebugEnterStm(&__stmt_8);
			if(((BBOBJECT)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,1U))[1U])!=&bbNullObject){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 376, 0};
				bbOnDebugEnterStm(&__stmt_0);
				openb3d_b3dglgraphics_Text(0,300,bbStringConcat(((BBString*)&_s43),bbStringFromCString(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,1U))[1U]))->_openb3d_openb3dcore_ttexture_file )));
				struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 377, 0};
				bbOnDebugEnterStm(&__stmt_1);
				openb3d_b3dglgraphics_Text(0,320,bbStringConcat(((BBString*)&_s44),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,1U))[1U]))->_openb3d_openb3dcore_ttexture_flags [0])));
				struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 378, 0};
				bbOnDebugEnterStm(&__stmt_2);
				openb3d_b3dglgraphics_Text(0,340,bbStringConcat(((BBString*)&_s45),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,1U))[1U]))->_openb3d_openb3dcore_ttexture_blend [0])));
				bbOnDebugLeaveScope();
			}
			struct BBDebugStm __stmt_9 = {0x9c699af810b447e, 380, 0};
			bbOnDebugEnterStm(&__stmt_9);
			if(((BBOBJECT)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,2U))[2U])!=&bbNullObject){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 381, 0};
				bbOnDebugEnterStm(&__stmt_0);
				openb3d_b3dglgraphics_Text(0,360,bbStringConcat(((BBString*)&_s46),bbStringFromCString(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,2U))[2U]))->_openb3d_openb3dcore_ttexture_file )));
				struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 382, 0};
				bbOnDebugEnterStm(&__stmt_1);
				openb3d_b3dglgraphics_Text(0,380,bbStringConcat(((BBString*)&_s47),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,2U))[2U]))->_openb3d_openb3dcore_ttexture_flags [0])));
				struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 383, 0};
				bbOnDebugEnterStm(&__stmt_2);
				openb3d_b3dglgraphics_Text(0,400,bbStringConcat(((BBString*)&_s48),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,2U))[2U]))->_openb3d_openb3dcore_ttexture_blend [0])));
				bbOnDebugLeaveScope();
			}
			struct BBDebugStm __stmt_10 = {0x9c699af810b447e, 385, 0};
			bbOnDebugEnterStm(&__stmt_10);
			if(((BBOBJECT)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,3U))[3U])!=&bbNullObject){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 386, 0};
				bbOnDebugEnterStm(&__stmt_0);
				openb3d_b3dglgraphics_Text(0,420,bbStringConcat(((BBString*)&_s49),bbStringFromCString(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,3U))[3U]))->_openb3d_openb3dcore_ttexture_file )));
				struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 387, 0};
				bbOnDebugEnterStm(&__stmt_1);
				openb3d_b3dglgraphics_Text(0,440,bbStringConcat(((BBString*)&_s50),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,3U))[3U]))->_openb3d_openb3dcore_ttexture_flags [0])));
				struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 388, 0};
				bbOnDebugEnterStm(&__stmt_2);
				openb3d_b3dglgraphics_Text(0,460,bbStringConcat(((BBString*)&_s51),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TSurface_obj*)bbNullObjectTest((BBObject*)bbt_surf))->_openb3d_openb3dcore_tsurface_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,3U))[3U]))->_openb3d_openb3dcore_ttexture_blend [0])));
				bbOnDebugLeaveScope();
			}
			bbOnDebugLeaveScope();
		}else{
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 393, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_Text(0,100,((BBString*)&_s52));
			bbOnDebugLeaveScope();
		}
		bbOnDebugLeaveScope();
	}else{
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 399, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_b3dglgraphics_Text(0,100,((BBString*)&_s29));
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 403, 0};
	bbOnDebugEnterStm(&__stmt_2);
	openb3d_b3dglgraphics_Text(200,80,((BBString*)&_s53));
	struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 405, 0};
	bbOnDebugEnterStm(&__stmt_3);
	if(((BBOBJECT)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush )!=&bbNullObject){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 407, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_b3dglgraphics_Text(200,100,bbStringConcat(((BBString*)&_s33),bbStringFromCString(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_name )));
		struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 408, 0};
		bbOnDebugEnterStm(&__stmt_1);
		openb3d_b3dglgraphics_Text(200,120,bbStringConcat(((BBString*)&_s34),bbStringFromFloat(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_red [0])));
		struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 409, 0};
		bbOnDebugEnterStm(&__stmt_2);
		openb3d_b3dglgraphics_Text(200,140,bbStringConcat(((BBString*)&_s35),bbStringFromFloat(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_green [0])));
		struct BBDebugStm __stmt_3 = {0x9c699af810b447e, 410, 0};
		bbOnDebugEnterStm(&__stmt_3);
		openb3d_b3dglgraphics_Text(200,160,bbStringConcat(((BBString*)&_s36),bbStringFromFloat(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_blue [0])));
		struct BBDebugStm __stmt_4 = {0x9c699af810b447e, 411, 0};
		bbOnDebugEnterStm(&__stmt_4);
		openb3d_b3dglgraphics_Text(200,180,bbStringConcat(((BBString*)&_s37),bbStringFromFloat(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_alpha [0])));
		struct BBDebugStm __stmt_5 = {0x9c699af810b447e, 412, 0};
		bbOnDebugEnterStm(&__stmt_5);
		openb3d_b3dglgraphics_Text(200,200,bbStringConcat(((BBString*)&_s38),bbStringFromInt(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_blend [0])));
		struct BBDebugStm __stmt_6 = {0x9c699af810b447e, 413, 0};
		bbOnDebugEnterStm(&__stmt_6);
		openb3d_b3dglgraphics_Text(200,220,bbStringConcat(((BBString*)&_s39),bbStringFromInt(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_fx [0])));
		struct BBDebugStm __stmt_7 = {0x9c699af810b447e, 415, 0};
		bbOnDebugEnterStm(&__stmt_7);
		if(((BBOBJECT)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,0U))[0U])!=&bbNullObject){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 416, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_Text(200,240,bbStringConcat(((BBString*)&_s40),bbStringFromCString(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,0U))[0U]))->_openb3d_openb3dcore_ttexture_file )));
			struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 417, 0};
			bbOnDebugEnterStm(&__stmt_1);
			openb3d_b3dglgraphics_Text(200,160,bbStringConcat(((BBString*)&_s41),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,0U))[0U]))->_openb3d_openb3dcore_ttexture_flags [0])));
			struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 418, 0};
			bbOnDebugEnterStm(&__stmt_2);
			openb3d_b3dglgraphics_Text(200,280,bbStringConcat(((BBString*)&_s42),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,0U))[0U]))->_openb3d_openb3dcore_ttexture_blend [0])));
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_8 = {0x9c699af810b447e, 420, 0};
		bbOnDebugEnterStm(&__stmt_8);
		if(((BBOBJECT)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,1U))[1U])!=&bbNullObject){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 421, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_Text(200,300,bbStringConcat(((BBString*)&_s43),bbStringFromCString(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,1U))[1U]))->_openb3d_openb3dcore_ttexture_file )));
			struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 422, 0};
			bbOnDebugEnterStm(&__stmt_1);
			openb3d_b3dglgraphics_Text(200,320,bbStringConcat(((BBString*)&_s44),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,1U))[1U]))->_openb3d_openb3dcore_ttexture_flags [0])));
			struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 423, 0};
			bbOnDebugEnterStm(&__stmt_2);
			openb3d_b3dglgraphics_Text(200,340,bbStringConcat(((BBString*)&_s45),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,1U))[1U]))->_openb3d_openb3dcore_ttexture_blend [0])));
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_9 = {0x9c699af810b447e, 425, 0};
		bbOnDebugEnterStm(&__stmt_9);
		if(((BBOBJECT)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,2U))[2U])!=&bbNullObject){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 426, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_Text(200,360,bbStringConcat(((BBString*)&_s46),bbStringFromCString(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,2U))[2U]))->_openb3d_openb3dcore_ttexture_file )));
			struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 427, 0};
			bbOnDebugEnterStm(&__stmt_1);
			openb3d_b3dglgraphics_Text(200,380,bbStringConcat(((BBString*)&_s47),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,2U))[2U]))->_openb3d_openb3dcore_ttexture_flags [0])));
			struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 428, 0};
			bbOnDebugEnterStm(&__stmt_2);
			openb3d_b3dglgraphics_Text(200,400,bbStringConcat(((BBString*)&_s48),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,2U))[2U]))->_openb3d_openb3dcore_ttexture_blend [0])));
			bbOnDebugLeaveScope();
		}
		struct BBDebugStm __stmt_10 = {0x9c699af810b447e, 430, 0};
		bbOnDebugEnterStm(&__stmt_10);
		if(((BBOBJECT)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,3U))[3U])!=&bbNullObject){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 431, 0};
			bbOnDebugEnterStm(&__stmt_0);
			openb3d_b3dglgraphics_Text(200,420,bbStringConcat(((BBString*)&_s49),bbStringFromCString(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,3U))[3U]))->_openb3d_openb3dcore_ttexture_file )));
			struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 432, 0};
			bbOnDebugEnterStm(&__stmt_1);
			openb3d_b3dglgraphics_Text(200,440,bbStringConcat(((BBString*)&_s50),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,3U))[3U]))->_openb3d_openb3dcore_ttexture_flags [0])));
			struct BBDebugStm __stmt_2 = {0x9c699af810b447e, 433, 0};
			bbOnDebugEnterStm(&__stmt_2);
			openb3d_b3dglgraphics_Text(200,460,bbStringConcat(((BBString*)&_s51),bbStringFromInt(((struct openb3d_openb3dcore_TTexture_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TTexture_obj**)BBARRAYDATAINDEX((((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex ),(((struct openb3d_openb3dcore_TBrush_obj*)bbNullObjectTest((BBObject*)((struct openb3d_openb3dcore_TEntity_obj*)bbNullObjectTest((BBObject*)bbt_ent))->_openb3d_openb3dcore_tentity_brush ))->_openb3d_openb3dcore_tbrush_tex )->dims,3U))[3U]))->_openb3d_openb3dcore_ttexture_blend [0])));
			bbOnDebugLeaveScope();
		}
		bbOnDebugLeaveScope();
	}else{
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 438, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_b3dglgraphics_Text(0,100,((BBString*)&_s52));
		bbOnDebugLeaveScope();
	}
	bbOnDebugLeaveScope();
}
void openb3d_b3dglgraphics_TDebug_EntityInfo4_v_TTEntityTTCamera(struct openb3d_openb3dcore_TEntity_obj* bbt_ent,struct openb3d_openb3dcore_TCamera_obj* bbt_cam){
	struct BBDebugScope_2 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"EntityInfo4",
		{
			{
				BBDEBUGDECL_LOCAL,
				"ent",
				":TEntity",
				.var_address=&bbt_ent
			},
			{
				BBDEBUGDECL_LOCAL,
				"cam",
				":TCamera",
				.var_address=&bbt_cam
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 446, 0};
	bbOnDebugEnterStm(&__stmt_0);
	openb3d_b3dglgraphics_Text(0,40,((BBString*)&_s54));
	struct BBDebugStm __stmt_1 = {0x9c699af810b447e, 448, 0};
	bbOnDebugEnterStm(&__stmt_1);
	if(((BBOBJECT)bbt_cam)!=&bbNullObject){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 450, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_b3dglgraphics_Text(0,80,bbStringConcat(((BBString*)&_s55),bbStringFromInt(((struct openb3d_openb3dcore_TCamera_obj*)bbNullObjectTest((BBObject*)bbt_cam))->clas->m_EntityInView_TTEntity((struct openb3d_openb3dcore_TCamera_obj*)bbt_cam,(struct openb3d_openb3dcore_TEntity_obj*)bbt_ent))));
		bbOnDebugLeaveScope();
	}else{
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0x9c699af810b447e, 454, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_b3dglgraphics_Text(0,80,((BBString*)&_s56));
		bbOnDebugLeaveScope();
	}
	bbOnDebugLeaveScope();
}
BBINT openb3d_b3dglgraphics_TDebug_cno;
BBINT openb3d_b3dglgraphics_TDebug_surf_no;
BBINT openb3d_b3dglgraphics_TDebug_info;
BBINT openb3d_b3dglgraphics_TDebug_show_ents;
struct openb3d_openb3dcore_TMesh_obj* openb3d_b3dglgraphics_TDebug_bounding_sphere;
struct openb3d_openb3dcore_TMesh_obj* openb3d_b3dglgraphics_TDebug_debug_mesh;
struct openb3d_openb3dcore_TSurface_obj* openb3d_b3dglgraphics_TDebug_debug_surf;
struct openb3d_openb3dcore_TMesh_obj* openb3d_b3dglgraphics_TDebug_marker;
struct BBDebugScope_18 openb3d_b3dglgraphics_TDebug_scope ={
	BBDEBUGSCOPE_USERTYPE,
	"TDebug",
	{
		{
			BBDEBUGDECL_GLOBAL,
			"cno",
			"i",
			.var_address=(void*)&openb3d_b3dglgraphics_TDebug_cno
		},
		{
			BBDEBUGDECL_GLOBAL,
			"surf_no",
			"i",
			.var_address=(void*)&openb3d_b3dglgraphics_TDebug_surf_no
		},
		{
			BBDEBUGDECL_GLOBAL,
			"info",
			"i",
			.var_address=(void*)&openb3d_b3dglgraphics_TDebug_info
		},
		{
			BBDEBUGDECL_GLOBAL,
			"show_ents",
			"i",
			.var_address=(void*)&openb3d_b3dglgraphics_TDebug_show_ents
		},
		{
			BBDEBUGDECL_GLOBAL,
			"bounding_sphere",
			":TMesh",
			.var_address=(void*)&openb3d_b3dglgraphics_TDebug_bounding_sphere
		},
		{
			BBDEBUGDECL_GLOBAL,
			"debug_mesh",
			":TMesh",
			.var_address=(void*)&openb3d_b3dglgraphics_TDebug_debug_mesh
		},
		{
			BBDEBUGDECL_GLOBAL,
			"debug_surf",
			":TSurface",
			.var_address=(void*)&openb3d_b3dglgraphics_TDebug_debug_surf
		},
		{
			BBDEBUGDECL_GLOBAL,
			"marker",
			":TMesh",
			.var_address=(void*)&openb3d_b3dglgraphics_TDebug_marker
		},
		{
			BBDEBUGDECL_TYPEMETHOD,
			"New",
			"()",
			.func_ptr=(BBFuncPtr)&_openb3d_b3dglgraphics_TDebug_New
		},
		{
			BBDEBUGDECL_TYPEFUNCTION,
			"DebugWorld",
			"()",
			.func_ptr=(BBFuncPtr)&openb3d_b3dglgraphics_TDebug_DebugWorld_v
		},
		{
			BBDEBUGDECL_TYPEFUNCTION,
			"DebugEntity",
			"(:TEntity,:TCamera):TEntity",
			.func_ptr=(BBFuncPtr)&openb3d_b3dglgraphics_TDebug_DebugEntity_TTEntity_TTEntityTTCamera
		},
		{
			BBDEBUGDECL_TYPEFUNCTION,
			"UpdateBoundingSphere",
			"(:TEntity)",
			.func_ptr=(BBFuncPtr)&openb3d_b3dglgraphics_TDebug_UpdateBoundingSphere_v_TTEntity
		},
		{
			BBDEBUGDECL_TYPEFUNCTION,
			"UpdateSurface",
			"(:TEntity,:TSurface)",
			.func_ptr=(BBFuncPtr)&openb3d_b3dglgraphics_TDebug_UpdateSurface_v_TTEntityTTSurface
		},
		{
			BBDEBUGDECL_TYPEFUNCTION,
			"UpdateMarker",
			"(:TEntity,:TCamera)",
			.func_ptr=(BBFuncPtr)&openb3d_b3dglgraphics_TDebug_UpdateMarker_v_TTEntityTTCamera
		},
		{
			BBDEBUGDECL_TYPEFUNCTION,
			"EntityInfo1",
			"(:TEntity)",
			.func_ptr=(BBFuncPtr)&openb3d_b3dglgraphics_TDebug_EntityInfo1_v_TTEntity
		},
		{
			BBDEBUGDECL_TYPEFUNCTION,
			"EntityInfo2",
			"(:TEntity,:TSurface)",
			.func_ptr=(BBFuncPtr)&openb3d_b3dglgraphics_TDebug_EntityInfo2_v_TTEntityTTSurface
		},
		{
			BBDEBUGDECL_TYPEFUNCTION,
			"EntityInfo3",
			"(:TEntity,:TSurface)",
			.func_ptr=(BBFuncPtr)&openb3d_b3dglgraphics_TDebug_EntityInfo3_v_TTEntityTTSurface
		},
		{
			BBDEBUGDECL_TYPEFUNCTION,
			"EntityInfo4",
			"(:TEntity,:TCamera)",
			.func_ptr=(BBFuncPtr)&openb3d_b3dglgraphics_TDebug_EntityInfo4_v_TTEntityTTCamera
		},
		{
			BBDEBUGDECL_END
		}
	}
};
struct BBClass_openb3d_b3dglgraphics_TDebug openb3d_b3dglgraphics_TDebug={
	&bbObjectClass,
	bbObjectFree,
	(BBDebugScope*)&openb3d_b3dglgraphics_TDebug_scope,
	sizeof(struct openb3d_b3dglgraphics_TDebug_obj),
	(void (*)(BBOBJECT))_openb3d_b3dglgraphics_TDebug_New,
	bbObjectDtor,
	bbObjectToString,
	bbObjectCompare,
	bbObjectSendMessage,
	0,
	0,
	0
	,0
	,sizeof(void*)
	,openb3d_b3dglgraphics_TDebug_DebugWorld_v
	,openb3d_b3dglgraphics_TDebug_DebugEntity_TTEntity_TTEntityTTCamera
	,openb3d_b3dglgraphics_TDebug_UpdateBoundingSphere_v_TTEntity
	,openb3d_b3dglgraphics_TDebug_UpdateSurface_v_TTEntityTTSurface
	,openb3d_b3dglgraphics_TDebug_UpdateMarker_v_TTEntityTTCamera
	,openb3d_b3dglgraphics_TDebug_EntityInfo1_v_TTEntity
	,openb3d_b3dglgraphics_TDebug_EntityInfo2_v_TTEntityTTSurface
	,openb3d_b3dglgraphics_TDebug_EntityInfo3_v_TTEntityTTSurface
	,openb3d_b3dglgraphics_TDebug_EntityInfo4_v_TTEntityTTCamera
};

void openb3d_b3dglgraphics_Graphics3D(BBINT bbt_width,BBINT bbt_height,BBINT bbt_depth,BBINT bbt_mode,BBINT bbt_rate,BBINT bbt_flags,BBINT bbt_usecanvas,BBINT bbt_x,BBINT bbt_y){
	struct BBDebugScope_9 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"Graphics3D",
		{
			{
				BBDEBUGDECL_LOCAL,
				"width",
				"i",
				.var_address=&bbt_width
			},
			{
				BBDEBUGDECL_LOCAL,
				"height",
				"i",
				.var_address=&bbt_height
			},
			{
				BBDEBUGDECL_LOCAL,
				"depth",
				"i",
				.var_address=&bbt_depth
			},
			{
				BBDEBUGDECL_LOCAL,
				"mode",
				"i",
				.var_address=&bbt_mode
			},
			{
				BBDEBUGDECL_LOCAL,
				"rate",
				"i",
				.var_address=&bbt_rate
			},
			{
				BBDEBUGDECL_LOCAL,
				"flags",
				"i",
				.var_address=&bbt_flags
			},
			{
				BBDEBUGDECL_LOCAL,
				"usecanvas",
				"i",
				.var_address=&bbt_usecanvas
			},
			{
				BBDEBUGDECL_LOCAL,
				"x",
				"i",
				.var_address=&bbt_x
			},
			{
				BBDEBUGDECL_LOCAL,
				"y",
				"i",
				.var_address=&bbt_y
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 64, 0};
	bbOnDebugEnterStm(&__stmt_0);
	BBINT bbt_=bbt_flags;
	struct BBDebugStm __stmt_1 = {0xc30691f2765d4862, 65, 0};
	bbOnDebugEnterStm(&__stmt_1);
	if(bbt_==-1){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 66, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_flags=62;
		bbOnDebugLeaveScope();
	}else{
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 67, 0};
		bbOnDebugEnterStm(&__stmt_0);
		if(bbt_==-2){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 68, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_flags=30;
			bbOnDebugLeaveScope();
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_2 = {0xc30691f2765d4862, 72, 0};
	bbOnDebugEnterStm(&__stmt_2);
	BBINT bbt_2=bbt_mode;
	struct BBDebugStm __stmt_3 = {0xc30691f2765d4862, 73, 0};
	bbOnDebugEnterStm(&__stmt_3);
	if(bbt_2==0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 75, 0};
		bbOnDebugEnterStm(&__stmt_0);
		bbt_depth=0;
		bbOnDebugLeaveScope();
	}else{
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 80, 0};
		bbOnDebugEnterStm(&__stmt_0);
		if(bbt_2==1){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 81, 0};
			bbOnDebugEnterStm(&__stmt_0);
			if(bbt_depth==0){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 81, 0};
				bbOnDebugEnterStm(&__stmt_0);
				bbt_depth=brl_system_DesktopDepth(0);
				bbOnDebugLeaveScope();
			}
			bbOnDebugLeaveScope();
		}else{
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 82, 0};
			bbOnDebugEnterStm(&__stmt_0);
			if(bbt_2==2){
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 83, 0};
				bbOnDebugEnterStm(&__stmt_0);
				bbt_depth=0;
				bbOnDebugLeaveScope();
			}else{
				struct BBDebugScope __scope = {
					BBDEBUGSCOPE_LOCALBLOCK,
					0,
					{
						{
							BBDEBUGDECL_END
						}
					}
				};
				bbOnDebugEnterScope((BBDebugScope *)&__scope);
				struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 85, 0};
				bbOnDebugEnterStm(&__stmt_0);
				bbt_depth=0;
				bbOnDebugLeaveScope();
			}
			bbOnDebugLeaveScope();
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_4 = {0xc30691f2765d4862, 91, 0};
	bbOnDebugEnterStm(&__stmt_4);
	openb3d_openb3dcore_TGlobal3D_InitGlobals_i();
	struct BBDebugStm __stmt_5 = {0xc30691f2765d4862, 92, 0};
	bbOnDebugEnterStm(&__stmt_5);
	openb3d_openb3dcore_TGlobal3D_width[0]=bbt_width;
	struct BBDebugStm __stmt_6 = {0xc30691f2765d4862, 93, 0};
	bbOnDebugEnterStm(&__stmt_6);
	openb3d_openb3dcore_TGlobal3D_height[0]=bbt_height;
	struct BBDebugStm __stmt_7 = {0xc30691f2765d4862, 94, 0};
	bbOnDebugEnterStm(&__stmt_7);
	openb3d_openb3dcore_TGlobal3D_depth[0]=bbt_depth;
	struct BBDebugStm __stmt_8 = {0xc30691f2765d4862, 95, 0};
	bbOnDebugEnterStm(&__stmt_8);
	openb3d_openb3dcore_TGlobal3D_Mode[0]=bbt_mode;
	struct BBDebugStm __stmt_9 = {0xc30691f2765d4862, 96, 0};
	bbOnDebugEnterStm(&__stmt_9);
	openb3d_openb3dcore_TGlobal3D_rate[0]=bbt_rate;
	struct BBDebugStm __stmt_10 = {0xc30691f2765d4862, 98, 0};
	bbOnDebugEnterStm(&__stmt_10);
	brl_graphics_SetGraphicsDriver((struct brl_graphics_TGraphicsDriver_obj*)((struct brl_graphics_TGraphicsDriver_obj*)bbObjectDowncast((BBOBJECT)brl_glmax2d_GLMax2DDriver(),(BBClass*)&brl_graphics_TGraphicsDriver)),((BBLONG)bbt_flags));
	struct BBDebugStm __stmt_11 = {0xc30691f2765d4862, 100, 0};
	bbOnDebugEnterStm(&__stmt_11);
	if(bbt_usecanvas==0){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 100, 0};
		bbOnDebugEnterStm(&__stmt_0);
		openb3d_openb3dcore_TGlobal3D_gfx_obj=(struct brl_graphics_TGraphics_obj*)brl_graphics_Graphics(bbt_width,bbt_height,bbt_depth,bbt_rate,((BBLONG)bbt_flags),-1,-1);
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_12 = {0xc30691f2765d4862, 103, 0};
	bbOnDebugEnterStm(&__stmt_12);
	if((bbt_usecanvas==0) && ((bbt_mode==2) || ((bbt_mode==0) && (bbt_depth==0)))){
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_LOCALBLOCK,
			0,
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 104, 0};
		bbOnDebugEnterStm(&__stmt_0);
		if(brl_graphics_GraphicsHeight()>0){
			struct BBDebugScope __scope = {
				BBDEBUGSCOPE_LOCALBLOCK,
				0,
				{
					{
						BBDEBUGDECL_END
					}
				}
			};
			bbOnDebugEnterScope((BBDebugScope *)&__scope);
			struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 104, 0};
			bbOnDebugEnterStm(&__stmt_0);
			bbt_height=brl_graphics_GraphicsHeight();
			bbOnDebugLeaveScope();
		}
		bbOnDebugLeaveScope();
	}
	struct BBDebugStm __stmt_13 = {0xc30691f2765d4862, 107, 0};
	bbOnDebugEnterStm(&__stmt_13);
	glewInit();
	struct BBDebugStm __stmt_14 = {0xc30691f2765d4862, 108, 0};
	bbOnDebugEnterStm(&__stmt_14);
	openb3d_openb3dcore_TGlobal3D_GraphicsInit_i();
	struct BBDebugStm __stmt_15 = {0xc30691f2765d4862, 109, 0};
	bbOnDebugEnterStm(&__stmt_15);
	Graphics3D_(bbt_width,bbt_height,bbt_depth,bbt_mode,bbt_rate);
	struct BBDebugStm __stmt_16 = {0xc30691f2765d4862, 112, 0};
	bbOnDebugEnterStm(&__stmt_16);
	openb3d_openb3dcore_THardwareInfo_GetInfo_i();
	struct BBDebugStm __stmt_17 = {0xc30691f2765d4862, 113, 0};
	bbOnDebugEnterStm(&__stmt_17);
	openb3d_openb3dcore_TGlobal3D_vbo_enabled[0]=openb3d_openb3dcore_THardwareInfo_VBOSupport;
	struct BBDebugStm __stmt_18 = {0xc30691f2765d4862, 114, 0};
	bbOnDebugEnterStm(&__stmt_18);
	openb3d_openb3dcore_TTexture_AnIsoSupport[0]=openb3d_openb3dcore_THardwareInfo_AnIsoSupport;
	struct BBDebugStm __stmt_19 = {0xc30691f2765d4862, 115, 0};
	bbOnDebugEnterStm(&__stmt_19);
	openb3d_openb3dcore_TGlobal3D_GL_Version=bbStringToFloat((BBSTRING)openb3d_openb3dcore_THardwareInfo_OGLVersion);
	bbOnDebugLeaveScope();
}
void openb3d_b3dglgraphics_Text(BBINT bbt_x,BBINT bbt_y,BBSTRING bbt_txt){
	struct BBDebugScope_3 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"Text",
		{
			{
				BBDEBUGDECL_LOCAL,
				"x",
				"i",
				.var_address=&bbt_x
			},
			{
				BBDEBUGDECL_LOCAL,
				"y",
				"i",
				.var_address=&bbt_y
			},
			{
				BBDEBUGDECL_LOCAL,
				"txt",
				"$",
				.var_address=&bbt_txt
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 144, 0};
	bbOnDebugEnterStm(&__stmt_0);
	__glewActiveTexture(33984);
	struct BBDebugStm __stmt_1 = {0xc30691f2765d4862, 145, 0};
	bbOnDebugEnterStm(&__stmt_1);
	__glewClientActiveTexture(33984);
	struct BBDebugStm __stmt_2 = {0xc30691f2765d4862, 147, 0};
	bbOnDebugEnterStm(&__stmt_2);
	glDisable((GLenum)2896);
	struct BBDebugStm __stmt_3 = {0xc30691f2765d4862, 148, 0};
	bbOnDebugEnterStm(&__stmt_3);
	glColor3ub((GLubyte)openb3d_openb3dcore_TGlobal3D_txt_red,(GLubyte)openb3d_openb3dcore_TGlobal3D_txt_green,(GLubyte)openb3d_openb3dcore_TGlobal3D_txt_blue);
	struct BBDebugStm __stmt_4 = {0xc30691f2765d4862, 151, 0};
	bbOnDebugEnterStm(&__stmt_4);
	glEnable((GLenum)3042);
	struct BBDebugStm __stmt_5 = {0xc30691f2765d4862, 152, 0};
	bbOnDebugEnterStm(&__stmt_5);
	glBlendFunc((GLenum)770,(GLenum)771);
	struct BBDebugStm __stmt_6 = {0xc30691f2765d4862, 153, 0};
	bbOnDebugEnterStm(&__stmt_6);
	brl_glgraphics_source_GLDrawText(bbt_txt,bbt_x,bbt_y);
	struct BBDebugStm __stmt_7 = {0xc30691f2765d4862, 155, 0};
	bbOnDebugEnterStm(&__stmt_7);
	glDisable((GLenum)3042);
	struct BBDebugStm __stmt_8 = {0xc30691f2765d4862, 156, 0};
	bbOnDebugEnterStm(&__stmt_8);
	glEnable((GLenum)2896);
	struct BBDebugStm __stmt_9 = {0xc30691f2765d4862, 159, 0};
	bbOnDebugEnterStm(&__stmt_9);
	glDisable((GLenum)3553);
	bbOnDebugLeaveScope();
}
BBINT openb3d_b3dglgraphics_ShadowText(BBSTRING bbt_msg,BBINT bbt_x,BBINT bbt_y){
	BBINT bbt_red=0;
	BBINT bbt_green=0;
	BBINT bbt_blue=0;
	struct BBDebugScope_6 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"ShadowText",
		{
			{
				BBDEBUGDECL_LOCAL,
				"msg",
				"$",
				.var_address=&bbt_msg
			},
			{
				BBDEBUGDECL_LOCAL,
				"x",
				"i",
				.var_address=&bbt_x
			},
			{
				BBDEBUGDECL_LOCAL,
				"y",
				"i",
				.var_address=&bbt_y
			},
			{
				BBDEBUGDECL_LOCAL,
				"red",
				"i",
				.var_address=&bbt_red
			},
			{
				BBDEBUGDECL_LOCAL,
				"green",
				"i",
				.var_address=&bbt_green
			},
			{
				BBDEBUGDECL_LOCAL,
				"blue",
				"i",
				.var_address=&bbt_blue
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 168, 0};
	bbOnDebugEnterStm(&__stmt_0);
	bbt_red=0;
	struct BBDebugStm __stmt_1 = {0xc30691f2765d4862, 168, 0};
	bbOnDebugEnterStm(&__stmt_1);
	bbt_green=0;
	struct BBDebugStm __stmt_2 = {0xc30691f2765d4862, 168, 0};
	bbOnDebugEnterStm(&__stmt_2);
	bbt_blue=0;
	struct BBDebugStm __stmt_3 = {0xc30691f2765d4862, 170, 0};
	bbOnDebugEnterStm(&__stmt_3);
	brl_max2d_GetColor((&bbt_red),(&bbt_green),(&bbt_blue));
	struct BBDebugStm __stmt_4 = {0xc30691f2765d4862, 172, 0};
	bbOnDebugEnterStm(&__stmt_4);
	brl_max2d_SetColor(0,0,0);
	struct BBDebugStm __stmt_5 = {0xc30691f2765d4862, 173, 0};
	bbOnDebugEnterStm(&__stmt_5);
	brl_max2d_DrawText(bbt_msg,((BBFLOAT)(bbt_x+1)),((BBFLOAT)(bbt_y+1)));
	struct BBDebugStm __stmt_6 = {0xc30691f2765d4862, 175, 0};
	bbOnDebugEnterStm(&__stmt_6);
	brl_max2d_SetColor(255,255,255);
	struct BBDebugStm __stmt_7 = {0xc30691f2765d4862, 176, 0};
	bbOnDebugEnterStm(&__stmt_7);
	brl_max2d_DrawText(bbt_msg,((BBFLOAT)bbt_x),((BBFLOAT)bbt_y));
	struct BBDebugStm __stmt_8 = {0xc30691f2765d4862, 178, 0};
	bbOnDebugEnterStm(&__stmt_8);
	brl_max2d_SetColor(bbt_red,bbt_green,bbt_blue);
	bbOnDebugLeaveScope();
	return 0;
}
void openb3d_b3dglgraphics_TextColor(BBBYTE bbt_red,BBBYTE bbt_green,BBBYTE bbt_blue){
	struct BBDebugScope_3 __scope = {
		BBDEBUGSCOPE_FUNCTION,
		"TextColor",
		{
			{
				BBDEBUGDECL_LOCAL,
				"red",
				"b",
				.var_address=&bbt_red
			},
			{
				BBDEBUGDECL_LOCAL,
				"green",
				"b",
				.var_address=&bbt_green
			},
			{
				BBDEBUGDECL_LOCAL,
				"blue",
				"b",
				.var_address=&bbt_blue
			},
			{
				BBDEBUGDECL_END
			}
		}
	};
	bbOnDebugEnterScope((BBDebugScope *)&__scope);
	struct BBDebugStm __stmt_0 = {0xc30691f2765d4862, 187, 0};
	bbOnDebugEnterStm(&__stmt_0);
	openb3d_openb3dcore_TGlobal3D_txt_red=bbt_red;
	struct BBDebugStm __stmt_1 = {0xc30691f2765d4862, 188, 0};
	bbOnDebugEnterStm(&__stmt_1);
	openb3d_openb3dcore_TGlobal3D_txt_green=bbt_green;
	struct BBDebugStm __stmt_2 = {0xc30691f2765d4862, 189, 0};
	bbOnDebugEnterStm(&__stmt_2);
	openb3d_openb3dcore_TGlobal3D_txt_blue=bbt_blue;
	bbOnDebugLeaveScope();
}
static int __bb_openb3d_b3dglgraphics_b3dglgraphics_inited = 0;
int __bb_openb3d_b3dglgraphics_b3dglgraphics(){
	if (!__bb_openb3d_b3dglgraphics_b3dglgraphics_inited) {
		__bb_openb3d_b3dglgraphics_b3dglgraphics_inited = 1;
		GC_add_roots(&openb3d_b3dglgraphics_TDebug_cno, &openb3d_b3dglgraphics_TDebug_marker + 1);
		__bb_brl_blitz_blitz();
		__bb_openb3d_openb3dcore_openb3dcore();
		__bb_openb3d_stbimageloader_stbimageloader();
		__bb_brl_jpgloader_jpgloader();
		__bb_brl_pngloader_pngloader();
		bbObjectRegisterType((BBCLASS)&openb3d_b3dglgraphics_TDebug);
		bbRegisterSource(0x9c699af810b447e, "c:/BlitzmaxNG/mod/openb3d.mod/b3dglgraphics.mod/TDebug.bmx");
		bbRegisterSource(0xc30691f2765d4862, "c:/BlitzmaxNG/mod/openb3d.mod/b3dglgraphics.mod/b3dglgraphics.bmx");
		openb3d_b3dglgraphics_TDebug_cno=0;
		openb3d_b3dglgraphics_TDebug_surf_no=0;
		openb3d_b3dglgraphics_TDebug_info=0;
		openb3d_b3dglgraphics_TDebug_show_ents=0;
		openb3d_b3dglgraphics_TDebug_bounding_sphere=((struct openb3d_openb3dcore_TMesh_obj*)&bbNullObject);
		openb3d_b3dglgraphics_TDebug_debug_mesh=((struct openb3d_openb3dcore_TMesh_obj*)&bbNullObject);
		openb3d_b3dglgraphics_TDebug_debug_surf=((struct openb3d_openb3dcore_TSurface_obj*)&bbNullObject);
		openb3d_b3dglgraphics_TDebug_marker=((struct openb3d_openb3dcore_TMesh_obj*)&bbNullObject);
		openb3d_b3dglgraphics_TDebug_cno=0;
		openb3d_b3dglgraphics_TDebug_surf_no=0;
		openb3d_b3dglgraphics_TDebug_info=1;
		openb3d_b3dglgraphics_TDebug_show_ents=1;
		openb3d_b3dglgraphics_TDebug_bounding_sphere=(struct openb3d_openb3dcore_TMesh_obj*)((struct openb3d_openb3dcore_TMesh_obj*)&bbNullObject);
		openb3d_b3dglgraphics_TDebug_debug_mesh=(struct openb3d_openb3dcore_TMesh_obj*)((struct openb3d_openb3dcore_TMesh_obj*)&bbNullObject);
		openb3d_b3dglgraphics_TDebug_debug_surf=(struct openb3d_openb3dcore_TSurface_obj*)((struct openb3d_openb3dcore_TSurface_obj*)&bbNullObject);
		openb3d_b3dglgraphics_TDebug_marker=(struct openb3d_openb3dcore_TMesh_obj*)((struct openb3d_openb3dcore_TMesh_obj*)&bbNullObject);
		struct BBDebugScope __scope = {
			BBDEBUGSCOPE_FUNCTION,
			"b3dglgraphics",
			{
				{
					BBDEBUGDECL_END
				}
			}
		};
		bbOnDebugEnterScope((BBDebugScope *)&__scope);
		bbOnDebugLeaveScope();
		return 0;
	}
	return 0;
}