//
// LevelEditorLayer::didRotateGameplay from 0x1000c5500 to 0x1000c5576 (118 bytes)
//
// 1 xrefs:
// > ??> @ 0x100ac3ec0
//
// This function is hookable on this platform (idp: pc, 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 12:20:35 +0000
//
char *__fastcall LevelEditorLayer::didRotateGameplay(__int64 a1)
{
__int64 v1; // rax
unsigned __int64 v2; // r14
char *result; // rax
char *v4; // r14
_BYTE v5[24]; // [rsp+8h] [rbp-18h] BYREF
v1 = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 3256) + 192LL))(*(_QWORD *)(a1 + 3256));
sub_1002782D0(v5, v1);
v2 = *(_QWORD *)(a1 + 14464);
if ( v2 >= *(_QWORD *)(a1 + 14472) )
{
result = sub_1000654B0((char **)(a1 + 14456), (__int64)v5);
v4 = result;
}
else
{
result = (char *)sub_1002782D0(*(_QWORD *)(a1 + 14464), v5);
v4 = (char *)(v2 + 8);
*(_QWORD *)(a1 + 14464) = v4;
}
*(_QWORD *)(a1 + 14464) = v4;
return result;
}