{"type": "func", "start": 6443170272, "end": 6443170538, "name": "cocos2d::CCTMXMapInfo::parseXMLFile", "pseudocode": "// \n// cocos2d::CCTMXMapInfo::parseXMLFile from 0x1800af9e0 to 0x1800afaea (266 bytes)\n// \n// 6 xrefs:\n// > cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1800af5b2\n// > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x1800af79a\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b0a85\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b84cc\n// > <???> @ 0x1801b84d8\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// Hidden C++ exception states: #wind=2\n_BOOL8 __fastcall cocos2d::CCTMXMapInfo::parseXMLFile(cocos2d::CCTMXMapInfo *this, const char *a2)\n{\n  float v2; // xmm1_4\n  bool v5; // bl\n  struct cocos2d::CCSAXDelegator *v6; // rdx\n  struct cocos2d::CCFileUtils *v7; // rax\n  __int64 v8; // rax\n  _BYTE *v9; // rcx\n  cocos2d::CCThread v11; // [rsp+20h] [rbp-38h] BYREF\n  void *Block; // [rsp+28h] [rbp-30h] BYREF\n  __m128i si128; // [rsp+38h] [rbp-20h]\n\n  pugi::xml_node::xml_node(&v11);\n  if ( cocos2d::CCComponent::serialize((cocos2d::CCComponent *)&v11, \"UTF-8\") )\n  {\n    v6 = &this->cocos2d::CCSAXDelegator;\n    if ( !this )\n      v6 = nullptr;\n    cocos2d::CCSAXParser::setDelegator((cocos2d::CCSAXParser *)&v11, v6);\n    v7 = cocos2d::CCFileUtils::sharedFileUtils();\n    v8 = ((__int64 (__fastcall *)(struct cocos2d::CCFileUtils *, void **, const char *, _QWORD))v7->createCCArrayWithContentsOfFile)(\n           v7,\n           &Block,\n           a2,\n           0);\n    if ( *(_QWORD *)(v8 + 24) > 0xFu )\n      v8 = *(_QWORD *)v8;\n    v5 = cocos2d::CCSAXParser::parse((cocos2d::CCSAXParser *)&v11, (const char *)v8);\n    if ( si128.m128i_i64[1] > 0xFuLL )\n    {\n      v9 = Block;\n      if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 )\n      {\n        v9 = *((_BYTE **)Block - 1);\n        if ( (unsigned __int64)((_BYTE *)Block - v9 - 8) > 0x1F )\n          invalid_parameter_noinfo_noreturn();\n      }\n      j_j_free_0(v9);\n    }\n    si128 = _mm_load_si128((const __m128i *)&xmmword_1800E7160);\n    LOBYTE(Block) = 0;\n  }\n  else\n  {\n    v5 = 0;\n  }\n  cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)&v11, v2);\n  return v5;\n}", "assembly": "; \n; cocos2d::CCTMXMapInfo::parseXMLFile from 0x1800af9e0 to 0x1800afaea (266 bytes)\n; \n; 6 xrefs:\n; > cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1800af5b2\n; > cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x1800af79a\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b0a85\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b84cc\n; > <???> @ 0x1801b84d8\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_10], rbx                                              ; +0x0, 0x1800af9e0\npush    rdi                                                            ; +0x5, 0x1800af9e5\nsub     rsp, 50h                                                       ; +0x6, 0x1800af9e6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1800af9ea\nxor     rax, rsp                                                       ; +0x11, 0x1800af9f1\nmov     [rsp+58h+var_10], rax                                          ; +0x14, 0x1800af9f4\nmov     rdi, rdx                                                       ; +0x19, 0x1800af9f9\nmov     rbx, rcx                                                       ; +0x1c, 0x1800af9fc\nlea     rcx, [rsp+58h+var_38]; this                                    ; +0x1f, 0x1800af9ff\ncall    pugi__xml_node__xml_node                                       ; +0x24, 0x1800afa04\nnop                                                                    ; +0x29, 0x1800afa09\nlea     rdx, aUtf8; \"UTF-8\"                                            ; +0x2a, 0x1800afa0a\nlea     rcx, [rsp+58h+var_38]; this                                    ; +0x31, 0x1800afa11\ncall    ?serialize@CCComponent@cocos2d@@UEAA_NPEAX@Z; cocos2d::CCComponent::serialize(void *) ; +0x36, 0x1800afa16\ntest    al, al                                                         ; +0x3b, 0x1800afa1b\njnz     short loc_1800AFA26                                            ; +0x3d, 0x1800afa1d\nxor     bl, bl                                                         ; +0x3f, 0x1800afa1f\njmp     loc_1800AFAC5                                                  ; +0x41, 0x1800afa21\nlea     rdx, [rbx+38h]                                                 ; +0x46, 0x1800afa26\nxor     eax, eax                                                       ; +0x4a, 0x1800afa2a\ntest    rbx, rbx                                                       ; +0x4c, 0x1800afa2c\ncmovz   rdx, rax; struct cocos2d::CCSAXDelegator *                     ; +0x4f, 0x1800afa2f\nlea     rcx, [rsp+58h+var_38]; this                                    ; +0x53, 0x1800afa33\ncall    ?setDelegator@CCSAXParser@cocos2d@@QEAAXPEAVCCSAXDelegator@2@@Z; cocos2d::CCSAXParser::setDelegator(cocos2d::CCSAXDelegator *) ; +0x58, 0x1800afa38\ncall    ?sharedFileUtils@CCFileUtils@cocos2d@@SAPEAV12@XZ; cocos2d::CCFileUtils::sharedFileUtils(void) ; +0x5d, 0x1800afa3d\nmov     r10, [rax]                                                     ; +0x62, 0x1800afa42\nxor     r9d, r9d                                                       ; +0x65, 0x1800afa45\nmov     r8, rdi                                                        ; +0x68, 0x1800afa48\nlea     rdx, [rsp+58h+Block]                                           ; +0x6b, 0x1800afa4b\nmov     rcx, rax                                                       ; +0x70, 0x1800afa50\ncall    qword ptr [r10+28h]                                            ; +0x73, 0x1800afa53\nnop                                                                    ; +0x77, 0x1800afa57\ncmp     qword ptr [rax+18h], 0Fh                                       ; +0x78, 0x1800afa58\njbe     short loc_1800AFA62                                            ; +0x7d, 0x1800afa5d\nmov     rax, [rax]                                                     ; +0x7f, 0x1800afa5f\nmov     rdx, rax; char *                                               ; +0x82, 0x1800afa62\nlea     rcx, [rsp+58h+var_38]; this                                    ; +0x85, 0x1800afa65\ncall    ?parse@CCSAXParser@cocos2d@@QEAA_NPEBD@Z; cocos2d::CCSAXParser::parse(char const *) ; +0x8a, 0x1800afa6a\nmovzx   ebx, al                                                        ; +0x8f, 0x1800afa6f\nmov     rdx, [rsp+58h+var_18]                                          ; +0x92, 0x1800afa72\ncmp     rdx, 0Fh                                                       ; +0x97, 0x1800afa77\njbe     short loc_1800AFAB2                                            ; +0x9b, 0x1800afa7b\ninc     rdx                                                            ; +0x9d, 0x1800afa7d\nmov     rcx, [rsp+58h+Block]; Block                                    ; +0xa0, 0x1800afa80\nmov     rax, rcx                                                       ; +0xa5, 0x1800afa85\ncmp     rdx, 1000h                                                     ; +0xa8, 0x1800afa88\njb      short loc_1800AFAAD                                            ; +0xaf, 0x1800afa8f\nadd     rdx, 27h ; '''                                                 ; +0xb1, 0x1800afa91\nmov     rcx, [rcx-8]                                                   ; +0xb5, 0x1800afa95\nsub     rax, rcx                                                       ; +0xb9, 0x1800afa99\nadd     rax, 0FFFFFFFFFFFFFFF8h                                        ; +0xbc, 0x1800afa9c\ncmp     rax, 1Fh                                                       ; +0xc0, 0x1800afaa0\njbe     short loc_1800AFAAD                                            ; +0xc4, 0x1800afaa4\ncall    cs:_invalid_parameter_noinfo_noreturn                          ; +0xc6, 0x1800afaa6\ndb 0CCh                                                                ; +0xcc, 0x1800afaac\ncall    j_j_free_0                                                     ; +0xcd, 0x1800afaad\nmovdqa  xmm0, cs:xmmword_1800E7160                                     ; +0xd2, 0x1800afab2\nmovdqu  xmmword ptr [rsp+38h], xmm0                                    ; +0xda, 0x1800afaba\nmov     byte ptr [rsp+58h+Block], 0                                    ; +0xe0, 0x1800afac0\nlea     rcx, [rsp+58h+var_38]; this                                    ; +0xe5, 0x1800afac5\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0xea, 0x1800afaca\nmovzx   eax, bl                                                        ; +0xef, 0x1800afacf\nmov     rcx, [rsp+58h+var_10]                                          ; +0xf2, 0x1800afad2\nxor     rcx, rsp; StackCookie                                          ; +0xf7, 0x1800afad7\ncall    __security_check_cookie                                        ; +0xfa, 0x1800afada\nmov     rbx, [rsp+58h+arg_10]                                          ; +0xff, 0x1800afadf\nadd     rsp, 50h                                                       ; +0x104, 0x1800afae4\npop     rdi                                                            ; +0x108, 0x1800afae8\nretn                                                                   ; +0x109, 0x1800afae9", "xrefs": ["cocos2d::CCTMXMapInfo::formatWithTMXFile @ 0x1800af5b2", "cocos2d::CCTMXMapInfo::initWithTMXFile @ 0x1800af79a", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b0a85", "<???> @ 0x1801438a8", "<???> @ 0x1801b84cc", "<???> @ 0x1801b84d8"], "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"}