// // SecretLayer2::showCompletedLevel from 0x93d020 to 0x93dd88 (3432 bytes) // // 3 xrefs: // > @ 0x8b530 // > SecretLayer2::init @ 0x942c30 // > @ 0x122cbe8 // // 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 SecretLayer2::showCompletedLevel(SecretLayer2 *a1) { cocos2d::CCArray *v2; // x22 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 cocos2d::CCObject *v15; // x0 void *v16; // x0 void *v17; // x0 cocos2d::CCObject *v18; // x0 void *v19; // x0 void *v20; // x0 cocos2d::CCObject *v21; // x0 void *v22; // x0 void *v23; // x0 cocos2d::CCObject *v24; // x0 void *v25; // x0 void *v26; // x0 cocos2d::CCObject *v27; // x0 void *v28; // x0 void *v29; // x0 cocos2d::CCObject *v30; // x0 void *v31; // x0 void *v32; // x0 cocos2d::CCObject *v33; // x0 void *v34; // x0 void *v35; // x0 cocos2d::CCObject *v36; // x0 void *v37; // x0 void *v38; // x0 DialogLayer *v39; // x19 unsigned int *v40; // x1 int v41; // w2 unsigned int *v42; // x1 int v43; // w2 unsigned int *v44; // x1 int v45; // w2 unsigned int *v46; // x1 int v47; // w2 unsigned int *v48; // x1 int v49; // w2 unsigned int *v50; // x1 int v51; // w2 unsigned int *v52; // x1 int v53; // w2 unsigned int *v54; // x1 int v55; // w2 unsigned int *v56; // x1 int v57; // w2 unsigned int *v58; // x1 int v59; // w2 unsigned int *v60; // x1 int v61; // w2 unsigned int *v62; // x1 int v63; // w2 unsigned int *v64; // x1 int v65; // w2 unsigned int *v66; // x1 int v67; // w2 unsigned int *v68; // x1 int v69; // w2 unsigned int *v70; // x1 int v71; // w2 unsigned int *v72; // x1 int v73; // w2 unsigned int *v74; // x1 int v75; // w2 unsigned int *v76; // x1 int v77; // w2 unsigned int *v78; // x1 int v79; // w2 unsigned int *v80; // x1 int v81; // w2 unsigned int *v82; // x1 int v83; // w2 unsigned int *v84; // x1 int v85; // w2 unsigned int *v86; // x1 int v87; // w2 __int64 v88; // [xsp+78h] [xbp+78h] BYREF __int64 v89; // [xsp+80h] [xbp+80h] BYREF v2 = (cocos2d::CCArray *)cocos2d::CCArray::create(_stack_chk_guard); sub_D153B8((int)&v88, "The Keymaster"); sub_D153B8((int)&v89, "Huh!?"); v3 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v88, (__int64)&v89, 2, 1, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v3); v4 = (void *)(v89 - 24); if ( (__int64 *)(v89 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v40 = (unsigned int *)(v89 - 8); do v41 = __ldaxr(v40); while ( __stlxr(v41 - 1, v40) ); } else { v41 = *(_DWORD *)(v89 - 8); *(_DWORD *)(v89 - 8) = v41 - 1; } if ( v41 <= 0 ) operator delete(v4); } v5 = (void *)(v88 - 24); if ( (__int64 *)(v88 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v42 = (unsigned int *)(v88 - 8); do v43 = __ldaxr(v42); while ( __stlxr(v43 - 1, v42) ); } else { v43 = *(_DWORD *)(v88 - 8); *(_DWORD *)(v88 - 8) = v43 - 1; } if ( v43 <= 0 ) operator delete(v5); } sub_D153B8((int)&v88, "The Keymaster"); sub_D153B8((int)&v89, "My level... You beat it?"); v6 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v88, (__int64)&v89, 2, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v6); v7 = (void *)(v89 - 24); if ( (__int64 *)(v89 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v44 = (unsigned int *)(v89 - 8); do v45 = __ldaxr(v44); while ( __stlxr(v45 - 1, v44) ); } else { v45 = *(_DWORD *)(v89 - 8); *(_DWORD *)(v89 - 8) = v45 - 1; } if ( v45 <= 0 ) operator delete(v7); } v8 = (void *)(v88 - 24); if ( (__int64 *)(v88 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v46 = (unsigned int *)(v88 - 8); do v47 = __ldaxr(v46); while ( __stlxr(v47 - 1, v46) ); } else { v47 = *(_DWORD *)(v88 - 8); *(_DWORD *)(v88 - 8) = v47 - 1; } if ( v47 <= 0 ) operator delete(v8); } sub_D153B8((int)&v88, "The Keymaster"); sub_D153B8((int)&v89, "I guess I underestimated you.\nIt will not happen again."); v9 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v88, (__int64)&v89, 2, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v9); v10 = (void *)(v89 - 24); if ( (__int64 *)(v89 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v48 = (unsigned int *)(v89 - 8); do v49 = __ldaxr(v48); while ( __stlxr(v49 - 1, v48) ); } else { v49 = *(_DWORD *)(v89 - 8); *(_DWORD *)(v89 - 8) = v49 - 1; } if ( v49 <= 0 ) operator delete(v10); } v11 = (void *)(v88 - 24); if ( (__int64 *)(v88 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v50 = (unsigned int *)(v88 - 8); do v51 = __ldaxr(v50); while ( __stlxr(v51 - 1, v50) ); } else { v51 = *(_DWORD *)(v88 - 8); *(_DWORD *)(v88 - 8) = v51 - 1; } if ( v51 <= 0 ) operator delete(v11); } sub_D153B8((int)&v88, "The Keymaster"); sub_D153B8((int)&v89, "... Why are you still here?"); v12 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v88, (__int64)&v89, 2, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v12); v13 = (void *)(v89 - 24); if ( (__int64 *)(v89 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v52 = (unsigned int *)(v89 - 8); do v53 = __ldaxr(v52); while ( __stlxr(v53 - 1, v52) ); } else { v53 = *(_DWORD *)(v89 - 8); *(_DWORD *)(v89 - 8) = v53 - 1; } if ( v53 <= 0 ) operator delete(v13); } v14 = (void *)(v88 - 24); if ( (__int64 *)(v88 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v54 = (unsigned int *)(v88 - 8); do v55 = __ldaxr(v54); while ( __stlxr(v55 - 1, v54) ); } else { v55 = *(_DWORD *)(v88 - 8); *(_DWORD *)(v88 - 8) = v55 - 1; } if ( v55 <= 0 ) operator delete(v14); } sub_D153B8((int)&v88, "The Keymaster"); sub_D153B8((int)&v89, "Ah of course, you want a prize."); v15 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v88, (__int64)&v89, 2, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v15); v16 = (void *)(v89 - 24); if ( (__int64 *)(v89 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v56 = (unsigned int *)(v89 - 8); do v57 = __ldaxr(v56); while ( __stlxr(v57 - 1, v56) ); } else { v57 = *(_DWORD *)(v89 - 8); *(_DWORD *)(v89 - 8) = v57 - 1; } if ( v57 <= 0 ) operator delete(v16); } v17 = (void *)(v88 - 24); if ( (__int64 *)(v88 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v58 = (unsigned int *)(v88 - 8); do v59 = __ldaxr(v58); while ( __stlxr(v59 - 1, v58) ); } else { v59 = *(_DWORD *)(v88 - 8); *(_DWORD *)(v88 - 8) = v59 - 1; } if ( v59 <= 0 ) operator delete(v17); } sub_D153B8((int)&v88, "The Keymaster"); sub_D153B8((int)&v89, "RubRub always gives prizes."); v18 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v88, (__int64)&v89, 2, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v18); v19 = (void *)(v89 - 24); if ( (__int64 *)(v89 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v60 = (unsigned int *)(v89 - 8); do v61 = __ldaxr(v60); while ( __stlxr(v61 - 1, v60) ); } else { v61 = *(_DWORD *)(v89 - 8); *(_DWORD *)(v89 - 8) = v61 - 1; } if ( v61 <= 0 ) operator delete(v19); } v20 = (void *)(v88 - 24); if ( (__int64 *)(v88 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v62 = (unsigned int *)(v88 - 8); do v63 = __ldaxr(v62); while ( __stlxr(v63 - 1, v62) ); } else { v63 = *(_DWORD *)(v88 - 8); *(_DWORD *)(v88 - 8) = v63 - 1; } if ( v63 <= 0 ) operator delete(v20); } sub_D153B8((int)&v88, "The Keymaster"); sub_D153B8((int)&v89, "Uhm... Not sure what to..."); v21 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v88, (__int64)&v89, 2, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v21); v22 = (void *)(v89 - 24); if ( (__int64 *)(v89 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v64 = (unsigned int *)(v89 - 8); do v65 = __ldaxr(v64); while ( __stlxr(v65 - 1, v64) ); } else { v65 = *(_DWORD *)(v89 - 8); *(_DWORD *)(v89 - 8) = v65 - 1; } if ( v65 <= 0 ) operator delete(v22); } v23 = (void *)(v88 - 24); if ( (__int64 *)(v88 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v66 = (unsigned int *)(v88 - 8); do v67 = __ldaxr(v66); while ( __stlxr(v67 - 1, v66) ); } else { v67 = *(_DWORD *)(v88 - 8); *(_DWORD *)(v88 - 8) = v67 - 1; } if ( v67 <= 0 ) operator delete(v23); } sub_D153B8((int)&v88, "The Keymaster"); sub_D153B8((int)&v89, "Oh I know!"); v24 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v88, (__int64)&v89, 2, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v24); v25 = (void *)(v89 - 24); if ( (__int64 *)(v89 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v68 = (unsigned int *)(v89 - 8); do v69 = __ldaxr(v68); while ( __stlxr(v69 - 1, v68) ); } else { v69 = *(_DWORD *)(v89 - 8); *(_DWORD *)(v89 - 8) = v69 - 1; } if ( v69 <= 0 ) operator delete(v25); } v26 = (void *)(v88 - 24); if ( (__int64 *)(v88 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v70 = (unsigned int *)(v88 - 8); do v71 = __ldaxr(v70); while ( __stlxr(v71 - 1, v70) ); } else { v71 = *(_DWORD *)(v88 - 8); *(_DWORD *)(v88 - 8) = v71 - 1; } if ( v71 <= 0 ) operator delete(v26); } sub_D153B8((int)&v88, "The Keymaster"); sub_D153B8((int)&v89, "I left an old chest down in the basement."); v27 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v88, (__int64)&v89, 2, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v27); v28 = (void *)(v89 - 24); if ( (__int64 *)(v89 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v72 = (unsigned int *)(v89 - 8); do v73 = __ldaxr(v72); while ( __stlxr(v73 - 1, v72) ); } else { v73 = *(_DWORD *)(v89 - 8); *(_DWORD *)(v89 - 8) = v73 - 1; } if ( v73 <= 0 ) operator delete(v28); } v29 = (void *)(v88 - 24); if ( (__int64 *)(v88 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v74 = (unsigned int *)(v88 - 8); do v75 = __ldaxr(v74); while ( __stlxr(v75 - 1, v74) ); } else { v75 = *(_DWORD *)(v88 - 8); *(_DWORD *)(v88 - 8) = v75 - 1; } if ( v75 <= 0 ) operator delete(v29); } sub_D153B8((int)&v88, "The Keymaster"); sub_D153B8((int)&v89, "You can have that as a reward!"); v30 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v88, (__int64)&v89, 2, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v30); v31 = (void *)(v89 - 24); if ( (__int64 *)(v89 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v76 = (unsigned int *)(v89 - 8); do v77 = __ldaxr(v76); while ( __stlxr(v77 - 1, v76) ); } else { v77 = *(_DWORD *)(v89 - 8); *(_DWORD *)(v89 - 8) = v77 - 1; } if ( v77 <= 0 ) operator delete(v31); } v32 = (void *)(v88 - 24); if ( (__int64 *)(v88 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v78 = (unsigned int *)(v88 - 8); do v79 = __ldaxr(v78); while ( __stlxr(v79 - 1, v78) ); } else { v79 = *(_DWORD *)(v88 - 8); *(_DWORD *)(v88 - 8) = v79 - 1; } if ( v79 <= 0 ) operator delete(v32); } sub_D153B8((int)&v88, "The Keymaster"); sub_D153B8((int)&v89, "Take the door on the right, I will open it for you."); v33 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v88, (__int64)&v89, 2, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v33); v34 = (void *)(v89 - 24); if ( (__int64 *)(v89 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v80 = (unsigned int *)(v89 - 8); do v81 = __ldaxr(v80); while ( __stlxr(v81 - 1, v80) ); } else { v81 = *(_DWORD *)(v89 - 8); *(_DWORD *)(v89 - 8) = v81 - 1; } if ( v81 <= 0 ) operator delete(v34); } v35 = (void *)(v88 - 24); if ( (__int64 *)(v88 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v82 = (unsigned int *)(v88 - 8); do v83 = __ldaxr(v82); while ( __stlxr(v83 - 1, v82) ); } else { v83 = *(_DWORD *)(v88 - 8); *(_DWORD *)(v88 - 8) = v83 - 1; } if ( v83 <= 0 ) operator delete(v35); } sub_D153B8((int)&v88, "The Keymaster"); sub_D153B8( (int)&v89, "Grab the chest and come back...\n" "DONT TOUCH ANYTHING!"); v36 = (cocos2d::CCObject *)DialogObject::create(1.0, (__int64)&v88, (__int64)&v89, 2, 0, (int)&unk_FFFFFF); cocos2d::CCArray::addObject(v2, v36); v37 = (void *)(v89 - 24); if ( (__int64 *)(v89 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v84 = (unsigned int *)(v89 - 8); do v85 = __ldaxr(v84); while ( __stlxr(v85 - 1, v84) ); } else { v85 = *(_DWORD *)(v89 - 8); *(_DWORD *)(v89 - 8) = v85 - 1; } if ( v85 <= 0 ) operator delete(v37); } v38 = (void *)(v88 - 24); if ( (__int64 *)(v88 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v86 = (unsigned int *)(v88 - 8); do v87 = __ldaxr(v86); while ( __stlxr(v87 - 1, v86) ); } else { v87 = *(_DWORD *)(v88 - 8); *(_DWORD *)(v88 - 8) = v87 - 1; } if ( v87 <= 0 ) operator delete(v38); } v39 = DialogLayer::createWithObjects(v2, (int)&dword_0 + 2); v39->m_delegate = &a1->DialogDelegate; a1->addChild_0(a1, v39, 100); DialogLayer::updateChatPlacement(v39, Center); DialogLayer::animateIn(v39, FromLeft); }
GD Web Decomp Icon

GD Web Decomp

Raw Source