//
// sub_180070F20 from 0x180070f20 to 0x18007105c (316 bytes)
//
// 2 xrefs:
// > ??> @ 0x1801ad1b0
// > ??> @ 0x1801f9960
//
// 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:30 +0000
//
void __fastcall sub_180070F20(__int64 *a1)
{
__int64 v1; // rbx
unsigned int v2; // edi
__int64 v3; // rax
__m128i v4; // xmm0
__int64 v5; // rax
__int64 v6; // rsi
int v7; // eax
int v8; // xmm2_4
v1 = *a1;
v2 = 0;
v3 = *(_QWORD *)(*a1 + 168);
*(_QWORD *)(v1 + 1112) = 1065353216;
*(_DWORD *)(v1 + 1120) = 0;
*(_DWORD *)(v1 + 1124) = 1065353216;
*(_DWORD *)(v1 + 1128) = 1061416727;
*(_DWORD *)(v1 + 1132) = 1065353216;
*(_DWORD *)(v1 + 556) = 1065353216;
*(_QWORD *)(v1 + 1136) = 1065353216;
*(_DWORD *)(v1 + 1144) = 0;
*(_DWORD *)(v1 + 1148) = 1065353216;
*(_DWORD *)(v1 + 1152) = 1072464734;
*(_QWORD *)(v1 + 1156) = 1065353216;
*(_DWORD *)(v1 + 560) = 1065353216;
v4 = _mm_cvtsi32_si128(*(_DWORD *)(v3 + 1744));
v5 = *(_QWORD *)(v1 + 232);
*(float *)(v1 + 552) = (float)(_mm_cvtepi32_ps(v4).m128_f32[0] * 0.5) - 10.0;
if ( *(int *)(v5 + 96) <= 0 )
{
LABEL_5:
v8 = *(_DWORD *)(v1 + 1168);
*(_DWORD *)(v1 + 544) = *(_DWORD *)(v1 + 1164);
*(_DWORD *)(v1 + 548) = v8;
sub_180072D10(v1);
}
else
{
v6 = 0;
while ( 1 )
{
sub_18009C0C0(v1, v2);
if ( v7 )
break;
++v2;
v6 += 8;
if ( (signed int)v2 >= *(_DWORD *)(*(_QWORD *)(v1 + 232) + 96LL) )
goto LABEL_5;
}
}
}