// // std::__ndk1::stod from 0x97c774 to 0x97c8dc (360 bytes) // // 0 xrefs: // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:06:04 +0000 // int __fastcall std::stod(int a1, _DWORD *a2) { char *v4; // r5 int v5; // r6 unsigned int *v6; // r0 _DWORD *exception; // r5 _DWORD *v9; // r5 int v10[2]; // [sp+0h] [bp-3Ch] BYREF void *v11; // [sp+8h] [bp-34h] unsigned int v12; // [sp+Ch] [bp-30h] char *v13; // [sp+10h] [bp-2Ch] unsigned int v14[2]; // [sp+14h] [bp-28h] BYREF unsigned int v15[2]; // [sp+20h] [bp-1Ch] BYREF v11 = nullptr; v10[0] = 0; v10[1] = 0; std::string::__init(v10, "stod", 4u); v13 = nullptr; v4 = *(char **)(a1 + 8); if ( (*(_BYTE *)a1 & 1) == 0 ) v4 = (char *)(a1 + 1); v12 = *(_DWORD *)_errno(); *(_DWORD *)_errno() = 0; v5 = sub_993ED0(v4); v6 = (unsigned int *)_errno(); v15[0] = *v6; *v6 = v12; v12 = v15[0]; if ( v15[0] == 34 ) { std::operator+(v15, (unsigned __int8 *)v10, ": out of range"); exception = _cxa_allocate_exception(8u); std::logic_error::logic_error(exception, (int)v15); *exception = &off_D1548C; _cxa_throw( exception, (struct type_info *)&`typeinfo for'std::out_of_range, (void (*)(void *))std::length_error::~length_error); } if ( v13 == v4 ) { std::operator+(v14, (unsigned __int8 *)v10, ": no conversion"); v9 = _cxa_allocate_exception(8u); std::logic_error::logic_error(v9, (int)v14); *v9 = &off_D1544C; _cxa_throw( v9, (struct type_info *)&`typeinfo for'std::invalid_argument, (void (*)(void *))std::length_error::~length_error); } if ( a2 ) *a2 = v13 - v4; if ( (v10[0] & 1) != 0 ) operator delete(v11); return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source