{"type": "func", "start": 4296266016, "end": 4296266117, "name": "GJBaseGameLayer::getStaticGroup", "pseudocode": "// \n// GJBaseGameLayer::getStaticGroup from 0x10013d120 to 0x10013d185 (101 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::addToGroupOld @ 0x1000b6db6\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\n// local variable allocation has failed, the output may be wrong!\ncocos2d::CCArray *__fastcall GJBaseGameLayer::getStaticGroup(GJBaseGameLayer *a1, int a2)\n{\n  int v2; // eax\n  intptr_t v3; // rbx\n  cocos2d::CCArray *result; // rax\n  cocos2d::CCArray *v5; // r15\n\n  v2 = 9999;\n  if ( a2 < 9999 )\n    v2 = a2;\n  v3 = 0;\n  if ( v2 > 0 )\n    v3 = (unsigned int)v2;\n  result = a1->m_staticGroups.__begin_[v3];\n  if ( !result )\n  {\n    v5 = (cocos2d::CCArray *)sub_10071F9E0(a1, *(_QWORD *)&a2);\n    cocos2d::CCDictionary::setObject(a1->m_staticGroupDict, v5, v3);\n    a1->m_staticGroups.__begin_[v3] = v5;\n    return v5;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getStaticGroup from 0x10013d120 to 0x10013d185 (101 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::addToGroupOld @ 0x1000b6db6\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, 0x10013d120\nmov     rbp, rsp                                                       ; +0x1, 0x10013d121\npush    r15                                                            ; +0x4, 0x10013d124\npush    r14                                                            ; +0x6, 0x10013d126\npush    rbx                                                            ; +0x8, 0x10013d128\npush    rax                                                            ; +0x9, 0x10013d129\ncmp     esi, 270Fh                                                     ; +0xa, 0x10013d12a\nmov     eax, 270Fh                                                     ; +0x10, 0x10013d130\ncmovl   eax, esi                                                       ; +0x15, 0x10013d135\nxor     ebx, ebx                                                       ; +0x18, 0x10013d138\ntest    eax, eax                                                       ; +0x1a, 0x10013d13a\ncmovg   ebx, eax                                                       ; +0x1c, 0x10013d13c\nmov     rax, [rdi+0E18h]                                               ; +0x1f, 0x10013d13f\nmov     rax, [rax+rbx*8]                                               ; +0x26, 0x10013d146\ntest    rax, rax                                                       ; +0x2a, 0x10013d14a\njnz     short loc_10013D17A                                            ; +0x2d, 0x10013d14d\nmov     r14, rdi                                                       ; +0x2f, 0x10013d14f\ncall    sub_10071F9E0                                                  ; +0x32, 0x10013d152\nmov     r15, rax                                                       ; +0x37, 0x10013d157\nmov     rdi, [r14+0DF0h]                                               ; +0x3a, 0x10013d15a\nmov     rsi, rax                                                       ; +0x41, 0x10013d161\nmov     rdx, rbx                                                       ; +0x44, 0x10013d164\ncall    cocos2d__CCDictionary__setObject                               ; +0x47, 0x10013d167\nmov     rax, r15                                                       ; +0x4c, 0x10013d16c\nmov     rcx, [r14+0E18h]                                               ; +0x4f, 0x10013d16f\nmov     [rcx+rbx*8], r15                                               ; +0x56, 0x10013d176\nadd     rsp, 8                                                         ; +0x5a, 0x10013d17a\npop     rbx                                                            ; +0x5e, 0x10013d17e\npop     r14                                                            ; +0x5f, 0x10013d17f\npop     r15                                                            ; +0x61, 0x10013d181\npop     rbp                                                            ; +0x63, 0x10013d183\nretn                                                                   ; +0x64, 0x10013d184", "xrefs": ["PlayLayer::addToGroupOld @ 0x1000b6db6"], "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"}