// // sub_A3674 from 0xa3674 to 0xa37e0 (364 bytes) // // 4 xrefs: // > sub_A3600 @ 0xa360c // > sub_A361C @ 0xa364c // > sub_A60D8 @ 0xa615c // > sub_A631C @ 0xa638c // // 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 12:14:30 +0000 // __int64 __fastcall sub_A3674(__int64 a1, char a2) { __int64 v2; // x19 int v4; // w8 int v5; // w9 int v6; // w9 int v7; // w8 __int64 v8; // x8 __int64 v9; // x11 int v10; // w9 int v11; // w9 int v12; // w8 int v13; // w8 int v14; // w9 int v15; // w8 v2 = a1; if ( *(_DWORD *)(a1 + 3052) ) { if ( (a2 & 1) != 0 ) sub_A495C(a1); } else if ( *(_BYTE *)(a1 + 3049) && !*(_BYTE *)(a1 + 3050) ) { sub_A6458(a1); } else { v4 = *(_DWORD *)(a1 + 3084); if ( (v4 & 0x80000000) == 0 ) { LABEL_7: *(_DWORD *)(v2 + 3068) = v4; while ( 1 ) { v5 = *(unsigned __int8 *)(v2 + v4 + 656); if ( v5 != 254 ) break; v6 = *(_DWORD *)(v2 + 2284); *(_DWORD *)(v2 + 3068) = ++v4; if ( v4 >= v6 ) { if ( !*(_BYTE *)(v2 + 3050) ) a1 = sub_A6458(a1); v4 = *(_DWORD *)(v2 + 3024); goto LABEL_7; } } if ( v5 == 255 ) *(_DWORD *)(v2 + 3068) = *(_DWORD *)(v2 + 3024); *(_DWORD *)(v2 + 3084) = -1; } v7 = *(_DWORD *)(v2 + 3080); if ( (v7 & 0x80000000) == 0 ) { *(_DWORD *)(v2 + 3064) = v7; *(_DWORD *)(v2 + 3080) = -1; } sub_A40E0(v2, a2 & 1); if ( *(_DWORD *)(v2 + 3080) == -1 ) { v8 = *(int *)(v2 + 3068); v9 = *(_QWORD *)(v2 + 632); v10 = *(_DWORD *)(v2 + 3064) + 1; *(_DWORD *)(v2 + 3080) = v10; if ( v10 >= *(_DWORD *)(v9 + 16LL * *(unsigned __int8 *)(v2 + v8 + 656)) ) { v11 = *(_DWORD *)(v2 + 2284); v12 = v8 + 1; *(_DWORD *)(v2 + 3084) = v12; if ( v12 >= v11 ) *(_DWORD *)(v2 + 3084) = *(_DWORD *)(v2 + 3024); *(_DWORD *)(v2 + 3080) = 0; } } } v13 = *(_DWORD *)(v2 + 3056); if ( v13 ) { v14 = *(_DWORD *)(v2 + 3052) + 1; v15 = *(_DWORD *)(v2 + 3072) + v13; *(_DWORD *)(v2 + 3052) = v14; if ( v14 >= v15 ) { *(_DWORD *)(v2 + 3072) = 0; *(_DWORD *)(v2 + 3052) = 0; } } else { *(_BYTE *)(v2 + 3049) = 1; } *(_DWORD *)(v2 + 2136) += *(_DWORD *)(v2 + 2132); return 0; }
GD Web Decomp Icon

GD Web Decomp

Raw Source