{"type": "func", "start": 6443169696, "end": 6443169880, "name": "cocos2d::CCTMXMapInfo::initWithXML", "pseudocode": "// \n// cocos2d::CCTMXMapInfo::initWithXML from 0x1800af7a0 to 0x1800af858 (184 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b84c0\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=1\nchar __fastcall cocos2d::CCTMXMapInfo::initWithXML(cocos2d::CCTMXMapInfo *this, const char *a2, const char *a3)\n{\n  float v3; // xmm1_4\n  __int64 v6; // rbx\n  struct cocos2d::CCSAXDelegator *v8; // rdx\n  char v9; // bl\n  cocos2d::CCThread v10; // [rsp+38h] [rbp+10h] BYREF\n\n  cocos2d::CCTMXMapInfo::internalInit(this, nullptr, a3);\n  v6 = -1;\n  do\n    ++v6;\n  while ( a2[v6] );\n  if ( !a2 || (int)v6 <= 0 )\n    return 0;\n  pugi::xml_node::xml_node(&v10);\n  if ( !cocos2d::CCComponent::serialize((cocos2d::CCComponent *)&v10, \"UTF-8\") )\n  {\n    cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)&v10, v3);\n    return 0;\n  }\n  v8 = &this->cocos2d::CCSAXDelegator;\n  if ( !this )\n    v8 = nullptr;\n  cocos2d::CCSAXParser::setDelegator((cocos2d::CCSAXParser *)&v10, v8);\n  v9 = cocos2d::CCSAXParser::parse((cocos2d::CCSAXParser *)&v10, a2, v6);\n  cocos2d::CCNode::updateTweenActionInt((cocos2d::CCNode *)&v10, v3);\n  return v9;\n}", "assembly": "; \n; cocos2d::CCTMXMapInfo::initWithXML from 0x1800af7a0 to 0x1800af858 (184 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b84c0\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, 0x1800af7a0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800af7a5\npush    rdi                                                            ; +0xa, 0x1800af7aa\nsub     rsp, 20h                                                       ; +0xb, 0x1800af7ab\nmov     rdi, rdx                                                       ; +0xf, 0x1800af7af\nmov     rsi, rcx                                                       ; +0x12, 0x1800af7b2\nxor     edx, edx; char *                                               ; +0x15, 0x1800af7b5\ncall    ?internalInit@CCTMXMapInfo@cocos2d@@AEAAXPEBD0@Z; cocos2d::CCTMXMapInfo::internalInit(char const *,char const *) ; +0x17, 0x1800af7b7\nmov     rbx, 0FFFFFFFFFFFFFFFFh                                        ; +0x1c, 0x1800af7bc\ninc     rbx                                                            ; +0x23, 0x1800af7c3\ncmp     byte ptr [rdi+rbx], 0                                          ; +0x26, 0x1800af7c6\njnz     short loc_1800AF7C3                                            ; +0x2a, 0x1800af7ca\ntest    rdi, rdi                                                       ; +0x2c, 0x1800af7cc\njz      short loc_1800AF7FF                                            ; +0x2f, 0x1800af7cf\ntest    ebx, ebx                                                       ; +0x31, 0x1800af7d1\njle     short loc_1800AF7FF                                            ; +0x33, 0x1800af7d3\nlea     rcx, [rsp+28h+arg_8]; this                                     ; +0x35, 0x1800af7d5\ncall    pugi__xml_node__xml_node                                       ; +0x3a, 0x1800af7da\nnop                                                                    ; +0x3f, 0x1800af7df\nlea     rdx, aUtf8; \"UTF-8\"                                            ; +0x40, 0x1800af7e0\nlea     rcx, [rsp+28h+arg_8]; this                                     ; +0x47, 0x1800af7e7\ncall    ?serialize@CCComponent@cocos2d@@UEAA_NPEAX@Z; cocos2d::CCComponent::serialize(void *) ; +0x4c, 0x1800af7ec\ntest    al, al                                                         ; +0x51, 0x1800af7f1\njnz     short loc_1800AF811                                            ; +0x53, 0x1800af7f3\nlea     rcx, [rsp+28h+arg_8]; this                                     ; +0x55, 0x1800af7f5\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0x5a, 0x1800af7fa\nxor     al, al                                                         ; +0x5f, 0x1800af7ff\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x61, 0x1800af801\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x66, 0x1800af806\nadd     rsp, 20h                                                       ; +0x6b, 0x1800af80b\npop     rdi                                                            ; +0x6f, 0x1800af80f\nretn                                                                   ; +0x70, 0x1800af810\nlea     rdx, [rsi+38h]                                                 ; +0x71, 0x1800af811\nxor     eax, eax                                                       ; +0x75, 0x1800af815\ntest    rsi, rsi                                                       ; +0x77, 0x1800af817\ncmovz   rdx, rax; struct cocos2d::CCSAXDelegator *                     ; +0x7a, 0x1800af81a\nlea     rcx, [rsp+28h+arg_8]; this                                     ; +0x7e, 0x1800af81e\ncall    ?setDelegator@CCSAXParser@cocos2d@@QEAAXPEAVCCSAXDelegator@2@@Z; cocos2d::CCSAXParser::setDelegator(cocos2d::CCSAXDelegator *) ; +0x83, 0x1800af823\nmov     r8d, ebx; unsigned int                                         ; +0x88, 0x1800af828\nmov     rdx, rdi; char *                                               ; +0x8b, 0x1800af82b\nlea     rcx, [rsp+28h+arg_8]; this                                     ; +0x8e, 0x1800af82e\ncall    ?parse@CCSAXParser@cocos2d@@QEAA_NPEBDI@Z; cocos2d::CCSAXParser::parse(char const *,uint) ; +0x93, 0x1800af833\nmovzx   ebx, al                                                        ; +0x98, 0x1800af838\nlea     rcx, [rsp+28h+arg_8]; this                                     ; +0x9b, 0x1800af83b\ncall    ?updateTweenActionInt@CCNode@cocos2d@@UEAAXMH@Z; cocos2d::CCNode::updateTweenActionInt(float,int) ; +0xa0, 0x1800af840\nmovzx   eax, bl                                                        ; +0xa5, 0x1800af845\nmov     rbx, [rsp+28h+arg_0]                                           ; +0xa8, 0x1800af848\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xad, 0x1800af84d\nadd     rsp, 20h                                                       ; +0xb2, 0x1800af852\npop     rdi                                                            ; +0xb6, 0x1800af856\nretn                                                                   ; +0xb7, 0x1800af857", "xrefs": ["<???> @ 0x1801438a8", "<???> @ 0x1801b84c0"], "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"}