// // cocos2d::CCRenderTexture::draw from 0xd6b11c to 0xd6b2c0 (420 bytes) // // 2 xrefs: // > @ 0xcec08 // > @ 0x1527958 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:07:56 +0000 // __int64 __fastcall cocos2d::CCRenderTexture::draw(cocos2d::CCRenderTexture *this) { int v3; // w0 __int64 v4; // x0 unsigned int *v5; // x1 __int64 *v6; // x20 __int64 *i; // x22 __int64 v8; // x0 int v9; // w0 if ( !*((_BYTE *)this + 400) ) return _stack_chk_guard; cocos2d::CCRenderTexture::begin((cocos2d::CCTexture2D **)this); v3 = *((_DWORD *)this + 93); if ( v3 ) { if ( (v3 & 0x4000) != 0 ) { glGetFloatv(); glClearColor(); v3 = *((_DWORD *)this + 93); if ( (v3 & 0x100) == 0 ) { LABEL_14: if ( (v3 & 0x400) != 0 ) { glGetIntegerv(); glClearStencil(); } glClear(); v9 = *((_DWORD *)this + 93); if ( (v9 & 0x4000) != 0 ) { glClearColor(); v9 = *((_DWORD *)this + 93); if ( (v9 & 0x100) == 0 ) { LABEL_18: if ( (v9 & 0x400) != 0 ) glClearStencil(); goto LABEL_4; } } else if ( (v9 & 0x100) == 0 ) { goto LABEL_18; } glClearDepthf(); v9 = *((_DWORD *)this + 93); goto LABEL_18; } } else if ( (v3 & 0x100) == 0 ) { goto LABEL_14; } glGetFloatv(); glClearDepthf(); v3 = *((_DWORD *)this + 93); goto LABEL_14; } LABEL_4: (*(void (__fastcall **)(cocos2d::CCRenderTexture *))(*(_QWORD *)this + 600LL))(this); v4 = *((_QWORD *)this + 26); if ( v4 ) { v5 = *(unsigned int **)(v4 + 56); if ( *v5 ) { v6 = *((__int64 **)v5 + 2); for ( i = &v6[*v5 - 1]; i >= v6; ++v6 ) { v8 = *v6; if ( !*v6 ) break; if ( v8 != *((_QWORD *)this + 40) ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 752LL))(v8); } } } cocos2d::CCRenderTexture::end(this); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source