{"type": "func", "start": 4296266576, "end": 4296266787, "name": "GJBaseGameLayer::removeGroupParent", "pseudocode": "// \n// GJBaseGameLayer::removeGroupParent from 0x10013d350 to 0x10013d423 (211 bytes)\n// \n// 3 xrefs:\n// > GJBaseGameLayer::removeFromGroup @ 0x10013d32b\n// > GJBaseGameLayer::setGroupParent @ 0x10013d6ec\n// > SetGroupIDLayer::callRemoveFromGroup @ 0x1003179c8\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::removeGroupParent(GJBaseGameLayer *a1, int a2)\n{\n  intptr_t v2; // rbx\n  cocos2d::CCObject *v3; // rax\n  cocos2d::CCObject *v4; // r15\n  cocos2d::CCObject *v5; // rax\n  cocos2d::CCObject *v6; // r13\n  unsigned int v7; // ebx\n\n  v2 = a2;\n  v3 = cocos2d::CCDictionary::objectForKey(a1->m_parentGroupsDict, a2);\n  if ( v3 )\n  {\n    v4 = v3;\n    v5 = cocos2d::CCDictionary::objectForKey(a1->m_parentGroupIDs, v3[16].m_uReference);\n    if ( !v5 )\n      goto LABEL_11;\n    v6 = v5;\n    if ( (unsigned int)sub_100720070(v5) )\n    {\n      v7 = 0;\n      while ( *(_DWORD *)(sub_1007200C0(v6, v7) + 56) != a2 )\n      {\n        if ( ++v7 >= (unsigned int)sub_100720070(v6) )\n          goto LABEL_10;\n      }\n      sub_100720230(v6, v7, 1);\n    }\nLABEL_10:\n    v2 = a2;\n    if ( !(unsigned int)sub_100720070(v6) )\nLABEL_11:\n      BYTE2(v4[20].m_uOrderOfArrival) = 0;\n    cocos2d::CCDictionary::removeObjectForKey(a1->m_parentGroupsDict, v2);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeGroupParent from 0x10013d350 to 0x10013d423 (211 bytes)\n; \n; 3 xrefs:\n; > GJBaseGameLayer::removeFromGroup @ 0x10013d32b\n; > GJBaseGameLayer::setGroupParent @ 0x10013d6ec\n; > SetGroupIDLayer::callRemoveFromGroup @ 0x1003179c8\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, 0x10013d350\nmov     rbp, rsp                                                       ; +0x1, 0x10013d351\npush    r15                                                            ; +0x4, 0x10013d354\npush    r14                                                            ; +0x6, 0x10013d356\npush    r13                                                            ; +0x8, 0x10013d358\npush    r12                                                            ; +0xa, 0x10013d35a\npush    rbx                                                            ; +0xc, 0x10013d35c\npush    rax                                                            ; +0xd, 0x10013d35d\nmov     r12d, esi                                                      ; +0xe, 0x10013d35e\nmov     r14, rdi                                                       ; +0x11, 0x10013d361\nmov     rdi, [rdi+0E48h]                                               ; +0x14, 0x10013d364\nmovsxd  rbx, esi                                                       ; +0x1b, 0x10013d36b\nmov     rsi, rbx                                                       ; +0x1e, 0x10013d36e\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x21, 0x10013d371\ntest    rax, rax                                                       ; +0x26, 0x10013d376\njz      short loc_10013D3D0                                            ; +0x29, 0x10013d379\nmov     r15, rax                                                       ; +0x2b, 0x10013d37b\nmov     rdi, [r14+0E50h]                                               ; +0x2e, 0x10013d37e\nmov     esi, [rax+394h]                                                ; +0x35, 0x10013d385\ncall    cocos2d__CCDictionary__objectForKey                            ; +0x3b, 0x10013d38b\ntest    rax, rax                                                       ; +0x40, 0x10013d390\njz      short loc_10013D3FE                                            ; +0x43, 0x10013d393\nmov     r13, rax                                                       ; +0x45, 0x10013d395\nmov     [rbp+var_30], rbx                                              ; +0x48, 0x10013d398\nmov     rdi, rax                                                       ; +0x4c, 0x10013d39c\ncall    sub_100720070                                                  ; +0x4f, 0x10013d39f\ntest    eax, eax                                                       ; +0x54, 0x10013d3a4\njz      short loc_10013D3EE                                            ; +0x56, 0x10013d3a6\nxor     ebx, ebx                                                       ; +0x58, 0x10013d3a8\nnop     word ptr [rax+rax+00h]                                         ; +0x5a, 0x10013d3aa\nmov     rdi, r13                                                       ; +0x60, 0x10013d3b0\nmov     esi, ebx                                                       ; +0x63, 0x10013d3b3\ncall    sub_1007200C0                                                  ; +0x65, 0x10013d3b5\ncmp     [rax+38h], r12d                                                ; +0x6a, 0x10013d3ba\njz      short loc_10013D3DF                                            ; +0x6e, 0x10013d3be\ninc     ebx                                                            ; +0x70, 0x10013d3c0\nmov     rdi, r13                                                       ; +0x72, 0x10013d3c2\ncall    sub_100720070                                                  ; +0x75, 0x10013d3c5\ncmp     ebx, eax                                                       ; +0x7a, 0x10013d3ca\njb      short loc_10013D3B0                                            ; +0x7c, 0x10013d3cc\njmp     short loc_10013D3EE                                            ; +0x7e, 0x10013d3ce\nadd     rsp, 8                                                         ; +0x80, 0x10013d3d0\npop     rbx                                                            ; +0x84, 0x10013d3d4\npop     r12                                                            ; +0x85, 0x10013d3d5\npop     r13                                                            ; +0x87, 0x10013d3d7\npop     r14                                                            ; +0x89, 0x10013d3d9\npop     r15                                                            ; +0x8b, 0x10013d3db\npop     rbp                                                            ; +0x8d, 0x10013d3dd\nretn                                                                   ; +0x8e, 0x10013d3de\nmov     rdi, r13                                                       ; +0x8f, 0x10013d3df\nmov     esi, ebx                                                       ; +0x92, 0x10013d3e2\nmov     edx, 1                                                         ; +0x94, 0x10013d3e4\ncall    sub_100720230                                                  ; +0x99, 0x10013d3e9\nmov     rdi, r13                                                       ; +0x9e, 0x10013d3ee\ncall    sub_100720070                                                  ; +0xa1, 0x10013d3f1\ntest    eax, eax                                                       ; +0xa6, 0x10013d3f6\nmov     rbx, [rbp+var_30]                                              ; +0xa8, 0x10013d3f8\njnz     short loc_10013D406                                            ; +0xac, 0x10013d3fc\nmov     byte ptr [r15+492h], 0                                         ; +0xae, 0x10013d3fe\nmov     rdi, [r14+0E48h]                                               ; +0xb6, 0x10013d406\nmov     rsi, rbx                                                       ; +0xbd, 0x10013d40d\nadd     rsp, 8                                                         ; +0xc0, 0x10013d410\npop     rbx                                                            ; +0xc4, 0x10013d414\npop     r12                                                            ; +0xc5, 0x10013d415\npop     r13                                                            ; +0xc7, 0x10013d417\npop     r14                                                            ; +0xc9, 0x10013d419\npop     r15                                                            ; +0xcb, 0x10013d41b\npop     rbp                                                            ; +0xcd, 0x10013d41d\njmp     cocos2d__CCDictionary__removeObjectForKey                      ; +0xce, 0x10013d41e", "xrefs": ["GJBaseGameLayer::removeFromGroup @ 0x10013d32b", "GJBaseGameLayer::setGroupParent @ 0x10013d6ec", "SetGroupIDLayer::callRemoveFromGroup @ 0x1003179c8"], "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"}