{"type": "func", "start": 4296123744, "end": 4296123845, "name": "GJBaseGameLayer::getOptimizedGroup", "pseudocode": "// \n// GJBaseGameLayer::getOptimizedGroup from 0x10011a560 to 0x10011a5c5 (101 bytes)\n// \n// 1 xrefs:\n// > PlayLayer::addToGroupOld @ 0x1000846a3\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:35 +0000\n// \n\n__int64 __fastcall GJBaseGameLayer::getOptimizedGroup(__int64 a1, int a2)\n{\n  int v2; // eax\n  __int64 v3; // rbx\n  __int64 result; // rax\n  __int64 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 = *(_QWORD *)(*(_QWORD *)(a1 + 3664) + 8 * v3);\n  if ( !result )\n  {\n    v5 = sub_1007FE900(a1);\n    cocos2d::CCDictionary::setObject_1(*(_QWORD *)(a1 + 3608), v5, v3);\n    *(_QWORD *)(*(_QWORD *)(a1 + 3664) + 8 * v3) = v5;\n    return v5;\n  }\n  return result;\n}", "assembly": "; \n; GJBaseGameLayer::getOptimizedGroup from 0x10011a560 to 0x10011a5c5 (101 bytes)\n; \n; 1 xrefs:\n; > PlayLayer::addToGroupOld @ 0x1000846a3\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:35 +0000\n; \npush    rbp                                                            ; +0x0, 0x10011a560\nmov     rbp, rsp                                                       ; +0x1, 0x10011a561\npush    r15                                                            ; +0x4, 0x10011a564\npush    r14                                                            ; +0x6, 0x10011a566\npush    rbx                                                            ; +0x8, 0x10011a568\npush    rax                                                            ; +0x9, 0x10011a569\ncmp     esi, 270Fh                                                     ; +0xa, 0x10011a56a\nmov     eax, 270Fh                                                     ; +0x10, 0x10011a570\ncmovl   eax, esi                                                       ; +0x15, 0x10011a575\nxor     ebx, ebx                                                       ; +0x18, 0x10011a578\ntest    eax, eax                                                       ; +0x1a, 0x10011a57a\ncmovg   ebx, eax                                                       ; +0x1c, 0x10011a57c\nmov     rax, [rdi+0E50h]                                               ; +0x1f, 0x10011a57f\nmov     rax, [rax+rbx*8]                                               ; +0x26, 0x10011a586\ntest    rax, rax                                                       ; +0x2a, 0x10011a58a\njnz     short loc_10011A5BA                                            ; +0x2d, 0x10011a58d\nmov     r14, rdi                                                       ; +0x2f, 0x10011a58f\ncall    sub_1007FE900                                                  ; +0x32, 0x10011a592\nmov     r15, rax                                                       ; +0x37, 0x10011a597\nmov     rdi, [r14+0E18h]                                               ; +0x3a, 0x10011a59a\nmov     rsi, rax                                                       ; +0x41, 0x10011a5a1\nmov     rdx, rbx                                                       ; +0x44, 0x10011a5a4\ncall    cocos2d__CCDictionary__setObject_1                             ; +0x47, 0x10011a5a7\nmov     rax, r15                                                       ; +0x4c, 0x10011a5ac\nmov     rcx, [r14+0E50h]                                               ; +0x4f, 0x10011a5af\nmov     [rcx+rbx*8], r15                                               ; +0x56, 0x10011a5b6\nadd     rsp, 8                                                         ; +0x5a, 0x10011a5ba\npop     rbx                                                            ; +0x5e, 0x10011a5be\npop     r14                                                            ; +0x5f, 0x10011a5bf\npop     r15                                                            ; +0x61, 0x10011a5c1\npop     rbp                                                            ; +0x63, 0x10011a5c3\nretn                                                                   ; +0x64, 0x10011a5c4", "xrefs": ["PlayLayer::addToGroupOld @ 0x1000846a3"], "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"}