//
// sub_10071FB90 from 0x10071fb90 to 0x10071fcc7 (311 bytes)
//
// 6 xrefs:
// > sub_1000A1050 @ 0x1000a147f
// > sub_1000A1D60 @ 0x1000a5aef
// > GameManager::verifyCoinUnlocks @ 0x10037bc32
// > FMODAudioEngine::setup @ 0x1003dcf97
// > cocos2d::CCMenu::createWithItems @ 0x100792d13
// > DemonInfoPopup::init @ 0x1007c16a3
//
// 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
//
unsigned int **sub_10071FB90(cocos2d::CCObject *a1, ...)
{
unsigned int **v1; // rax
unsigned int **v2; // rbx
__int64 gp_offset; // rcx
cocos2d::CCObject *v4; // rsi
cocos2d::CCObject **overflow_arg_area; // rax
va_list va; // [rsp+B0h] [rbp-30h] BYREF
va_start(va, a1);
v1 = (unsigned int **)sub_10071F9E0();
v2 = v1;
if ( a1 )
{
sub_1006676C0(v1[7], a1);
gp_offset = va[0].gp_offset;
if ( va[0].gp_offset > 0x28uLL )
goto LABEL_5;
while ( 1 )
{
va[0].gp_offset = gp_offset + 8;
v4 = *(cocos2d::CCObject **)((char *)va[0].reg_save_area + gp_offset);
if ( !v4 )
break;
while ( 1 )
{
sub_1006676C0(v2[7], v4);
gp_offset = va[0].gp_offset;
if ( va[0].gp_offset <= 0x28uLL )
break;
LABEL_5:
overflow_arg_area = (cocos2d::CCObject **)va[0].overflow_arg_area;
va[0].overflow_arg_area = (char *)va[0].overflow_arg_area + 8;
v4 = *overflow_arg_area;
if ( !*overflow_arg_area )
return v2;
}
}
}
else
{
(*((void (__fastcall **)(unsigned int **))*v1 + 2))(v1);
return nullptr;
}
return v2;
}