// // sub_815860 from 0x815860 to 0x81591c (188 bytes) // // 2 xrefs: // > sub_816CF0 @ 0x817296 // > sub_816CF0 @ 0x8172d0 // // 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:01:41 +0000 // void (*__fastcall sub_815860(int a1, _DWORD *a2, pugi::xml_node *this, void (*a4)()))() { void (*result)(); // r0 int v9; // r1 int v10; // r1 void (*sibling)(); // r0 int v12; // r1 int v13; // r1 void (*child)(); // [sp+4h] [bp-4h] BYREF void (*v15[2])(); // [sp+8h] [bp+0h] BYREF v15[0] = (void (*)())this; v15[1] = a4; child = (void (*)())pugi::xml_node::first_child(this, (int)a2); while ( 1 ) { result = pugi::xml_node::operator void (*)(pugi::xml_node***)(&child); if ( !result ) return result; result = (void (*)())pugi::xml_node::operator!=(&child, this); if ( !result ) return result; sub_81572C(a1, a2, (pugi::xml_node *)&child, (int)a4); v15[0] = (void (*)())pugi::xml_node::first_child((pugi::xml_node *)&child, v9); if ( pugi::xml_node::operator void (*)(pugi::xml_node***)(v15) ) { sibling = (void (*)())pugi::xml_node::first_child((pugi::xml_node *)&child, v10); goto LABEL_8; } v15[0] = (void (*)())pugi::xml_node::next_sibling((pugi::xml_node *)&child, v10); if ( !pugi::xml_node::operator void (*)(pugi::xml_node***)(v15) ) { while ( 1 ) { v15[0] = (void (*)())pugi::xml_node::next_sibling((pugi::xml_node *)&child, v12); if ( !pugi::xml_node::operator!(v15) || !pugi::xml_node::operator!=(&child, this) ) break; child = (void (*)())pugi::xml_node::parent((pugi::xml_node *)&child, v13); } if ( !pugi::xml_node::operator!=(&child, this) ) continue; } sibling = (void (*)())pugi::xml_node::next_sibling((pugi::xml_node *)&child, v12); LABEL_8: child = sibling; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source