{"type": "func", "start": 6442565424, "end": 6442565719, "name": "DS_Dictionary::loadRootSubDictFromString", "pseudocode": "// \n// DS_Dictionary::loadRootSubDictFromString from 0x18001bf30 to 0x18001c057 (295 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x18013bee0\n// > <???> @ 0x18013bef0\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801b8af4\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:21:26 +0000\n// \n\nchar __fastcall DS_Dictionary::loadRootSubDictFromString(__int64 a1, _QWORD *a2)\n{\n  _QWORD *v2; // r14\n  _QWORD *v3; // rbx\n  __int64 v5; // rax\n  __int64 v6; // rax\n  __int64 v7; // rbx\n  __int64 v8; // rax\n  __int64 v9; // rax\n  __int64 v10; // rax\n  _BYTE v12[56]; // [rsp+30h] [rbp-38h] BYREF\n  char v13; // [rsp+78h] [rbp+10h] BYREF\n  char v14; // [rsp+80h] [rbp+18h] BYREF\n\n  v2 = a2 + 2;\n  v3 = a2;\n  if ( !a2[2] )\n    return 0;\n  v5 = *(_QWORD *)(a1 + 208);\n  if ( v5 != *(_QWORD *)(a1 + 216) )\n    *(_QWORD *)(a1 + 216) = v5;\n  v6 = cocos2d::CCThread::CCThread((cocos2d::CCThread *)&v13);\n  sub_18001C710(a1 + 208, v6);\n  if ( v3[3] > 0xFu )\n    v3 = (_QWORD *)*v3;\n  pugi::xml_document::load_buffer(a1, v12, v3, *v2, 116, 0);\n  if ( !(unsigned __int8)sub_180082410(v12) )\n    return 0;\n  v7 = *(_QWORD *)(a1 + 216);\n  v8 = sub_180082A40(a1, &v13, \"plist\");\n  *(_QWORD *)(v7 - 8) = *(_QWORD *)sub_180082A40(v8, &v14, \"dict\");\n  v9 = sub_180082A40(a1, &v13, \"plist\");\n  v10 = sub_1800829C0(v9, &v14, \"gjver\");\n  *(_BYTE *)(a1 + 232) = (int)sub_180082940(v10, 0) < 2;\n  return 1;\n}", "assembly": "; \n; DS_Dictionary::loadRootSubDictFromString from 0x18001bf30 to 0x18001c057 (295 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x18013bee0\n; > <???> @ 0x18013bef0\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801b8af4\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:21:26 +0000\n; \npush    rbx                                                            ; +0x0, 0x18001bf30\npush    rsi                                                            ; +0x2, 0x18001bf32\npush    r14                                                            ; +0x3, 0x18001bf33\nsub     rsp, 50h                                                       ; +0x5, 0x18001bf35\ncmp     qword ptr [rdx+10h], 0                                         ; +0x9, 0x18001bf39\nlea     r14, [rdx+10h]                                                 ; +0xe, 0x18001bf3e\nmov     rbx, rdx                                                       ; +0x12, 0x18001bf42\nmov     rsi, rcx                                                       ; +0x15, 0x18001bf45\njz      loc_18001C04C                                                  ; +0x18, 0x18001bf48\nmov     rax, [rcx+0D0h]                                                ; +0x1e, 0x18001bf4e\nmov     [rsp+68h+arg_0], rdi                                           ; +0x25, 0x18001bf55\ncmp     rax, [rcx+0D8h]                                                ; +0x2a, 0x18001bf5a\njz      short loc_18001BF6A                                            ; +0x31, 0x18001bf61\nmov     [rcx+0D8h], rax                                                ; +0x33, 0x18001bf63\nlea     rcx, [rsp+68h+arg_8]; this                                     ; +0x3a, 0x18001bf6a\ncall    ??0CCThread@cocos2d@@QEAA@XZ; cocos2d::CCThread::CCThread(void) ; +0x3f, 0x18001bf6f\nmov     rdx, rax                                                       ; +0x44, 0x18001bf74\nlea     rcx, [rsi+0D0h]                                                ; +0x47, 0x18001bf77\ncall    sub_18001C710                                                  ; +0x4e, 0x18001bf7e\ncmp     qword ptr [rbx+18h], 0Fh                                       ; +0x53, 0x18001bf83\nmov     rdi, [rsp+68h+arg_0]                                           ; +0x58, 0x18001bf88\njbe     short loc_18001BF92                                            ; +0x5d, 0x18001bf8d\nmov     rbx, [rbx]                                                     ; +0x5f, 0x18001bf8f\nmov     r9, [r14]                                                      ; +0x62, 0x18001bf92\nlea     rdx, [rsp+68h+var_38]                                          ; +0x65, 0x18001bf95\nmov     [rsp+68h+var_40], 0                                            ; +0x6a, 0x18001bf9a\nmov     r8, rbx                                                        ; +0x72, 0x18001bfa2\nmov     rcx, rsi                                                       ; +0x75, 0x18001bfa5\nmov     [rsp+68h+var_48], 74h ; 't'                                    ; +0x78, 0x18001bfa8\ncall    ?load_buffer@xml_document@pugi@@QEAA?AUxml_parse_result@2@PEBX_KIW4xml_encoding@2@@Z; pugi::xml_document::load_buffer(void const *,unsigned __int64,uint,pugi::xml_encoding) ; +0x80, 0x18001bfb0\nlea     rcx, [rsp+68h+var_38]                                          ; +0x85, 0x18001bfb5\ncall    sub_180082410                                                  ; +0x8a, 0x18001bfba\ntest    al, al                                                         ; +0x8f, 0x18001bfbf\njz      loc_18001C04C                                                  ; +0x91, 0x18001bfc1\nmov     rbx, [rsi+0D8h]                                                ; +0x97, 0x18001bfc7\nlea     r8, aPlist; \"plist\"                                            ; +0x9e, 0x18001bfce\nlea     rdx, [rsp+68h+arg_8]                                           ; +0xa5, 0x18001bfd5\nmov     rcx, rsi                                                       ; +0xaa, 0x18001bfda\ncall    sub_180082A40                                                  ; +0xad, 0x18001bfdd\nmov     rcx, rax                                                       ; +0xb2, 0x18001bfe2\nlea     r8, aDict_1; \"dict\"                                            ; +0xb5, 0x18001bfe5\nlea     rdx, [rsp+68h+arg_10]                                          ; +0xbc, 0x18001bfec\ncall    sub_180082A40                                                  ; +0xc4, 0x18001bff4\nlea     r8, aPlist; \"plist\"                                            ; +0xc9, 0x18001bff9\nlea     rdx, [rsp+68h+arg_8]                                           ; +0xd0, 0x18001c000\nmov     rcx, [rax]                                                     ; +0xd5, 0x18001c005\nmov     [rbx-8], rcx                                                   ; +0xd8, 0x18001c008\nmov     rcx, rsi                                                       ; +0xdc, 0x18001c00c\ncall    sub_180082A40                                                  ; +0xdf, 0x18001c00f\nmov     rcx, rax                                                       ; +0xe4, 0x18001c014\nlea     r8, aGjver; \"gjver\"                                            ; +0xe7, 0x18001c017\nlea     rdx, [rsp+68h+arg_10]                                          ; +0xee, 0x18001c01e\ncall    sub_1800829C0                                                  ; +0xf6, 0x18001c026\nmov     rcx, rax                                                       ; +0xfb, 0x18001c02b\nxor     edx, edx                                                       ; +0xfe, 0x18001c02e\ncall    sub_180082940                                                  ; +0x100, 0x18001c030\ncmp     eax, 2                                                         ; +0x105, 0x18001c035\nsetl    al                                                             ; +0x108, 0x18001c038\nmov     [rsi+0E8h], al                                                 ; +0x10b, 0x18001c03b\nmov     al, 1                                                          ; +0x111, 0x18001c041\nadd     rsp, 50h                                                       ; +0x113, 0x18001c043\npop     r14                                                            ; +0x117, 0x18001c047\npop     rsi                                                            ; +0x119, 0x18001c049\npop     rbx                                                            ; +0x11a, 0x18001c04a\nretn                                                                   ; +0x11b, 0x18001c04b\nxor     al, al                                                         ; +0x11c, 0x18001c04c\nadd     rsp, 50h                                                       ; +0x11e, 0x18001c04e\npop     r14                                                            ; +0x122, 0x18001c052\npop     rsi                                                            ; +0x124, 0x18001c054\npop     rbx                                                            ; +0x125, 0x18001c055\nretn                                                                   ; +0x126, 0x18001c056", "xrefs": ["<???> @ 0x18013bee0", "<???> @ 0x18013bef0", "<???> @ 0x18014cf68", "<???> @ 0x1801b8af4"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}