{"type": "func", "start": 4296320608, "end": 4296320934, "name": "GJBaseGameLayer::moveObjectToStaticGroup", "pseudocode": "// \n// GJBaseGameLayer::moveObjectToStaticGroup from 0x10014a660 to 0x10014a7a6 (326 bytes)\n// \n// 1 xrefs:\n// > GJBaseGameLayer::optimizeMoveGroups @ 0x100118048\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::moveObjectToStaticGroup(GJBaseGameLayer *a1, GameObject *a2)\n{\n  GJBaseGameLayer *v3; // r14\n  unsigned int i; // r15d\n  cocos2d::CCDictionary *m_staticGroupDict; // rdi\n  cocos2d::CCObject *v6; // rsi\n  int GroupID; // eax\n  intptr_t v8; // r13\n  cocos2d::CCObject *v9; // r12\n  cocos2d::CCArray *v10; // r14\n\n  if ( a2->m_isDecoration2 )\n  {\n    a2->m_isDecoration2 = 0;\n    if ( a2->m_groupCount > 0 )\n    {\n      v3 = a1;\n      for ( i = 0; (int)i < a2->m_groupCount; ++i )\n      {\n        m_staticGroupDict = (cocos2d::CCDictionary *)a2;\n        v6 = (cocos2d::CCObject *)i;\n        GroupID = GameObject::getGroupID(a2, i);\n        v8 = (unsigned int)GroupID;\n        if ( GroupID >= 9999 )\n          v8 = 9999;\n        if ( (int)v8 <= 0 )\n          v8 = 0;\n        v9 = v3->m_staticGroups.__begin_[v8];\n        if ( v9 )\n        {\n          v10 = v3->m_optimizedGroups.__begin_[v8];\n          if ( !v10 )\n            goto LABEL_14;\n        }\n        else\n        {\n          v9 = (cocos2d::CCObject *)sub_10071F9E0(a2, i);\n          m_staticGroupDict = v3->m_staticGroupDict;\n          v6 = v9;\n          cocos2d::CCDictionary::setObject(m_staticGroupDict, v9, v8);\n          v3->m_staticGroups.__begin_[v8] = (cocos2d::CCArray *)v9;\n          v10 = v3->m_optimizedGroups.__begin_[v8];\n          if ( !v10 )\n          {\nLABEL_14:\n            v10 = (cocos2d::CCArray *)sub_10071F9E0(m_staticGroupDict, v6);\n            cocos2d::CCDictionary::setObject(a1->m_optimizedGroupDict, v10, v8);\n            a1->m_optimizedGroups.__begin_[v8] = v10;\n          }\n        }\n        if ( !(unsigned __int8)sub_100720160(v9, a2) )\n          sub_10071FCD0(v9, a2);\n        sub_100720220(v10, a2, 1);\n        v3 = a1;\n      }\n    }\n  }\n}", "assembly": "; \n; GJBaseGameLayer::moveObjectToStaticGroup from 0x10014a660 to 0x10014a7a6 (326 bytes)\n; \n; 1 xrefs:\n; > GJBaseGameLayer::optimizeMoveGroups @ 0x100118048\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\ncmp     byte ptr [rsi+50Ah], 1                                         ; +0x0, 0x10014a660\njnz     locret_10014A7A5                                               ; +0x7, 0x10014a667\npush    rbp                                                            ; +0xd, 0x10014a66d\nmov     rbp, rsp                                                       ; +0xe, 0x10014a66e\npush    r15                                                            ; +0x11, 0x10014a671\npush    r14                                                            ; +0x13, 0x10014a673\npush    r13                                                            ; +0x15, 0x10014a675\npush    r12                                                            ; +0x17, 0x10014a677\npush    rbx                                                            ; +0x19, 0x10014a679\npush    rax                                                            ; +0x1a, 0x10014a67a\nmov     rbx, rsi                                                       ; +0x1b, 0x10014a67b\nmov     byte ptr [rsi+50Ah], 0                                         ; +0x1e, 0x10014a67e\ncmp     word ptr [rsi+490h], 0                                         ; +0x25, 0x10014a685\njle     loc_10014A797                                                  ; +0x2d, 0x10014a68d\nmov     r14, rdi                                                       ; +0x33, 0x10014a693\nxor     r15d, r15d                                                     ; +0x36, 0x10014a696\nmov     [rbp-30h], rdi                                                 ; +0x39, 0x10014a699\njmp     short loc_10014A6C7                                            ; +0x3d, 0x10014a69d\nalign 20h                                                              ; +0x3f, 0x10014a69f\nmov     rdi, r14                                                       ; +0x40, 0x10014a6a0\nmov     rsi, rbx                                                       ; +0x43, 0x10014a6a3\nmov     edx, 1                                                         ; +0x46, 0x10014a6a6\ncall    sub_100720220                                                  ; +0x4b, 0x10014a6ab\ninc     r15d                                                           ; +0x50, 0x10014a6b0\nmovsx   eax, word ptr [rbx+490h]                                       ; +0x53, 0x10014a6b3\ncmp     r15d, eax                                                      ; +0x5a, 0x10014a6ba\nmov     r14, [rbp-30h]                                                 ; +0x5d, 0x10014a6bd\njge     loc_10014A797                                                  ; +0x61, 0x10014a6c1\nmov     rdi, rbx                                                       ; +0x67, 0x10014a6c7\nmov     esi, r15d                                                      ; +0x6a, 0x10014a6ca\ncall    GameObject__getGroupID                                         ; +0x6d, 0x10014a6cd\nmov     r13d, eax                                                      ; +0x72, 0x10014a6d2\ncmp     eax, 270Fh                                                     ; +0x75, 0x10014a6d5\nmov     eax, 270Fh                                                     ; +0x7a, 0x10014a6da\ncmovge  r13d, eax                                                      ; +0x7f, 0x10014a6df\ntest    r13d, r13d                                                     ; +0x83, 0x10014a6e3\nmov     eax, 0                                                         ; +0x86, 0x10014a6e6\ncmovle  r13d, eax                                                      ; +0x8b, 0x10014a6eb\nmov     rax, [r14+0E18h]                                               ; +0x8f, 0x10014a6ef\nmov     r12, [rax+r13*8]                                               ; +0x96, 0x10014a6f6\ntest    r12, r12                                                       ; +0x9a, 0x10014a6fa\njz      short loc_10014A730                                            ; +0x9d, 0x10014a6fd\nmov     rax, [r14+0E30h]                                               ; +0x9f, 0x10014a6ff\nmov     r14, [rax+r13*8]                                               ; +0xa6, 0x10014a706\ntest    r14, r14                                                       ; +0xaa, 0x10014a70a\njz      short loc_10014A765                                            ; +0xad, 0x10014a70d\nmov     rdi, r12                                                       ; +0xaf, 0x10014a70f\nmov     rsi, rbx                                                       ; +0xb2, 0x10014a712\ncall    sub_100720160                                                  ; +0xb5, 0x10014a715\ntest    al, al                                                         ; +0xba, 0x10014a71a\njnz     short loc_10014A6A0                                            ; +0xbc, 0x10014a71c\nmov     rdi, r12                                                       ; +0xbe, 0x10014a71e\nmov     rsi, rbx                                                       ; +0xc1, 0x10014a721\ncall    sub_10071FCD0                                                  ; +0xc4, 0x10014a724\njmp     loc_10014A6A0                                                  ; +0xc9, 0x10014a729\nalign 10h                                                              ; +0xce, 0x10014a72e\ncall    sub_10071F9E0                                                  ; +0xd0, 0x10014a730\nmov     r12, rax                                                       ; +0xd5, 0x10014a735\nmov     rdi, [r14+0DF0h]                                               ; +0xd8, 0x10014a738\nmov     rsi, rax                                                       ; +0xdf, 0x10014a73f\nmov     rdx, r13                                                       ; +0xe2, 0x10014a742\ncall    cocos2d__CCDictionary__setObject                               ; +0xe5, 0x10014a745\nmov     rax, [r14+0E18h]                                               ; +0xea, 0x10014a74a\nmov     [rax+r13*8], r12                                               ; +0xf1, 0x10014a751\nmov     rax, [r14+0E30h]                                               ; +0xf5, 0x10014a755\nmov     r14, [rax+r13*8]                                               ; +0xfc, 0x10014a75c\ntest    r14, r14                                                       ; +0x100, 0x10014a760\njnz     short loc_10014A70F                                            ; +0x103, 0x10014a763\ncall    sub_10071F9E0                                                  ; +0x105, 0x10014a765\nmov     r14, rax                                                       ; +0x10a, 0x10014a76a\nmov     rax, [rbp-30h]                                                 ; +0x10d, 0x10014a76d\nmov     rdi, [rax+0DF8h]                                               ; +0x111, 0x10014a771\nmov     rsi, r14                                                       ; +0x118, 0x10014a778\nmov     rdx, r13                                                       ; +0x11b, 0x10014a77b\ncall    cocos2d__CCDictionary__setObject                               ; +0x11e, 0x10014a77e\nmov     rax, [rbp-30h]                                                 ; +0x123, 0x10014a783\nmov     rax, [rax+0E30h]                                               ; +0x127, 0x10014a787\nmov     [rax+r13*8], r14                                               ; +0x12e, 0x10014a78e\njmp     loc_10014A70F                                                  ; +0x132, 0x10014a792\nadd     rsp, 8                                                         ; +0x137, 0x10014a797\npop     rbx                                                            ; +0x13b, 0x10014a79b\npop     r12                                                            ; +0x13c, 0x10014a79c\npop     r13                                                            ; +0x13e, 0x10014a79e\npop     r14                                                            ; +0x140, 0x10014a7a0\npop     r15                                                            ; +0x142, 0x10014a7a2\npop     rbp                                                            ; +0x144, 0x10014a7a4\nretn                                                                   ; +0x145, 0x10014a7a5", "xrefs": ["GJBaseGameLayer::optimizeMoveGroups @ 0x100118048"], "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"}