//
// sub_10030B664 from 0x10030b664 to 0x10030b6dc (120 bytes)
//
// 1 xrefs:
// > ShaderLayer::update @ 0x10030cd98
//
// 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:03:10 +0000
//
__int64 __fastcall sub_10030B664(__int64 result, double a2)
{
__int64 v2; // x20
int v3; // s8
_QWORD *v4; // x19
v2 = *(_QWORD *)(result + 16);
if ( v2 )
{
v3 = LODWORD(a2);
v4 = (_QWORD *)result;
do
{
while ( 1 )
{
LODWORD(a2) = v3;
sub_100274020(v2 + 20, a2);
result = sub_10030B408((__int64)v4, *(_DWORD *)(v2 + 16), *(float *)(v2 + 36));
if ( *(_BYTE *)(v2 + 48) != 1 )
break;
result = sub_100019534(v4, (__int64 *)v2);
v2 = result;
if ( !result )
return result;
}
v2 = *(_QWORD *)v2;
}
while ( v2 );
}
return result;
}