// // DS_Dictionary::split from 0x80c0cc to 0x80c1d2 (262 bytes) // // 1 xrefs: // > DS_Dictionary::splitWithForm @ 0x80c26c // // 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:01:31 +0000 // size_t __fastcall DS_Dictionary::split(int a1, unsigned __int8 *a2, char *a3, int a4) { size_t v7; // r8 int v8; // r7 unsigned int v9; // r7 unsigned __int8 *v10; // r9 size_t v11; // r0 int v12; // r7 unsigned __int8 *v13; // r7 int v14; // r3 unsigned __int8 *v15; // r1 unsigned int v16; // r2 int v17; // r3 size_t v18; // r3 _DWORD *v19; // r3 int v20; // r1 int v21; // r2 size_t result; // r0 unsigned __int8 *v23; // [sp+18h] [bp+0h] BYREF int v24; // [sp+20h] [bp+8h] BYREF int v25; // [sp+24h] [bp+Ch] int v26; // [sp+28h] [bp+10h] v7 = 0; do { v8 = *a2; if ( (v8 & 1) != 0 ) { v9 = *((_DWORD *)a2 + 1); v10 = *((unsigned __int8 **)a2 + 2); } else { v9 = v8 >> 1; v10 = a2 + 1; } v11 = strlen(a3); if ( v7 > v9 || v9 - v7 < v11 ) { LABEL_6: v12 = -1; LABEL_13: v14 = *a2; v15 = a2; v16 = v7; if ( (v14 & 1) != 0 ) v17 = *((_DWORD *)a2 + 1); else v17 = v14 >> 1; v18 = v17 - v7; goto LABEL_18; } if ( v11 ) { v13 = &v10[v9]; std::__search( &v23, &v10[v7], v13, (unsigned __int8 *)a3, (unsigned __int8 *)&a3[v11], (int (__fastcall *)(int, _DWORD))std::char_traits::eq); if ( v23 == v13 ) goto LABEL_6; v12 = v23 - v10; } else { v12 = v7; } if ( v12 == -1 ) goto LABEL_13; v16 = v7; v18 = v12 - v7; v15 = a2; LABEL_18: std::string::basic_string(&v24, v15, v16, v18); v19 = *(_DWORD **)(a4 + 4); if ( (unsigned int)v19 >= *(_DWORD *)(a4 + 8) ) { std::vector::__push_back_slow_path((void **)a4, &v24); } else { if ( v19 ) { v20 = v25; v21 = v26; *v19 = v24; v19[1] = v20; v19[2] = v21; v24 = 0; v25 = 0; v26 = 0; } *(_DWORD *)(a4 + 4) += 12; } std::string::~string((int)&v24); result = strlen(a3); v7 = result + v12; } while ( v12 != -1 ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source