// // sub_180055340 from 0x180055340 to 0x1800553ee (174 bytes) // // 2 xrefs: // > sub_1800C8380 @ 0x1800c8663 // > @ 0x1801f8cdc // // This function is hookable on this platform (idp: pc, 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 10:53:19 +0000 // __int64 __fastcall sub_180055340(__int64 a1, _QWORD *a2) { int v2; // esi __int64 i; // rdi __int64 v6; // rax __int64 v7; // rax __int64 v9; // rax __int64 v10; // rcx char v11; // [rsp+40h] [rbp+8h] BYREF char v12; // [rsp+50h] [rbp+18h] BYREF v2 = 0; if ( *(int *)(a1 + 12) <= 0 ) return 2; for ( i = 0; ; ++i ) { if ( !*(_BYTE *)(i + *(_QWORD *)(a1 + 32)) ) { v6 = *(_QWORD *)(a1 + 24); v11 = 0; (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v6 + 8 * i) + 48LL))(*(_QWORD *)(v6 + 8 * i), &v11); if ( v11 ) { v7 = *(_QWORD *)(a1 + 24); v12 = 0; (*(void (__fastcall **)(_QWORD, char *))(**(_QWORD **)(v7 + 8 * i) + 64LL))(*(_QWORD *)(v7 + 8 * i), &v12); if ( v12 ) break; } } if ( ++v2 >= *(_DWORD *)(a1 + 12) ) return 2; } *(_BYTE *)(v2 + *(_QWORD *)(a1 + 32)) = 1; v9 = *(_QWORD *)(a1 + 24); ++*(_DWORD *)(a1 + 16); v10 = *(_QWORD *)(v9 + 8LL * v2); *a2 = v10; return 0; }