{"type": "func", "start": 6443166320, "end": 6443166488, "name": "sub_1800AEA70", "pseudocode": "// \n// sub_1800AEA70 from 0x1800aea70 to 0x1800aeb18 (168 bytes)\n// \n// 3 xrefs:\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1d54\n// > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1de5\n// > <???> @ 0x1801b840c\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_QWORD *__fastcall sub_1800AEA70(_QWORD *a1, size_t *a2, char a3, int a4)\n{\n  if ( a4 )\n  {\n    *a1 = &unk_1800E6C00;\n    a1[2] = &unk_1800E6C08;\n    std::ios::ios(a1 + 19);\n  }\n  std::iostream::iostream(a1, a1 + 3, 0);\n  *(_QWORD *)((char *)a1 + *(int *)(*a1 + 4LL)) = &std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::`vftable';\n  *(_DWORD *)((char *)a1 + *(int *)(*a1 + 4LL) - 4) = *(_DWORD *)(*a1 + 4LL) - 152;\n  sub_1800A28C0((__int64)(a1 + 3), a2, a3);\n  return a1;\n}", "assembly": "; \n; sub_1800AEA70 from 0x1800aea70 to 0x1800aeb18 (168 bytes)\n; \n; 3 xrefs:\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1d54\n; > cocos2d::CCTMXMapInfo::startElement @ 0x1800b1de5\n; > <???> @ 0x1801b840c\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_8], rbx                                               ; +0x0, 0x1800aea70\nmov     [rsp+arg_0], rcx                                               ; +0x5, 0x1800aea75\npush    rbp                                                            ; +0xa, 0x1800aea7a\npush    rsi                                                            ; +0xb, 0x1800aea7b\npush    rdi                                                            ; +0xc, 0x1800aea7c\nsub     rsp, 20h                                                       ; +0xd, 0x1800aea7d\nmov     esi, r8d                                                       ; +0x11, 0x1800aea81\nmov     rbp, rdx                                                       ; +0x14, 0x1800aea84\nmov     rdi, rcx                                                       ; +0x17, 0x1800aea87\nmov     [rsp+38h+arg_18], 0                                            ; +0x1a, 0x1800aea8a\ntest    r9d, r9d                                                       ; +0x22, 0x1800aea92\njz      short loc_1800AEAC2                                            ; +0x25, 0x1800aea95\nlea     rax, unk_1800E6C00                                             ; +0x27, 0x1800aea97\nmov     [rcx], rax                                                     ; +0x2e, 0x1800aea9e\nlea     rax, unk_1800E6C08                                             ; +0x31, 0x1800aeaa1\nmov     [rcx+10h], rax                                                 ; +0x38, 0x1800aeaa8\nadd     rcx, 98h                                                       ; +0x3c, 0x1800aeaac\ncall    cs:??0?$basic_ios@DU?$char_traits@D@std@@@std@@IEAA@XZ; std::ios::ios(void) ; +0x43, 0x1800aeab3\nnop                                                                    ; +0x49, 0x1800aeab9\nmov     [rsp+38h+arg_18], 1                                            ; +0x4a, 0x1800aeaba\nxor     r8d, r8d                                                       ; +0x52, 0x1800aeac2\nlea     rdx, [rdi+18h]                                                 ; +0x55, 0x1800aeac5\nmov     rcx, rdi                                                       ; +0x59, 0x1800aeac9\ncall    cs:??0?$basic_iostream@DU?$char_traits@D@std@@@std@@QEAA@PEAV?$basic_streambuf@DU?$char_traits@D@std@@@1@@Z; std::iostream::iostream(std::streambuf *) ; +0x5c, 0x1800aeacc\nnop                                                                    ; +0x62, 0x1800aead2\nmov     rax, [rdi]                                                     ; +0x63, 0x1800aead3\nmovsxd  rdx, dword ptr [rax+4]                                         ; +0x66, 0x1800aead6\nlea     rax, ??_7?$basic_stringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@6B@; const std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>::`vftable' ; +0x6a, 0x1800aeada\nmov     [rdx+rdi], rax                                                 ; +0x71, 0x1800aeae1\nmov     rax, [rdi]                                                     ; +0x75, 0x1800aeae5\nmovsxd  rdx, dword ptr [rax+4]                                         ; +0x78, 0x1800aeae8\nlea     r8d, [rdx-98h]                                                 ; +0x7c, 0x1800aeaec\nmov     [rdx+rdi-4], r8d                                               ; +0x83, 0x1800aeaf3\nmov     r8d, esi                                                       ; +0x88, 0x1800aeaf8\nmov     rdx, rbp                                                       ; +0x8b, 0x1800aeafb\nlea     rcx, [rdi+18h]                                                 ; +0x8e, 0x1800aeafe\ncall    sub_1800A28C0                                                  ; +0x92, 0x1800aeb02\nnop                                                                    ; +0x97, 0x1800aeb07\nmov     rax, rdi                                                       ; +0x98, 0x1800aeb08\nmov     rbx, [rsp+38h+arg_8]                                           ; +0x9b, 0x1800aeb0b\nadd     rsp, 20h                                                       ; +0xa0, 0x1800aeb10\npop     rdi                                                            ; +0xa4, 0x1800aeb14\npop     rsi                                                            ; +0xa5, 0x1800aeb15\npop     rbp                                                            ; +0xa6, 0x1800aeb16\nretn                                                                   ; +0xa7, 0x1800aeb17", "xrefs": ["cocos2d::CCTMXMapInfo::startElement @ 0x1800b1d54", "cocos2d::CCTMXMapInfo::startElement @ 0x1800b1de5", "<???> @ 0x1801b840c"], "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"}