// // GJBaseGameLayer::setGroupParent from 0x10011ab90 to 0x10011ace3 (339 bytes) // // 4 xrefs: // > GJBaseGameLayer::promoteGroupParent @ 0x10011adb2 // > GJBaseGameLayer::addToGroupParents @ 0x10011b5ee // > GJBaseGameLayer::addToGroupParents @ 0x10011b796 // > GJBaseGameLayer::loadGroupParentsFromString @ 0x10011beac // // This function is hookable on this platform (idp: pc, 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:24:36 +0000 // char __fastcall GJBaseGameLayer::setGroupParent(__int64 a1, __int64 a2, signed int a3) { __int64 v3; // rax __int64 v6; // rdi __int64 v7; // r13 __int64 v8; // rax __int64 v9; // r15 __int64 v10; // rdi __int64 v11; // rax __int64 v12; // r15 unsigned int v13; // r12d _DWORD *v14; // r12 LOBYTE(v3) = a3 <= 0; if ( a3 > 0 && a2 != 0 ) { v6 = *(_QWORD *)(a1 + 3688); v7 = (unsigned int)a3; v8 = cocos2d::CCDictionary::objectForKey_1(v6); if ( v8 ) { v9 = v8; LOBYTE(v3) = sub_1007FF080(v8, a2); if ( (_BYTE)v3 ) return v3; } else { v9 = sub_1007FE900(v6); cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3688), v9, v7); } sub_1007FEBF0(v9, a2); v10 = *(_QWORD *)(a1 + 3696); v11 = cocos2d::CCDictionary::objectForKey_1(v10); v12 = v11; if ( v11 ) { if ( !(unsigned int)sub_1007FEF90(v11) ) goto LABEL_13; } else { v12 = sub_1007FE900(v10); cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3696), v12, *(unsigned int *)(a2 + 916)); if ( !(unsigned int)sub_1007FEF90(v12) ) { LABEL_13: v14 = operator new(0x40u); cocos2d::CCObject::CCObject(v14); *(_QWORD *)v14 = off_100ABB920; v14[14] = a3; cocos2d::CCObject::autorelease(v14); LOBYTE(v3) = sub_1007FEBF0(v12, v14); LABEL_14: *(_BYTE *)(a2 + 1170) = 1; return v3; } } v13 = 0; while ( 1 ) { v3 = sub_1007FEFE0(v12, v13); if ( *(_DWORD *)(v3 + 56) == a3 ) goto LABEL_14; if ( ++v13 >= (unsigned int)sub_1007FEF90(v12) ) goto LABEL_13; } } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source