//
// sub_100405040 from 0x100405040 to 0x100405110 (208 bytes)
//
// 2 xrefs:
// > EditorUI::handleAction @ 0x100162684
// > EditorUI::onPlaytest @ 0x10047148c
//
// 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:40 +0000
//
__int64 __fastcall sub_100405040(__int64 a1)
{
_BYTE *v2; // x20
__int64 v3; // x0
__int64 v4; // x0
__int64 result; // x0
v2 = (_BYTE *)(a1 + 12288);
v3 = cocos2d::CCDirector::sharedDirector();
*(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3) + 132) = 0;
UILayer::editorPlaytest(*(_QWORD *)(a1 + 13288), 0);
sub_100404438(a1);
sub_1003F79A4(a1);
if ( v2[1729] == 1 )
{
v4 = cocos2d::CCDirector::sharedDirector();
cocos2d::CCDirector::resetSmoothFixCounter(v4);
*(_BYTE *)(cocos2d::CCDirector::sharedDirector() + 178) = 0;
}
*(_DWORD *)(a1 + 1972) = 2;
cocos2d::CCNode::pauseSchedulerAndActions(*(_QWORD *)(a1 + 3256));
cocos2d::CCNode::pauseSchedulerAndActions(*(_QWORD *)(a1 + 3264));
*(_DWORD *)(a1 + 14224) = *(_DWORD *)(a1 + 816);
*(_BYTE *)(a1 + 1982) = 1;
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)a1 + 1464LL))(a1, 1.0);
*(_DWORD *)(a1 + 14228) = *(_DWORD *)(a1 + 424);
result = GJBaseGameLayer::pauseAudio();
if ( v2[1723] == 1 )
v2[1896] = 1;
return result;
}