// // OBB2D::calculateWithCenter from 0x3d76f4 to 0x3d7822 (302 bytes) // // 7 xrefs: // > OBB2D::init @ 0x3d785e // > GameObject::updateOrientedBox @ 0x44e7b4 // > LevelEditorLayer::getObjectRect @ 0x4601b0 // > GJBaseGameLayer::updateGroundShadows @ 0x58bf4a // > GJBaseGameLayer::updateOBB2 @ 0x58e52e // > GJBaseGameLayer::preUpdateVisibility @ 0x5ae740 // > GJBaseGameLayer::preUpdateVisibility @ 0x5ae7a6 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:46:45 +0000 // int __fastcall OBB2D::calculateWithCenter(OBB2D *a1, int a2, float a3, float a4, float x) { float v9; // r4 float v10; // r5 _BYTE v12[8]; // [sp+4h] [bp-8h] BYREF _BYTE v13[8]; // [sp+Ch] [bp+0h] BYREF _BYTE v14[8]; // [sp+14h] [bp+8h] BYREF _BYTE v15[8]; // [sp+1Ch] [bp+10h] BYREF cocos2d::CCPoint::operator=((char *)a1 + 376, a2); v9 = cosf(x); v10 = sinf(x); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v9, v10); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v13, COERCE_FLOAT(LODWORD(v10) ^ 0x80000000), v9); cocos2d::CCPoint::operator*(v15, v12, a3 * 0.5); cocos2d::CCPoint::operator=(v12, v15); cocos2d::CCPoint::operator*(v15, v13, a4 * 0.5); cocos2d::CCPoint::operator=(v13, v15); cocos2d::CCPoint::operator-(v14, a2, v12); cocos2d::CCPoint::operator-(v15, v14, v13); cocos2d::CCPoint::operator=((char *)a1 + 264, v15); cocos2d::CCPoint::operator+(v14, a2, v12); cocos2d::CCPoint::operator-(v15, v14, v13); cocos2d::CCPoint::operator=((char *)a1 + 272, v15); cocos2d::CCPoint::operator+(v14, a2, v12); cocos2d::CCPoint::operator+(v15, v14, v13); cocos2d::CCPoint::operator=((char *)a1 + 280, v15); cocos2d::CCPoint::operator-(v14, a2, v12); cocos2d::CCPoint::operator+(v15, v14, v13); cocos2d::CCPoint::operator=((char *)a1 + 288, v15); OBB2D::computeAxes(a1); return OBB2D::orderCorners(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source