// // OBB2D::getBoundingRect from 0x14006e270 to 0x14006e37a (266 bytes) // // 5 xrefs: // > GameObject::getObjectRect2 @ 0x1401978a2 // > GJBaseGameLayer::preUpdateVisibility @ 0x140236481 // > GJBaseGameLayer::preUpdateVisibility @ 0x1402364fd // > LevelEditorLayer::getObjectRect @ 0x1402d5b95 // > @ 0x1406c60e4 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // cocos2d::CCRect *OBB2D::getBoundingRect(cocos2d::CCRect *__return_ptr retstr, OBB2D *a2) { cocos2d::CCRect *v2; // rbx float x; // xmm7_4 float y; // xmm6_4 float v6; // xmm10_4 float v7; // xmm9_4 __int64 v8; // rdi float v9; // xmm0_4 cocos2d::CCPoint v11; // [rsp+98h] [rbp+10h] BYREF v2 = retstr + 20; x = 0.0; y = 0.0; v6 = 0.0; v7 = 0.0; v8 = 4; do { cocos2d::CCPoint::CCPoint(&v11, &v2->origin); v6 = fmaxf(v11.x, v6); if ( x > v11.x || x == 0.0 ) x = v11.x; v9 = fmaxf(v11.y, v7); v7 = v9; if ( y > v11.y || y == 0.0 ) y = v11.y; v2 = (cocos2d::CCRect *)((char *)v2 + 8); --v8; } while ( v8 ); cocos2d::CCRect::CCRect((cocos2d::CCRect *)a2, x, y, v6 - x, v9 - y); return (cocos2d::CCRect *)a2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source