// // SecretLayer3::firstInteractionStep4 from 0x93b554 to 0x93bab0 (1372 bytes) // // 3 xrefs: // > @ 0xba9c0 // > SecretLayer3::firstInteractionStep3 @ 0x941c98 // > @ 0x122e770 // // 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 SecretLayer3::firstInteractionStep4(SecretLayer3 *a1) { cocos2d::CCArray *v2; // x23 cocos2d::CCObject *v3; // x0 void *v4; // x0 void *v5; // x0 cocos2d::CCObject *v6; // x0 void *v7; // x0 void *v8; // x0 cocos2d::CCObject *v9; // x0 void *v10; // x0 void *v11; // x0 cocos2d::CCObject *v12; // x0 void *v13; // x0 void *v14; // x0 DialogLayer *v15; // x19 unsigned int *v16; // x1 int v17; // w2 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 _QWORD v32[2]; // [xsp+0h] [xbp+0h] BYREF __int64 v33; // [xsp+78h] [xbp+78h] BYREF __int64 v34; // [xsp+80h] [xbp+80h] BYREF v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(_stack_chk_guard); sub_D153B8((int)&v33, "..."); sub_D153B8((unsigned int)v32 + 128, "RubRub locked me in here, for no reason."); v3 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v33, (__int64)&v34, 15, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v3); v4 = (void *)(v34 - 24); if ( (__int64 *)(v34 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v16 = (unsigned int *)(v34 - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *(_DWORD *)(v34 - 8); *(_DWORD *)(v34 - 8) = v17 - 1; } if ( v17 <= 0 ) operator delete(v4); } v5 = (void *)(v33 - 24); if ( (__int64 *)(v33 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v18 = (unsigned int *)(v33 - 8); do v19 = __ldaxr(v18); while ( __stlxr(v19 - 1, v18) ); } else { v19 = *(_DWORD *)(v33 - 8); *(_DWORD *)(v33 - 8) = v19 - 1; } if ( v19 <= 0 ) operator delete(v5); } sub_D153B8((int)&v33, "..."); sub_D153B8((unsigned int)v32 + 128, "He said there would be chicken."); v6 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v33, (__int64)&v34, 15, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v6); v7 = (void *)(v34 - 24); if ( (__int64 *)(v34 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v20 = (unsigned int *)(v34 - 8); do v21 = __ldaxr(v20); while ( __stlxr(v21 - 1, v20) ); } else { v21 = *(_DWORD *)(v34 - 8); *(_DWORD *)(v34 - 8) = v21 - 1; } if ( v21 <= 0 ) operator delete(v7); } v8 = (void *)(v33 - 24); if ( (__int64 *)(v33 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v22 = (unsigned int *)(v33 - 8); do v23 = __ldaxr(v22); while ( __stlxr(v23 - 1, v22) ); } else { v23 = *(_DWORD *)(v33 - 8); *(_DWORD *)(v33 - 8) = v23 - 1; } if ( v23 <= 0 ) operator delete(v8); } sub_D153B8((int)&v33, "..."); sub_D153B8((unsigned int)v32 + 128, "There was no chicken..."); v9 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v33, (__int64)&v34, 15, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v9); v10 = (void *)(v34 - 24); if ( (__int64 *)(v34 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v24 = (unsigned int *)(v34 - 8); do v25 = __ldaxr(v24); while ( __stlxr(v25 - 1, v24) ); } else { v25 = *(_DWORD *)(v34 - 8); *(_DWORD *)(v34 - 8) = v25 - 1; } if ( v25 <= 0 ) operator delete(v10); } v11 = (void *)(v33 - 24); if ( (__int64 *)(v33 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v26 = (unsigned int *)(v33 - 8); do v27 = __ldaxr(v26); while ( __stlxr(v27 - 1, v26) ); } else { v27 = *(_DWORD *)(v33 - 8); *(_DWORD *)(v33 - 8) = v27 - 1; } if ( v27 <= 0 ) operator delete(v11); } sub_D153B8((int)&v33, "..."); sub_D153B8( (unsigned int)v32 + 128, "I cannot stay here any longer.\nYou must find a way to release me."); v12 = (cocos2d::CCObject *)DialogObject::create(0.9, (__int64)&v33, (__int64)&v34, 15, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v12); v13 = (void *)(v34 - 24); if ( (__int64 *)(v34 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v28 = (unsigned int *)(v34 - 8); do v29 = __ldaxr(v28); while ( __stlxr(v29 - 1, v28) ); } else { v29 = *(_DWORD *)(v34 - 8); *(_DWORD *)(v34 - 8) = v29 - 1; } if ( v29 <= 0 ) operator delete(v13); } v14 = (void *)(v33 - 24); if ( (__int64 *)(v33 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v30 = (unsigned int *)(v33 - 8); do v31 = __ldaxr(v30); while ( __stlxr(v31 - 1, v30) ); } else { v31 = *(_DWORD *)(v33 - 8); *(_DWORD *)(v33 - 8) = v31 - 1; } if ( v31 <= 0 ) operator delete(v14); } v15 = DialogLayer::createWithObjects(v2, (int)&byte_4); a1->addChild_0(a1, v15, 100); v15->m_delegate = &a1->DialogDelegate; v15->setTag(v15, 2); DialogLayer::updateChatPlacement(v15, Top); DialogLayer::animateIn(v15, FromCenter); }
GD Web Decomp Icon

GD Web Decomp

Raw Source