//
// sub_180042270 from 0x180042270 to 0x180042331 (193 bytes)
//
// 4 xrefs:
// > sub_180046A60 @ 0x180046a8f
// > sub_180046A60 @ 0x180046b05
// > sub_180046A60 @ 0x180046b58
// > ??> @ 0x1801f801c
//
// 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:11 +0000
//
__int64 __fastcall sub_180042270(__int64 a1, __int64 a2, unsigned int *a3)
{
unsigned int v6; // edi
unsigned int v7; // ebx
unsigned int v9[10]; // [rsp+20h] [rbp-28h] BYREF
unsigned int v10; // [rsp+68h] [rbp+20h] BYREF
v9[0] = 0;
if ( !(unsigned int)sub_180041D20(a1, a2, v9, 8u) )
return 0;
if ( !(unsigned int)sub_180041D20(a1, a2, &v10, 8u) )
return 0;
v6 = v9[0] | (v10 << 8);
if ( !(unsigned int)sub_180041D20(a1, a2, &v10, 8u) )
return 0;
v7 = v6 | (v10 << 16);
if ( !(unsigned int)sub_180041D20(a1, a2, &v10, 8u) )
return 0;
*a3 = v7 | (v10 << 24);
return 1;
}