// // sub_100652FF4 from 0x100652ff4 to 0x100653150 (348 bytes) // // 2 xrefs: // > sub_100650E10 @ 0x100650e7c // > sub_100653150 @ 0x10065316c // // 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:51 +0000 // __int64 __fastcall sub_100652FF4(__int64 a1) { __int64 v2; // x8 unsigned __int64 v4; // x10 __int64 v5; // x9 __int64 v6; // x8 __int64 v7; // x20 __int64 v8; // x21 __int64 v9; // x8 _QWORD *v10; // x21 int v11; // w9 __int64 v12; // x8 v2 = 14; if ( (*(_BYTE *)(*(_QWORD *)(*(_QWORD *)(a1 + 8) + 200LL) + 112LL) & 8) == 0 ) v2 = 5; if ( *(_QWORD *)(*(_QWORD *)(a1 + 128) + 264LL) ) return 1; v4 = *(_QWORD *)(a1 + 424); v5 = v2 + (unsigned int)(*(_DWORD *)(a1 + 456) + 80) + ((v4 >> 7) & 0x400 ^ 0x403); v6 = v2 + v5 + 83; if ( (v4 & 0x800) != 0 ) v7 = v5; else v7 = v6; v8 = *(_QWORD *)(a1 + 368); sub_1006AE2F8(9, 12, "s3_both.c", 603); v9 = *(_QWORD *)(v8 + 552); if ( v9 && *(_DWORD *)v9 == (_DWORD)v7 && (v10 = *(_QWORD **)(v9 + 16)) != nullptr ) { *(_QWORD *)(v9 + 16) = *v10; v11 = *(_DWORD *)(v9 + 8) - 1; *(_DWORD *)(v9 + 8) = v11; if ( !v11 ) *(_QWORD *)v9 = 0; sub_1006AE2F8(10, 12, "s3_both.c", 613); } else { sub_1006AE2F8(10, 12, "s3_both.c", 613); v10 = (_QWORD *)sub_1006AE878(v7, "s3_both.c", 615); } if ( v10 ) { v12 = *(_QWORD *)(a1 + 128); *(_QWORD *)(v12 + 264) = v10; *(_QWORD *)(v12 + 272) = v7; return 1; } else { sub_100706FB0(20, 291, 65, "s3_both.c", 718); return 0; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source