{"type": "func", "start": 5372033984, "end": 5372034127, "name": "GJBaseGameLayer::addToGroups", "pseudocode": "// \n// GJBaseGameLayer::addToGroups from 0x14032bbc0 to 0x14032bc4f (143 bytes)\n// \n// 7 xrefs:\n// > LevelEditorLayer::addSpecial @ 0x1403f5137\n// > PlayLayer::addObject @ 0x14050c7b1\n// > PlayLayer::addObject @ 0x14050ce38\n// > PlayLayer::addObject @ 0x14050d36e\n// > <???> @ 0x1408b5f48\n// > <???> @ 0x1408b5f58\n// > <???> @ 0x14091f1c0\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::addToGroups(__int64 a1, __int64 a2, unsigned __int8 a3)\n{\n  int v6; // ebp\n  __int64 v7; // rsi\n  unsigned __int64 v8; // rdi\n  __int64 v9; // rax\n  __int64 v10; // r8\n\n  if ( *(__int16 *)(a2 + 1176) > 0 )\n  {\n    v6 = 0;\n    v7 = 0;\n    v8 = 0;\n    do\n    {\n      if ( v8 <= 9 && (v9 = *(_QWORD *)(a2 + 1168)) != 0 )\n        v10 = (unsigned int)*(__int16 *)(v7 + v9);\n      else\n        v10 = 0;\n      (*(void (__fastcall **)(__int64, __int64, __int64, _QWORD))(*(_QWORD *)a1 + 1200LL))(a1, a2, v10, a3);\n      ++v6;\n      ++v8;\n      v7 += 2;\n    }\n    while ( v6 < *(__int16 *)(a2 + 1176) );\n  }\n}", "assembly": "; \n; GJBaseGameLayer::addToGroups from 0x14032bbc0 to 0x14032bc4f (143 bytes)\n; \n; 7 xrefs:\n; > LevelEditorLayer::addSpecial @ 0x1403f5137\n; > PlayLayer::addObject @ 0x14050c7b1\n; > PlayLayer::addObject @ 0x14050ce38\n; > PlayLayer::addObject @ 0x14050d36e\n; > <???> @ 0x1408b5f48\n; > <???> @ 0x1408b5f58\n; > <???> @ 0x14091f1c0\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; \npush    rbx                                                            ; +0x0, 0x14032bbc0\npush    r14                                                            ; +0x2, 0x14032bbc2\npush    r15                                                            ; +0x4, 0x14032bbc4\nsub     rsp, 20h                                                       ; +0x6, 0x14032bbc6\ncmp     word ptr [rdx+498h], 0                                         ; +0xa, 0x14032bbca\nmovzx   r15d, r8b                                                      ; +0x12, 0x14032bbd2\nmov     rbx, rdx                                                       ; +0x16, 0x14032bbd6\nmov     r14, rcx                                                       ; +0x19, 0x14032bbd9\njle     short loc_14032BC45                                            ; +0x1c, 0x14032bbdc\nmov     [rsp+38h+arg_0], rbp                                           ; +0x1e, 0x14032bbde\nxor     ebp, ebp                                                       ; +0x23, 0x14032bbe3\nmov     [rsp+38h+arg_8], rsi                                           ; +0x25, 0x14032bbe5\nxor     esi, esi                                                       ; +0x2a, 0x14032bbea\nmov     [rsp+38h+arg_10], rdi                                          ; +0x2c, 0x14032bbec\nxor     edi, edi                                                       ; +0x31, 0x14032bbf1\ncmp     rdi, 9                                                         ; +0x33, 0x14032bbf3\nja      short loc_14032BC0C                                            ; +0x37, 0x14032bbf7\nmov     rax, [rbx+490h]                                                ; +0x39, 0x14032bbf9\ntest    rax, rax                                                       ; +0x40, 0x14032bc00\njz      short loc_14032BC0C                                            ; +0x43, 0x14032bc03\nmovsx   r8d, word ptr [rsi+rax]                                        ; +0x45, 0x14032bc05\njmp     short loc_14032BC0F                                            ; +0x4a, 0x14032bc0a\nxor     r8d, r8d                                                       ; +0x4c, 0x14032bc0c\nmov     rax, [r14]                                                     ; +0x4f, 0x14032bc0f\nmovzx   r9d, r15b                                                      ; +0x52, 0x14032bc12\nmov     rdx, rbx                                                       ; +0x56, 0x14032bc16\nmov     rcx, r14                                                       ; +0x59, 0x14032bc19\ncall    qword ptr [rax+4B0h]                                           ; +0x5c, 0x14032bc1c\nmovsx   eax, word ptr [rbx+498h]                                       ; +0x62, 0x14032bc22\ninc     ebp                                                            ; +0x69, 0x14032bc29\ninc     rdi                                                            ; +0x6b, 0x14032bc2b\nadd     rsi, 2                                                         ; +0x6e, 0x14032bc2e\ncmp     ebp, eax                                                       ; +0x72, 0x14032bc32\njl      short loc_14032BBF3                                            ; +0x74, 0x14032bc34\nmov     rdi, [rsp+38h+arg_10]                                          ; +0x76, 0x14032bc36\nmov     rsi, [rsp+38h+arg_8]                                           ; +0x7b, 0x14032bc3b\nmov     rbp, [rsp+38h+arg_0]                                           ; +0x80, 0x14032bc40\nadd     rsp, 20h                                                       ; +0x85, 0x14032bc45\npop     r15                                                            ; +0x89, 0x14032bc49\npop     r14                                                            ; +0x8b, 0x14032bc4b\npop     rbx                                                            ; +0x8d, 0x14032bc4d\nretn                                                                   ; +0x8e, 0x14032bc4e", "xrefs": ["LevelEditorLayer::addSpecial @ 0x1403f5137", "PlayLayer::addObject @ 0x14050c7b1", "PlayLayer::addObject @ 0x14050ce38", "PlayLayer::addObject @ 0x14050d36e", "<???> @ 0x1408b5f48", "<???> @ 0x1408b5f58", "<???> @ 0x14091f1c0"], "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"}