// // sub_100693A08 from 0x100693a08 to 0x100693c98 (656 bytes) // // 1 xrefs: // > sub_10068DD44 @ 0x10068dec8 // // 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:11:33 +0000 // __int64 __fastcall sub_100693A08(__int64 a1, _DWORD *a2) { __darwin_time_t v4; // x22 __int64 v5; // x1 __int64 v6; // x23 __int64 *v7; // x24 __int64 v8; // x19 unsigned int v9; // w26 __darwin_time_t v10; // x21 int v11; // w1 int v12; // w22 __int64 v13; // x0 __int64 v14; // x1 __darwin_time_t v15; // x8 __int64 v16; // x0 __int64 v17; // x8 sigaction v19; // [xsp+10h] [xbp-80h] BYREF char v20; // [xsp+20h] [xbp-70h] __int64 v21; // [xsp+28h] [xbp-68h] BYREF sigaction v22; // [xsp+30h] [xbp-60h] BYREF v4 = sub_10066F074(); v6 = v5; if ( !a1 ) return 1; if ( *(_QWORD *)a1 != 764702 ) return 1; v7 = *(__int64 **)(a1 + 8); if ( v7 ) { LODWORD(v8) = 0; while ( !*((_BYTE *)v7 + 1808) || v7[4464] || !(unsigned int)sub_10068FE6C((__int64)(v7 + 4461)) ) { v20 = *((_BYTE *)v7 + 1340); if ( !v20 ) { v19.__sigaction_u.__sa_handler = nullptr; *(_QWORD *)&v19.sa_mask = 0; sigaction(13, nullptr, &v19); *(_QWORD *)&v22.sa_mask = *(_QWORD *)&v19.sa_mask; v22.__sigaction_u.__sa_handler = (void (__cdecl *)(int))1; sigaction(13, &v22, nullptr); } v9 = sub_100693C98(a1, v4, v6, (int)v7); if ( !v20 ) sigaction(13, &v19, nullptr); if ( *((_BYTE *)v7 + 1808) && (v9 || *((_DWORD *)v7 + 8922) == 6) ) sub_10068FEA4((__int64)(v7 + 4461)); if ( v9 ) v8 = v9; else v8 = (unsigned int)v8; v7 = (__int64 *)*v7; if ( !v7 ) goto LABEL_24; } return 3; } v8 = 0; do { LABEL_24: *(_QWORD *)(a1 + 128) = sub_100699054(v4, v6, *(_QWORD *)(a1 + 128), &v21); if ( !v21 ) break; sub_100694D70(v4, v6, a1, *(_QWORD *)(v21 + 40)); } while ( v21 ); *a2 = *(_DWORD *)(a1 + 28); if ( (int)v8 <= 0 && *(_QWORD *)(a1 + 352) ) { if ( !*(_QWORD *)(a1 + 128) ) goto LABEL_34; v10 = sub_10066F074(); v12 = v11; v13 = sub_100698E54(0, 0, *(_QWORD *)(a1 + 128)); v14 = 0; *(_QWORD *)(a1 + 128) = v13; v15 = *(_QWORD *)(v13 + 24); if ( v15 >= v10 ) { if ( v15 <= v10 && *(_DWORD *)(v13 + 32) <= v12 ) { v14 = 0; } else { v16 = sub_10066F09C(*(_QWORD *)(v13 + 24), *(_QWORD *)(v13 + 32), v10, v12); v14 = 1; if ( v16 ) { v14 = v16; if ( v16 < 0 ) { LABEL_34: if ( *(_QWORD *)(a1 + 368) || *(_DWORD *)(a1 + 376) ) { *(_QWORD *)(a1 + 368) = 0; *(_QWORD *)(a1 + 376) = 0; (*(void (__fastcall **)(__int64, __int64, _QWORD))(a1 + 352))(a1, -1, *(_QWORD *)(a1 + 360)); } return v8; } } } } v17 = *(_QWORD *)(a1 + 128); if ( *(_QWORD *)(v17 + 24) != *(_QWORD *)(a1 + 368) || *(_DWORD *)(v17 + 32) != *(_DWORD *)(a1 + 376) ) { *(_OWORD *)(a1 + 368) = *(_OWORD *)(v17 + 24); (*(void (__fastcall **)(__int64, __int64, _QWORD))(a1 + 352))(a1, v14, *(_QWORD *)(a1 + 360)); } } return v8; }
GD Web Decomp Icon

GD Web Decomp

Raw Source