//
// sub_83B0DC from 0x83b0dc to 0x83b136 (90 bytes)
//
// 3 xrefs:
// > cocos2d::extension::AssetsManager::downLoad @ 0x7a5c9e
// > cocos2d::extension::AssetsManager::checkUpdate @ 0x7a6350
// > cocos2d::extension::ThreadCurlHandle::~ThreadCurlHandle @ 0x7b161e
//
// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!
//
// 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:02:16 +0000
//
int __fastcall sub_83B0DC(int result)
{
struct sigaction *v1; // r5
int v2; // r4
_DWORD v3[4]; // [sp+4h] [bp-28h] BYREF
int v4; // [sp+14h] [bp-18h] BYREF
int v5; // [sp+18h] [bp-14h]
int v6; // [sp+1Ch] [bp-10h]
int v7; // [sp+20h] [bp-Ch]
unsigned __int8 v8; // [sp+24h] [bp-8h]
if ( result )
{
v2 = result;
v8 = *(_BYTE *)(result + 932);
v1 = (struct sigaction *)v8;
if ( !v8 )
{
v4 = 0;
v5 = 0;
v6 = 0;
v7 = 0;
sigaction(13, nullptr, (struct sigaction *)&v4);
v3[1] = v5;
v3[2] = v6;
v3[3] = v7;
v3[0] = 1;
sigaction(13, (const struct sigaction *)v3, v1);
}
result = sub_82E5DC(v2);
if ( !v8 )
return sigaction(13, (const struct sigaction *)&v4, nullptr);
}
return result;
}