// // OptionsScrollLayer::getRelevantObjects from 0xb84780 to 0xb84b38 (952 bytes) // // 2 xrefs: // > OptionsScrollLayer::setupList @ 0xb84bb4 // > @ 0xaa1a0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 13:02:30 +0000 // cocos2d::CCArray *__fastcall OptionsScrollLayer::getRelevantObjects(OptionsScrollLayer *this, cocos2d::CCArray *a2) { char *v3; // x19 cocos2d::CCArray *v4; // x26 char v5; // w0 __int64 v6; // x0 unsigned __int64 v7; // x1 unsigned __int8 v8; // w19 int v9; // w21 unsigned __int64 v10; // x23 __int64 v11; // x1 __int64 v12; // x21 _BYTE *v13; // x19 __int64 v14; // x21 unsigned int *v15; // x1 __int64 *v17; // x24 __int64 v18; // x0 char *v19; // x25 __int64 v20; // x23 unsigned __int8 v21; // w0 char v22; // w0 __int64 v23; // x0 unsigned __int64 v24; // x1 unsigned __int64 v25; // x21 unsigned __int64 v26; // x1 unsigned __int64 v27; // x1 unsigned __int64 v28; // x28 _BYTE *v29; // x19 unsigned __int64 v30; // x28 unsigned __int8 v31; // w0 char *v32; // x6 unsigned __int8 *v33; // x7 unsigned __int64 v34; // x0 char *v35; // x1 char *v36; // x10 char *v37; // x8 unsigned __int8 *v38; // x0 char *v39; // x9 char *v40; // x11 unsigned __int8 *v41; // x2 char *v42; // x3 int v43; // t1 __int64 v44; // [xsp+68h] [xbp+68h] BYREF unsigned __int64 v45; // [xsp+70h] [xbp+70h] void *v46; // [xsp+78h] [xbp+78h] __int64 v47; // [xsp+80h] [xbp+80h] BYREF unsigned __int64 v48; // [xsp+88h] [xbp+88h] void *v49; // [xsp+90h] [xbp+90h] v3 = (char *)this + 720; v4 = (cocos2d::CCArray *)cocos2d::CCArray::create(_stack_chk_guard); v5 = *v3; v44 = 0; v45 = 0; v46 = nullptr; if ( (v5 & 1) != 0 ) { std::string::__init(&v44, *((void **)v3 + 2), *((_QWORD *)v3 + 1)); } else { v6 = *(_QWORD *)v3; v7 = *((_QWORD *)v3 + 1); v46 = *((void **)v3 + 2); v44 = v6; v45 = v7; } v8 = v44; v9 = v44 & 1; v10 = (unsigned __int8)v44 >> 1; if ( v9 ) v10 = v45; if ( v10 ) { v11 = 0; if ( (v44 & 1) == 0 ) goto LABEL_9; while ( 1 ) { v12 = v11 + 1; v13 = (char *)v46 + v11; *v13 = tolower(*((unsigned __int8 *)v46 + v11)); v11 = v12; if ( v12 == v10 ) break; while ( (v44 & 1) == 0 ) { LABEL_9: v14 = v11 + 1; *((_BYTE *)&v44 + v11 + 1) = tolower(*((unsigned __int8 *)&v44 + v11 + 1)); v11 = v14; if ( v14 == v10 ) goto LABEL_10; } } LABEL_10: v8 = v44; v9 = v44 & 1; } if ( a2 ) { v15 = *((unsigned int **)a2 + 7); if ( *v15 ) { v17 = *((__int64 **)v15 + 2); v18 = 8LL * *v15 - 8; v19 = (char *)v17 + v18; if ( v17 <= (__int64 *)((char *)v17 + v18) ) { v20 = *v17; v21 = v8 & 1; if ( *v17 ) { v9 = v21; if ( !v21 ) goto LABEL_41; LABEL_19: if ( !v45 ) { while ( *(int *)(v20 + 100) <= 0 && !*(_BYTE *)(v20 + 60) ) { LABEL_38: if ( v19 < (char *)++v17 ) goto LABEL_13; v20 = *v17; if ( !*v17 ) goto LABEL_13; v9 = v21; if ( v21 ) goto LABEL_19; LABEL_41: if ( v8 >> 1 ) goto LABEL_20; } cocos2d::CCArray::addObject(v4, (cocos2d::CCObject *)v20); LABEL_37: v8 = v44; v21 = v44 & 1; v9 = v44 & 1; goto LABEL_38; } LABEL_20: v22 = *(_BYTE *)(v20 + 64); v47 = 0; v48 = 0; v49 = nullptr; if ( (v22 & 1) != 0 ) { std::string::__init(&v47, *(void **)(v20 + 80), *(_QWORD *)(v20 + 72)); } else { v23 = *(_QWORD *)(v20 + 64); v24 = *(_QWORD *)(v20 + 72); v49 = *(void **)(v20 + 80); v47 = v23; v48 = v24; } if ( (v47 & 1) != 0 ) { v25 = v48; v26 = 0; if ( !v48 ) goto LABEL_30; } else { v25 = (int)(unsigned __int8)v47 >> 1; if ( !((int)(unsigned __int8)v47 >> 1) ) { v26 = 0; v32 = (char *)&v47 + 1; goto LABEL_47; } } v27 = 0; if ( (v47 & 1) == 0 ) goto LABEL_27; while ( 1 ) { v28 = v27 + 1; v29 = (char *)v49 + v27; *v29 = tolower((unsigned __int8)*v29); v27 = v28; if ( v25 <= v28 ) break; while ( (v47 & 1) == 0 ) { LABEL_27: v30 = v27 + 1; *((_BYTE *)&v47 + v27 + 1) = tolower(*((unsigned __int8 *)&v47 + v27 + 1)); v27 = v30; if ( v25 <= v30 ) goto LABEL_28; } } LABEL_28: if ( (v47 & 1) != 0 ) { v26 = v48; LABEL_30: v31 = v44; v32 = (char *)v49; if ( (v44 & 1) != 0 ) { LABEL_31: v33 = (unsigned __int8 *)v46; v34 = v45; goto LABEL_32; } LABEL_48: v34 = v31 >> 1; v33 = (unsigned __int8 *)&v44 + 1; LABEL_32: if ( v26 >= v34 ) { if ( !v34 ) goto LABEL_34; if ( (__int64)v34 <= (__int64)v26 ) { v35 = &v32[v26]; v36 = &v35[1 - v34]; if ( v36 != v32 ) { v37 = v32 + 1; v38 = &v33[v34]; while ( 1 ) { v39 = v37 - 1; v40 = v37; if ( (unsigned __int8)*(v37 - 1) == *v33 ) break; LABEL_61: ++v37; if ( v36 == v40 ) goto LABEL_35; } v41 = v33; v42 = v37 - 1; while ( ++v41 != v38 ) { v43 = (unsigned __int8)*++v42; if ( v43 != *v41 ) goto LABEL_61; } if ( v35 != v39 && v39 - v32 != -1 ) LABEL_34: cocos2d::CCArray::addObject(v4, (cocos2d::CCObject *)v20); } } } LABEL_35: if ( (v47 & 1) != 0 ) operator delete(v49); goto LABEL_37; } v26 = (unsigned __int8)v47 >> 1; v32 = (char *)&v47 + 1; LABEL_47: v31 = v44; if ( (v44 & 1) != 0 ) goto LABEL_31; goto LABEL_48; } } } } LABEL_13: if ( v9 ) operator delete(v46); return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source