//
// SecretLayer5::onBack from 0x6e2828 to 0x6e2872 (74 bytes)
//
// 1 xrefs:
// > SecretLayer5::keyBackClicked @ 0x6e2874
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:57:22 +0000
//
int __fastcall SecretLayer5::onBack(int this, cocos2d::CCObject *a2)
{
_BYTE *v2; // r4
int v3; // r5
cocos2d::CCDirector *v4; // r0
cocos2d::CCDirector *v5; // r5
bool v6; // r1
AppDelegate *v7; // r0
cocos2d::CCScene *v8; // r2
cocos2d::CCScene *v9; // r0
v2 = (_BYTE *)this;
v3 = *(unsigned __int8 *)(this + 400);
if ( !*(_BYTE *)(this + 400) )
{
(*(void (__fastcall **)(_DWORD, int))(**(_DWORD **)(this + 356) + 580))(*(_DWORD *)(this + 356), v3);
v4 = (cocos2d::CCDirector *)(*(int (__fastcall **)(_BYTE *, int))(*(_DWORD *)v2 + 536))(v2, v3);
v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v4);
v7 = LevelAreaInnerLayer::scene((LevelAreaInnerLayer *)((char *)&dword_0 + 1), v6);
v9 = (cocos2d::CCScene *)cocos2d::CCTransitionFade::create(
(cocos2d::CCTransitionFade *)0x3F000000,
*(float *)&v7,
v8);
this = cocos2d::CCDirector::replaceScene(v5, v9);
v2[368] = 1;
}
return this;
}