{"type": "func", "start": 6443116080, "end": 6443116195, "name": "cocos2d::CCUserDefault::getDoubleForKey", "pseudocode": "// \n// cocos2d::CCUserDefault::getDoubleForKey from 0x1800a2630 to 0x1800a26a3 (115 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCUserDefault::getDoubleForKey @ 0x1800a2623\n// > cocos2d::CCUserDefault::getFloatForKey @ 0x1800a26b7\n// > cocos2d::CCUserDefault::getFloatForKey @ 0x1800a26d8\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801c1884\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:22:14 +0000\n// \n\ndouble __fastcall cocos2d::CCUserDefault::getDoubleForKey(cocos2d::CCUserDefault *this, char *a2, double a3)\n{\n  const char *Str; // rbx\n  __int64 v5; // rax\n  __int64 v6; // rcx\n  __int64 v8; // [rsp+50h] [rbp+18h]\n\n  Str = nullptr;\n  v5 = sub_1800A2AE0(a2);\n  if ( v5 )\n  {\n    v6 = *(_QWORD *)(v5 + 48);\n    if ( v6 )\n      Str = tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v6 + 24));\n  }\n  if ( Str )\n    a3 = atof(Str);\n  if ( v8 )\n    (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v8 + 128LL))(v8, 1);\n  return a3;\n}", "assembly": "; \n; cocos2d::CCUserDefault::getDoubleForKey from 0x1800a2630 to 0x1800a26a3 (115 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCUserDefault::getDoubleForKey @ 0x1800a2623\n; > cocos2d::CCUserDefault::getFloatForKey @ 0x1800a26b7\n; > cocos2d::CCUserDefault::getFloatForKey @ 0x1800a26d8\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801c1884\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:22:14 +0000\n; \npush    rbx                                                            ; +0x0, 0x1800a2630\nsub     rsp, 30h                                                       ; +0x2, 0x1800a2632\nmov     rcx, rdx; Str2                                                 ; +0x6, 0x1800a2636\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x9, 0x1800a2639\nlea     rdx, [rsp+38h+arg_18]                                          ; +0xe, 0x1800a263e\nmovaps  xmm6, xmm2                                                     ; +0x13, 0x1800a2643\nlea     r8, [rsp+38h+arg_10]                                           ; +0x16, 0x1800a2646\nxor     ebx, ebx                                                       ; +0x1b, 0x1800a264b\ncall    sub_1800A2AE0                                                  ; +0x1d, 0x1800a264d\ntest    rax, rax                                                       ; +0x22, 0x1800a2652\njz      short loc_1800A266C                                            ; +0x25, 0x1800a2655\nmov     rcx, [rax+30h]                                                 ; +0x27, 0x1800a2657\ntest    rcx, rcx                                                       ; +0x2b, 0x1800a265b\njz      short loc_1800A266C                                            ; +0x2e, 0x1800a265e\nadd     rcx, 18h; this                                                 ; +0x30, 0x1800a2660\ncall    ?GetStr@StrPair@tinyxml2@@QEAAPEBDXZ; tinyxml2::StrPair::GetStr(void) ; +0x34, 0x1800a2664\nmov     rbx, rax                                                       ; +0x39, 0x1800a2669\ntest    rbx, rbx                                                       ; +0x3c, 0x1800a266c\njz      short loc_1800A267D                                            ; +0x3f, 0x1800a266f\nmov     rcx, rbx; String                                               ; +0x41, 0x1800a2671\ncall    cs:atof                                                        ; +0x44, 0x1800a2674\nmovaps  xmm6, xmm0                                                     ; +0x4a, 0x1800a267a\nmov     rcx, [rsp+38h+arg_10]                                          ; +0x4d, 0x1800a267d\ntest    rcx, rcx                                                       ; +0x52, 0x1800a2682\njz      short loc_1800A2695                                            ; +0x55, 0x1800a2685\nmov     rax, [rcx]                                                     ; +0x57, 0x1800a2687\nmov     edx, 1                                                         ; +0x5a, 0x1800a268a\ncall    qword ptr [rax+80h]                                            ; +0x5f, 0x1800a268f\nmovaps  xmm0, xmm6                                                     ; +0x65, 0x1800a2695\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x68, 0x1800a2698\nadd     rsp, 30h                                                       ; +0x6d, 0x1800a269d\npop     rbx                                                            ; +0x71, 0x1800a26a1\nretn                                                                   ; +0x72, 0x1800a26a2", "xrefs": ["cocos2d::CCUserDefault::getDoubleForKey @ 0x1800a2623", "cocos2d::CCUserDefault::getFloatForKey @ 0x1800a26b7", "cocos2d::CCUserDefault::getFloatForKey @ 0x1800a26d8", "<???> @ 0x18014cf68", "<???> @ 0x1801c1884"], "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"}