// // GJBaseGameLayer::addObjectCounter from 0x9dcb98 to 0x9dcc4c (180 bytes) // // 4 xrefs: // > PlayLayer::addObject @ 0x6f4498 // > LevelEditorLayer::recreateGroups @ 0x796150 // > LevelEditorLayer::init @ 0x7af4fc // > @ 0xc0be0 // // 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:58:51 +0000 // __int64 __fastcall GJBaseGameLayer::addObjectCounter(GJBaseGameLayer *this, LabelGameObject *a2) { int v3; // w3 int v4; // w1 char *v5; // x0 __int64 v6; // x0 LabelGameObject **v7; // x1 LabelGameObject *v9; // [xsp+28h] [xbp+28h] BYREF int v10; // [xsp+34h] [xbp+34h] BYREF v3 = *((_DWORD *)a2 + 420); v9 = a2; v4 = *((_DWORD *)a2 + 473); v10 = v3; if ( v4 < 0 ) v10 = v4; if ( *((_BYTE *)a2 + 1896) ) v5 = (char *)this + 4040; else v5 = (char *)this + 4000; v6 = std::unordered_map>::operator[]((unsigned __int64)v5, &v10); v7 = *(LabelGameObject ***)(v6 + 8); if ( v7 == *(LabelGameObject ***)(v6 + 16) ) { std::vector::__push_back_slow_path(v6, &v9); } else { if ( v7 ) { *v7 = v9; v7 = *(LabelGameObject ***)(v6 + 8); } *(_QWORD *)(v6 + 8) = v7 + 1; } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source