// // EditorUI::createEdgeForObject from 0x1000786a0 to 0x100078850 (432 bytes) // // 5 xrefs: // > EditorUI::createRockEdges @ 0x1000784dc // > EditorUI::createRockEdges @ 0x100078514 // > EditorUI::createRockEdges @ 0x100078544 // > EditorUI::createRockEdges @ 0x100078584 // > EditorUI::createRockEdges @ 0x1000785b4 // // 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 *__fastcall EditorUI::createEdgeForObject(EditorUI *a1, GameObject *a2, int a3) { int v6; // w0 int v7; // w21 __n128 v8; // q0 __n128 v9; // q1 GameObject *result; // x0 float32x2_t v11; // [xsp+0h] [xbp-40h] BYREF float32x2_t v12; // [xsp+8h] [xbp-38h] BYREF float32x2_t v13; // [xsp+10h] [xbp-30h] BYREF float32x2_t v14; // [xsp+18h] [xbp-28h] BYREF cocos2d::CCPoint v15; // 0:s0.4,4:s1.4 v6 = EditorUI::edgeForObject(a1, a2->m_objectID, a3); if ( !v6 ) return nullptr; v7 = v6; EditorUI::offsetForKey(a1, v6); v8.n128_f32[0] = sub_1000229B8((__int64 *)&v13, &qword_10086ABF0); if ( a3 > 3 ) { if ( a3 > 5 ) { if ( a3 != 6 ) { if ( a3 != 7 ) goto LABEL_24; v8.n128_u32[0] = -30.0; goto LABEL_19; } v8.n128_u32[0] = -30.0; } else { if ( a3 == 4 ) { v8.n128_u32[0] = 30.0; goto LABEL_19; } v8.n128_u32[0] = 30.0; } LABEL_22: v9.n128_u32[0] = -30.0; goto LABEL_23; } if ( a3 <= 1 ) { if ( a3 ) { if ( a3 != 1 ) goto LABEL_24; v8.n128_u32[0] = 30.0; goto LABEL_13; } v8.n128_u32[0] = 0; LABEL_19: v9.n128_u32[0] = 30.0; goto LABEL_23; } if ( a3 == 2 ) { v8.n128_u32[0] = 0; goto LABEL_22; } v8.n128_u32[0] = -30.0; LABEL_13: v9.n128_u32[0] = 0; LABEL_23: sub_100022980(v8, v9, &v12); v8.n128_f64[0] = sub_1000229D0(&v13, (double *)&v12); LABEL_24: ((void (__fastcall *)(float32x2_t *__return_ptr, GameObject *, __n128))a2->getRealPosition)(&v12, a2, v8); sub_1000229DC(&v12, &v14, &v11); sub_1000229D0(&v12, (double *)&v11); sub_1000229DC(&v12, &v13, &v11); sub_1000229D0(&v12, (double *)&v11); v15.x = sub_1000229B8((__int64 *)&v11, (__int64 *)&v12); result = EditorUI::createObject(a1, v7, v15); if ( result ) result->m_editorLayer2 = a2->m_editorLayer + 1; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source