//
// EditLevelLayer::uploadActionFinished from 0x1400d9b20 to 0x1400d9c51 (305 bytes)
//
// 2 xrefs:
// > ??> @ 0x140551710
// > ??> @ 0x1406c88a4
//
// 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
//
// Hidden C++ exception states: #wind=1
void EditLevelLayer::uploadActionFinished(EditLevelLayer *a1, int a2, int a3)
{
__int64 v4; // rcx
_QWORD *v5; // rdx
size_t v6; // r8
void *v7; // rcx
__int128 v8; // [rsp+20h] [rbp-58h] BYREF
__int64 v9; // [rsp+30h] [rbp-48h]
__int64 v10; // [rsp+38h] [rbp-40h]
void *Block[2]; // [rsp+48h] [rbp-30h]
__int64 v12; // [rsp+58h] [rbp-20h]
unsigned __int64 v13; // [rsp+60h] [rbp-18h]
v4 = *(_QWORD *)&a1->m_uIndexInArray;
if ( v4 )
{
if ( *(_DWORD *)(v4 + 328) - *(_DWORD *)(v4 + 332) == a2 )
{
if ( *(_QWORD *)&a1->m_obAnchorPointInPoints.y )
{
*(_OWORD *)Block = 0;
v5 = sub_14003AA10(0x20u);
Block[0] = v5;
v12 = 20;
v13 = 31;
strcpy((char *)v5, "Description updated!");
v8 = 0;
v9 = 0;
v10 = 0;
v6 = -1;
do
++v6;
while ( *((_BYTE *)v5 + v6) );
sub_14003A930(&v8, v5, v6);
UploadActionPopup::showSuccessMessage(*(_QWORD *)&a1->m_obAnchorPointInPoints.y, &v8);
*(_QWORD *)(*(_QWORD *)&a1->m_obAnchorPointInPoints.y + 632LL) = 0;
*(_QWORD *)&a1->m_obAnchorPointInPoints.y = 0;
if ( v13 > 0xF )
{
v7 = Block[0];
if ( v13 + 1 >= 0x1000 )
{
v7 = *((void **)Block[0] - 1);
if ( (unsigned __int64)((char *)Block[0] - (char *)v7 - 8) > 0x1F )
invalid_parameter_noinfo_noreturn();
}
j_j_free(v7);
}
}
}
}
}