// // SecretLayer4::showFirstDialog from 0x94697c to 0x946ed0 (1364 bytes) // // 3 xrefs: // > @ 0x8faa8 // > SecretLayer4::init @ 0x94b1f4 // > @ 0x122ce48 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void SecretLayer4::showFirstDialog(SecretLayer4 *a1) { GameManager *v2; // x0 cocos2d::CCArray *v3; // x0 cocos2d::CCArray *v4; // x22 cocos2d::CCObject *v5; // x0 void *v6; // x0 void *v7; // x0 cocos2d::CCObject *v8; // x0 void *v9; // x0 void *v10; // x0 cocos2d::CCObject *v11; // x0 void *v12; // x0 void *v13; // x0 cocos2d::CCObject *v14; // x0 void *v15; // x0 void *v16; // x0 DialogLayer *v17; // x19 unsigned int *v18; // x1 int v19; // w2 unsigned int *v20; // x1 int v21; // w2 unsigned int *v22; // x1 int v23; // w2 unsigned int *v24; // x1 int v25; // w2 unsigned int *v26; // x1 int v27; // w2 unsigned int *v28; // x1 int v29; // w2 unsigned int *v30; // x1 int v31; // w2 unsigned int *v32; // x1 int v33; // w2 _QWORD v34[2]; // [xsp+0h] [xbp+0h] BYREF __int64 v35; // [xsp+78h] [xbp+78h] BYREF __int64 v36; // [xsp+80h] [xbp+80h] BYREF v2 = GameManager::sharedState(); GameManager::setUGV(v2, "9", 1); v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(v3); sub_D153B8((int)&v35, "The Gatekeeper"); sub_D153B8((unsigned int)v34 + 128, "Wait, you are not RubRub..."); v5 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v35, (__int64)&v36, 3, 1, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v4, v5); v6 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v18 = (unsigned int *)(v36 - 8); do v19 = __ldaxr(v18); while ( __stlxr(v19 - 1, v18) ); } else { v19 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v19 - 1; } if ( v19 <= 0 ) operator delete(v6); } v7 = (void *)(v35 - 24); if ( (__int64 *)(v35 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v20 = (unsigned int *)(v35 - 8); do v21 = __ldaxr(v20); while ( __stlxr(v21 - 1, v20) ); } else { v21 = *(_DWORD *)(v35 - 8); *(_DWORD *)(v35 - 8) = v21 - 1; } if ( v21 <= 0 ) operator delete(v7); } sub_D153B8((int)&v35, "The Gatekeeper"); sub_D153B8((unsigned int)v34 + 128, "You seem to be skilled in the art of deception..."); v8 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v35, (__int64)&v36, 3, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v4, v8); v9 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v22 = (unsigned int *)(v36 - 8); do v23 = __ldaxr(v22); while ( __stlxr(v23 - 1, v22) ); } else { v23 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v23 - 1; } if ( v23 <= 0 ) operator delete(v9); } v10 = (void *)(v35 - 24); if ( (__int64 *)(v35 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v24 = (unsigned int *)(v35 - 8); do v25 = __ldaxr(v24); while ( __stlxr(v25 - 1, v24) ); } else { v25 = *(_DWORD *)(v35 - 8); *(_DWORD *)(v35 - 8) = v25 - 1; } if ( v25 <= 0 ) operator delete(v10); } sub_D153B8((int)&v35, "The Gatekeeper"); sub_D153B8((unsigned int)v34 + 128, "But it does not matter, your trickery ends here."); v11 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v35, (__int64)&v36, 3, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v4, v11); v12 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v26 = (unsigned int *)(v36 - 8); do v27 = __ldaxr(v26); while ( __stlxr(v27 - 1, v26) ); } else { v27 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v27 - 1; } if ( v27 <= 0 ) operator delete(v12); } v13 = (void *)(v35 - 24); if ( (__int64 *)(v35 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v28 = (unsigned int *)(v35 - 8); do v29 = __ldaxr(v28); while ( __stlxr(v29 - 1, v28) ); } else { v29 = *(_DWORD *)(v35 - 8); *(_DWORD *)(v35 - 8) = v29 - 1; } if ( v29 <= 0 ) operator delete(v13); } sub_D153B8((int)&v35, "The Gatekeeper"); sub_D153B8((unsigned int)v34 + 128, "Leave now, before you cause more problems..."); v14 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v35, (__int64)&v36, 3, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v4, v14); v15 = (void *)(v36 - 24); if ( (__int64 *)(v36 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v30 = (unsigned int *)(v36 - 8); do v31 = __ldaxr(v30); while ( __stlxr(v31 - 1, v30) ); } else { v31 = *(_DWORD *)(v36 - 8); *(_DWORD *)(v36 - 8) = v31 - 1; } if ( v31 <= 0 ) operator delete(v15); } v16 = (void *)(v35 - 24); if ( (__int64 *)(v35 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v32 = (unsigned int *)(v35 - 8); do v33 = __ldaxr(v32); while ( __stlxr(v33 - 1, v32) ); } else { v33 = *(_DWORD *)(v35 - 8); *(_DWORD *)(v35 - 8) = v33 - 1; } if ( v33 <= 0 ) operator delete(v16); } v17 = DialogLayer::createWithObjects(v4, (int)&dword_0 + 2); a1->addChild_0(a1, v17, 100); DialogLayer::updateChatPlacement(v17, Center); DialogLayer::animateIn(v17, FromLeft); }
GD Web Decomp Icon

GD Web Decomp

Raw Source