{"type": "func", "start": 4296266800, "end": 4296266937, "name": "GJBaseGameLayer::getSingleGroupObject", "pseudocode": "// \n// GJBaseGameLayer::getSingleGroupObject from 0x10013d430 to 0x10013d4b9 (137 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::getSingleGroupObject(GJBaseGameLayer *a1, int a2)\n{\n  intptr_t v2; // r14\n  cocos2d::CCArray *v3; // rbx\n\n  if ( a2 <= 0 )\n    return nullptr;\n  v2 = 9999;\n  if ( (unsigned int)a2 < 0x270F )\n    v2 = (unsigned int)a2;\n  if ( ((v3 = a1->m_groups.__begin_[v2]) != nullptr\n     || (v3 = (cocos2d::CCArray *)sub_10071F9E0(a1, *(_QWORD *)&a2),\n         cocos2d::CCDictionary::setObject(a1->m_groupDict, v3, v2),\n         (a1->m_groups.__begin_[v2] = v3) != nullptr))\n    && (unsigned int)sub_100720070(v3) == 1 )\n  {\n    return (GameObject *)sub_1007200C0(v3, 0);\n  }\n  else\n  {\n    return nullptr;\n  }\n}", "assembly": "; \n; GJBaseGameLayer::getSingleGroupObject from 0x10013d430 to 0x10013d4b9 (137 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, 0x10013d430\nmov     rbp, rsp                                                       ; +0x1, 0x10013d431\npush    r15                                                            ; +0x4, 0x10013d434\npush    r14                                                            ; +0x6, 0x10013d436\npush    rbx                                                            ; +0x8, 0x10013d438\npush    rax                                                            ; +0x9, 0x10013d439\ntest    esi, esi                                                       ; +0xa, 0x10013d43a\njle     short loc_10013D4AC                                            ; +0xc, 0x10013d43c\ncmp     esi, 270Fh                                                     ; +0xe, 0x10013d43e\nmov     r14d, 270Fh                                                    ; +0x14, 0x10013d444\ncmovb   r14d, esi                                                      ; +0x1a, 0x10013d44a\nmov     rax, [rdi+0E00h]                                               ; +0x1e, 0x10013d44e\nmov     rbx, [rax+r14*8]                                               ; +0x25, 0x10013d455\ntest    rbx, rbx                                                       ; +0x29, 0x10013d459\njnz     short loc_10013D48B                                            ; +0x2c, 0x10013d45c\nmov     r15, rdi                                                       ; +0x2e, 0x10013d45e\ncall    sub_10071F9E0                                                  ; +0x31, 0x10013d461\nmov     rbx, rax                                                       ; +0x36, 0x10013d466\nmov     rdi, [r15+0DE8h]                                               ; +0x39, 0x10013d469\nmov     rsi, rax                                                       ; +0x40, 0x10013d470\nmov     rdx, r14                                                       ; +0x43, 0x10013d473\ncall    cocos2d__CCDictionary__setObject                               ; +0x46, 0x10013d476\nmov     rax, [r15+0E00h]                                               ; +0x4b, 0x10013d47b\nmov     [rax+r14*8], rbx                                               ; +0x52, 0x10013d482\ntest    rbx, rbx                                                       ; +0x56, 0x10013d486\njz      short loc_10013D4AC                                            ; +0x59, 0x10013d489\nmov     rdi, rbx                                                       ; +0x5b, 0x10013d48b\ncall    sub_100720070                                                  ; +0x5e, 0x10013d48e\ncmp     eax, 1                                                         ; +0x63, 0x10013d493\njnz     short loc_10013D4AC                                            ; +0x66, 0x10013d496\nmov     rdi, rbx                                                       ; +0x68, 0x10013d498\nxor     esi, esi                                                       ; +0x6b, 0x10013d49b\nadd     rsp, 8                                                         ; +0x6d, 0x10013d49d\npop     rbx                                                            ; +0x71, 0x10013d4a1\npop     r14                                                            ; +0x72, 0x10013d4a2\npop     r15                                                            ; +0x74, 0x10013d4a4\npop     rbp                                                            ; +0x76, 0x10013d4a6\njmp     sub_1007200C0                                                  ; +0x77, 0x10013d4a7\nxor     eax, eax                                                       ; +0x7c, 0x10013d4ac\nadd     rsp, 8                                                         ; +0x7e, 0x10013d4ae\npop     rbx                                                            ; +0x82, 0x10013d4b2\npop     r14                                                            ; +0x83, 0x10013d4b3\npop     r15                                                            ; +0x85, 0x10013d4b5\npop     rbp                                                            ; +0x87, 0x10013d4b7\nretn                                                                   ; +0x88, 0x10013d4b8", "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"}