// // sub_18007C650 from 0x18007c650 to 0x18007c6b4 (100 bytes) // // 1 xrefs: // > cocos2d::CCImage::_initWithTiffData @ 0x18007ba21 // // 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 // __int64 __fastcall sub_18007C650(__int64 a1, unsigned __int64 a2, int a3) { __int64 v5; // r8 int v6; // edx unsigned __int64 v7; // rcx int v8; // edx if ( !a3 ) { if ( a2 >= *(int *)(a1 + 8) ) return -1; goto LABEL_11; } if ( a3 == 1 ) { v5 = *(int *)(a1 + 12); if ( a2 + v5 >= *(int *)(a1 + 8) ) return -1; v6 = v5 + a2; *(_DWORD *)(a1 + 12) = v6; return v6; } else { v7 = *(int *)(a1 + 8); if ( a3 != 2 ) { if ( a2 >= v7 ) return -1; LABEL_11: *(_DWORD *)(a1 + 12) = a2; return (int)a2; } if ( a2 >= v7 ) return -1; v8 = v7 - a2 - 1; *(_DWORD *)(a1 + 12) = v8; return v8; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source