// // png_set_gray_to_rgb from 0xe4e93c to 0xe4e990 (84 bytes) // // 4 xrefs: // > cocos2d::CCImage::_initWithPngData @ 0xd7cfcc // > png_read_row @ 0xe4a480 // > png_read_png @ 0xe4c21c // > @ 0x9c058 // // This function is hookable on this platform (idp: arm, 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 13:10:09 +0000 // __int64 __fastcall png_set_gray_to_rgb(__int64 result) { int v1; // w2 __int64 v2; // x19 if ( result ) { v1 = *(_DWORD *)(result + 360); if ( (v1 & 0x40) != 0 ) { return png_app_error(result, "invalid after png_start_read_image or png_read_update_info"); } else { v2 = result; *(_DWORD *)(result + 360) = v1 | 0x4000; png_set_expand_gray_1_2_4_to_8(result); result = *(_DWORD *)(v2 + 364) | 0x4000u; *(_DWORD *)(v2 + 364) = result; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source