// // EditorUI::createEdgeForObject from 0x14012e690 to 0x14012ecec (1628 bytes) // // 5 xrefs: // > EditorUI::createRockEdges @ 0x14012e4e0 // > EditorUI::createRockEdges @ 0x14012e538 // > EditorUI::createRockEdges @ 0x14012e58e // > @ 0x1406c9db0 // > @ 0x1406c9dbc // // 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 // GameObject *EditorUI::createEdgeForObject(EditorUI *a1, GameObject *a2, int a3) { int v5; // ebx float v6; // xmm1_4 float v7; // xmm2_4 __int64 v8; // rax cocos2d::CCPoint v9; // rax GameObject *result; // rax _BYTE v11[8]; // [rsp+20h] [rbp-10h] BYREF cocos2d::CCPoint v12; // [rsp+28h] [rbp-8h] BYREF cocos2d::CCPoint v13; // [rsp+58h] [rbp+28h] BYREF char v14; // [rsp+68h] [rbp+38h] BYREF switch ( a2->m_objectID ) { case 0x544: if ( !a3 ) { v5 = 1359; goto LABEL_64; } if ( a3 == 3 ) { v5 = 1395; goto LABEL_70; } if ( a3 != 7 ) return nullptr; v5 = 1363; LABEL_78: EditorUI::offsetForKey(a1, (int)&v14); cocos2d::CCPoint::CCPoint(&v13); v6 = -30.0; goto LABEL_79; case 0x545: if ( a3 ) { if ( a3 == 1 ) { v5 = 1357; goto LABEL_66; } if ( a3 != 4 ) return nullptr; v5 = 1364; LABEL_72: EditorUI::offsetForKey(a1, (int)&v14); cocos2d::CCPoint::CCPoint(&v13); v6 = 30.0; v7 = 30.0; } else { v5 = 1360; LABEL_64: EditorUI::offsetForKey(a1, (int)&v14); cocos2d::CCPoint::CCPoint(&v13); v6 = 0.0; LABEL_79: v7 = 30.0; } goto LABEL_80; case 0x546: switch ( a3 ) { case 2: v5 = 1361; goto LABEL_68; case 3: v5 = 1356; LABEL_70: EditorUI::offsetForKey(a1, (int)&v14); cocos2d::CCPoint::CCPoint(&v13); v6 = -30.0; v7 = 0.0; break; case 6: v5 = 1365; LABEL_76: EditorUI::offsetForKey(a1, (int)&v14); cocos2d::CCPoint::CCPoint(&v13); v6 = -30.0; v7 = -30.0; break; default: return nullptr; } goto LABEL_80; case 0x547: switch ( a3 ) { case 1: v5 = 1358; LABEL_66: EditorUI::offsetForKey(a1, (int)&v14); cocos2d::CCPoint::CCPoint(&v13); v6 = 30.0; v7 = 0.0; break; case 2: v5 = 1362; LABEL_68: EditorUI::offsetForKey(a1, (int)&v14); cocos2d::CCPoint::CCPoint(&v13); v7 = -30.0; v6 = 0.0; break; case 5: v5 = 1366; LABEL_74: EditorUI::offsetForKey(a1, (int)&v14); cocos2d::CCPoint::CCPoint(&v13); v7 = -30.0; v6 = 30.0; break; default: return nullptr; } LABEL_80: cocos2d::CCPoint::CCPoint(&v12, v6, v7); cocos2d::CCPoint::operator=(&v13, v8); ((void (__fastcall *)(GameObject *, _BYTE *))a2->getRealPosition)(a2, v11); cocos2d::CCPoint::operator+(v11, &v12); cocos2d::CCPoint::operator=(v11, &v12); cocos2d::CCPoint::operator+(v11, &v12); cocos2d::CCPoint::operator=(v11, &v12); cocos2d::CCPoint::CCPoint(&v12); result = EditorUI::createObject(a1, v5, v9); if ( result ) result->m_editorLayer2 = a2->m_editorLayer + 1; return result; case 0x597: case 0x598: case 0x599: switch ( a3 ) { case 0: v5 = 1435; goto LABEL_64; case 1: v5 = 1436; goto LABEL_66; case 2: v5 = 1437; goto LABEL_68; case 3: v5 = 1434; goto LABEL_70; case 4: v5 = 1439; goto LABEL_72; case 5: v5 = 1441; goto LABEL_74; case 6: v5 = 1440; goto LABEL_76; case 7: v5 = 1438; goto LABEL_78; default: return nullptr; } case 0x5B5: switch ( a3 ) { case 0: v5 = 1629; goto LABEL_64; case 1: v5 = 1625; goto LABEL_66; case 2: v5 = 1633; goto LABEL_68; case 3: v5 = 1621; goto LABEL_70; case 4: v5 = 1638; goto LABEL_72; case 5: v5 = 1640; goto LABEL_74; case 6: v5 = 1639; goto LABEL_76; case 7: v5 = 1637; goto LABEL_78; default: return nullptr; } case 0x5B6: switch ( a3 ) { case 0: v5 = 1630; goto LABEL_64; case 1: v5 = 1627; goto LABEL_66; case 2: v5 = 1634; goto LABEL_68; case 3: v5 = 1623; goto LABEL_70; case 4: v5 = 1642; goto LABEL_72; case 5: v5 = 1644; goto LABEL_74; case 6: v5 = 1643; goto LABEL_76; case 7: v5 = 1641; goto LABEL_78; default: return nullptr; } case 0x5B7: switch ( a3 ) { case 0: v5 = 1631; goto LABEL_64; case 1: v5 = 1626; goto LABEL_66; case 2: v5 = 1635; goto LABEL_68; case 3: v5 = 1622; goto LABEL_70; case 4: v5 = 1646; goto LABEL_72; case 5: v5 = 1648; goto LABEL_74; case 6: v5 = 1647; goto LABEL_76; case 7: v5 = 1645; goto LABEL_78; default: return nullptr; } case 0x5B8: switch ( a3 ) { case 0: v5 = 1632; goto LABEL_64; case 1: v5 = 1628; goto LABEL_66; case 2: v5 = 1636; goto LABEL_68; case 3: v5 = 1624; goto LABEL_70; case 4: v5 = 1650; goto LABEL_72; case 5: v5 = 1652; goto LABEL_74; case 6: v5 = 1651; goto LABEL_76; case 7: v5 = 1649; goto LABEL_78; default: return nullptr; } default: return nullptr; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source