// // SecretLayer3::dialogClosed from 0xa8b3b8 to 0xa8b664 (684 bytes) // // 3 xrefs: // > `non-virtual thunk to'SecretLayer3::dialogClosed @ 0xa8b668 // > @ 0x4d8d8 // > @ 0x149a870 // // 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 13:00:37 +0000 // __int64 __fastcall SecretLayer3::dialogClosed(cocos2d::CCNode **this, DialogLayer *a2) { GameManager *v4; // x0 GameManager *v5; // x0 unsigned int v7; // w24 char v8; // w1 cocos2d::CCNode *v9; // x20 unsigned __int8 v10; // w1 cocos2d::CCSequence *v11; // x28 cocos2d::CCFiniteTimeAction *v12; // x0 cocos2d::CCAction *v13; // x0 cocos2d::CCDelayTime *v14; // x0 cocos2d::CCSequence *v15; // x20 cocos2d::CCFiniteTimeAction *v16; // x0 cocos2d::CCAction *v17; // x0 GameManager *v18; // x0 GameManager *v19; // x0 _BYTE v20[8]; // [xsp+60h] [xbp+60h] BYREF if ( (*(unsigned int (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 4 ) { v7 = 0; v8 = -1; while ( 1 ) { v20[3] = v8; v20[0] = -1; v20[1] = -1; v20[2] = -1; v9 = (cocos2d::CCNode *)cocos2d::CCLayerColor::create(v20); (*((void (__fastcall **)(cocos2d::CCNode **, cocos2d::CCNode *, __int64))*this + 58))(this, v9, 100); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v9 + 1288LL))(v9, 0x100000302LL); v11 = (cocos2d::CCSequence *)cocos2d::CCFadeTo::create(nullptr, 2.0, v10); v12 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(v9, 536, 1); v13 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v11, v12, 0); cocos2d::CCNode::runAction(v9, v13); v8 = 80; if ( v7 ) break; v7 = 1; } cocos2d::CCNode::stopAllActions(*(this + 55)); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 55) + 344LL))(*(this + 55), 0); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 56) + 344LL))(*(this + 56), 0); v14 = *(this + 57); if ( v14 ) { (*(void (__fastcall **)(cocos2d::CCDelayTime *, _QWORD))(*(_QWORD *)v14 + 344LL))(v14, v7); v14 = (cocos2d::CCDelayTime *)(*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 57) + 1056LL))( *(this + 57), v7); } v15 = (cocos2d::CCSequence *)cocos2d::CCDelayTime::create(v14, 3.0); v16 = (cocos2d::CCFiniteTimeAction *)cocos2d::CCCallFunc::create(this, SecretLayer3::revealStep5, 0); v17 = (cocos2d::CCAction *)cocos2d::CCSequence::create(v15, v16, 0); cocos2d::CCNode::runAction((cocos2d::CCNode *)this, v17); } else { v4 = (GameManager *)(*(__int64 (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)v4 == 5 ) { v18 = (GameManager *)GameManager::sharedState(v4); GameManager::setUGV(v18, "13", 1u); *((_BYTE *)this + 424) = 0; } else if ( (*(unsigned int (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 3 ) { SecretLayer3::revealStep3((SecretLayer3 *)this); } else if ( (*(unsigned int (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 1 ) { SecretLayer3::firstInteractionStep3(this); } else { v5 = (GameManager *)(*(__int64 (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2); if ( (_DWORD)v5 == 2 ) { v19 = (GameManager *)GameManager::sharedState(v5); GameManager::setUGV(v19, (char *)&word_120A570, 1u); *((_BYTE *)this + 424) = 0; } else if ( (*(unsigned int (__fastcall **)(DialogLayer *))(*(_QWORD *)a2 + 64LL))(a2) == 6 ) { *((_BYTE *)this + 424) = 0; } } } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source