// // cocos2d::CCFileUtils::setSearchResolutionsOrder from 0xd76b78 to 0xd76df4 (636 bytes) // // 3 xrefs: // > @ 0x92890 // > @ 0x152d928 // > @ 0x152dde8 // // 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:08:03 +0000 // __int64 __fastcall cocos2d::CCFileUtils::setSearchResolutionsOrder(__int64 *a1, __int64 *a2) { __int64 v4; // x19 __int64 i; // x0 __int64 v6; // x0 __int64 v7; // x27 _BOOL4 v8; // w22 __int64 v9; // x1 int v10; // w0 int v11; // w26 char *v12; // x1 __int64 v13; // x0 unsigned __int64 v14; // x0 int v16; // w0 int v17; // w28 _QWORD *v18; // x0 __int64 v19; // x3 __int64 v20; // [xsp+60h] [xbp+60h] BYREF __int64 v21; // [xsp+68h] [xbp+68h] void *v22; // [xsp+70h] [xbp+70h] std::__tree,std::__map_value_compare,std::less,true>,std::allocator>>::clear(a1 + 11); v4 = a1[2]; for ( i = a1[3]; v4 != i; i = a1[3] ) { v6 = i - 24; a1[3] = v6; std::string::~string(v6); } v7 = *a2; if ( *a2 != a2[1] ) { v8 = 0; while ( 1 ) { v20 = 0; v21 = 0; v22 = nullptr; if ( (*(_BYTE *)v7 & 1) != 0 ) { std::string::__init(&v20, *(void **)(v7 + 16), *(_QWORD *)(v7 + 8)); } else { v9 = *(_QWORD *)(v7 + 8); v20 = *(_QWORD *)v7; v21 = v9; v22 = *(void **)(v7 + 16); } if ( v8 ) { v10 = (unsigned __int8)v20; v11 = v20 & 1; } else { v17 = (unsigned __int8)v20; v11 = v20 & 1; if ( v11 ) { if ( v21 ) { LABEL_10: if ( v21 ) { v12 = (char *)v22; v13 = v21 - 1; goto LABEL_12; } goto LABEL_14; } } else { v10 = (unsigned __int8)v20; if ( (int)(unsigned __int8)v20 >> 1 ) goto LABEL_24; } v8 = std::string::compare((__int64)&v20, 0, 0xFFFFFFFFFFFFFFFFLL, &byte_11B8890, 0) == 0; v10 = v17; } if ( v11 ) goto LABEL_10; LABEL_24: v16 = v10 >> 1; if ( v16 ) { v12 = (char *)&v20 + 1; v13 = v16 - 1LL; LABEL_12: if ( v12[v13] != 47 ) std::string::append((__int64)&v20, (char *)&word_11BA098); } LABEL_14: v14 = a1[3]; if ( v14 == a1[4] ) { std::vector::__push_back_slow_path(a1 + 2, &v20); } else { if ( v14 ) { std::string::basic_string(v14, &v20); v14 = a1[3]; } a1[3] = v14 + 24; } if ( (v20 & 1) != 0 ) operator delete(v22); v7 += 24; if ( a2[1] == v7 ) { if ( v8 ) return _stack_chk_guard; break; } } } v20 = 0; v21 = 0; v22 = nullptr; std::string::__init(&v20, &byte_11B8890, 0); v18 = (_QWORD *)a1[3]; if ( (unsigned __int64)v18 >= a1[4] ) { std::vector::__push_back_slow_path((void ***)a1 + 2, &v20); } else { if ( v18 ) { v19 = v21; *v18 = v20; v18[1] = v19; v18[2] = v22; v20 = 0; v18 = (_QWORD *)a1[3]; v21 = 0; v22 = nullptr; } a1[3] = (__int64)(v18 + 3); } if ( (v20 & 1) != 0 ) operator delete(v22); return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source