{"type": "func", "start": 6442866400, "end": 6442866540, "name": "sub_1800656E0", "pseudocode": "// \n// sub_1800656E0 from 0x1800656e0 to 0x18006576c (140 bytes)\n// \n// 12 xrefs:\n// > cocos2d::CCParticleSystem::initWithDictionary @ 0x1800685c0\n// > cocos2d::CCParticleSystem::initWithFile @ 0x1800689a1\n// > cocos2d::CCFileUtils::fullPathFromRelativeFile @ 0x18006f861\n// > cocos2d::CCFileUtils::getPathForFilename @ 0x18007050e\n// > sub_180073010 @ 0x18007311a\n// > cocos2d::CCTMXMapInfo::internalInit @ 0x1800af8cb\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b10f9\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b118d\n// > cocos2d::CCActionTween::operator= @ 0x1800cba5f\n// > cocos2d::CCPrettyPrinter::operator= @ 0x1800ceb8e\n// > cocos2d::CCPrettyPrinter::operator= @ 0x1800ceb9b\n// > <???> @ 0x1801b3b64\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__int64 __fastcall sub_1800656E0(__int64 a1, __int64 a2)\n{\n  unsigned __int64 v4; // rdx\n  _QWORD *v5; // rcx\n\n  if ( a1 != a2 )\n  {\n    v4 = *(_QWORD *)(a1 + 24);\n    if ( v4 > 0xF )\n    {\n      v5 = *(_QWORD **)a1;\n      if ( v4 + 1 >= 0x1000 )\n      {\n        if ( (unsigned __int64)v5 - *(v5 - 1) - 8 > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n        v5 = (_QWORD *)*(v5 - 1);\n      }\n      j_j_free_0(v5);\n    }\n    *(_QWORD *)(a1 + 24) = 15;\n    *(_QWORD *)(a1 + 16) = 0;\n    *(_BYTE *)a1 = 0;\n    *(_OWORD *)a1 = *(_OWORD *)a2;\n    *(_OWORD *)(a1 + 16) = *(_OWORD *)(a2 + 16);\n    *(_QWORD *)(a2 + 16) = 0;\n    *(_QWORD *)(a2 + 24) = 15;\n    *(_BYTE *)a2 = 0;\n  }\n  return a1;\n}", "assembly": "; \n; sub_1800656E0 from 0x1800656e0 to 0x18006576c (140 bytes)\n; \n; 12 xrefs:\n; > cocos2d::CCParticleSystem::initWithDictionary @ 0x1800685c0\n; > cocos2d::CCParticleSystem::initWithFile @ 0x1800689a1\n; > cocos2d::CCFileUtils::fullPathFromRelativeFile @ 0x18006f861\n; > cocos2d::CCFileUtils::getPathForFilename @ 0x18007050e\n; > sub_180073010 @ 0x18007311a\n; > cocos2d::CCTMXMapInfo::internalInit @ 0x1800af8cb\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b10f9\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b118d\n; > cocos2d::CCActionTween::operator= @ 0x1800cba5f\n; > cocos2d::CCPrettyPrinter::operator= @ 0x1800ceb8e\n; > cocos2d::CCPrettyPrinter::operator= @ 0x1800ceb9b\n; > <???> @ 0x1801b3b64\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800656e0\npush    rdi                                                            ; +0x5, 0x1800656e5\nsub     rsp, 20h                                                       ; +0x6, 0x1800656e6\nmov     rdi, rdx                                                       ; +0xa, 0x1800656ea\nmov     rbx, rcx                                                       ; +0xd, 0x1800656ed\ncmp     rcx, rdx                                                       ; +0x10, 0x1800656f0\njz      short loc_180065757                                            ; +0x13, 0x1800656f3\nmov     rdx, [rcx+18h]                                                 ; +0x15, 0x1800656f5\ncmp     rdx, 0Fh                                                       ; +0x19, 0x1800656f9\njbe     short loc_18006572B                                            ; +0x1d, 0x1800656fd\nmov     rcx, [rcx]                                                     ; +0x1f, 0x1800656ff\ninc     rdx                                                            ; +0x22, 0x180065702\ncmp     rdx, 1000h                                                     ; +0x25, 0x180065705\njb      short loc_180065726                                            ; +0x2c, 0x18006570c\nmov     r8, [rcx-8]                                                    ; +0x2e, 0x18006570e\nadd     rdx, 27h ; '''                                                 ; +0x32, 0x180065712\nsub     rcx, r8                                                        ; +0x36, 0x180065716\nlea     rax, [rcx-8]                                                   ; +0x39, 0x180065719\ncmp     rax, 1Fh                                                       ; +0x3d, 0x18006571d\nja      short loc_180065765                                            ; +0x41, 0x180065721\nmov     rcx, r8; Block                                                 ; +0x43, 0x180065723\ncall    j_j_free_0                                                     ; +0x46, 0x180065726\nmov     qword ptr [rbx+18h], 0Fh                                       ; +0x4b, 0x18006572b\nxor     eax, eax                                                       ; +0x53, 0x180065733\nmov     [rbx+10h], rax                                                 ; +0x55, 0x180065735\nmov     [rbx], al                                                      ; +0x59, 0x180065739\nmovups  xmm0, xmmword ptr [rdi]                                        ; +0x5b, 0x18006573b\nmovups  xmmword ptr [rbx], xmm0                                        ; +0x5e, 0x18006573e\nmovups  xmm1, xmmword ptr [rdi+10h]                                    ; +0x61, 0x180065741\nmovups  xmmword ptr [rbx+10h], xmm1                                    ; +0x65, 0x180065745\nmov     [rdi+10h], rax                                                 ; +0x69, 0x180065749\nmov     qword ptr [rdi+18h], 0Fh                                       ; +0x6d, 0x18006574d\nmov     [rdi], al                                                      ; +0x75, 0x180065755\nmov     rax, rbx                                                       ; +0x77, 0x180065757\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x7a, 0x18006575a\nadd     rsp, 20h                                                       ; +0x7f, 0x18006575f\npop     rdi                                                            ; +0x83, 0x180065763\nretn                                                                   ; +0x84, 0x180065764\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0x85, 0x180065765\ndb 0CCh                                                                ; +0x8b, 0x18006576b", "xrefs": ["cocos2d::CCParticleSystem::initWithDictionary @ 0x1800685c0", "cocos2d::CCParticleSystem::initWithFile @ 0x1800689a1", "cocos2d::CCFileUtils::fullPathFromRelativeFile @ 0x18006f861", "cocos2d::CCFileUtils::getPathForFilename @ 0x18007050e", "sub_180073010 @ 0x18007311a", "cocos2d::CCTMXMapInfo::internalInit @ 0x1800af8cb", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b10f9", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b118d", "cocos2d::CCActionTween::operator= @ 0x1800cba5f", "cocos2d::CCPrettyPrinter::operator= @ 0x1800ceb8e", "cocos2d::CCPrettyPrinter::operator= @ 0x1800ceb9b", "<???> @ 0x1801b3b64"], "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"}