// // sub_7C7E60 from 0x7c7e60 to 0x7c805c (508 bytes) // // 4 xrefs: // > cocos2d::CCRectFromString @ 0x7c822c // > cocos2d::CCRectFromString @ 0x7c8250 // > cocos2d::CCPointFromString @ 0x7c8352 // > cocos2d::CCSizeFromString @ 0x7c83f2 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 12:00:26 +0000 // int __fastcall sub_7C7E60(const char *a1, void **a2) { size_t v4; // r0 int v5; // r3 int v6; // r5 int v7; // r0 int v8; // r5 int v9; // r3 int v10; // r6 int v11; // r0 unsigned int v12; // r2 unsigned int v13; // r0 unsigned __int8 *v14; // r1 int v15; // r6 int v16; // r3 size_t v17; // r3 unsigned __int8 *v18; // r3 int v19; // r1 int v20; // r2 unsigned __int8 *v21; // lr unsigned __int8 *v22; // r0 unsigned __int8 *v23; // r6 int v24; // r11 unsigned __int8 *v25; // r5 int v26; // r3 int v27; // r3 int v28; // r3 int v29; // r3 unsigned __int8 *v30; // r0 int v31; // r0 int v33; // [sp+14h] [bp-38h] BYREF int v34; // [sp+18h] [bp-34h] int v35; // [sp+1Ch] [bp-30h] int v36; // [sp+20h] [bp-2Ch] BYREF size_t v37; // [sp+24h] [bp-28h] char *v38; // [sp+28h] [bp-24h] int v39; // [sp+2Ch] [bp-20h] BYREF size_t v40; // [sp+30h] [bp-1Ch] char *v41; // [sp+34h] [bp-18h] int v42; // [sp+38h] [bp-14h] BYREF int v43; // [sp+3Ch] [bp-10h] int v44; // [sp+40h] [bp-Ch] if ( !a1 ) return 0; v33 = 0; v34 = 0; v35 = 0; v4 = strlen(a1); std::string::__init(&v33, a1, v4); if ( (v33 & 1) != 0 ) v5 = v34; else v5 = (int)(unsigned __int8)v33 >> 1; if ( !v5 || (v6 = std::string::find((unsigned __int8 *)&v33, 123, 0), v7 = std::string::find((unsigned __int8 *)&v33, 125, 0), v6 == -1) || v7 == -1 || v6 > v7 ) { LABEL_55: std::string::~string((int)&v33); return 0; } std::string::basic_string(&v36, (unsigned __int8 *)&v33, v6 + 1, v7 - v6 - 1); v8 = v36 & 1; if ( v8 ) v9 = v37; else v9 = (int)(unsigned __int8)v36 >> 1; if ( !v9 || (v10 = std::string::find((unsigned __int8 *)&v36, 123, 0), v11 = std::string::find((unsigned __int8 *)&v36, 125, 0), v10 != -1) || v11 != -1 ) { LABEL_13: std::string::~string((int)&v36); goto LABEL_55; } v39 = 0; v40 = 0; v41 = nullptr; if ( v8 ) { std::string::__init(&v39, v38, v37); } else { v39 = v36; v40 = v37; v41 = v38; } v12 = 0; do { if ( (v39 & 1) != 0 ) { v14 = (unsigned __int8 *)v41; v13 = v40; } else { v13 = (int)(unsigned __int8)v39 >> 1; v14 = (unsigned __int8 *)&v39 + 1; } if ( v13 <= v12 ) goto LABEL_22; v21 = &v14[v12]; v22 = &v14[v13]; if ( v22 - &v14[v12] > 0 ) { while ( 1 ) { v23 = v21; if ( v21 == v22 ) break; v24 = *v21++; if ( v24 == 44 ) goto LABEL_38; } } v23 = v22; LABEL_38: if ( v23 == v22 ) { LABEL_22: v15 = -1; } else { v15 = v23 - v14; if ( v15 != -1 ) { v17 = v15 - v12; goto LABEL_26; } } if ( (v39 & 1) != 0 ) v16 = v40; else v16 = (int)(unsigned __int8)v39 >> 1; v17 = v16 - v12; LABEL_26: std::string::basic_string(&v42, (unsigned __int8 *)&v39, v12, v17); v18 = (unsigned __int8 *)a2[1]; if ( v18 >= a2[2] ) { std::vector::__push_back_slow_path(a2, &v42); } else { if ( v18 ) { v19 = v43; v20 = v44; *(_DWORD *)v18 = v42; *((_DWORD *)v18 + 1) = v19; *((_DWORD *)v18 + 2) = v20; v42 = 0; v43 = 0; v44 = 0; } a2[1] = (char *)a2[1] + 12; } std::string::~string((int)&v42); v12 = v15 + 1; } while ( v15 != -1 ); std::string::~string((int)&v39); v25 = (unsigned __int8 *)*a2; if ( -1431655765 * (((_BYTE *)a2[1] - (_BYTE *)*a2) >> 2) != 2 || ((v26 = *v25, (v26 & 1) != 0) ? (v27 = *((_DWORD *)v25 + 1)) : (v27 = v26 >> 1), !v27 || ((v28 = v25[12], (v28 & 1) != 0) ? (v29 = *((_DWORD *)v25 + 4)) : (v29 = v28 >> 1), !v29)) ) { while ( 1 ) { v30 = (unsigned __int8 *)a2[1]; if ( v25 == v30 ) break; v31 = (int)(v30 - 12); a2[1] = (void *)v31; std::string::~string(v31); } goto LABEL_13; } std::string::~string((int)&v36); std::string::~string((int)&v33); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source