//
// sub_1003E503C from 0x1003e503c to 0x1003e52d4 (664 bytes)
//
// 1 xrefs:
// > LevelAreaInnerLayer::init @ 0x1003e48bc
//
// 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:24 +0000
//
__int64 __fastcall sub_1003E503C(__int64 a1)
{
__int64 v2; // x0
_QWORD *v3; // x20
_QWORD *v4; // x20
__int64 v5; // x0
void *v7[2]; // [xsp+0h] [xbp-110h] BYREF
char v8; // [xsp+17h] [xbp-F9h]
void *v9[2]; // [xsp+18h] [xbp-F8h] BYREF
char v10; // [xsp+2Fh] [xbp-E1h]
void *v11[2]; // [xsp+30h] [xbp-E0h] BYREF
char v12; // [xsp+47h] [xbp-C9h]
void *v13[2]; // [xsp+48h] [xbp-C8h] BYREF
char v14; // [xsp+5Fh] [xbp-B1h]
void *__p[2]; // [xsp+60h] [xbp-B0h] BYREF
char v16; // [xsp+77h] [xbp-99h]
void *v17[2]; // [xsp+78h] [xbp-98h] BYREF
char v18; // [xsp+8Fh] [xbp-81h]
void *v19[2]; // [xsp+90h] [xbp-80h] BYREF
char v20; // [xsp+A7h] [xbp-69h]
void *v21[2]; // [xsp+A8h] [xbp-68h] BYREF
char v22; // [xsp+BFh] [xbp-51h]
void *v23[2]; // [xsp+C0h] [xbp-50h] BYREF
char v24; // [xsp+D7h] [xbp-39h]
void *v25[2]; // [xsp+D8h] [xbp-38h] BYREF
char v26; // [xsp+EFh] [xbp-21h]
v2 = GameManager::sharedState();
GameManager::setUGV(v2, "33", 1);
v3 = sub_1002E736C();
sub_100009900(v25, "Scratch");
sub_100009900(v23, "Where have you been?!\nI've been looking everywhere for you!");
DialogObject::create((__int64)v25, (__int64)v23, 14, 0, 0xFFFFFF, 1.0);
sub_1002E74E0((__int64)v3);
if ( v24 < 0 )
operator delete(v23[0]);
if ( v26 < 0 )
operator delete(v25[0]);
sub_100009900(v21, "Scratch");
sub_100009900(v19, "You really shouldn't be poking around here.");
DialogObject::create((__int64)v21, (__int64)v19, 11, 0, 0xFFFFFF, 1.0);
sub_1002E74E0((__int64)v3);
if ( v20 < 0 )
operator delete(v19[0]);
if ( v22 < 0 )
operator delete(v21[0]);
sub_100009900(v17, "Scratch");
sub_100009900(__p, "Never know what you could find.\nOr who...");
DialogObject::create((__int64)v17, (__int64)__p, 13, 0, 0xFFFFFF, 1.0);
sub_1002E74E0((__int64)v3);
if ( v16 < 0 )
operator delete(__p[0]);
if ( v18 < 0 )
operator delete(v17[0]);
sub_100009900(v13, "Scratch");
sub_100009900(v11, "... I thought this was a simple cube game.");
DialogObject::create((__int64)v13, (__int64)v11, 26, 0, 0xFFFFFF, 1.0);
sub_1002E74E0((__int64)v3);
if ( v12 < 0 )
operator delete(v11[0]);
if ( v14 < 0 )
operator delete(v13[0]);
sub_100009900(v9, "Scratch");
sub_100009900(v7, "...");
DialogObject::create((__int64)v9, (__int64)v7, 8, 0, 0xFFFFFF, 1.0);
sub_1002E74E0((__int64)v3);
if ( v8 < 0 )
operator delete(v7[0]);
if ( v10 < 0 )
operator delete(v9[0]);
v4 = DialogLayer::createWithObjects((__int64)v3, 2);
v5 = cocos2d::CCDirector::sharedDirector();
(*(void (__fastcall **)(_QWORD, _QWORD *, __int64))(**(_QWORD **)(v5 + 272) + 464LL))(*(_QWORD *)(v5 + 272), v4, 1000);
v4[78] = a1 + 408;
DialogLayer::updateChatPlacement((__int64)v4, 0);
return DialogLayer::animateInRandomSide((__int64)v4);
}