//
// sub_100156CFC from 0x100156cfc to 0x100156db8 (188 bytes)
//
// 4 xrefs:
// > GJBaseGameLayer::preUpdateVisibility @ 0x1002997b0
// > GJBaseGameLayer::preUpdateVisibility @ 0x100299808
// > GameObject::getObjectRect2 @ 0x1002f8048
// > sub_1003FADCC @ 0x1003fb0c4
//
// 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 10:59:41 +0000
//
float *__usercall sub_100156CFC@(__int64 a1@, float *a2@)
{
double *v3; // x20
__int64 v4; // x21
float v5; // s11
float v6; // s8
float v7; // s12
float v8; // s9
__int64 v12; // [xsp+8h] [xbp-58h] BYREF
v3 = (double *)(a1 + 316);
v4 = 4;
v5 = 0.0;
v6 = 0.0;
v7 = 0.0;
v8 = 0.0;
do
{
sub_1000262F4(&v12, v3);
if ( *(float *)&v12 > v7 )
v7 = *(float *)&v12;
if ( *(float *)&v12 < v8 || v8 == 0.0 )
v8 = *(float *)&v12;
if ( *((float *)&v12 + 1) > v5 )
v5 = *((float *)&v12 + 1);
if ( *((float *)&v12 + 1) < v6 || v6 == 0.0 )
v6 = *((float *)&v12 + 1);
++v3;
--v4;
}
while ( v4 );
return sub_1000262CC(a2, v8, v6, v7 - v8, v5 - v6);
}