{"type": "func", "start": 4296267040, "end": 4296267196, "name": "GJBaseGameLayer::getCenterGroupObject", "pseudocode": "// \n// GJBaseGameLayer::getCenterGroupObject from 0x10013d520 to 0x10013d5bc (156 bytes)\n// \n// 0 xrefs:\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!\nGameObject *__fastcall GJBaseGameLayer::getCenterGroupObject(GJBaseGameLayer *a1, int a2, int a3)\n{\n  int v4; // eax\n  intptr_t v5; // r12\n  cocos2d::CCArray *v6; // r15\n\n  if ( a2 > 0 )\n    a3 = a2;\n  v4 = 9999;\n  if ( a3 < 9999 )\n    v4 = a3;\n  v5 = 0;\n  if ( v4 > 0 )\n    v5 = (unsigned int)v4;\n  v6 = a1->m_groups.__begin_[v5];\n  if ( (v6\n     || (v6 = (cocos2d::CCArray *)sub_10071F9E0(a1, *(_QWORD *)&a2),\n         cocos2d::CCDictionary::setObject(a1->m_groupDict, v6, v5),\n         (a1->m_groups.__begin_[v5] = v6) != nullptr))\n    && (unsigned int)sub_100720070(v6) == 1 )\n  {\n    return (GameObject *)sub_1007200C0(v6, 0);\n  }\n  else\n  {\n    return (GameObject *)cocos2d::CCDictionary::objectForKey(a1->m_parentGroupsDict, a3);\n  }\n}", "assembly": "; \n; GJBaseGameLayer::getCenterGroupObject from 0x10013d520 to 0x10013d5bc (156 bytes)\n; \n; 0 xrefs:\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, 0x10013d520\nmov     rbp, rsp                                                       ; +0x1, 0x10013d521\npush    r15                                                            ; +0x4, 0x10013d524\npush    r14                                                            ; +0x6, 0x10013d526\npush    r12                                                            ; +0x8, 0x10013d528\npush    rbx                                                            ; +0xa, 0x10013d52a\nmov     ebx, edx                                                       ; +0xb, 0x10013d52b\ntest    esi, esi                                                       ; +0xd, 0x10013d52d\ncmovg   ebx, esi                                                       ; +0xf, 0x10013d52f\ncmp     ebx, 270Fh                                                     ; +0x12, 0x10013d532\nmov     eax, 270Fh                                                     ; +0x18, 0x10013d538\ncmovl   eax, ebx                                                       ; +0x1d, 0x10013d53d\nxor     r12d, r12d                                                     ; +0x20, 0x10013d540\ntest    eax, eax                                                       ; +0x23, 0x10013d543\ncmovg   r12d, eax                                                      ; +0x25, 0x10013d545\nmov     r14, rdi                                                       ; +0x29, 0x10013d549\nmov     rax, [rdi+0E00h]                                               ; +0x2c, 0x10013d54c\nmov     r15, [rax+r12*8]                                               ; +0x33, 0x10013d553\ntest    r15, r15                                                       ; +0x37, 0x10013d557\njnz     short loc_10013D586                                            ; +0x3a, 0x10013d55a\ncall    sub_10071F9E0                                                  ; +0x3c, 0x10013d55c\nmov     r15, rax                                                       ; +0x41, 0x10013d561\nmov     rdi, [r14+0DE8h]                                               ; +0x44, 0x10013d564\nmov     rsi, rax                                                       ; +0x4b, 0x10013d56b\nmov     rdx, r12                                                       ; +0x4e, 0x10013d56e\ncall    cocos2d__CCDictionary__setObject                               ; +0x51, 0x10013d571\nmov     rax, [r14+0E00h]                                               ; +0x56, 0x10013d576\nmov     [rax+r12*8], r15                                               ; +0x5d, 0x10013d57d\ntest    r15, r15                                                       ; +0x61, 0x10013d581\njz      short loc_10013D5A5                                            ; +0x64, 0x10013d584\nmov     rdi, r15                                                       ; +0x66, 0x10013d586\ncall    sub_100720070                                                  ; +0x69, 0x10013d589\ncmp     eax, 1                                                         ; +0x6e, 0x10013d58e\njnz     short loc_10013D5A5                                            ; +0x71, 0x10013d591\nmov     rdi, r15                                                       ; +0x73, 0x10013d593\nxor     esi, esi                                                       ; +0x76, 0x10013d596\npop     rbx                                                            ; +0x78, 0x10013d598\npop     r12                                                            ; +0x79, 0x10013d599\npop     r14                                                            ; +0x7b, 0x10013d59b\npop     r15                                                            ; +0x7d, 0x10013d59d\npop     rbp                                                            ; +0x7f, 0x10013d59f\njmp     sub_1007200C0                                                  ; +0x80, 0x10013d5a0\nmov     rdi, [r14+0E48h]                                               ; +0x85, 0x10013d5a5\nmovsxd  rsi, ebx                                                       ; +0x8c, 0x10013d5ac\npop     rbx                                                            ; +0x8f, 0x10013d5af\npop     r12                                                            ; +0x90, 0x10013d5b0\npop     r14                                                            ; +0x92, 0x10013d5b2\npop     r15                                                            ; +0x94, 0x10013d5b4\npop     rbp                                                            ; +0x96, 0x10013d5b6\njmp     cocos2d__CCDictionary__objectForKey                            ; +0x97, 0x10013d5b7", "xrefs": [], "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"}