{"type": "func", "start": 4296265904, "end": 4296266005, "name": "GJBaseGameLayer::getOptimizedGroup", "pseudocode": "// \n// GJBaseGameLayer::getOptimizedGroup from 0x10013d0b0 to 0x10013d115 (101 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::addToGroupOld @ 0x1000b6da3\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::getOptimizedGroup(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_optimizedGroups.__begin_[v3];\n  if ( !result )\n  {\n    v5 = (cocos2d::CCArray *)sub_10071F9E0(a1, *(_QWORD *)&a2);\n    cocos2d::CCDictionary::setObject(a1->m_optimizedGroupDict, v5, v3);\n    a1->m_optimizedGroups.__begin_[v3] = v5;\n    return v5;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getOptimizedGroup from 0x10013d0b0 to 0x10013d115 (101 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::addToGroupOld @ 0x1000b6da3\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, 0x10013d0b0\nmov     rbp, rsp                                                       ; +0x1, 0x10013d0b1\npush    r15                                                            ; +0x4, 0x10013d0b4\npush    r14                                                            ; +0x6, 0x10013d0b6\npush    rbx                                                            ; +0x8, 0x10013d0b8\npush    rax                                                            ; +0x9, 0x10013d0b9\ncmp     esi, 270Fh                                                     ; +0xa, 0x10013d0ba\nmov     eax, 270Fh                                                     ; +0x10, 0x10013d0c0\ncmovl   eax, esi                                                       ; +0x15, 0x10013d0c5\nxor     ebx, ebx                                                       ; +0x18, 0x10013d0c8\ntest    eax, eax                                                       ; +0x1a, 0x10013d0ca\ncmovg   ebx, eax                                                       ; +0x1c, 0x10013d0cc\nmov     rax, [rdi+0E30h]                                               ; +0x1f, 0x10013d0cf\nmov     rax, [rax+rbx*8]                                               ; +0x26, 0x10013d0d6\ntest    rax, rax                                                       ; +0x2a, 0x10013d0da\njnz     short loc_10013D10A                                            ; +0x2d, 0x10013d0dd\nmov     r14, rdi                                                       ; +0x2f, 0x10013d0df\ncall    sub_10071F9E0                                                  ; +0x32, 0x10013d0e2\nmov     r15, rax                                                       ; +0x37, 0x10013d0e7\nmov     rdi, [r14+0DF8h]                                               ; +0x3a, 0x10013d0ea\nmov     rsi, rax                                                       ; +0x41, 0x10013d0f1\nmov     rdx, rbx                                                       ; +0x44, 0x10013d0f4\ncall    cocos2d__CCDictionary__setObject                               ; +0x47, 0x10013d0f7\nmov     rax, r15                                                       ; +0x4c, 0x10013d0fc\nmov     rcx, [r14+0E30h]                                               ; +0x4f, 0x10013d0ff\nmov     [rcx+rbx*8], r15                                               ; +0x56, 0x10013d106\nadd     rsp, 8                                                         ; +0x5a, 0x10013d10a\npop     rbx                                                            ; +0x5e, 0x10013d10e\npop     r14                                                            ; +0x5f, 0x10013d10f\npop     r15                                                            ; +0x61, 0x10013d111\npop     rbp                                                            ; +0x63, 0x10013d113\nretn                                                                   ; +0x64, 0x10013d114", "xrefs": ["PlayLayer::addToGroupOld @ 0x1000b6da3"], "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"}