// // sub_1006526A8 from 0x1006526a8 to 0x100652834 (396 bytes) // // 4 xrefs: // > sub_1006430D0 @ 0x1006433b4 // > sub_100647C48 @ 0x100647eac // > sub_10065DE8C @ 0x10065e180 // > sub_10065EBB0 @ 0x10065eee8 // // 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:10:50 +0000 // __int64 __fastcall sub_1006526A8(__int64 a1) { __int64 v2; // x0 size_t v3; // x20 __int64 v4; // x8 __int64 v5; // x21 __int64 v6; // x2 int v8; // [xsp+Ch] [xbp-24h] v2 = (*(__int64 (**)(void))(*(_QWORD *)(a1 + 8) + 96LL))(); v3 = v2; if ( v8 ) { v4 = *(_QWORD *)(a1 + 128); if ( !*(_DWORD *)(v4 + 456) ) { sub_100706FB0(20, 140, 154, "s3_both.c", 257); v6 = 10; goto LABEL_8; } *(_DWORD *)(v4 + 456) = 0; v5 = *(int *)(v4 + 916); if ( v5 != v2 ) { sub_100706FB0(20, 140, 111, "s3_both.c", 267); v6 = 50; goto LABEL_8; } if ( (unsigned int)sub_1006AE75C(*(_QWORD *)(a1 + 88), v4 + 788, v2) ) { sub_100706FB0(20, 140, 149, "s3_both.c", 273); v6 = 51; LABEL_8: sub_1006521C0(a1, 2, v6); return 0; } if ( *(_DWORD *)(a1 + 4) == 0x2000 ) { if ( (int)v5 >= 65 ) sub_1006AE64C((char)"s3_both.c"); memcpy((void *)(*(_QWORD *)(a1 + 128) + 1056LL), (const void *)(*(_QWORD *)(a1 + 128) + 788LL), v3); *(_BYTE *)(*(_QWORD *)(a1 + 128) + 1120LL) = v5; } else { if ( (int)v5 >= 65 ) sub_1006AE64C((char)"s3_both.c"); memcpy((void *)(*(_QWORD *)(a1 + 128) + 1121LL), (const void *)(*(_QWORD *)(a1 + 128) + 788LL), v3); *(_BYTE *)(*(_QWORD *)(a1 + 128) + 1185LL) = v5; } return 1; } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source