{"type": "func", "start": 5372034512, "end": 5372034823, "name": "GJBaseGameLayer::removeFromGroup", "pseudocode": "// \n// GJBaseGameLayer::removeFromGroup from 0x14032bdd0 to 0x14032bf07 (311 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x14076b810\n// > <???> @ 0x1407d5e70\n// > <???> @ 0x1408b5fdc\n// > <???> @ 0x1408b5fec\n// > <???> @ 0x14091f22c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:30:30 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::removeFromGroup(__int64 a1, struct cocos2d::CCObject *a2, unsigned int a3)\n{\n  __int64 v3; // rbp\n  cocos2d::CCArray *Group; // rax\n  int v7; // eax\n  __int64 v8; // r14\n  struct cocos2d::CCObject *v9; // rdi\n  __int64 v10; // rax\n  cocos2d::CCArray *v11; // rax\n\n  v3 = (int)a3;\n  Group = (cocos2d::CCArray *)GJBaseGameLayer::getGroup(a1, a3);\n  cocos2d::CCArray::removeObject(Group, a2, 1);\n  v7 = v3;\n  if ( *((_BYTE *)a2 + 1298) )\n  {\n    if ( (int)v3 > 9999 )\n      v7 = 9999;\n    if ( v7 < 0 )\n      v7 = 0;\n    v8 = (unsigned int)v7;\n    v9 = *(struct cocos2d::CCObject **)(*(_QWORD *)(a1 + 3944) + 8LL * (unsigned int)v7);\n    if ( !v9 )\n    {\n      v9 = (struct cocos2d::CCObject *)cocos2d::CCArray::create(0);\n      cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 3888), v9, (unsigned int)v8);\n      v10 = *(_QWORD *)(a1 + 3944);\nLABEL_14:\n      *(_QWORD *)(v10 + 8 * v8) = v9;\n    }\n  }\n  else\n  {\n    if ( (int)v3 > 9999 )\n      v7 = 9999;\n    if ( v7 < 0 )\n      v7 = 0;\n    v8 = (unsigned int)v7;\n    v9 = *(struct cocos2d::CCObject **)(*(_QWORD *)(a1 + 3920) + 8LL * (unsigned int)v7);\n    if ( !v9 )\n    {\n      v9 = (struct cocos2d::CCObject *)cocos2d::CCArray::create(0);\n      cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 3880), v9, (unsigned int)v8);\n      v10 = *(_QWORD *)(a1 + 3920);\n      goto LABEL_14;\n    }\n  }\n  cocos2d::CCArray::removeObject(v9, a2, 1);\n  if ( *((_BYTE *)a2 + 1178) )\n  {\n    v11 = cocos2d::CCDictionary::objectForKey(*(cocos2d::CCDictionary **)(a1 + 3968), v3);\n    if ( v11 )\n    {\n      if ( cocos2d::CCArray::containsObject(v11, a2) )\n        GJBaseGameLayer::removeGroupParent(a1, a2, (unsigned int)v3);\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::removeFromGroup from 0x14032bdd0 to 0x14032bf07 (311 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x14076b810\n; > <???> @ 0x1407d5e70\n; > <???> @ 0x1408b5fdc\n; > <???> @ 0x1408b5fec\n; > <???> @ 0x14091f22c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:30:30 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x14032bdd0\nmov     [rsp+arg_18], rbp                                              ; +0x5, 0x14032bdd5\npush    rsi                                                            ; +0xa, 0x14032bdda\nsub     rsp, 20h                                                       ; +0xb, 0x14032bddb\nmovsxd  rbp, r8d                                                       ; +0xf, 0x14032bddf\nmov     rsi, rdx                                                       ; +0x12, 0x14032bde2\nmov     edx, ebp                                                       ; +0x15, 0x14032bde5\nmov     [rsp+28h+arg_0], rdi                                           ; +0x17, 0x14032bde7\nmov     [rsp+28h+arg_8], r14                                           ; +0x1c, 0x14032bdec\nmov     rbx, rcx                                                       ; +0x21, 0x14032bdf1\ncall    GJBaseGameLayer__getGroup                                      ; +0x24, 0x14032bdf4\nmov     r8b, 1                                                         ; +0x29, 0x14032bdf9\nmov     rdx, rsi                                                       ; +0x2c, 0x14032bdfc\nmov     rcx, rax                                                       ; +0x2f, 0x14032bdff\ncall    cs:?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0x32, 0x14032be02\ncmp     byte ptr [rsi+512h], 0                                         ; +0x38, 0x14032be08\nmov     eax, ebp                                                       ; +0x3f, 0x14032be0f\nmov     ecx, 270Fh                                                     ; +0x41, 0x14032be11\njz      short loc_14032BE5C                                            ; +0x46, 0x14032be16\ncmp     ebp, ecx                                                       ; +0x48, 0x14032be18\ncmovg   eax, ecx                                                       ; +0x4a, 0x14032be1a\nxor     ecx, ecx                                                       ; +0x4d, 0x14032be1d\ntest    eax, eax                                                       ; +0x4f, 0x14032be1f\ncmovs   eax, ecx                                                       ; +0x51, 0x14032be21\nmov     r14d, eax                                                      ; +0x54, 0x14032be24\nmov     rax, [rbx+0F68h]                                               ; +0x57, 0x14032be27\nmov     rdi, [rax+r14*8]                                               ; +0x5e, 0x14032be2e\ntest    rdi, rdi                                                       ; +0x62, 0x14032be32\njnz     short loc_14032BEA2                                            ; +0x65, 0x14032be35\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x67, 0x14032be37\nmov     rcx, [rbx+0F30h]                                               ; +0x6d, 0x14032be3d\nmov     r8d, r14d                                                      ; +0x74, 0x14032be44\nmov     rdx, rax                                                       ; +0x77, 0x14032be47\nmov     rdi, rax                                                       ; +0x7a, 0x14032be4a\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x7d, 0x14032be4d\nmov     rax, [rbx+0F68h]                                               ; +0x83, 0x14032be53\njmp     short loc_14032BE9E                                            ; +0x8a, 0x14032be5a\ncmp     ebp, ecx                                                       ; +0x8c, 0x14032be5c\ncmovg   eax, ecx                                                       ; +0x8e, 0x14032be5e\nxor     ecx, ecx                                                       ; +0x91, 0x14032be61\ntest    eax, eax                                                       ; +0x93, 0x14032be63\ncmovs   eax, ecx                                                       ; +0x95, 0x14032be65\nmov     r14d, eax                                                      ; +0x98, 0x14032be68\nmov     rax, [rbx+0F50h]                                               ; +0x9b, 0x14032be6b\nmov     rdi, [rax+r14*8]                                               ; +0xa2, 0x14032be72\ntest    rdi, rdi                                                       ; +0xa6, 0x14032be76\njnz     short loc_14032BEA2                                            ; +0xa9, 0x14032be79\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0xab, 0x14032be7b\nmov     rcx, [rbx+0F28h]                                               ; +0xb1, 0x14032be81\nmov     r8d, r14d                                                      ; +0xb8, 0x14032be88\nmov     rdx, rax                                                       ; +0xbb, 0x14032be8b\nmov     rdi, rax                                                       ; +0xbe, 0x14032be8e\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0xc1, 0x14032be91\nmov     rax, [rbx+0F50h]                                               ; +0xc7, 0x14032be97\nmov     [rax+r14*8], rdi                                               ; +0xce, 0x14032be9e\nmov     r8b, 1                                                         ; +0xd2, 0x14032bea2\nmov     rdx, rsi                                                       ; +0xd5, 0x14032bea5\nmov     rcx, rdi                                                       ; +0xd8, 0x14032bea8\ncall    cs:?removeObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@_N@Z; cocos2d::CCArray::removeObject(cocos2d::CCObject *,bool) ; +0xdb, 0x14032beab\ncmp     byte ptr [rsi+49Ah], 0                                         ; +0xe1, 0x14032beb1\nmov     r14, [rsp+28h+arg_8]                                           ; +0xe8, 0x14032beb8\nmov     rdi, [rsp+28h+arg_0]                                           ; +0xed, 0x14032bebd\njz      short loc_14032BEF7                                            ; +0xf2, 0x14032bec2\nmov     rcx, [rbx+0F80h]                                               ; +0xf4, 0x14032bec4\nmov     rdx, rbp                                                       ; +0xfb, 0x14032becb\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0xfe, 0x14032bece\ntest    rax, rax                                                       ; +0x104, 0x14032bed4\njz      short loc_14032BEF7                                            ; +0x107, 0x14032bed7\nmov     rdx, rsi                                                       ; +0x109, 0x14032bed9\nmov     rcx, rax                                                       ; +0x10c, 0x14032bedc\ncall    cs:?containsObject@CCArray@cocos2d@@QEBA_NPEAVCCObject@2@@Z; cocos2d::CCArray::containsObject(cocos2d::CCObject *) ; +0x10f, 0x14032bedf\ntest    al, al                                                         ; +0x115, 0x14032bee5\njz      short loc_14032BEF7                                            ; +0x117, 0x14032bee7\nmov     r8d, ebp                                                       ; +0x119, 0x14032bee9\nmov     rdx, rsi                                                       ; +0x11c, 0x14032beec\nmov     rcx, rbx                                                       ; +0x11f, 0x14032beef\ncall    GJBaseGameLayer__removeGroupParent                             ; +0x122, 0x14032bef2\nmov     rbx, [rsp+28h+arg_10]                                          ; +0x127, 0x14032bef7\nmov     rbp, [rsp+28h+arg_18]                                          ; +0x12c, 0x14032befc\nadd     rsp, 20h                                                       ; +0x131, 0x14032bf01\npop     rsi                                                            ; +0x135, 0x14032bf05\nretn                                                                   ; +0x136, 0x14032bf06", "xrefs": ["<???> @ 0x14076b810", "<???> @ 0x1407d5e70", "<???> @ 0x1408b5fdc", "<???> @ 0x1408b5fec", "<???> @ 0x14091f22c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}