//
// tinyxml2::XMLElement::QueryDoubleText from 0x18009fae0 to 0x18009fb53 (115 bytes)
//
// 2 xrefs:
// > ??> @ 0x18014cf68
// > ??> @ 0x1801c1440
//
// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!
//
// 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 11:22:13 +0000
//
__int64 __fastcall tinyxml2::XMLElement::QueryDoubleText(__int64 a1)
{
__int64 v2; // rcx
__int64 v3; // rax
char *Str; // rax
int v5; // eax
unsigned int v6; // ecx
v2 = *(_QWORD *)(a1 + 48);
if ( !v2 || !(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v2 + 16LL))(v2) )
return 19;
v3 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 48) + 16LL))(*(_QWORD *)(a1 + 48));
Str = (char *)tinyxml2::StrPair::GetStr((tinyxml2::StrPair *)(v3 + 24));
v5 = sub_1800A1120(Str, "%lf");
v6 = 18;
if ( v5 == 1 )
return 0;
return v6;
}