// // cocos2d::CCRectFromString from 0x10023b01c to 0x10023b2e4 (712 bytes) // // 2 xrefs: // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x100462e6c // > cocos2d::CCSpriteFrameCache::addSpriteFramesWithDictionary @ 0x10046320c // // 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 11:01:21 +0000 // void __usercall cocos2d::CCRectFromString(char *a1@, _QWORD *a2@) { const std::string *v4; // x0 int v5; // w20 int v6; // w0 char v7; // w21 int v8; // w0 std::string::size_type v9; // x21 std::string::size_type size; // x8 std::string *v11; // x0 std::string *p_a; // x0 __int64 v13; // x20 const char *v14; // x0 double v15; // d8 const char *v16; // x0 double v17; // d0 const char *v18; // x0 float v19; // s8 float v20; // s9 float v21; // s10 const char *v22; // x0 float v23; // s3 void **v24[2]; // [xsp+0h] [xbp-D0h] BYREF void **v25[3]; // [xsp+10h] [xbp-C0h] BYREF std::allocator v26[8]; // [xsp+28h] [xbp-A8h] BYREF __int64 v27; // [xsp+30h] [xbp-A0h] __int64 v28; // [xsp+38h] [xbp-98h] std::string __a; // [xsp+40h] [xbp-90h] BYREF std::string v30; // [xsp+58h] [xbp-78h] BYREF std::string __str; // [xsp+70h] [xbp-60h] BYREF sub_1000264D4(a2, (__int64)&unk_1009F4E50); if ( a1 ) { v4 = (const std::string *)sub_100009900(&__str, a1); v5 = std::string::find(v4, 123, 0); v6 = std::string::find(&__str, 125, 0); if ( v6 != -1 ) { v7 = 0; do { v6 = std::string::find(&__str, 125, v6 + 1); if ( (v7 & 1) != 0 ) break; v7 = 1; } while ( v6 != 0xFFFFFFFFLL ); if ( v5 != -1 && v6 != 0xFFFFFFFFLL ) { std::string::basic_string(&v30, &__str, v5 + 1, v6 + ~v5, (std::allocator *)&__a); if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); __str = v30; v8 = std::string::find(&__str, 125, 0); if ( v8 != -1 ) { v9 = std::string::find(&__str, 44, v8); if ( (_DWORD)v9 != -1 ) { std::string::basic_string(&v30, &__str, 0, (int)v9, (std::allocator *)&__a); size = HIBYTE(__str.__r_.__value_.__r.__words[2]); if ( (__str.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) size = __str.__r_.__value_.__l.__size_; std::string::basic_string( &__a, &__str, (__int64)((__int64)&_mh_execute_header + (v9 << 32)) >> 32, size - (int)v9, v26); *(_QWORD *)&v26[0].std::__non_trivial_if = 0; v27 = 0; v28 = 0; if ( (v30.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v11 = &v30; else v11 = (std::string *)v30.__r_.__value_.__r.__words[0]; if ( (sub_10023B360((char *)v11) & 1) != 0 ) { memset(v25, 0, sizeof(v25)); if ( (__a.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) p_a = &__a; else p_a = (std::string *)__a.__r_.__value_.__r.__words[0]; if ( (sub_10023B360((char *)p_a) & 1) != 0 ) { v13 = *(_QWORD *)&v26[0].std::__non_trivial_if; v14 = *(const char **)&v26[0].std::__non_trivial_if; if ( *(char *)(*(_QWORD *)&v26[0].std::__non_trivial_if + 23LL) < 0 ) v14 = **(const char ***)&v26[0].std::__non_trivial_if; v15 = atof(v14); v16 = (const char *)(v13 + 24); if ( *(char *)(v13 + 47) < 0 ) v16 = *(const char **)v16; v17 = atof(v16); v18 = (const char *)v25[0]; if ( *((char *)v25[0] + 23) < 0 ) v18 = (const char *)*v25[0]; v19 = v15; v20 = v17; v21 = atof(v18); v22 = (const char *)(v25[0] + 3); if ( *((char *)v25[0] + 47) < 0 ) v22 = *(const char **)v22; v23 = atof(v22); sub_1000262CC((float *)v24, v19, v20, v21, v23); sub_1000264EC(a2, (__int64)v24); } v24[0] = (void **)v25; sub_100018250(v24); } v25[0] = (void **)v26; sub_100018250(v25); if ( SHIBYTE(__a.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__a.__r_.__value_.__l.__data_); if ( SHIBYTE(v30.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v30.__r_.__value_.__l.__data_); } } } } if ( SHIBYTE(__str.__r_.__value_.__r.__words[2]) < 0 ) operator delete(__str.__r_.__value_.__l.__data_); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source