//
// sub_1007FEDF0 from 0x1007fedf0 to 0x1007fef1e (302 bytes)
//
// 0 xrefs:
//
// 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 12:36:36 +0000
//
bool sub_1007FEDF0(__int64 a1, __int64 a2, ...)
{
unsigned int **v3; // r14
__int64 gp_offset; // rcx
__int64 v5; // rsi
__int64 *overflow_arg_area; // rax
va_list va; // [rsp+B0h] [rbp-30h] BYREF
v3 = (unsigned int **)(a1 + 56);
sub_1007467C0((void **)(a1 + 56));
if ( a2 )
{
va_start(va, a2);
sub_100746BF0(*v3, a2);
gp_offset = va[0].gp_offset;
if ( va[0].gp_offset > 0x28uLL )
goto LABEL_5;
while ( 1 )
{
va[0].gp_offset = gp_offset + 8;
v5 = *(_QWORD *)((char *)va[0].reg_save_area + gp_offset);
if ( !v5 )
break;
while ( 1 )
{
sub_100746BF0(*v3, v5);
gp_offset = va[0].gp_offset;
if ( va[0].gp_offset <= 0x28uLL )
break;
LABEL_5:
overflow_arg_area = (__int64 *)va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
v5 = *overflow_arg_area;
if ( !*overflow_arg_area )
return a2 != 0;
}
}
}
return a2 != 0;
}