//
// sub_1003E39F4 from 0x1003e39f4 to 0x1003e3b50 (348 bytes)
//
// 1 xrefs:
// > LevelAreaLayer::init @ 0x1003e2da4
//
// 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:04:23 +0000
//
__int64 __fastcall sub_1003E39F4(__int64 a1)
{
__int64 v2; // x0
_QWORD *v3; // x20
_QWORD *v4; // x20
__int64 v5; // x19
__int64 v6; // x0
void *v8[2]; // [xsp+0h] [xbp-70h] BYREF
char v9; // [xsp+17h] [xbp-59h]
void *v10[2]; // [xsp+18h] [xbp-58h] BYREF
char v11; // [xsp+2Fh] [xbp-41h]
void *__p[2]; // [xsp+30h] [xbp-40h] BYREF
char v13; // [xsp+47h] [xbp-29h]
void *v14[2]; // [xsp+48h] [xbp-28h] BYREF
char v15; // [xsp+5Fh] [xbp-11h]
v2 = GameManager::sharedState();
GameManager::setUGV(v2, "29", 1);
v3 = sub_1002E736C();
sub_100009900(v14, "Scratch");
sub_100009900(__p, "Who left the lights on?");
DialogObject::create((__int64)v14, (__int64)__p, 13, 0, 0xFFFFFF, 1.0);
sub_1002E74E0((__int64)v3);
if ( v13 < 0 )
operator delete(__p[0]);
if ( v15 < 0 )
operator delete(v14[0]);
sub_100009900(v10, "Scratch");
sub_100009900(v8, "I got a bad feeling about this...");
DialogObject::create((__int64)v10, (__int64)v8, 11, 0, 0xFFFFFF, 1.0);
sub_1002E74E0((__int64)v3);
if ( v9 < 0 )
operator delete(v8[0]);
if ( v11 < 0 )
operator delete(v10[0]);
v4 = DialogLayer::createWithObjects((__int64)v3, 2);
v5 = a1 + 408;
v4[78] = v5;
v6 = cocos2d::CCDirector::sharedDirector();
(*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(v6 + 272) + 464LL))(*(_QWORD *)(v6 + 272), v4, 1000);
v4[78] = v5;
DialogLayer::updateChatPlacement((__int64)v4, 0);
return DialogLayer::animateInRandomSide((__int64)v4);
}