// // GJSearchObject::createFromKey from 0x7156cc to 0x715d94 (1736 bytes) // // 2 xrefs: // > GameLevelManager::getSearchScene @ 0x715da0 // > @ 0x5ea88 // // 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 // GJSearchObject *GJSearchObject::createFromKey(const char *a1) { cocos2d::CCArray *v1; // x19 void *v2; // x0 cocos2d::CCString *v3; // x0 int v4; // w27 cocos2d::CCString *v5; // x0 char *CString; // x0 cocos2d::CCString *v7; // x0 char *v8; // x0 cocos2d::CCString *v9; // x0 char *v10; // x0 cocos2d::CCString *v11; // x0 cocos2d::CCString *v12; // x0 cocos2d::CCString *v13; // x0 cocos2d::CCString *v14; // x0 cocos2d::CCString *v15; // x0 int v16; // w28 cocos2d::CCString *v17; // x0 cocos2d::CCString *v18; // x0 cocos2d::CCString *v19; // x0 cocos2d::CCString *v20; // x0 cocos2d::CCString *v21; // x0 cocos2d::CCString *v22; // x0 cocos2d::CCString *v23; // x0 cocos2d::CCString *v24; // x0 cocos2d::CCString *v25; // x0 cocos2d::CCString *v26; // x0 cocos2d::CCString *v27; // x0 cocos2d::CCString *v28; // x0 cocos2d::CCString *v29; // x0 GJSearchObject *v30; // x19 void *v31; // x0 void *v32; // x0 void *v33; // x0 void *v34; // x0 void *v35; // x0 void *v36; // x0 unsigned int *v38; // x1 int v39; // w2 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 __int64 v52; // [xsp+70h] [xbp+0h] BYREF char v53; // [xsp+D3h] [xbp+63h] char v54; // [xsp+D4h] [xbp+64h] char v55; // [xsp+D5h] [xbp+65h] char v56; // [xsp+D6h] [xbp+66h] char v57; // [xsp+D7h] [xbp+67h] char v58; // [xsp+D8h] [xbp+68h] char v59; // [xsp+D9h] [xbp+69h] char v60; // [xsp+DAh] [xbp+6Ah] char v61; // [xsp+DBh] [xbp+6Bh] char v62; // [xsp+DCh] [xbp+6Ch] char v63; // [xsp+DDh] [xbp+6Dh] char v64; // [xsp+DEh] [xbp+6Eh] char v65; // [xsp+DFh] [xbp+6Fh] int v66; // [xsp+E0h] [xbp+70h] int v67; // [xsp+E4h] [xbp+74h] int v68; // [xsp+E8h] [xbp+78h] int v69; // [xsp+ECh] [xbp+7Ch] __int64 v70; // [xsp+F8h] [xbp+88h] BYREF __int64 v71; // [xsp+100h] [xbp+90h] BYREF __int64 v72; // [xsp+108h] [xbp+98h] BYREF __int64 v73; // [xsp+110h] [xbp+A0h] BYREF __int64 v74; // [xsp+118h] [xbp+A8h] BYREF __int64 v75; // [xsp+120h] [xbp+B0h] BYREF sub_D153B8((int)&v75, (char *)a1); v1 = sub_6F004C(&v75, "_"); v2 = (void *)(v75 - 24); if ( (__int64 *)(v75 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v38 = (unsigned int *)(v75 - 8); do v39 = __ldaxr(v38); while ( __stlxr(v39 - 1, v38) ); } else { v39 = *(_DWORD *)(v75 - 8); *(_DWORD *)(v75 - 8) = v39 - 1; } if ( v39 <= 0 ) operator delete(v2); } if ( (unsigned int)cocos2d::CCArray::count(v1) <= 0x11 ) return nullptr; v3 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 0); v4 = cocos2d::CCString::intValue(v3); v5 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 1u); CString = (char *)cocos2d::CCString::getCString(v5); sub_D153B8((unsigned int)&v52 + 136, CString); v7 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 2u); v8 = (char *)cocos2d::CCString::getCString(v7); sub_D153B8((int)&v71, v8); v9 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 3u); v10 = (char *)cocos2d::CCString::getCString(v9); sub_D153B8((int)&v72, v10); v11 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 4u); v69 = cocos2d::CCString::intValue(v11); v12 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 5u); v65 = cocos2d::CCString::boolValue(v12); v13 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 6u); v64 = cocos2d::CCString::boolValue(v13); v14 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 7u); v63 = cocos2d::CCString::boolValue(v14); v15 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 8u); v16 = cocos2d::CCString::intValue(v15); v17 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 9u); v62 = cocos2d::CCString::boolValue(v17); v18 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 0xAu); v61 = cocos2d::CCString::boolValue(v18); v19 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 0xBu); v60 = cocos2d::CCString::boolValue(v19); v20 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 0xCu); v59 = cocos2d::CCString::boolValue(v20); v21 = (cocos2d::CCString *)cocos2d::CCArray::objectAtIndex(v1, 0xDu); v58 = cocos2d::CCString::boolValue(v21); v22 = cocos2d::CCArray::stringAtIndex(v1, 0xEu); v57 = cocos2d::CCString::boolValue(v22); v23 = cocos2d::CCArray::stringAtIndex(v1, 0xFu); v56 = cocos2d::CCString::boolValue(v23); v24 = cocos2d::CCArray::stringAtIndex(v1, 0x10u); v55 = cocos2d::CCString::boolValue(v24); v25 = cocos2d::CCArray::stringAtIndex(v1, 0x11u); v54 = cocos2d::CCString::boolValue(v25); v26 = cocos2d::CCArray::stringAtIndex(v1, 0x12u); v53 = cocos2d::CCString::boolValue(v26); v27 = cocos2d::CCArray::stringAtIndex(v1, 0x13u); v68 = cocos2d::CCString::intValue(v27); v28 = cocos2d::CCArray::stringAtIndex(v1, 0x14u); v67 = cocos2d::CCString::intValue(v28); v29 = cocos2d::CCArray::stringAtIndex(v1, 0x15u); v66 = cocos2d::CCString::intValue(v29); sub_D18D28(&v73, &v70); sub_D18D28(&v74, &v71); sub_D18D28(&v75, &v72); v30 = (GJSearchObject *)GJSearchObject::create( v4, (__int64)&v73, (__int64)&v74, (__int64)&v75, v69, v65, v64, v63, v16, v62, v61, v60, v59, v58, v57, v56, v55, v54, v53, v68, v67, v66); v31 = (void *)(v75 - 24); if ( (__int64 *)(v75 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v40 = (unsigned int *)(v75 - 8); do v41 = __ldaxr(v40); while ( __stlxr(v41 - 1, v40) ); } else { v41 = *(_DWORD *)(v75 - 8); *(_DWORD *)(v75 - 8) = v41 - 1; } if ( v41 <= 0 ) operator delete(v31); } v32 = (void *)(v74 - 24); if ( (__int64 *)(v74 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v42 = (unsigned int *)(v74 - 8); do v43 = __ldaxr(v42); while ( __stlxr(v43 - 1, v42) ); } else { v43 = *(_DWORD *)(v74 - 8); *(_DWORD *)(v74 - 8) = v43 - 1; } if ( v43 <= 0 ) operator delete(v32); } v33 = (void *)(v73 - 24); if ( (__int64 *)(v73 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v44 = (unsigned int *)(v73 - 8); do v45 = __ldaxr(v44); while ( __stlxr(v45 - 1, v44) ); } else { v45 = *(_DWORD *)(v73 - 8); *(_DWORD *)(v73 - 8) = v45 - 1; } if ( v45 <= 0 ) operator delete(v33); } v34 = (void *)(v72 - 24); if ( (__int64 *)(v72 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v46 = (unsigned int *)(v72 - 8); do v47 = __ldaxr(v46); while ( __stlxr(v47 - 1, v46) ); } else { v47 = *(_DWORD *)(v72 - 8); *(_DWORD *)(v72 - 8) = v47 - 1; } if ( v47 <= 0 ) operator delete(v34); } v35 = (void *)(v71 - 24); if ( (__int64 *)(v71 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v48 = (unsigned int *)(v71 - 8); do v49 = __ldaxr(v48); while ( __stlxr(v49 - 1, v48) ); } else { v49 = *(_DWORD *)(v71 - 8); *(_DWORD *)(v71 - 8) = v49 - 1; } if ( v49 <= 0 ) operator delete(v35); } v36 = (void *)(v70 - 24); if ( (__int64 *)(v70 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v50 = (unsigned int *)(v70 - 8); do v51 = __ldaxr(v50); while ( __stlxr(v51 - 1, v50) ); } else { v51 = *(_DWORD *)(v70 - 8); *(_DWORD *)(v70 - 8) = v51 - 1; } if ( v51 <= 0 ) operator delete(v36); } return v30; }
GD Web Decomp Icon

GD Web Decomp

Raw Source