// // sub_5BFAA8 from 0x5bfaa8 to 0x5bfd58 (688 bytes) // // 2 xrefs: // > CreateGuidelinesLayer::getMergedRecordString @ 0x5bff3c // > CreateGuidelinesLayer::getMergedRecordString @ 0x5bff4c // // 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 // cocos2d::CCArray *__fastcall sub_5BFAA8(_QWORD *a1) { unsigned __int64 v2; // x19 cocos2d::CCArray *v3; // x28 __int64 v4; // x20 __int64 v5; // x3 __int64 v6; // x25 const std::string *v7; // x1 cocos2d::CCObject *v8; // x0 void *v9; // x0 char *v10; // x0 unsigned int *v11; // x1 int v12; // w2 unsigned int *v13; // x1 int v14; // w2 char *v15; // x0 unsigned int *v17; // x19 int v18; // w1 char *v19; // [xsp+88h] [xbp+88h] BYREF __int64 v20; // [xsp+90h] [xbp+90h] BYREF v2 = 0; v3 = (cocos2d::CCArray *)cocos2d::CCArray::create(_stack_chk_guard); v4 = sub_D168E0((int)a1, "~", 0, 1u); v5 = v4; v6 = *(_QWORD *)(*a1 - 24LL); while ( 1 ) { sub_D14F84(&v19, a1, v2, v5); if ( v6 != v2 || *((_QWORD *)v19 - 3) ) { sub_D153B8((int)&v20, v19); v8 = (cocos2d::CCObject *)cocos2d::CCString::create((cocos2d::CCString *)&v20, v7); cocos2d::CCArray::addObject(v3, v8); v9 = (void *)(v20 - 24); if ( (__int64 *)(v20 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v13 = (unsigned int *)(v20 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); } else { v14 = *(_DWORD *)(v20 - 8); *(_DWORD *)(v20 - 8) = v14 - 1; } if ( v14 <= 0 ) break; } } if ( v4 == -1 ) goto LABEL_19; LABEL_7: v2 = v4 + 1; v4 = sub_D168E0((int)a1, "~", (int)v4 + 1, 1u); v10 = v19 - 24; if ( v19 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v11 = (unsigned int *)(v19 - 8); do v12 = __ldaxr(v11); while ( __stlxr(v12 - 1, v11) ); } else { v12 = *((_DWORD *)v19 - 2); *((_DWORD *)v19 - 2) = v12 - 1; } if ( v12 <= 0 ) operator delete(v10); } v5 = v4 - v2; if ( *(_QWORD *)(*a1 - 24LL) < v2 ) sub_D13C5C( "%s: __pos (which is %zu) > this->size() (which is %zu)", "basic_string::substr", v2, *(_QWORD *)(*a1 - 24LL)); } operator delete(v9); if ( v4 != -1 ) goto LABEL_7; LABEL_19: v15 = v19 - 24; if ( v19 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v17 = (unsigned int *)(v19 - 8); do v18 = __ldaxr(v17); while ( __stlxr(v18 - 1, v17) ); } else { v18 = *((_DWORD *)v19 - 2); *((_DWORD *)v19 - 2) = v18 - 1; } if ( v18 <= 0 ) operator delete(v15); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source