//
// sub_798C4C from 0x798c4c to 0x798cc6 (122 bytes)
//
// 7 xrefs:
// > LevelControlConfig::decode @ 0x799d54
// > LevelControlConfig::decode @ 0x799d66
// > LevelControlConfig::decode @ 0x799e1e
// > LevelControlConfig::decode @ 0x799e30
// > LevelControlConfig::decode @ 0x799e7a
// > LevelControlConfig::decode @ 0x799e9a
// > LevelControlConfig::decode @ 0x799eac
//
// 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 11:59:47 +0000
//
int __fastcall sub_798C4C(int a1, char *a2)
{
size_t v4; // r0
int *v5; // r4
double v6; // r0
const char *v7; // r0
int v9[3]; // [sp+0h] [bp-14h] BYREF
memset(v9, 0, sizeof(v9));
v4 = strlen(a2);
std::string::__init(v9, a2, v4);
v5 = std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::find(
a1,
(unsigned __int8 *)v9);
LODWORD(v6) = std::string::~string((int)v9);
if ( v5 != (int *)(a1 + 4) )
{
if ( (v5[7] & 1) != 0 )
v7 = (const char *)v5[9];
else
v7 = (char *)v5 + 29;
v6 = atof(v7);
}
return LODWORD(v6);
}