//
// sub_100148390 from 0x100148390 to 0x1001484f8 (360 bytes)
//
// 2 xrefs:
// > PlayLayer::destroyPlayer @ 0x100147ba4
// > PlayLayer::destroyPlayer @ 0x100147bec
//
// 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 10:59:35 +0000
//
void __fastcall sub_100148390(__int64 a1)
{
__int64 v2; // x0
int v3; // w8
const char *v4; // x0
float v5; // s8
float v6; // s9
__int64 v7; // x19
__int64 v8; // x0
__int64 v9; // x20
__int64 v10; // x0
float v11; // [xsp+20h] [xbp-40h] BYREF
__int64 v12; // [xsp+28h] [xbp-38h] BYREF
*(_BYTE *)(a1 + 14345) = 1;
v2 = cocos2d::CCDirector::sharedDirector(a1);
cocos2d::CCDirector::getWinSize(&v12, v2);
v3 = *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 328LL) - *(_DWORD *)(*(_QWORD *)(a1 + 1936) + 332LL);
v4 = "Tap to jump over the spikes";
v5 = 3.0;
v6 = 0.7;
if ( v3 != 1 && v3 != 1001 )
{
v4 = "Tap while touching a ring to jump mid air";
v5 = 4.0;
v6 = 0.6;
}
v7 = cocos2d::CCLabelBMFont::create_1(v4, "bigFont.fnt");
(*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 160LL))(v7, v6);
(*(void (__fastcall **)(__int64, __int64, __int64))(*(_QWORD *)a1 + 464LL))(a1, v7, 3);
sub_1000262BC(&v11, *(float *)&v12 * 0.5, (float)(*((float *)&v12 + 1) * 0.5) + 60.0);
(*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v7 + 184LL))(v7, &v11);
v8 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v7 + 1024LL))(v7, 0);
v9 = cocos2d::CCFadeIn::create(v8, 0.5);
cocos2d::CCDelayTime::create(v5);
cocos2d::CCFadeOut::create(0.5);
cocos2d::CCCallFunc::create(v7, 536, 1);
v10 = sub_10021D420(v9);
cocos2d::CCNode::runAction(v7, v10);
}