// // LevelEditorLayer::addPlayer2Point from 0x79aea8 to 0x79af68 (192 bytes) // // 2 xrefs: // > LevelEditorLayer::postUpdate @ 0x79b19c // > @ 0xc6af0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 12:53:36 +0000 // __int64 __fastcall LevelEditorLayer::addPlayer2Point(_QWORD *a1, const cocos2d::CCPoint *a2, char a3) { cocos2d::CCPoint **v4; // x19 cocos2d::CCPoint **v5; // x2 cocos2d::CCPoint *v6; // x0 __int64 result; // x0 char **v8; // x0 const cocos2d::CCPoint *v9; // [xsp+28h] [xbp+28h] if ( a3 ) { v8 = (char **)(a1 + 1536); v5 = (cocos2d::CCPoint **)v8[269]; } else { v4 = (cocos2d::CCPoint **)a1[1805]; v5 = (cocos2d::CCPoint **)a1[1804]; if ( v5 != v4 ) goto LABEL_3; v8 = (char **)(a1 + 1536); } if ( a1[1806] <= (unsigned __int64)v5 ) { v9 = a2; std::vector>::__emplace_back_slow_path<>(v8 + 268); v4 = (cocos2d::CCPoint **)a1[1805]; a2 = v9; } else { if ( v5 ) { *v5 = nullptr; v5[1] = nullptr; v5[2] = nullptr; v5 = (cocos2d::CCPoint **)v8[269]; } v4 = v5 + 3; v8[269] = (char *)(v5 + 3); } LABEL_3: v6 = *(v4 - 2); if ( v6 == *(v4 - 1) ) return std::vector::__push_back_slow_path(v4 - 3, a2); if ( v6 ) { cocos2d::CCPoint::CCPoint(v6, a2); v6 = *(v4 - 2); } result = (__int64)v6 + 8; *(v4 - 2) = (cocos2d::CCPoint *)result; return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source