{"type": "func", "start": 6443100560, "end": 6443100675, "name": "cocos2d::CCUserDefault::getDoubleForKey", "pseudocode": "// \n// cocos2d::CCUserDefault::getDoubleForKey from 0x18009e990 to 0x18009ea03 (115 bytes)\n// \n// 5 xrefs:\n// > cocos2d::CCUserDefault::getDoubleForKey @ 0x18009e983\n// > cocos2d::CCUserDefault::getFloatForKey @ 0x18009ea17\n// > cocos2d::CCUserDefault::getFloatForKey @ 0x18009ea38\n// > <???> @ 0x1801438a8\n// > <???> @ 0x1801b75e4\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\ndouble __fastcall cocos2d::CCUserDefault::getDoubleForKey(cocos2d::CCUserDefault *this, const 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] BYREF\n  char v9; // [rsp+58h] [rbp+20h] BYREF\n\n  Str = nullptr;\n  v5 = sub_18009EE00(a2, &v9, &v8);\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 0x18009e990 to 0x18009ea03 (115 bytes)\n; \n; 5 xrefs:\n; > cocos2d::CCUserDefault::getDoubleForKey @ 0x18009e983\n; > cocos2d::CCUserDefault::getFloatForKey @ 0x18009ea17\n; > cocos2d::CCUserDefault::getFloatForKey @ 0x18009ea38\n; > <???> @ 0x1801438a8\n; > <???> @ 0x1801b75e4\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\npush    rbx                                                            ; +0x0, 0x18009e990\nsub     rsp, 30h                                                       ; +0x2, 0x18009e992\nmov     rcx, rdx                                                       ; +0x6, 0x18009e996\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x9, 0x18009e999\nlea     rdx, [rsp+38h+arg_18]                                          ; +0xe, 0x18009e99e\nmovaps  xmm6, xmm2                                                     ; +0x13, 0x18009e9a3\nlea     r8, [rsp+38h+arg_10]                                           ; +0x16, 0x18009e9a6\nxor     ebx, ebx                                                       ; +0x1b, 0x18009e9ab\ncall    sub_18009EE00                                                  ; +0x1d, 0x18009e9ad\ntest    rax, rax                                                       ; +0x22, 0x18009e9b2\njz      short loc_18009E9CC                                            ; +0x25, 0x18009e9b5\nmov     rcx, [rax+30h]                                                 ; +0x27, 0x18009e9b7\ntest    rcx, rcx                                                       ; +0x2b, 0x18009e9bb\njz      short loc_18009E9CC                                            ; +0x2e, 0x18009e9be\nadd     rcx, 18h; this                                                 ; +0x30, 0x18009e9c0\ncall    ?GetStr@StrPair@tinyxml2@@QEAAPEBDXZ; tinyxml2::StrPair::GetStr(void) ; +0x34, 0x18009e9c4\nmov     rbx, rax                                                       ; +0x39, 0x18009e9c9\ntest    rbx, rbx                                                       ; +0x3c, 0x18009e9cc\njz      short loc_18009E9DD                                            ; +0x3f, 0x18009e9cf\nmov     rcx, rbx; String                                               ; +0x41, 0x18009e9d1\ncall    cs:atof                                                        ; +0x44, 0x18009e9d4\nmovaps  xmm6, xmm0                                                     ; +0x4a, 0x18009e9da\nmov     rcx, [rsp+38h+arg_10]                                          ; +0x4d, 0x18009e9dd\ntest    rcx, rcx                                                       ; +0x52, 0x18009e9e2\njz      short loc_18009E9F5                                            ; +0x55, 0x18009e9e5\nmov     rax, [rcx]                                                     ; +0x57, 0x18009e9e7\nmov     edx, 1                                                         ; +0x5a, 0x18009e9ea\ncall    qword ptr [rax+80h]                                            ; +0x5f, 0x18009e9ef\nmovaps  xmm0, xmm6                                                     ; +0x65, 0x18009e9f5\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x68, 0x18009e9f8\nadd     rsp, 30h                                                       ; +0x6d, 0x18009e9fd\npop     rbx                                                            ; +0x71, 0x18009ea01\nretn                                                                   ; +0x72, 0x18009ea02", "xrefs": ["cocos2d::CCUserDefault::getDoubleForKey @ 0x18009e983", "cocos2d::CCUserDefault::getFloatForKey @ 0x18009ea17", "cocos2d::CCUserDefault::getFloatForKey @ 0x18009ea38", "<???> @ 0x1801438a8", "<???> @ 0x1801b75e4"], "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"}