{"type": "func", "start": 4296267936, "end": 4296268130, "name": "GJBaseGameLayer::addToGroupParents", "pseudocode": "// \n// GJBaseGameLayer::addToGroupParents from 0x10013d8a0 to 0x10013d962 (194 bytes)\n// \n// 1 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x1000e02ac\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::addToGroupParents(GJBaseGameLayer *a1, GameObject *a2)\n{\n  cocos2d::CCObject *v2; // rax\n  cocos2d::CCObject *v3; // r15\n  unsigned int v4; // r12d\n  int v5; // r13d\n\n  if ( a2->m_hasGroupParentsString )\n  {\n    v2 = cocos2d::CCDictionary::objectForKey(a1->m_removedParentGroupIDs, (unsigned int)a2->m_uniqueID);\n    if ( v2 )\n    {\n      v3 = v2;\n      a2->m_hasGroupParentsString = 0;\n      if ( (unsigned int)sub_100720070(v2) )\n      {\n        v4 = 0;\n        do\n        {\n          v5 = *(_DWORD *)(sub_1007200C0(v3, v4) + 56);\n          if ( !cocos2d::CCDictionary::objectForKey(a1->m_parentGroupsDict, v5) )\n            GJBaseGameLayer::setGroupParent(a1, a2, v5);\n          ++v4;\n        }\n        while ( v4 < (unsigned int)sub_100720070(v3) );\n      }\n      cocos2d::CCDictionary::removeObjectForKey(a1->m_removedParentGroupIDs, (unsigned int)a2->m_uniqueID);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addToGroupParents from 0x10013d8a0 to 0x10013d962 (194 bytes)\n; \n; 1 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x1000e02ac\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, 0x10013d8a0\nmov     rbp, rsp                                                       ; +0x1, 0x10013d8a1\npush    r15                                                            ; +0x4, 0x10013d8a4\npush    r14                                                            ; +0x6, 0x10013d8a6\npush    r13                                                            ; +0x8, 0x10013d8a8\npush    r12                                                            ; +0xa, 0x10013d8aa\npush    rbx                                                            ; +0xc, 0x10013d8ac\npush    rax                                                            ; +0xd, 0x10013d8ad\ncmp     byte ptr [rsi+492h], 1                                         ; +0xe, 0x10013d8ae\njnz     short loc_10013D933                                            ; +0x15, 0x10013d8b5\nmov     rbx, rsi                                                       ; +0x17, 0x10013d8b7\nmov     r14, rdi                                                       ; +0x1a, 0x10013d8ba\nmov     rdi, [rdi+0E58h]                                               ; +0x1d, 0x10013d8bd\nmov     esi, [rsi+394h]                                                ; +0x24, 0x10013d8c4\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x2a, 0x10013d8ca\ntest    rax, rax                                                       ; +0x2f, 0x10013d8cf\njz      short loc_10013D933                                            ; +0x32, 0x10013d8d2\nmov     r15, rax                                                       ; +0x34, 0x10013d8d4\nmov     byte ptr [rbx+492h], 0                                         ; +0x37, 0x10013d8d7\nmov     rdi, rax                                                       ; +0x3e, 0x10013d8de\ncall    sub_100720070                                                  ; +0x41, 0x10013d8e1\ntest    eax, eax                                                       ; +0x46, 0x10013d8e6\njz      short loc_10013D942                                            ; +0x48, 0x10013d8e8\nxor     r12d, r12d                                                     ; +0x4a, 0x10013d8ea\njmp     short loc_10013D900                                            ; +0x4d, 0x10013d8ed\nalign 10h                                                              ; +0x4f, 0x10013d8ef\ninc     r12d                                                           ; +0x50, 0x10013d8f0\nmov     rdi, r15                                                       ; +0x53, 0x10013d8f3\ncall    sub_100720070                                                  ; +0x56, 0x10013d8f6\ncmp     r12d, eax                                                      ; +0x5b, 0x10013d8fb\njnb     short loc_10013D942                                            ; +0x5e, 0x10013d8fe\nmov     rdi, r15                                                       ; +0x60, 0x10013d900\nmov     esi, r12d                                                      ; +0x63, 0x10013d903\ncall    sub_1007200C0                                                  ; +0x66, 0x10013d906\nmov     r13d, [rax+38h]                                                ; +0x6b, 0x10013d90b\nmov     rdi, [r14+0E48h]                                               ; +0x6f, 0x10013d90f\nmovsxd  rsi, r13d                                                      ; +0x76, 0x10013d916\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x79, 0x10013d919\ntest    rax, rax                                                       ; +0x7e, 0x10013d91e\njnz     short loc_10013D8F0                                            ; +0x81, 0x10013d921\nmov     rdi, r14                                                       ; +0x83, 0x10013d923\nmov     rsi, rbx                                                       ; +0x86, 0x10013d926\nmov     edx, r13d                                                      ; +0x89, 0x10013d929\ncall    GJBaseGameLayer__setGroupParent                                ; +0x8c, 0x10013d92c\njmp     short loc_10013D8F0                                            ; +0x91, 0x10013d931\nadd     rsp, 8                                                         ; +0x93, 0x10013d933\npop     rbx                                                            ; +0x97, 0x10013d937\npop     r12                                                            ; +0x98, 0x10013d938\npop     r13                                                            ; +0x9a, 0x10013d93a\npop     r14                                                            ; +0x9c, 0x10013d93c\npop     r15                                                            ; +0x9e, 0x10013d93e\npop     rbp                                                            ; +0xa0, 0x10013d940\nretn                                                                   ; +0xa1, 0x10013d941\nmov     rdi, [r14+0E58h]                                               ; +0xa2, 0x10013d942\nmov     esi, [rbx+394h]                                                ; +0xa9, 0x10013d949\nadd     rsp, 8                                                         ; +0xaf, 0x10013d94f\npop     rbx                                                            ; +0xb3, 0x10013d953\npop     r12                                                            ; +0xb4, 0x10013d954\npop     r13                                                            ; +0xb6, 0x10013d956\npop     r14                                                            ; +0xb8, 0x10013d958\npop     r15                                                            ; +0xba, 0x10013d95a\npop     rbp                                                            ; +0xbc, 0x10013d95c\njmp     cocos2d__CCDictionary__removeObjectForKey                      ; +0xbd, 0x10013d95d", "xrefs": ["LevelEditorLayer::addSpecial @ 0x1000e02ac"], "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"}