//
// sub_CD0634 from 0xcd0634 to 0xcd0878 (580 bytes)
//
// 0 xrefs:
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
__int64 __fastcall sub_CD0634(unsigned __int8 a1)
{
unsigned int v2; // w21
v2 = (unsigned __int8)byte_1233ED8;
if ( (unsigned __int8)byte_1233ED8 > (unsigned int)a1 )
{
sub_CCFEB0();
byte_1233ED8 = a1;
qword_124A0B0 = (__int64)off_111E930;
sub_CEA56C(algn_124A0E8);
qword_1249E40 = (__int64)off_111E930;
sub_CEA56C(algn_1249E78);
qword_1249AD0 = (__int64)off_111E930;
sub_CEA56C(algn_1249B08);
qword_1249870 = (__int64)off_111E9B0;
sub_CEA56C(algn_12498A8);
qword_12490E0 = (__int64)off_111E9B0;
sub_CEA56C(algn_1249118);
qword_1249240 = (__int64)off_111E9B0;
sub_CEA56C(algn_1249278);
sub_D2150C(&unk_1249490, &_sF.__pad1, 16, 1024);
sub_D2150C(&unk_1249B20, &_sF, 8, 1024);
sub_D2150C(&unk_12498C0, (char *)&_sF + 304, 16, 1024);
sub_CCEA98((__int64)&qword_1249C18, (__int64)&unk_1249490);
sub_CCEA98((__int64)&qword_1249D30, (__int64)&unk_1249B20);
sub_CCEA98((__int64)&qword_1249138, (__int64)&unk_12498C0);
sub_CCEA98((__int64)&qword_1249E98, (__int64)&unk_12498C0);
sub_D21760(&unk_1249780, &_sF.__pad1, 16, 1024);
sub_D21760(&unk_12493A0, &_sF, 8, 1024);
sub_D21760(&unk_1249580, (char *)&_sF + 304, 16, 1024);
sub_CCF444((__int64)&qword_1249298, (__int64)&unk_1249780);
sub_CCF444((__int64)&qword_12499C0, (__int64)&unk_12493A0);
sub_CCF444((__int64)&qword_1249FA8, (__int64)&unk_1249580);
sub_CCF444((__int64)&qword_1249678, (__int64)&unk_1249580);
sub_CD0588();
}
return v2;
}