{"type": "func", "start": 4296267744, "end": 4296267923, "name": "GJBaseGameLayer::removeFromGroupParents", "pseudocode": "// \n// GJBaseGameLayer::removeFromGroupParents from 0x10013d7e0 to 0x10013d893 (179 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::removeSpecial @ 0x1000e2691\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJBaseGameLayer::removeFromGroupParents(GJBaseGameLayer *a1, GameObject *a2)\n{\n  cocos2d::CCObject *v2; // rax\n  cocos2d::CCObject *v3; // r15\n  unsigned int v4; // r12d\n  __int64 v5; // rax\n\n  if ( a2->m_hasGroupParentsString )\n  {\n    v2 = cocos2d::CCDictionary::objectForKey(a1->m_parentGroupIDs, (unsigned int)a2->m_uniqueID);\n    if ( v2 )\n    {\n      v3 = v2;\n      if ( (unsigned int)sub_100720070(v2) )\n      {\n        v4 = 0;\n        do\n        {\n          v5 = sub_1007200C0(v3, v4);\n          cocos2d::CCDictionary::removeObjectForKey(a1->m_parentGroupsDict, *(int *)(v5 + 56));\n          ++v4;\n        }\n        while ( v4 < (unsigned int)sub_100720070(v3) );\n      }\n      cocos2d::CCDictionary::setObject(a1->m_removedParentGroupIDs, v3, (unsigned int)a2->m_uniqueID);\n      cocos2d::CCDictionary::removeObjectForKey(a1->m_parentGroupIDs, (unsigned int)a2->m_uniqueID);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeFromGroupParents from 0x10013d7e0 to 0x10013d893 (179 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::removeSpecial @ 0x1000e2691\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10013d7e0\nmov     rbp, rsp                                                       ; +0x1, 0x10013d7e1\npush    r15                                                            ; +0x4, 0x10013d7e4\npush    r14                                                            ; +0x6, 0x10013d7e6\npush    r12                                                            ; +0x8, 0x10013d7e8\npush    rbx                                                            ; +0xa, 0x10013d7ea\ncmp     byte ptr [rsi+492h], 1                                         ; +0xb, 0x10013d7eb\njnz     loc_10013D88A                                                  ; +0x12, 0x10013d7f2\nmov     rbx, rsi                                                       ; +0x18, 0x10013d7f8\nmov     r14, rdi                                                       ; +0x1b, 0x10013d7fb\nmov     rdi, [rdi+0E50h]                                               ; +0x1e, 0x10013d7fe\nmov     esi, [rsi+394h]                                                ; +0x25, 0x10013d805\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x2b, 0x10013d80b\ntest    rax, rax                                                       ; +0x30, 0x10013d810\njz      short loc_10013D88A                                            ; +0x33, 0x10013d813\nmov     r15, rax                                                       ; +0x35, 0x10013d815\nmov     rdi, rax                                                       ; +0x38, 0x10013d818\ncall    sub_100720070                                                  ; +0x3b, 0x10013d81b\ntest    eax, eax                                                       ; +0x40, 0x10013d820\njz      short loc_10013D85B                                            ; +0x42, 0x10013d822\nxor     r12d, r12d                                                     ; +0x44, 0x10013d824\nnop     word ptr [rax+rax+00000000h]                                   ; +0x47, 0x10013d827\nmov     rdi, r15                                                       ; +0x50, 0x10013d830\nmov     esi, r12d                                                      ; +0x53, 0x10013d833\ncall    sub_1007200C0                                                  ; +0x56, 0x10013d836\nmovsxd  rsi, dword ptr [rax+38h]                                       ; +0x5b, 0x10013d83b\nmov     rdi, [r14+0E48h]                                               ; +0x5f, 0x10013d83f\ncall    cocos2d__CCDictionary__removeObjectForKey                      ; +0x66, 0x10013d846\ninc     r12d                                                           ; +0x6b, 0x10013d84b\nmov     rdi, r15                                                       ; +0x6e, 0x10013d84e\ncall    sub_100720070                                                  ; +0x71, 0x10013d851\ncmp     r12d, eax                                                      ; +0x76, 0x10013d856\njb      short loc_10013D830                                            ; +0x79, 0x10013d859\nmov     rdi, [r14+0E58h]                                               ; +0x7b, 0x10013d85b\nmov     edx, [rbx+394h]                                                ; +0x82, 0x10013d862\nmov     rsi, r15                                                       ; +0x88, 0x10013d868\ncall    cocos2d__CCDictionary__setObject                               ; +0x8b, 0x10013d86b\nmov     rdi, [r14+0E50h]                                               ; +0x90, 0x10013d870\nmov     esi, [rbx+394h]                                                ; +0x97, 0x10013d877\npop     rbx                                                            ; +0x9d, 0x10013d87d\npop     r12                                                            ; +0x9e, 0x10013d87e\npop     r14                                                            ; +0xa0, 0x10013d880\npop     r15                                                            ; +0xa2, 0x10013d882\npop     rbp                                                            ; +0xa4, 0x10013d884\njmp     cocos2d__CCDictionary__removeObjectForKey                      ; +0xa5, 0x10013d885\npop     rbx                                                            ; +0xaa, 0x10013d88a\npop     r12                                                            ; +0xab, 0x10013d88b\npop     r14                                                            ; +0xad, 0x10013d88d\npop     r15                                                            ; +0xaf, 0x10013d88f\npop     rbp                                                            ; +0xb1, 0x10013d891\nretn                                                                   ; +0xb2, 0x10013d892", "xrefs": ["LevelEditorLayer::removeSpecial @ 0x1000e2691"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}