//
// sub_100615014 from 0x100615014 to 0x1006151c8 (436 bytes)
//
// 1 xrefs:
// > sub_1006151C8 @ 0x100615200
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
_BYTE *__fastcall sub_100615014(__int64 *a1, const char *a2, size_t a3, void *a4, int a5, _QWORD *a6, _DWORD *a7)
{
int v14; // w0
_BYTE *v15; // x21
int v16; // w22
__int16 v17; // w2
int v18; // w4
int v20; // [xsp+1Ch] [xbp-104h] BYREF
void *__b[22]; // [xsp+20h] [xbp-100h] BYREF
sub_1005E3560(__b);
if ( (unsigned int)sub_1005EB490(*a1, a2, a3, a1[1], (__int64)__b) )
{
v14 = sub_1005EB254((__int64)__b);
v15 = sub_100588710((unsigned int)(v14 + a5), (__int64)"p12_decr.c", 91);
if ( v15 )
{
if ( (unsigned int)sub_1005E3B20((__int64)__b, (int)v15, (int)&v20, a4) )
{
v16 = v20;
if ( (unsigned int)sub_1005E3EBC((__int64)__b) )
{
if ( a7 )
*a7 = v20 + v16;
if ( a6 )
*a6 = v15;
goto LABEL_14;
}
sub_100588C44(v15);
v17 = 116;
v18 = 108;
}
else
{
sub_100588C44(v15);
v17 = 6;
v18 = 99;
}
}
else
{
v17 = 65;
v18 = 92;
}
sub_1005E0E48(35, 119, v17, (__int64)"p12_decr.c", v18);
v15 = nullptr;
LABEL_14:
sub_1005E3A10(__b);
return v15;
}
sub_1005E0E48(35, 119, 115, (__int64)"p12_decr.c", 87);
return nullptr;
}