// // LevelEditorLayer::getObjectRect from 0x45fed8 to 0x460204 (812 bytes) // // 8 xrefs: // > LevelEditorLayer::objectAtPosition @ 0x4608b8 // > LevelEditorLayer::objectsAtPosition @ 0x460ac6 // > LevelEditorLayer::addObjectsAtPosition @ 0x460b80 // > LevelEditorLayer::objectsInRect @ 0x460ee8 // > LevelEditorLayer::addObjectsInRect @ 0x4610bc // > EditorUI::findSnapObject @ 0x485254 // > EditorUI::findSnapObject @ 0x485266 // > EditorUI::getCreateBtn @ 0x6f8232 // // 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:48:52 +0000 // LevelEditorLayer *__fastcall LevelEditorLayer::getObjectRect( LevelEditorLayer *this, GameObject *a2, const cocos2d::CCPoint *a3, int a4, char a5) { float v8; // s17 float v9; // s17 float v10; // s16 const cocos2d::CCRect *v11; // r0 int v12; // r0 float v13; // s17 float v14; // s17 float v15; // r0 float v16; // r0 float v17; // s15 float v18; // s15 float v19; // r2 float *v20; // r0 float v21; // s16 int v22; // r0 float v23; // r11 float v24; // r9 float v25; // r0 OBB2D *v28; // [sp+Ch] [bp-8h] float v29; // [sp+14h] [bp+0h] BYREF float v30; // [sp+18h] [bp+4h] float v31[2]; // [sp+1Ch] [bp+8h] BYREF float v32; // [sp+24h] [bp+10h] BYREF float v33; // [sp+28h] [bp+14h] _BYTE v34[4]; // [sp+2Ch] [bp+18h] BYREF float v35; // [sp+30h] [bp+1Ch] _BYTE v36[8]; // [sp+34h] [bp+20h] BYREF *((_BYTE *)a2 + 11853) = 0; cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v29); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v31); if ( *((_BYTE *)a3 + 1049) ) { cocos2d::CCSize::CCSize((cocos2d::CCSize *)v36, (const cocos2d::CCPoint *)((char *)a3 + 1052)); cocos2d::CCSize::operator=(v31, v36); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v32, (const cocos2d::CCPoint *)((char *)a3 + 1052)); v8 = v32; v9 = v8 * (*(float (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a3 + 732))(a3); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v34, (const cocos2d::CCPoint *)((char *)a3 + 1052)); v10 = v35; } else { if ( *((_BYTE *)a3 + 1048) ) { v11 = (const cocos2d::CCRect *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a3 + 664))(a3); cocos2d::CCRect::CCRect(this, v11); return this; } if ( !*((_BYTE *)a3 + 1108) && (*((_DWORD *)a3 + 189) || *((_BYTE *)a3 + 754) || *((_BYTE *)a3 + 755)) ) { v12 = (*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a3 + 164))(a3); cocos2d::CCSize::operator=(v31, v12); v13 = *(float *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a3 + 164))(a3); v9 = v13 * COERCE_FLOAT((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a3 + 732))(a3)); v10 = *(float *)((*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a3 + 164))(a3) + 4); } else { cocos2d::CCSize::operator=(v31, (char *)a3 + 344); v14 = *((float *)a3 + 86); v15 = (*(float (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a3 + 732))(a3); v10 = *((float *)a3 + 87); v9 = v14 * v15; } } v16 = (*(float (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a3 + 736))(a3); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v36, v9, v10 * v16); cocos2d::CCSize::operator=(&v29, v36); if ( !a5 ) { v17 = v29; if ( v29 < 15.0 ) v17 = 15.0; v29 = v17; v18 = v30; if ( v30 < 15.0 ) v18 = 15.0; v30 = v18; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v32, (const cocos2d::CCPoint *)&flt_D2B8B8); if ( *((_BYTE *)a3 + 1049) ) goto LABEL_23; if ( a4 || !((int)(*(float (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a3 + 184))(a3) % 90) || !(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a3 + 256))(a3) ) { if ( *((_BYTE *)a3 + 768) ) { v19 = v30; v30 = v29; v29 = v19; } LABEL_23: if ( !*((_DWORD *)a3 + 189) && !*((_BYTE *)a3 + 754) || *((_BYTE *)a3 + 1108) ) { LevelEditorLayer::getRelativeOffset((LevelEditorLayer *)v36, a2, (int)a3); cocos2d::CCPoint::operator=(&v32, v36); } v20 = (float *)(*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a3 + 96))(a3); v21 = (float)(*v20 + v32) - (float)(v29 * 0.5); v22 = (*(int (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a3 + 96))(a3); cocos2d::CCRect::CCRect(this, v21, (float)(*(float *)(v22 + 4) + v33) - (float)(v30 * 0.5), v29, v30); return this; } if ( !*((_DWORD *)a3 + 189) && !*((_BYTE *)a3 + 754) || *((_BYTE *)a3 + 1108) ) cocos2d::CCPoint::operator=(&v32, (char *)a3 + 356); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, v32 + (float)(v31[0] * 0.5), v33 + (float)(v31[1] * 0.5)); cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v34, a3); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v36, *((const cocos2d::CCPoint **)a2 + 609)); cocos2d::CCPoint::operator=(v34, v36); v28 = *((OBB2D **)a2 + 2958); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v36, (const cocos2d::CCPoint *)v34); v23 = v29; v24 = v30; v25 = (*(float (__fastcall **)(const cocos2d::CCPoint *))(*(_DWORD *)a3 + 184))(a3); OBB2D::calculateWithCenter(v28, (int)v36, v23, v24, -(float)(v25 * 0.017453)); *((_BYTE *)a2 + 11853) = 1; OBB2D::getBoundingRect(this, *((_DWORD *)a2 + 2958)); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source