{"type": "func", "start": 4296269440, "end": 4296269717, "name": "GJBaseGameLayer::groupStickyObjects", "pseudocode": "// \n// GJBaseGameLayer::groupStickyObjects from 0x10013de80 to 0x10013df95 (277 bytes)\n// \n// 2 xrefs:\n// > EditorUI::onGroupSticky @ 0x10000c8f7\n// > GJBaseGameLayer::assignNewStickyGroups @ 0x10013e14f\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall GJBaseGameLayer::groupStickyObjects(GJBaseGameLayer *a1, cocos2d::CCArray *a2)\n{\n  unsigned int v2; // eax\n  cocos2d::CCObject *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_100720070(a2);\n  v3 = (cocos2d::CCObject *)sub_10071FD00(v2);\n  if ( !(unsigned int)sub_100720070(a2) )\n    goto LABEL_9;\n  v4 = 0;\n  v5 = 0;\n  do\n  {\n    v6 = *(_DWORD *)(sub_1007200C0(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_100720070(a2) );\n  if ( !v4 )\n  {\nLABEL_9:\n    v4 = a1->m_lastUsedLinkedID + 1;\n    a1->m_lastUsedLinkedID = v4;\n  }\n  if ( (unsigned int)sub_100720070(a2) )\n  {\n    v7 = 0;\n    do\n    {\n      v8 = sub_1007200C0(a2, v7);\n      v9 = *(_DWORD *)(v8 + 1028);\n      if ( v9 != 747 && v9 != 749 )\n      {\n        *(_DWORD *)(v8 + 872) = v4;\n        sub_10071FCD0(v3, v8);\n      }\n      ++v7;\n    }\n    while ( v7 < (unsigned int)sub_100720070(a2) );\n  }\n  cocos2d::CCDictionary::setObject(a1->m_linkedGroupDict, v3, v4);\n}", "assembly": "; \n; GJBaseGameLayer::groupStickyObjects from 0x10013de80 to 0x10013df95 (277 bytes)\n; \n; 2 xrefs:\n; > EditorUI::onGroupSticky @ 0x10000c8f7\n; > GJBaseGameLayer::assignNewStickyGroups @ 0x10013e14f\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10013de80\nmov     rbp, rsp                                                       ; +0x1, 0x10013de81\npush    r15                                                            ; +0x4, 0x10013de84\npush    r14                                                            ; +0x6, 0x10013de86\npush    r13                                                            ; +0x8, 0x10013de88\npush    r12                                                            ; +0xa, 0x10013de8a\npush    rbx                                                            ; +0xc, 0x10013de8c\npush    rax                                                            ; +0xd, 0x10013de8d\nmov     r14, rsi                                                       ; +0xe, 0x10013de8e\nmov     rbx, rdi                                                       ; +0x11, 0x10013de91\nmov     rdi, rsi                                                       ; +0x14, 0x10013de94\ncall    sub_100720070                                                  ; +0x17, 0x10013de97\nmov     edi, eax                                                       ; +0x1c, 0x10013de9c\ncall    sub_10071FD00                                                  ; +0x1e, 0x10013de9e\nmov     r15, rax                                                       ; +0x23, 0x10013dea3\nmov     rdi, r14                                                       ; +0x26, 0x10013dea6\ncall    sub_100720070                                                  ; +0x29, 0x10013dea9\ntest    eax, eax                                                       ; +0x2e, 0x10013deae\njz      short loc_10013DF0C                                            ; +0x30, 0x10013deb0\nxor     r13d, r13d                                                     ; +0x32, 0x10013deb2\nxor     r12d, r12d                                                     ; +0x35, 0x10013deb5\njmp     short loc_10013DED3                                            ; +0x38, 0x10013deb8\nalign 20h                                                              ; +0x3a, 0x10013deba\nmov     r13d, eax                                                      ; +0x40, 0x10013dec0\ninc     r12d                                                           ; +0x43, 0x10013dec3\nmov     rdi, r14                                                       ; +0x46, 0x10013dec6\ncall    sub_100720070                                                  ; +0x49, 0x10013dec9\ncmp     r12d, eax                                                      ; +0x4e, 0x10013dece\njnb     short loc_10013DF07                                            ; +0x51, 0x10013ded1\nmov     rdi, r14                                                       ; +0x53, 0x10013ded3\nmov     esi, r12d                                                      ; +0x56, 0x10013ded6\ncall    sub_1007200C0                                                  ; +0x59, 0x10013ded9\nmov     eax, [rax+368h]                                                ; +0x5e, 0x10013dede\ntest    r13d, r13d                                                     ; +0x64, 0x10013dee4\njz      short loc_10013DEC0                                            ; +0x67, 0x10013dee7\ntest    eax, eax                                                       ; +0x69, 0x10013dee9\nsetle   cl                                                             ; +0x6b, 0x10013deeb\ncmp     eax, r13d                                                      ; +0x6e, 0x10013deee\nsetz    al                                                             ; +0x71, 0x10013def1\nor      al, cl                                                         ; +0x74, 0x10013def4\ncmp     al, 1                                                          ; +0x76, 0x10013def6\njz      short loc_10013DEC3                                            ; +0x78, 0x10013def8\nmov     rdi, rbx                                                       ; +0x7a, 0x10013defa\nmov     rsi, r14                                                       ; +0x7d, 0x10013defd\ncall    GJBaseGameLayer__ungroupStickyObjects                          ; +0x80, 0x10013df00\njmp     short loc_10013DF0C                                            ; +0x85, 0x10013df05\ntest    r13d, r13d                                                     ; +0x87, 0x10013df07\njnz     short loc_10013DF1D                                            ; +0x8a, 0x10013df0a\nmov     r13d, [rbx+0E98h]                                              ; +0x8c, 0x10013df0c\ninc     r13d                                                           ; +0x93, 0x10013df13\nmov     [rbx+0E98h], r13d                                              ; +0x96, 0x10013df16\nmov     rdi, r14                                                       ; +0x9d, 0x10013df1d\ncall    sub_100720070                                                  ; +0xa0, 0x10013df20\ntest    eax, eax                                                       ; +0xa5, 0x10013df25\njz      short loc_10013DF75                                            ; +0xa7, 0x10013df27\nxor     r12d, r12d                                                     ; +0xa9, 0x10013df29\njmp     short loc_10013DF40                                            ; +0xac, 0x10013df2c\nalign 10h                                                              ; +0xae, 0x10013df2e\ninc     r12d                                                           ; +0xb0, 0x10013df30\nmov     rdi, r14                                                       ; +0xb3, 0x10013df33\ncall    sub_100720070                                                  ; +0xb6, 0x10013df36\ncmp     r12d, eax                                                      ; +0xbb, 0x10013df3b\njnb     short loc_10013DF75                                            ; +0xbe, 0x10013df3e\nmov     rdi, r14                                                       ; +0xc0, 0x10013df40\nmov     esi, r12d                                                      ; +0xc3, 0x10013df43\ncall    sub_1007200C0                                                  ; +0xc6, 0x10013df46\nmov     ecx, [rax+404h]                                                ; +0xcb, 0x10013df4b\ncmp     ecx, 2EBh                                                      ; +0xd1, 0x10013df51\njz      short loc_10013DF30                                            ; +0xd7, 0x10013df57\ncmp     ecx, 2EDh                                                      ; +0xd9, 0x10013df59\njz      short loc_10013DF30                                            ; +0xdf, 0x10013df5f\nmov     [rax+368h], r13d                                               ; +0xe1, 0x10013df61\nmov     rdi, r15                                                       ; +0xe8, 0x10013df68\nmov     rsi, rax                                                       ; +0xeb, 0x10013df6b\ncall    sub_10071FCD0                                                  ; +0xee, 0x10013df6e\njmp     short loc_10013DF30                                            ; +0xf3, 0x10013df73\nmov     rdi, [rbx+0E90h]                                               ; +0xf5, 0x10013df75\nmov     edx, r13d                                                      ; +0xfc, 0x10013df7c\nmov     rsi, r15                                                       ; +0xff, 0x10013df7f\nadd     rsp, 8                                                         ; +0x102, 0x10013df82\npop     rbx                                                            ; +0x106, 0x10013df86\npop     r12                                                            ; +0x107, 0x10013df87\npop     r13                                                            ; +0x109, 0x10013df89\npop     r14                                                            ; +0x10b, 0x10013df8b\npop     r15                                                            ; +0x10d, 0x10013df8d\npop     rbp                                                            ; +0x10f, 0x10013df8f\njmp     cocos2d__CCDictionary__setObject                               ; +0x110, 0x10013df90", "xrefs": ["EditorUI::onGroupSticky @ 0x10000c8f7", "GJBaseGameLayer::assignNewStickyGroups @ 0x10013e14f"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}