//
// sub_C43F0 from 0xc43f0 to 0xc440c (28 bytes)
//
// 2 xrefs:
// > sub_C3010 @ 0xc3420
// > sub_C3010 @ 0xc3838
//
// 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
//
unsigned int *__fastcall sub_C43F0(int a1, unsigned int a2)
{
unsigned int *result; // r0
result = (unsigned int *)(a1 + 440);
while ( *result > a2 || *result + result[1] <= a2 )
{
result = (unsigned int *)result[2];
if ( !result )
return nullptr;
}
return result;
}