// // CreatorLayer::onMultiplayer from 0x6ca988 to 0x6cae6c (1252 bytes) // // 3 xrefs: // > @ 0x820b0 // > CreatorLayer::init @ 0x6cc510 // > @ 0x122c618 // // 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 CreatorLayer::onMultiplayer(CreatorLayer *a1, cocos2d::CCObject *a2) { unsigned int v3; // w26 DialogObject *v4; // x0 DialogLayer *v5; // x23 void *v6; // x0 void *v7; // x0 __int64 v8; // x2 int v9; // w1 __int64 *v10; // x0 void *v11; // x0 unsigned int *v12; // x1 int v13; // w2 unsigned int *v14; // x2 int v15; // w1 unsigned int *v16; // x1 int v17; // w2 unsigned int *v18; // x1 int v19; // w2 __int64 v20; // [xsp+58h] [xbp+58h] BYREF __int64 v21; // [xsp+60h] [xbp+60h] BYREF __int64 v22; // [xsp+68h] [xbp+68h] BYREF __int64 v23; // [xsp+70h] [xbp+70h] BYREF cocos2d::_ccColor3B v24; // 0:w5.3 sub_D153B8((int)&v20, "Versus mode has been delayed,\nbut it's in the works!"); sub_D153B8((int)&v21, "The Keymaster"); switch ( a1->m_versusDialogIndex ) { case 1: sub_D1798C(&v20, "Yea... It's still delayed.", 52); goto LABEL_2; case 2: sub_D1798C(&v20, "I blame RobTop.", 23); goto LABEL_15; case 3: sub_D1798C(&v20, "Who else could we blame?\nWe're not even real.", 53); goto LABEL_2; case 4: sub_D1798C(&v20, "Speak for yourself I'm real!", 36); sub_D1798C(&v21, "Scratch", 7); v3 = 14; goto LABEL_3; case 5: sub_D1798C(&v20, "Yea, a real pain in the...", 52); goto LABEL_2; case 6: sub_D1798C(&v20, "You're just mad because you don't have a shop.", 62); sub_D1798C(&v21, "Scratch", 7); v3 = 26; goto LABEL_3; case 7: sub_D1798C(&v20, "You have a shop?", 24); v3 = 4; goto LABEL_3; case 8: sub_D1798C(&v20, "I HAVE SAID TOO MUCH!\nQUICKLY TO THE CHOPPER!", 73); LABEL_15: sub_D1798C(&v21, "Scratch", 7); v3 = 10; goto LABEL_3; case 9: sub_D1798C(&v20, "You don't have a chop...", 42); goto LABEL_2; case 0xA: sub_D1798C(&v20, "...", 15); sub_D1798C(&v21, "Scratch", 7); v3 = 52; goto LABEL_3; case 0xB: sub_D1798C(&v20, ".....", 29); v3 = 17; goto LABEL_3; default: LABEL_2: v3 = 2; LABEL_3: sub_D18D28(&v22, &v21); sub_D18D28(&v23, &v20); v4 = (DialogObject *)DialogObject::create( (DialogObject *)&v22, (std::string)&v23, (std::string)v3, 0, 1.0, (bool)&unk_FFFFFF, v24); v5 = DialogLayer::create(v4, (int)&dword_0 + 2); v6 = (void *)(v23 - 24); if ( (__int64 *)(v23 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v18 = (unsigned int *)(v23 - 8); do v19 = __ldaxr(v18); while ( __stlxr(v19 - 1, v18) ); } else { v19 = *(_DWORD *)(v23 - 8); *(_DWORD *)(v23 - 8) = v19 - 1; } if ( v19 <= 0 ) operator delete(v6); } v7 = (void *)(v22 - 24); if ( (__int64 *)(v22 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v16 = (unsigned int *)(v22 - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *(_DWORD *)(v22 - 8); *(_DWORD *)(v22 - 8) = v17 - 1; } if ( v17 <= 0 ) operator delete(v7); } a1->addChild_0(a1, v5, 100); DialogLayer::updateChatPlacement(v5, Center); DialogLayer::animateInRandomSide(v5); v8 = v21; v9 = a1->m_versusDialogIndex + 1; v10 = (__int64 *)(v21 - 24); if ( v9 > 11 ) v9 = 0; a1->m_versusDialogIndex = v9; if ( v10 != &qword_124B6B0 ) { if ( &pthread_create ) { v14 = (unsigned int *)(v8 - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *(_DWORD *)(v8 - 8); *(_DWORD *)(v8 - 8) = v15 - 1; } if ( v15 <= 0 ) operator delete(v10); } v11 = (void *)(v20 - 24); if ( (__int64 *)(v20 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v12 = (unsigned int *)(v20 - 8); do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *(_DWORD *)(v20 - 8); *(_DWORD *)(v20 - 8) = v13 - 1; } if ( v13 <= 0 ) operator delete(v11); } return; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source