//
// sub_100451B78 from 0x100451b78 to 0x100451bf0 (120 bytes)
//
// 1 xrefs:
// > sub_1004513E0 @ 0x100451698
//
// This function is hookable on this platform (idp: arm, 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:05:21 +0000
//
__int64 __fastcall sub_100451B78(__int64 a1)
{
bool v2; // w8
__int64 v3; // x9
unsigned int v4; // w20
v2 = (*(_BYTE *)(a1 + 1076) & 1) == 0;
*(_BYTE *)(a1 + 1076) = v2;
v3 = *(_QWORD *)(a1 + 680);
if ( v3 )
{
*(_BYTE *)(v3 + 1748) = v2;
}
else if ( (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 688)) )
{
v4 = 0;
do
*(_BYTE *)(sub_1002E75A0(*(_QWORD *)(a1 + 688), v4++) + 1748) = *(_BYTE *)(a1 + 1076);
while ( v4 < (unsigned int)sub_1002E757C(*(_QWORD *)(a1 + 688)) );
}
return sub_100451DDC(a1);
}