// // cocos2d::CCImage::_initWithTiffData from 0x7ebb00 to 0x7ebc1a (282 bytes) // // 1 xrefs: // > cocos2d::CCImage::initWithImageData @ 0x7ebcc8 // // 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:01:00 +0000 // int __fastcall cocos2d::CCImage::_initWithTiffData(cocos2d::CCImage *this, void *a2, int a3) { int result; // r0 int v5; // r4 int v6; // r3 int v7; // r5 unsigned int v8; // r5 const void *v9; // r10 __int16 v10; // [sp+1Ah] [bp-1Eh] BYREF __int16 v11; // [sp+1Ch] [bp-1Ch] BYREF __int16 v12; // [sp+1Eh] [bp-1Ah] BYREF int v13; // [sp+20h] [bp-18h] BYREF int v14; // [sp+24h] [bp-14h] BYREF _DWORD v15[3]; // [sp+28h] [bp-10h] BYREF v15[0] = a2; v15[1] = a3; v15[2] = 0; result = TIFFClientOpen( "file.tif", &a1i2r3e45s789g[3], v15, sub_7EB5F4, sub_7EB584, sub_7EB6C4, sub_7EB58E, sub_7EB588, sub_7EB592, nullsub_11); v5 = result; if ( result ) { v13 = 0; v14 = 0; v10 = 0; v11 = 0; v12 = 0; TIFFGetField(result, 256, &v13); TIFFGetField(v5, 257, &v14); TIFFGetField(v5, 258, &v10); TIFFGetField(v5, 277, &v11); TIFFGetField(v5, 284, &v12); v6 = v13; v7 = v14; *((_BYTE *)this + 64) = 1; *((_WORD *)this + 26) = v6; *((_WORD *)this + 27) = v7; *((_DWORD *)this + 14) = 8; v8 = 4 * v7 * v6; *((_DWORD *)this + 15) = operator new[](v8); v9 = (const void *)TIFFmalloc(v8); if ( v9 ) { if ( TIFFReadRGBAImageOriented(v5, v13, v14, v9, 1, 0) ) { *((_BYTE *)this + 65) = 1; memcpy(*((void **)this + 15), v9, v8); } TIFFfree(v9); } TIFFClose(v5); return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source