// // DS_Dictionary::getFloatForKey from 0x18001a3c0 to 0x18001a503 (323 bytes) // // 2 xrefs: // > @ 0x1801438a8 // > @ 0x1801ae9d4 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // float __fastcall DS_Dictionary::getFloatForKey(DS_Dictionary *this, const char *a2) { bool v2; // zf const char *v4; // r8 std::_Vector_val>::pointer Mylast; // rcx __int64 v7; // rax const char *v8; // r8 int v9; // ecx int v10; // edx const char *v11; // r8 __int64 v12; // rbx __int64 v13; // rax const char *v14; // r8 __int64 v16; // rax const char *v17; // rax _BYTE v18[56]; // [rsp+20h] [rbp-38h] BYREF __int64 v19; // [rsp+60h] [rbp+8h] BYREF char v20; // [rsp+70h] [rbp+18h] BYREF char v21; // [rsp+78h] [rbp+20h] BYREF v2 = !this->compatible; v4 = "k"; Mylast = this->dictTree._Mypair._Myval2._Mylast; if ( !v2 ) v4 = "key"; sub_18007FB10(&Mylast[-1], &v19, v4); if ( !sub_18007F4E0(&v19) ) return 0.0; while ( 1 ) { v7 = sub_18007FB70(&v19); v8 = &a2[-v7]; do { v9 = (unsigned __int8)v8[v7]; v10 = *(unsigned __int8 *)v7 - v9; if ( v10 ) break; ++v7; } while ( v9 ); if ( !v10 ) { v11 = "r"; if ( this->compatible ) v11 = "real"; v12 = sub_180081A50(&v19, &v20, v11); v13 = sub_180081AB0(&v19, &v21); if ( (unsigned __int8)std::operator==<_EXCEPTION_RECORD const,_EXCEPTION_RECORD const>(v13, v12) ) break; } v14 = "k"; if ( this->compatible ) v14 = "key"; v19 = *(_QWORD *)sub_180081A50(&v19, v18, v14); if ( !sub_18007F4E0(&v19) ) return 0.0; } v16 = sub_180081AB0(&v19, &v20); v17 = (const char *)sub_18007FB70(v16); return strtod(v17, nullptr); }