//
// sub_96CDFC from 0x96cdfc to 0x96d3f4 (1528 bytes)
//
// 2 xrefs:
// > std::__ndk1::locale::classic @ 0x96dcdc
// > sub_96EB30 @ 0x96eb3a
//
// 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:05:50 +0000
//
int __fastcall sub_96CDFC(int a1, int a2)
{
__int64 v3; // r0
__int64 v4; // kr00_8
HIDWORD(v3) = a2 - 1;
LODWORD(v3) = &off_D13EB8;
*(_QWORD *)a1 = v3;
sub_96D5D0(a1 + 8, 28);
*(_DWORD *)(a1 + 144) = 0;
*(_DWORD *)(a1 + 148) = 0;
*(_DWORD *)(a1 + 152) = 0;
std::string::__init((int *)(a1 + 144), "C", 1u);
v4 = *(_QWORD *)(a1 + 8);
if ( HIDWORD(v4) != (_DWORD)v4 )
*(_DWORD *)(a1 + 12) = HIDWORD(v4) + (~(HIDWORD(v4) - 4 - v4) & 0xFFFFFFFC);
dword_D339AC = 0;
dword_D339A8 = (int)&off_D13838;
std::locale::id::__get((std::locale::id *)&std::collate::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D339A8);
dword_D339B4 = 0;
dword_D339B0 = (int)&off_D13858;
std::locale::id::__get((std::locale::id *)&std::collate::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D339B0);
dword_D339BC = 0;
dword_D339B8 = (int)&off_D13F0C;
byte_D339C4 = 0;
dword_D339C0 = (int)&unk_C4D2C8;
std::locale::id::__get((std::locale::id *)&std::ctype::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D339B8);
dword_D339CC = 0;
dword_D339C8 = (int)&off_D140A8;
std::locale::id::__get((std::locale::id *)&std::ctype::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D339C8);
dword_D339D4 = 0;
dword_D339D0 = (int)&off_D14118;
std::locale::id::__get((std::locale::id *)&std::codecvt::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D339D0);
std::codecvt::codecvt(&unk_D339D8, 1);
std::locale::id::__get((std::locale::id *)&std::codecvt::id);
sub_96EA08(a1, (std::__shared_count *)&unk_D339D8);
dword_D339EC = 0;
dword_D339E8 = (int)&off_D14168;
std::locale::id::__get((std::locale::id *)&std::codecvt::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D339E8);
dword_D339F4 = 0;
dword_D339F0 = (int)&off_D141B8;
std::locale::id::__get((std::locale::id *)&std::codecvt::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D339F0);
dword_D339FC = 0;
dword_D339F8 = (int)&off_D13FE8;
word_D33A00 = 11310;
dword_D33A04 = 0;
dword_D33A08 = 0;
dword_D33A0C = 0;
std::locale::id::__get((std::locale::id *)&std::numpunct::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D339F8);
dword_D33A14 = 0;
dword_D33A10 = (int)&off_D14010;
dword_D33A18 = 46;
dword_D33A24 = 0;
dword_D33A28 = 0;
dword_D33A1C = 44;
dword_D33A20 = 0;
std::locale::id::__get((std::locale::id *)&std::numpunct::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A10);
dword_D33A34 = 0;
dword_D33A30 = (int)&off_D13878;
std::locale::id::__get((std::locale::id *)&std::num_get>::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A30);
dword_D33A3C = 0;
dword_D33A38 = (int)&off_D138B8;
std::locale::id::__get((std::locale::id *)&std::num_get>::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A38);
dword_D33A44 = 0;
dword_D33A40 = (int)&off_D138F8;
std::locale::id::__get((std::locale::id *)&std::num_put>::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A40);
dword_D33A4C = 0;
dword_D33A48 = (int)&off_D1392C;
std::locale::id::__get((std::locale::id *)&std::num_put>::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A48);
dword_D33A54 = 0;
dword_D33A50 = (int)&off_D13B48;
std::locale::id::__get((std::locale::id *)&std::moneypunct::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A50);
dword_D33A5C = 0;
dword_D33A58 = (int)&off_D13B80;
std::locale::id::__get((std::locale::id *)&std::moneypunct::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A58);
dword_D33A64 = 0;
dword_D33A60 = (int)&off_D13BB8;
std::locale::id::__get((std::locale::id *)&std::moneypunct::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A60);
dword_D33A6C = 0;
dword_D33A68 = (int)&off_D13BF0;
std::locale::id::__get((std::locale::id *)&std::moneypunct::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A68);
dword_D33A74 = 0;
dword_D33A70 = (int)&off_D13D08;
std::locale::id::__get((std::locale::id *)&std::money_get>::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A70);
dword_D33A7C = 0;
dword_D33A78 = (int)&off_D13D24;
std::locale::id::__get((std::locale::id *)&std::money_get>::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A78);
dword_D33A84 = 0;
dword_D33A80 = (int)&off_D13D40;
std::locale::id::__get((std::locale::id *)&std::money_put>::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A80);
dword_D33A8C = 0;
dword_D33A88 = (int)&off_D13D5C;
std::locale::id::__get((std::locale::id *)&std::money_put>::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A88);
dword_D33A94 = 0;
dword_D33A90 = (int)&off_D13960;
dword_D33A98 = (int)&off_D13990;
std::locale::id::__get((std::locale::id *)&std::time_get>::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33A90);
dword_D33AA4 = 0;
dword_D33AA0 = (int)&off_D139B4;
dword_D33AA8 = (int)&off_D139E4;
std::locale::id::__get((std::locale::id *)&std::time_get>::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33AA0);
dword_D33AB0 = (int)&off_D14088;
dword_D33AB4 = 0;
dword_D33AB8 = std::__cloc();
dword_D33AB0 = (int)&off_D13AE8;
std::locale::id::__get((std::locale::id *)&std::time_put>::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33AB0);
dword_D33AC0 = (int)&off_D14088;
dword_D33AC4 = 0;
dword_D33AC8 = std::__cloc();
dword_D33AC0 = (int)&off_D13B00;
std::locale::id::__get((std::locale::id *)&std::time_put>::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33AC0);
dword_D33AD4 = 0;
dword_D33AD0 = (int)&off_D13D78;
std::locale::id::__get((std::locale::id *)&std::messages::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33AD0);
dword_D33ADC = 0;
dword_D33AD8 = (int)&off_D13D98;
std::locale::id::__get((std::locale::id *)&std::messages::id);
sub_96EA08(a1, (std::__shared_count *)&dword_D33AD8);
return a1;
}