{"type": "func", "start": 4296123472, "end": 4296123731, "name": "GJBaseGameLayer::addToGroup", "pseudocode": "// \n// GJBaseGameLayer::addToGroup from 0x10011a450 to 0x10011a553 (259 bytes)\n// \n// 3 xrefs:\n// > LevelEditorLayer::addToGroup @ 0x1000c43fa\n// > <???> @ 0x100abb040\n// > <???> @ 0x100ac5108\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 12:24:35 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::addToGroup(_QWORD *a1, __int64 a2, int a3)\n{\n  __int64 v4; // r14\n  __int64 v5; // rdi\n  __int64 v6; // rdi\n  __int64 v7; // r13\n  __int64 v8; // r12\n  __int64 v9; // r12\n  __int64 result; // rax\n  _QWORD *v11; // [rsp-38h] [rbp-38h]\n\n  if ( a3 <= 9999 )\n  {\n    v4 = 0;\n    if ( a3 > 0 )\n      v4 = (unsigned int)a3;\n    v5 = *(_QWORD *)(a1[452] + 8 * v4);\n    if ( v5 )\n    {\n      sub_1007FEBF0(v5, a2);\n      if ( *(_BYTE *)(a2 + 1290) == 1 )\n        goto LABEL_6;\n    }\n    else\n    {\n      v8 = sub_1007FE900(0);\n      cocos2d::CCDictionary::setObject_1(a1[449], v8, v4);\n      *(_QWORD *)(a1[452] + 8 * v4) = v8;\n      sub_1007FEBF0(v8, a2);\n      if ( *(_BYTE *)(a2 + 1290) == 1 )\n      {\nLABEL_6:\n        v6 = *(_QWORD *)(a1[458] + 8 * v4);\n        if ( !v6 )\n        {\n          v11 = a1 + 458;\n          v7 = 451;\nLABEL_11:\n          v9 = sub_1007FE900(0);\n          cocos2d::CCDictionary::setObject_1(a1[v7], v9, v4);\n          v6 = v9;\n          *(_QWORD *)(*v11 + 8 * v4) = v9;\n          return sub_1007FEBF0(v6, a2);\n        }\n        return sub_1007FEBF0(v6, a2);\n      }\n    }\n    v6 = *(_QWORD *)(a1[455] + 8 * v4);\n    if ( !v6 )\n    {\n      v11 = a1 + 455;\n      v7 = 450;\n      goto LABEL_11;\n    }\n    return sub_1007FEBF0(v6, a2);\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::addToGroup from 0x10011a450 to 0x10011a553 (259 bytes)\n; \n; 3 xrefs:\n; > LevelEditorLayer::addToGroup @ 0x1000c43fa\n; > <???> @ 0x100abb040\n; > <???> @ 0x100ac5108\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 12:24:35 +0000\n; \ncmp     edx, 270Fh                                                     ; +0x0, 0x10011a450\njle     short loc_10011A459                                            ; +0x6, 0x10011a456\nretn                                                                   ; +0x8, 0x10011a458\npush    rbp                                                            ; +0x9, 0x10011a459\nmov     rbp, rsp                                                       ; +0xa, 0x10011a45a\npush    r15                                                            ; +0xd, 0x10011a45d\npush    r14                                                            ; +0xf, 0x10011a45f\npush    r13                                                            ; +0x11, 0x10011a461\npush    r12                                                            ; +0x13, 0x10011a463\npush    rbx                                                            ; +0x15, 0x10011a465\npush    rax                                                            ; +0x16, 0x10011a466\nmov     rbx, rsi                                                       ; +0x17, 0x10011a467\nmov     r15, rdi                                                       ; +0x1a, 0x10011a46a\nxor     r14d, r14d                                                     ; +0x1d, 0x10011a46d\ntest    edx, edx                                                       ; +0x20, 0x10011a470\ncmovg   r14d, edx                                                      ; +0x22, 0x10011a472\nmov     rax, [rdi+0E20h]                                               ; +0x26, 0x10011a476\nmov     rdi, [rax+r14*8]                                               ; +0x2d, 0x10011a47d\ntest    rdi, rdi                                                       ; +0x31, 0x10011a481\njz      short loc_10011A4BE                                            ; +0x34, 0x10011a484\nmov     rsi, rbx                                                       ; +0x36, 0x10011a486\ncall    sub_1007FEBF0                                                  ; +0x39, 0x10011a489\ncmp     byte ptr [rbx+50Ah], 1                                         ; +0x3e, 0x10011a48e\njnz     short loc_10011A4F7                                            ; +0x45, 0x10011a495\nmov     rax, [r15+0E50h]                                               ; +0x47, 0x10011a497\nmov     rdi, [rax+r14*8]                                               ; +0x4e, 0x10011a49e\ntest    rdi, rdi                                                       ; +0x52, 0x10011a4a2\njnz     loc_10011A53D                                                  ; +0x55, 0x10011a4a5\nlea     rax, [r15+0E50h]                                               ; +0x5b, 0x10011a4ab\nmov     [rbp-30h], rax                                                 ; +0x62, 0x10011a4b2\nmov     r13d, 0E18h                                                    ; +0x66, 0x10011a4b6\njmp     short loc_10011A518                                            ; +0x6c, 0x10011a4bc\ncall    sub_1007FE900                                                  ; +0x6e, 0x10011a4be\nmov     r12, rax                                                       ; +0x73, 0x10011a4c3\nmov     rdi, [r15+0E08h]                                               ; +0x76, 0x10011a4c6\nmov     rsi, rax                                                       ; +0x7d, 0x10011a4cd\nmov     rdx, r14                                                       ; +0x80, 0x10011a4d0\ncall    cocos2d__CCDictionary__setObject_1                             ; +0x83, 0x10011a4d3\nmov     rdi, r12                                                       ; +0x88, 0x10011a4d8\nmov     rax, [r15+0E20h]                                               ; +0x8b, 0x10011a4db\nmov     [rax+r14*8], r12                                               ; +0x92, 0x10011a4e2\nmov     rsi, rbx                                                       ; +0x96, 0x10011a4e6\ncall    sub_1007FEBF0                                                  ; +0x99, 0x10011a4e9\ncmp     byte ptr [rbx+50Ah], 1                                         ; +0x9e, 0x10011a4ee\njz      short loc_10011A497                                            ; +0xa5, 0x10011a4f5\nmov     rax, [r15+0E38h]                                               ; +0xa7, 0x10011a4f7\nmov     rdi, [rax+r14*8]                                               ; +0xae, 0x10011a4fe\ntest    rdi, rdi                                                       ; +0xb2, 0x10011a502\njnz     short loc_10011A53D                                            ; +0xb5, 0x10011a505\nlea     rax, [r15+0E38h]                                               ; +0xb7, 0x10011a507\nmov     [rbp-30h], rax                                                 ; +0xbe, 0x10011a50e\nmov     r13d, 0E10h                                                    ; +0xc2, 0x10011a512\ncall    sub_1007FE900                                                  ; +0xc8, 0x10011a518\nmov     r12, rax                                                       ; +0xcd, 0x10011a51d\nmov     rdi, [r15+r13]                                                 ; +0xd0, 0x10011a520\nmov     rsi, rax                                                       ; +0xd4, 0x10011a524\nmov     rdx, r14                                                       ; +0xd7, 0x10011a527\ncall    cocos2d__CCDictionary__setObject_1                             ; +0xda, 0x10011a52a\nmov     rdi, r12                                                       ; +0xdf, 0x10011a52f\nmov     rax, [rbp-30h]                                                 ; +0xe2, 0x10011a532\nmov     rax, [rax]                                                     ; +0xe6, 0x10011a536\nmov     [rax+r14*8], r12                                               ; +0xe9, 0x10011a539\nmov     rsi, rbx                                                       ; +0xed, 0x10011a53d\nadd     rsp, 8                                                         ; +0xf0, 0x10011a540\npop     rbx                                                            ; +0xf4, 0x10011a544\npop     r12                                                            ; +0xf5, 0x10011a545\npop     r13                                                            ; +0xf7, 0x10011a547\npop     r14                                                            ; +0xf9, 0x10011a549\npop     r15                                                            ; +0xfb, 0x10011a54b\npop     rbp                                                            ; +0xfd, 0x10011a54d\njmp     sub_1007FEBF0                                                  ; +0xfe, 0x10011a54e", "xrefs": ["LevelEditorLayer::addToGroup @ 0x1000c43fa", "<???> @ 0x100abb040", "<???> @ 0x100ac5108"], "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"}