{"type": "func", "start": 4296131088, "end": 4296131365, "name": "GJBaseGameLayer::groupStickyObjects", "pseudocode": "// \n// GJBaseGameLayer::groupStickyObjects from 0x10011c210 to 0x10011c325 (277 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onGroupSticky @ 0x100008bf0\n// > GJBaseGameLayer::assignNewStickyGroups @ 0x10011c4df\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:36 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::groupStickyObjects(__int64 a1, __int64 a2)\n{\n  unsigned int v2; // eax\n  __int64 v3; // r15\n  unsigned int v4; // r13d\n  unsigned int v5; // r12d\n  signed int v6; // eax\n  unsigned int v7; // r12d\n  __int64 v8; // rax\n  int v9; // ecx\n\n  v2 = sub_1007FEF90(a2);\n  v3 = sub_1007FEC20(v2);\n  if ( !(unsigned int)sub_1007FEF90(a2) )\n    goto LABEL_9;\n  v4 = 0;\n  v5 = 0;\n  do\n  {\n    v6 = *(_DWORD *)(sub_1007FEFE0(a2, v5) + 872);\n    if ( v4 )\n    {\n      if ( v6 > 0 && v6 != v4 )\n      {\n        GJBaseGameLayer::ungroupStickyObjects(a1, a2);\n        goto LABEL_9;\n      }\n    }\n    else\n    {\n      v4 = v6;\n    }\n    ++v5;\n  }\n  while ( v5 < (unsigned int)sub_1007FEF90(a2) );\n  if ( !v4 )\n  {\nLABEL_9:\n    v4 = *(_DWORD *)(a1 + 3888) + 1;\n    *(_DWORD *)(a1 + 3888) = v4;\n  }\n  if ( (unsigned int)sub_1007FEF90(a2) )\n  {\n    v7 = 0;\n    do\n    {\n      v8 = sub_1007FEFE0(a2, v7);\n      v9 = *(_DWORD *)(v8 + 1028);\n      if ( v9 != 747 && v9 != 749 )\n      {\n        *(_DWORD *)(v8 + 872) = v4;\n        sub_1007FEBF0(v3, v8);\n      }\n      ++v7;\n    }\n    while ( v7 < (unsigned int)sub_1007FEF90(a2) );\n  }\n  return cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3880), v3, v4);\n}", "assembly": "; \n; GJBaseGameLayer::groupStickyObjects from 0x10011c210 to 0x10011c325 (277 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onGroupSticky @ 0x100008bf0\n; > GJBaseGameLayer::assignNewStickyGroups @ 0x10011c4df\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:36 +0000\n; \npush    rbp                                                            ; +0x0, 0x10011c210\nmov     rbp, rsp                                                       ; +0x1, 0x10011c211\npush    r15                                                            ; +0x4, 0x10011c214\npush    r14                                                            ; +0x6, 0x10011c216\npush    r13                                                            ; +0x8, 0x10011c218\npush    r12                                                            ; +0xa, 0x10011c21a\npush    rbx                                                            ; +0xc, 0x10011c21c\npush    rax                                                            ; +0xd, 0x10011c21d\nmov     r14, rsi                                                       ; +0xe, 0x10011c21e\nmov     rbx, rdi                                                       ; +0x11, 0x10011c221\nmov     rdi, rsi                                                       ; +0x14, 0x10011c224\ncall    sub_1007FEF90                                                  ; +0x17, 0x10011c227\nmov     edi, eax                                                       ; +0x1c, 0x10011c22c\ncall    sub_1007FEC20                                                  ; +0x1e, 0x10011c22e\nmov     r15, rax                                                       ; +0x23, 0x10011c233\nmov     rdi, r14                                                       ; +0x26, 0x10011c236\ncall    sub_1007FEF90                                                  ; +0x29, 0x10011c239\ntest    eax, eax                                                       ; +0x2e, 0x10011c23e\njz      short loc_10011C29C                                            ; +0x30, 0x10011c240\nxor     r13d, r13d                                                     ; +0x32, 0x10011c242\nxor     r12d, r12d                                                     ; +0x35, 0x10011c245\njmp     short loc_10011C263                                            ; +0x38, 0x10011c248\nalign 10h                                                              ; +0x3a, 0x10011c24a\nmov     r13d, eax                                                      ; +0x40, 0x10011c250\ninc     r12d                                                           ; +0x43, 0x10011c253\nmov     rdi, r14                                                       ; +0x46, 0x10011c256\ncall    sub_1007FEF90                                                  ; +0x49, 0x10011c259\ncmp     r12d, eax                                                      ; +0x4e, 0x10011c25e\njnb     short loc_10011C297                                            ; +0x51, 0x10011c261\nmov     rdi, r14                                                       ; +0x53, 0x10011c263\nmov     esi, r12d                                                      ; +0x56, 0x10011c266\ncall    sub_1007FEFE0                                                  ; +0x59, 0x10011c269\nmov     eax, [rax+368h]                                                ; +0x5e, 0x10011c26e\ntest    r13d, r13d                                                     ; +0x64, 0x10011c274\njz      short loc_10011C250                                            ; +0x67, 0x10011c277\ntest    eax, eax                                                       ; +0x69, 0x10011c279\nsetle   cl                                                             ; +0x6b, 0x10011c27b\ncmp     eax, r13d                                                      ; +0x6e, 0x10011c27e\nsetz    al                                                             ; +0x71, 0x10011c281\nor      al, cl                                                         ; +0x74, 0x10011c284\ncmp     al, 1                                                          ; +0x76, 0x10011c286\njz      short loc_10011C253                                            ; +0x78, 0x10011c288\nmov     rdi, rbx                                                       ; +0x7a, 0x10011c28a\nmov     rsi, r14                                                       ; +0x7d, 0x10011c28d\ncall    GJBaseGameLayer__ungroupStickyObjects                          ; +0x80, 0x10011c290\njmp     short loc_10011C29C                                            ; +0x85, 0x10011c295\ntest    r13d, r13d                                                     ; +0x87, 0x10011c297\njnz     short loc_10011C2AD                                            ; +0x8a, 0x10011c29a\nmov     r13d, [rbx+0F30h]                                              ; +0x8c, 0x10011c29c\ninc     r13d                                                           ; +0x93, 0x10011c2a3\nmov     [rbx+0F30h], r13d                                              ; +0x96, 0x10011c2a6\nmov     rdi, r14                                                       ; +0x9d, 0x10011c2ad\ncall    sub_1007FEF90                                                  ; +0xa0, 0x10011c2b0\ntest    eax, eax                                                       ; +0xa5, 0x10011c2b5\njz      short loc_10011C305                                            ; +0xa7, 0x10011c2b7\nxor     r12d, r12d                                                     ; +0xa9, 0x10011c2b9\njmp     short loc_10011C2D0                                            ; +0xac, 0x10011c2bc\nalign 20h                                                              ; +0xae, 0x10011c2be\ninc     r12d                                                           ; +0xb0, 0x10011c2c0\nmov     rdi, r14                                                       ; +0xb3, 0x10011c2c3\ncall    sub_1007FEF90                                                  ; +0xb6, 0x10011c2c6\ncmp     r12d, eax                                                      ; +0xbb, 0x10011c2cb\njnb     short loc_10011C305                                            ; +0xbe, 0x10011c2ce\nmov     rdi, r14                                                       ; +0xc0, 0x10011c2d0\nmov     esi, r12d                                                      ; +0xc3, 0x10011c2d3\ncall    sub_1007FEFE0                                                  ; +0xc6, 0x10011c2d6\nmov     ecx, [rax+404h]                                                ; +0xcb, 0x10011c2db\ncmp     ecx, 2EBh                                                      ; +0xd1, 0x10011c2e1\njz      short loc_10011C2C0                                            ; +0xd7, 0x10011c2e7\ncmp     ecx, 2EDh                                                      ; +0xd9, 0x10011c2e9\njz      short loc_10011C2C0                                            ; +0xdf, 0x10011c2ef\nmov     [rax+368h], r13d                                               ; +0xe1, 0x10011c2f1\nmov     rdi, r15                                                       ; +0xe8, 0x10011c2f8\nmov     rsi, rax                                                       ; +0xeb, 0x10011c2fb\ncall    sub_1007FEBF0                                                  ; +0xee, 0x10011c2fe\njmp     short loc_10011C2C0                                            ; +0xf3, 0x10011c303\nmov     rdi, [rbx+0F28h]                                               ; +0xf5, 0x10011c305\nmov     edx, r13d                                                      ; +0xfc, 0x10011c30c\nmov     rsi, r15                                                       ; +0xff, 0x10011c30f\nadd     rsp, 8                                                         ; +0x102, 0x10011c312\npop     rbx                                                            ; +0x106, 0x10011c316\npop     r12                                                            ; +0x107, 0x10011c317\npop     r13                                                            ; +0x109, 0x10011c319\npop     r14                                                            ; +0x10b, 0x10011c31b\npop     r15                                                            ; +0x10d, 0x10011c31d\npop     rbp                                                            ; +0x10f, 0x10011c31f\njmp     cocos2d__CCDictionary__setObject_1                             ; +0x110, 0x10011c320", "xrefs": ["EditorUI::onGroupSticky @ 0x100008bf0", "GJBaseGameLayer::assignNewStickyGroups @ 0x10011c4df"], "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"}