// // cocos2d::CCRenderTexture::draw from 0x1006c8dd0 to 0x1006c9030 (608 bytes) // // 1 xrefs: // > @ 0x100b8f2a8 // // This function is hookable on this platform (idp: pc, 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 12:35:35 +0000 // __int64 __fastcall cocos2d::CCRenderTexture::draw(__int64 a1) { GLbitfield v2; // edi int v3; // eax __int64 v4; // rax unsigned int *v5; // rax __int64 *v6; // r14 unsigned __int64 v7; // r15 __int64 v8; // rdi __int64 v9; // r14 GLfloat v11; // [rsp+8h] [rbp-38h] BYREF GLint s; // [rsp+Ch] [rbp-34h] BYREF GLfloat params[4]; // [rsp+10h] [rbp-30h] BYREF if ( *(_BYTE *)(a1 + 400) != 1 ) return __stack_chk_guard; cocos2d::CCRenderTexture::begin(a1); v2 = *(_DWORD *)(a1 + 372); if ( !v2 ) goto LABEL_10; *(_OWORD *)params = 0; v11 = 0.0; s = 0; if ( (v2 & 0x4000) != 0 ) { glGetFloatv(0xC22u, params); glClearColor(*(GLfloat *)(a1 + 376), *(GLfloat *)(a1 + 380), *(GLfloat *)(a1 + 384), *(GLfloat *)(a1 + 388)); v2 = *(_DWORD *)(a1 + 372); if ( (v2 & 0x100) == 0 ) { LABEL_5: if ( (v2 & 0x400) == 0 ) goto LABEL_6; goto LABEL_21; } } else if ( (v2 & 0x100) == 0 ) { goto LABEL_5; } glGetFloatv(0xB73u, &v11); glClearDepth(*(float *)(a1 + 392)); v2 = *(_DWORD *)(a1 + 372); if ( (v2 & 0x400) == 0 ) { LABEL_6: glClear(v2); v3 = *(_DWORD *)(a1 + 372); if ( (v3 & 0x4000) == 0 ) goto LABEL_7; LABEL_22: glClearColor(params[0], params[1], params[2], params[3]); v3 = *(_DWORD *)(a1 + 372); if ( (v3 & 0x100) == 0 ) { LABEL_8: if ( (v3 & 0x400) == 0 ) goto LABEL_10; goto LABEL_9; } goto LABEL_23; } LABEL_21: glGetIntegerv(0xB91u, &s); glClearStencil(*(_DWORD *)(a1 + 396)); glClear(*(_DWORD *)(a1 + 372)); v3 = *(_DWORD *)(a1 + 372); if ( (v3 & 0x4000) != 0 ) goto LABEL_22; LABEL_7: if ( (v3 & 0x100) == 0 ) goto LABEL_8; LABEL_23: glClearDepth(v11); if ( (*(_DWORD *)(a1 + 372) & 0x400) != 0 ) LABEL_9: glClearStencil(s); LABEL_10: (*(void (__fastcall **)(__int64))(*(_QWORD *)a1 + 600LL))(a1); v4 = *(_QWORD *)(a1 + 208); if ( v4 ) { v5 = *(unsigned int **)(v4 + 56); if ( *v5 ) { v6 = *((__int64 **)v5 + 2); v7 = (unsigned __int64)&v6[*v5 - 1]; do { v8 = *v6; if ( !*v6 ) break; if ( v8 != *(_QWORD *)(a1 + 320) ) (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 752LL))(v8); ++v6; } while ( (unsigned __int64)v6 <= v7 ); } } v9 = cocos2d::CCDirector::sharedDirector(); glBindFramebuffer(0x8D40u, *(_DWORD *)(a1 + 336)); cocos2d::CCDirector::setViewport(v9); kmGLMatrixMode(5889); kmGLPopMatrix(5889); kmGLMatrixMode(5888); kmGLPopMatrix(5888); return __stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source