{"type": "func", "start": 5372034128, "end": 5372034356, "name": "GJBaseGameLayer::addToGroup", "pseudocode": "// \n// GJBaseGameLayer::addToGroup from 0x14032bc50 to 0x14032bd34 (228 bytes)\n// \n// 5 xrefs:\n// > <???> @ 0x14076b808\n// > <???> @ 0x1407d5e68\n// > <???> @ 0x1408b5f7c\n// > <???> @ 0x1408b5f8c\n// > <???> @ 0x14091f1e4\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:29 +0000\n// \n\nvoid __fastcall GJBaseGameLayer::addToGroup(__int64 a1, struct cocos2d::CCObject *a2, int a3)\n{\n  cocos2d::CCArray *Group; // rax\n  __int64 v7; // rcx\n  int v8; // eax\n  __int64 v9; // rbp\n  struct cocos2d::CCObject *v10; // rbx\n  __int64 v11; // rax\n\n  if ( a3 <= 9999 )\n  {\n    Group = (cocos2d::CCArray *)GJBaseGameLayer::getGroup(a1, (unsigned int)a3);\n    cocos2d::CCArray::addObject(Group, a2);\n    v8 = 0;\n    if ( *((_BYTE *)a2 + 1298) )\n    {\n      if ( a3 >= 0 )\n        v8 = a3;\n      v9 = v8;\n      v10 = *(struct cocos2d::CCObject **)(*(_QWORD *)(a1 + 3944) + 8LL * v8);\n      if ( v10 )\n        goto LABEL_12;\n      v10 = (struct cocos2d::CCObject *)cocos2d::CCArray::create(v7);\n      cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 3888), v10, v9);\n      v11 = *(_QWORD *)(a1 + 3944);\n    }\n    else\n    {\n      if ( a3 >= 0 )\n        v8 = a3;\n      v9 = v8;\n      v10 = *(struct cocos2d::CCObject **)(*(_QWORD *)(a1 + 3920) + 8LL * v8);\n      if ( v10 )\n        goto LABEL_12;\n      v10 = (struct cocos2d::CCObject *)cocos2d::CCArray::create(v7);\n      cocos2d::CCDictionary::setObject(*(cocos2d::CCDictionary **)(a1 + 3880), v10, v9);\n      v11 = *(_QWORD *)(a1 + 3920);\n    }\n    *(_QWORD *)(v11 + 8 * v9) = v10;\nLABEL_12:\n    cocos2d::CCArray::addObject(v10, a2);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addToGroup from 0x14032bc50 to 0x14032bd34 (228 bytes)\n; \n; 5 xrefs:\n; > <???> @ 0x14076b808\n; > <???> @ 0x1407d5e68\n; > <???> @ 0x1408b5f7c\n; > <???> @ 0x1408b5f8c\n; > <???> @ 0x14091f1e4\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:29 +0000\n; \ncmp     r8d, 270Fh                                                     ; +0x0, 0x14032bc50\njg      locret_14032BD33                                               ; +0x7, 0x14032bc57\nmov     [rsp+arg_8], rbx                                               ; +0xd, 0x14032bc5d\nmov     [rsp+arg_10], rsi                                              ; +0x12, 0x14032bc62\npush    rdi                                                            ; +0x17, 0x14032bc67\nsub     rsp, 20h                                                       ; +0x18, 0x14032bc68\nmov     ebx, r8d                                                       ; +0x1c, 0x14032bc6c\nmov     [rsp+28h+arg_0], rbp                                           ; +0x1f, 0x14032bc6f\nmov     rsi, rdx                                                       ; +0x24, 0x14032bc74\nmov     rdi, rcx                                                       ; +0x27, 0x14032bc77\nmov     edx, ebx                                                       ; +0x2a, 0x14032bc7a\ncall    GJBaseGameLayer__getGroup                                      ; +0x2c, 0x14032bc7c\nmov     rdx, rsi                                                       ; +0x31, 0x14032bc81\nmov     rcx, rax                                                       ; +0x34, 0x14032bc84\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0x37, 0x14032bc87\nxor     eax, eax                                                       ; +0x3d, 0x14032bc8d\ncmp     [rsi+512h], al                                                 ; +0x3f, 0x14032bc8f\njz      short loc_14032BCD4                                            ; +0x45, 0x14032bc95\ntest    ebx, ebx                                                       ; +0x47, 0x14032bc97\ncmovns  eax, ebx                                                       ; +0x49, 0x14032bc99\nmovsxd  rbp, eax                                                       ; +0x4c, 0x14032bc9c\nmov     rax, [rdi+0F68h]                                               ; +0x4f, 0x14032bc9f\nmov     rbx, [rax+rbp*8]                                               ; +0x56, 0x14032bca6\ntest    rbx, rbx                                                       ; +0x5a, 0x14032bcaa\njnz     short loc_14032BD13                                            ; +0x5d, 0x14032bcad\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x5f, 0x14032bcaf\nmov     rcx, [rdi+0F30h]                                               ; +0x65, 0x14032bcb5\nmov     r8, rbp                                                        ; +0x6c, 0x14032bcbc\nmov     rdx, rax                                                       ; +0x6f, 0x14032bcbf\nmov     rbx, rax                                                       ; +0x72, 0x14032bcc2\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0x75, 0x14032bcc5\nmov     rax, [rdi+0F68h]                                               ; +0x7b, 0x14032bccb\njmp     short loc_14032BD0F                                            ; +0x82, 0x14032bcd2\ntest    ebx, ebx                                                       ; +0x84, 0x14032bcd4\ncmovns  eax, ebx                                                       ; +0x86, 0x14032bcd6\nmovsxd  rbp, eax                                                       ; +0x89, 0x14032bcd9\nmov     rax, [rdi+0F50h]                                               ; +0x8c, 0x14032bcdc\nmov     rbx, [rax+rbp*8]                                               ; +0x93, 0x14032bce3\ntest    rbx, rbx                                                       ; +0x97, 0x14032bce7\njnz     short loc_14032BD13                                            ; +0x9a, 0x14032bcea\ncall    cs:?create@CCArray@cocos2d@@SAPEAV12@XZ; cocos2d::CCArray::create(void) ; +0x9c, 0x14032bcec\nmov     rcx, [rdi+0F28h]                                               ; +0xa2, 0x14032bcf2\nmov     r8, rbp                                                        ; +0xa9, 0x14032bcf9\nmov     rdx, rax                                                       ; +0xac, 0x14032bcfc\nmov     rbx, rax                                                       ; +0xaf, 0x14032bcff\ncall    cs:?setObject@CCDictionary@cocos2d@@QEAAXPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::setObject(cocos2d::CCObject *,__int64) ; +0xb2, 0x14032bd02\nmov     rax, [rdi+0F50h]                                               ; +0xb8, 0x14032bd08\nmov     [rax+rbp*8], rbx                                               ; +0xbf, 0x14032bd0f\nmov     rdx, rsi                                                       ; +0xc3, 0x14032bd13\nmov     rcx, rbx                                                       ; +0xc6, 0x14032bd16\ncall    cs:?addObject@CCArray@cocos2d@@QEAAXPEAVCCObject@2@@Z; cocos2d::CCArray::addObject(cocos2d::CCObject *) ; +0xc9, 0x14032bd19\nmov     rbp, [rsp+28h+arg_0]                                           ; +0xcf, 0x14032bd1f\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xd4, 0x14032bd24\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xd9, 0x14032bd29\nadd     rsp, 20h                                                       ; +0xde, 0x14032bd2e\npop     rdi                                                            ; +0xe2, 0x14032bd32\nretn                                                                   ; +0xe3, 0x14032bd33", "xrefs": ["<???> @ 0x14076b808", "<???> @ 0x1407d5e68", "<???> @ 0x1408b5f7c", "<???> @ 0x1408b5f8c", "<???> @ 0x14091f1e4"], "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"}